The PNRServent contains a PNR client, server, and manager. The servent controls the behavior of its components and stores data structures shared by each component.
Public Methods
-
PNRServent(Computer* _host = NULL, PNRStrategy _strategy = MANAGER)
-
-
~PNRServent()
-
-
void setPeers(map <ID, Computer>* computers)
- Get a list of peers from the system and remember it for later.
-
void setMagicKnowledge(bool know = false)
- Tell components whether they are allowed to use global knowledge or not
-
void setManagers(const unsigned int num = 0)
- Set how many managers there will be in the current system
-
void setServerThreshold(const MEMAMT threshold = 0.1)
- Sets the mimimum amount of RAM servers require to be idle before they start allocating network RAM.
-
ID getActiveServent(ID masterThreadHost, ID currentThreadHost, ID jobID = 0)
- Returns the manager that will service the client's request.
-
bool broadcastingServent()
-
-
bool waitForOtherPeers()
-
-
PNRServer* getServer(void) const
-
-
PNRClient* getClient(void) const
-
-
PNRManager* getManager(void) const
-
-
PNRStrategy getStrategy(void) const
-
-
const list<ID> & getManagerList(void) const
-
Documentation
The PNRServent contains a PNR client, server, and manager. The servent controls the behavior of its components and stores data structures shared by each component.
PNRServent(Computer* _host = NULL, PNRStrategy _strategy = MANAGER)
-
~PNRServent()
-
void setPeers(map <ID, Computer>* computers)
-
void setMagicKnowledge(bool know = false)
-
void setManagers(const unsigned int num = 0)
-
This method should only be called when using the "backbone" PNR algorithm
void setServerThreshold(const MEMAMT threshold = 0.1)
-
ID getActiveServent(ID masterThreadHost, ID currentThreadHost, ID jobID = 0)
-
What manager is returned depends on which PNR algorithms are being used.
For instance, if the centralized algorithm is being used, then the 0th manager
is always returned.
bool broadcastingServent()
-
- Returns:
- whether the servent will broadcast load information after job start/stop
bool waitForOtherPeers()
-
- Returns:
- whether the servent waits for other servents when performing operations (such as network RAM allocation).
PNRServer* getServer(void) const
-
- Returns:
- a pointer to the servent's server.
PNRClient* getClient(void) const
-
- Returns:
- a pointer to the servent's client
PNRManager* getManager(void) const
-
- Returns:
- a pointer to the servent's manager
PNRStrategy getStrategy(void) const
-
- Returns:
- an enumerated type that represents what PNR algorithm is being used.
const list<ID> & getManagerList(void) const
-
- Returns:
- the list of managers currently in the system.
- This class has no child classes.
- Author:
- John Oleszkiewicz
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.