#include <NodeMonitor.h>
Inheritance diagram for NodeMonitorBase:

Public Types | |
| typedef Loki::SmartPtr< NodeMonitorBase > | NodeMonitorPtr |
| Shorthand for a NodeMonitorBase pointer wrapped inside a SmartPtr object. | |
Public Member Functions | |
| virtual | ~NodeMonitorBase ()=0 |
| Pure virtual destructor. | |
| virtual int | collectDynamicInfo ()=0 |
| Collect dynamic node information. | |
| int | getNumProcs () const |
| Get the number of configured processors. | |
| double | getTotalRAM (BambooLib::RMAP_UnitType s=BambooLib::MegaByte) const |
| Get the amount of configured physical memory. | |
| double | getTotalSWAP (BambooLib::RMAP_UnitType s=BambooLib::MegaByte) const |
| Get the amount of configured swap space. | |
| double | getFreeRAM (BambooLib::RMAP_UnitType s=BambooLib::MegaByte) const |
| Get the amount of available physical memory. | |
| double | getFreeSWAP (BambooLib::RMAP_UnitType s=BambooLib::MegaByte) const |
| Get the amount of available swap space. | |
| double | getCPUusage () const |
| Get the CPU usage. | |
| const char * | getArch () const |
| Get the CPU architecture. | |
| const char * | getOpSys () const |
| Get the operating system. | |
Static Public Member Functions | |
| static NodeMonitorBase * | create () |
| Static factory creation method. | |
Protected Member Functions | |
| NodeMonitorBase () | |
| Protected default constructor so NodeMonitorBase objects cannot be created. | |
Protected Attributes | |
| int | numProcs |
| Number of processors present. | |
| std::string | arch |
| CPU architecture. | |
| std::string | opsys |
| Operating system. | |
| double | totalRAM |
| Amount of configured physical memory. | |
| double | totalSWAP |
| Amount of configured virtual memory. | |
| double | freeRAM |
| Amount of free physical memory. | |
| double | freeSWAP |
| Amount of free virtual memory. | |
| double | cpuUsage |
| Represents cpu usage, between 0.0 and 1.0 inclusive. | |
Private Member Functions | |
| virtual int | collectStaticInfo ()=0 |
| Collect their static node information. | |
| virtual int | collectCPUusage ()=0 |
| Collect their CPU usage information. | |
| NodeMonitorBase (const NodeMonitorBase &rhs) | |
| Private copy constructor so we can't slice NodeMonitorBase objects. | |
| NodeMonitorBase & | operator= (const NodeMonitorBase &rhs) |
| Private assignment operator so we can't slice NodeMonitorBase objects. | |
|
|
Collect dynamic node information.
Implemented in DarwinMonitor, and LinuxMonitor. |
|
|
Get the CPU architecture.
|
|
|
Get the CPU usage.
|
|
|
Get the amount of available physical memory.
|
|
|
Get the amount of available swap space.
|
|
|
Get the number of configured processors.
|
|
|
Get the operating system.
|
|
|
Get the amount of configured physical memory.
|
|
|
Get the amount of configured swap space.
|
1.4.6