#include <NodeData.h>
Inheritance diagram for FountainNodes::Statistics:

Public Member Functions | |
| void | checkForStaleData (const time_t &staleDataLimit) |
| Check if this object's data has been updated recently, if not change it's NodeState to down. | |
| void | update (BambooLib::XMLElement *nodeInfo) |
| Update this NodeData object's dynamic resource usage. | |
Protected Member Functions | |
| Statistics (const std::string &myid) | |
| Constructor. | |
| ~Statistics () | |
| Protected destructor since this is a policy class. | |
| bool | supportGetElement (const std::string &getElementName) const |
| Test whether or not the named Get element is supported. | |
| bool | satisfiesWhereElement (const std::string &name, BambooLib::RMAP_Relation_Operator_Type op, const std::string &value) const |
| Test the named Where element using the provided operator and value to see if it matches our statistics. | |
| void | appendInfo (XMLElementListPtr getList, BambooLib::XMLElement *nodeXML) const |
| Append this NodeData object's resource statistics to an XML message using the provided parameters. | |
Private Member Functions | |
| void | parseNodeInfoElement (BambooLib::XMLElement *nodeInfo) |
| Parse the node query response. | |
Private Attributes | |
| std::vector< std::string > | supportedGetElements_ |
| A vector of strings containing the names of the supported Get elements. | |
| const std::string | id_ |
| Unique ID of this node. | |
| time_t | lastUpdated_ |
| std::string | arch_ |
| std::string | opsys_ |
| unsigned int | numProcs_ |
| double | configuredMemory_ |
| double | configuredSwap_ |
| double | availableMemory_ |
| double | availableSwap_ |
| double | cpuUsage_ |
| BambooLib::RMAP_UnitType | configuredMemoryUnits_ |
| BambooLib::RMAP_UnitType | configuredSwapUnits_ |
| BambooLib::RMAP_UnitType | availableMemoryUnits_ |
| BambooLib::RMAP_UnitType | availableSwapUnits_ |
|
||||||||||||
|
Append this NodeData object's resource statistics to an XML message using the provided parameters.
|
|
|
Parse the node query response.
|
|
||||||||||||||||
|
Test the named Where element using the provided operator and value to see if it matches our statistics.
|
|
|
Test whether or not the named Get element is supported.
|
|
|
Update this NodeData object's dynamic resource usage.
|
|
|
Architecture of this node's processors |
|
|
Amount of available memory |
|
|
Available memory units |
|
|
Amount of available swap space |
|
|
Available swap units |
|
|
Amount of configured memory |
|
|
Configured memory units |
|
|
Amount of configured swap space |
|
|
Configured swap units |
|
|
Percentage of the CPU(s) that are utilized, ranges from 0 to 1.0 inclusive |
|
|
The time this object was last updated |
|
|
Number of configured processors |
|
|
Operating system |
1.4.6