Public Member Functions | |
bool | isEnabled () const |
Ganglia_pool_t | getGlobalContext () const |
Ganglia_udp_send_channels_t | getSendChannels () const |
Static Public Member Functions | |
static NdmcClientService & | instance () |
static std::string | getCONFIGFILE () |
static void | setCONFIGFILE (std::string configfile) |
Private Member Functions | |
NdmcClientService () | |
virtual | ~NdmcClientService () |
bool | _initGanglia () |
NdmcClientService (const NdmcClientService &) | |
NdmcClientService & | operator= (const NdmcClientService &) |
Private Attributes | |
bool | _enabled |
Ganglia_pool_t | _globalContext |
Ganglia_gmond_config_t | _gmondConfig |
Ganglia_udp_send_channels_t | _sendChannels |
Static Private Attributes | |
static std::string | _CONFIGFILE = "/etc/ganglia/gmond_nova.conf" |
NdmcClientService header file
This class implements the NdmcClientService singleton interface to the Ganglia global environment for initiating the Ganglia global context, udp send channels, and gmond configuration. An NdmcClient would use this service for access this Ganglia data, which should be common for all clients on this node.
Definition at line 28 of file NdmcClientService.h.
|
private |
Constructor
Definition at line 15 of file NdmcClientService.cpp.
References _enabled, _initGanglia(), allTimeWatchdog::endl, and LOG_DEBUG.
|
privatevirtual |
Destructor
Definition at line 26 of file NdmcClientService.cpp.
References _globalContext, allTimeWatchdog::endl, and LOG_DEBUG.
|
private |
Disabled
|
private |
Initialize Ganglia. Return true if success, else false.
Definition at line 47 of file NdmcClientService.cpp.
References _globalContext, _gmondConfig, _sendChannels, allTimeWatchdog::endl, getCONFIGFILE(), LOG_DEBUG, LogError, and LogInfo.
Referenced by NdmcClientService().
|
inlinestatic |
Definition at line 39 of file NdmcClientService.h.
References _CONFIGFILE.
Referenced by _initGanglia().
|
inline |
Definition at line 46 of file NdmcClientService.h.
References _globalContext.
Referenced by NdmcMetric< T >::NdmcMetric().
|
inline |
Definition at line 47 of file NdmcClientService.h.
References _sendChannels.
Referenced by NdmcMetric< T >::send().
|
static |
Access the singleton instance
Definition at line 37 of file NdmcClientService.cpp.
Referenced by NdmcMetric< T >::NdmcMetric(), NdmcMetric< T >::send(), and NdmcClientServiceTest::testInstance().
|
inline |
Definition at line 45 of file NdmcClientService.h.
References _enabled.
Referenced by NdmcClientServiceTest::testInstance().
|
private |
Disabled
|
inlinestatic |
Definition at line 40 of file NdmcClientService.h.
References _CONFIGFILE.
Referenced by NdmcClientTest::setUp(), NdmcMetricTest::setUp(), and NdmcClientServiceTest::testInstance().
|
staticprivate |
Definition at line 62 of file NdmcClientService.h.
Referenced by getCONFIGFILE(), and setCONFIGFILE().
|
private |
NdmcClientService has been initialized
Definition at line 51 of file NdmcClientService.h.
Referenced by isEnabled(), and NdmcClientService().
|
private |
Ganglia global context
Definition at line 52 of file NdmcClientService.h.
Referenced by _initGanglia(), getGlobalContext(), and ~NdmcClientService().
|
private |
Ganglia gmond configuration
Definition at line 53 of file NdmcClientService.h.
Referenced by _initGanglia().
|
private |
Ganglia send channels
Definition at line 54 of file NdmcClientService.h.
Referenced by _initGanglia(), and getSendChannels().