#include <ServerData.h>
Public Types | |
| typedef DataSource::HashTable | NodeHashTable |
| Shorthand so we don't have to type this STL crap each time we want to iterate over the node monitor database. | |
Public Member Functions | |
| void | discover () |
| Discovers the server specific data. | |
| void | update () |
| Update the data discovered. | |
| time_t | getUpdateInterval () const |
| Get the the DataSource object update interval. | |
| void | setUpdateInterval (time_t interval) |
| Set the the DataSource object update interval. | |
| time_t | getLastDiscoverTime () const |
| Get the last time the DataSource object was discovered. | |
| time_t | getLastUpdateTime () const |
| Get the last time the DataSource object was updated. | |
Static Public Member Functions | |
| static ServerData * | getInstance (NodeHashTable &nodeMonitorDatabase) |
| Get the singleton instance of the ServerData object. | |
Protected Member Functions | |
| ServerData (NodeHashTable &nodeMonitorDatabase) | |
| Protected constructor since we are using a singleton design pattern. | |
Private Member Functions | |
| ServerData (const ServerData &rhs) | |
| Private copy constructor so ServerData objects cannot be sliced. | |
| ServerData & | operator= (const ServerData &rhs) |
| Private assignment operator so ServerData objects cannot be sliced. | |
Private Attributes | |
| time_t | lastDiscoverTime |
| time_t | lastUpdateTime |
| time_t | updateInterval |
This class uses a Singleton design pattern since the Fountain Server only supports a single server specific data source.
|
|||||||||
|
Discovers the server specific data.
|
|
||||||||||
|
Get the singleton instance of the ServerData object.
|
|
|||||||||
|
Get the last time the DataSource object was discovered.
|
|
|||||||||
|
Get the last time the DataSource object was updated.
|
|
|||||||||
|
Get the the DataSource object update interval.
|
|
||||||||||
|
Set the the DataSource object update interval.
|
|
|||||
|
The time the DataSource object was last discovered |
|
|||||
|
The time the DataSource object was last updated |
|
|||||
|
The time between DataSource object updates |
1.4.6