Project
Loading...
Searching...
No Matches
o2::framework::SimpleResourceManager Class Reference

#include <SimpleResourceManager.h>

Inherits o2::framework::ResourceManager.

Public Member Functions

 SimpleResourceManager (std::vector< ComputingResource > intialResources)
 initialResources the precomputed list of available resources
 
std::vector< ComputingOffergetAvailableOffers () override
 Get the available resources for a device to run on.
 
void notifyAcceptedOffer (ComputingOffer const &accepted) override
 

Detailed Description

A resource manager with infinite resources at its disposal. This is a trivial implementation which can be used to do laptop deploys.

Definition at line 22 of file SimpleResourceManager.h.

Constructor & Destructor Documentation

◆ SimpleResourceManager()

o2::framework::SimpleResourceManager::SimpleResourceManager ( std::vector< ComputingResource intialResources)
inline

initialResources the precomputed list of available resources

Definition at line 26 of file SimpleResourceManager.h.

Member Function Documentation

◆ getAvailableOffers()

std::vector< ComputingOffer > o2::framework::SimpleResourceManager::getAvailableOffers ( )
overridevirtual

Get the available resources for a device to run on.

The simplest implementation of this allocates mMaxPorts ports starting from the mInitialPort. For now we still consider everything running on a single machine.

Implements o2::framework::ResourceManager.

Definition at line 23 of file SimpleResourceManager.cxx.

◆ notifyAcceptedOffer()

void o2::framework::SimpleResourceManager::notifyAcceptedOffer ( ComputingOffer const &  accepted)
overridevirtual

Notify that we have accepted a given resource and that it should not be reoffered

Implements o2::framework::ResourceManager.

Definition at line 48 of file SimpleResourceManager.cxx.


The documentation for this class was generated from the following files: