class PNRServentFactory

This object provides a convienient way of manufacturing servent objects without caring about how to do it.

Public Methods

[more] ~PNRServentFactory()
[more]PNRServent* buildServent(Computer* host)
This function builds a new servent based on the factory's configuration
[more]void setStrategy(PNRStrategy _newstrat = MANAGER)
Sets the PNR algorithm each servent should use.
[more]void setMagicKnowledge(bool _knowledge = false)
Sets whether servents are allowed to use global system knowledge
[more]void setManagers(const unsigned int num = 1)
Sets the total number of managers on the system that servents must be aware of
[more]void setServerThreshold(const MEMAMT threshold = 0.1)
Sets the amount of idle RAM a server must have before it grants network RAM requests.


Documentation

The factory needs to be configured before it is run by calling its various member functions. Once the intial setup is finished, buildServent will take care of all the required steps in creating a new servent.
o ~PNRServentFactory()

oPNRServent* buildServent(Computer* host)
Returns:
a new servent.

ovoid setStrategy(PNRStrategy _newstrat = MANAGER)

ovoid setMagicKnowledge(bool _knowledge = false)

ovoid setManagers(const unsigned int num = 1)
Note that this is specific to the backbone method

ovoid setServerThreshold(const MEMAMT threshold = 0.1)


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++.