Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

statisticInfo Class Reference

#include <rmSysInfo.h>

Inheritance diagram for statisticInfo:

rmBaseArray< StatisticInfo > IBaseAccessor List of all members.

Public Methods

 statisticInfo ()
virtual ~statisticInfo ()
int init (subsystemInfo *aSubsystemInfo, resourceInfo *aResourceInfo)
virtual int getUUIDString (RMAttribute aName, unsigned long aID, char *aUUIDStr)
virtual int getUUID (RMAttribute aName, unsigned long aID, uuid_t aUUID)
virtual int getInteger32 (RMAttribute aName, unsigned long aID, long &aValue)
virtual int getUnsigned (RMAttribute aName, unsigned long aID, unsigned long &aValue)
virtual int getString (RMAttribute aName, unsigned long aID, char *&aBuf)
virtual int getUnsigned64 (RMAttribute aName, unsigned long aID, u_int64_t &aValue)
virtual int setInteger32 (RMAttribute aName, unsigned long aID, long aValue)
virtual int setUnsigned (RMAttribute aName, unsigned long aID, unsigned long aValue)
virtual int setUnsigned64 (RMAttribute aName, unsigned long aID, u_int64_t aValue)
int initStatisticInfoByResourceID (unsigned long aID)

Private Attributes

subsystemInfomSubsystemInfo
resourceInfomResourceInfo

Detailed Description

statisticInfo class.

This is the class that manages all the statistic info.

This class implements the IBaseArray interface by inheriting from rmBaseArray<StatisticInfo> template class.

Definition at line 122 of file rmSysInfo.h.


Constructor & Destructor Documentation

statisticInfo::statisticInfo   [inline]
 

Definition at line 125 of file rmSysInfo.h.

virtual statisticInfo::~statisticInfo   [inline, virtual]
 

Definition at line 126 of file rmSysInfo.h.


Member Function Documentation

int statisticInfo::getInteger32 RMAttribute    aName,
unsigned long    aID,
long &    aValue
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 646 of file rmSysInfo.cpp.

References rmBaseArray< StatisticInfo >::getConstElement, StatisticInfo::info, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_SUCCESS, STATISTICINFO_COUNTERRESET, STATISTICINFO_SCALE, STATISTICINFO_SIZE, and STATISTICINFO_TYPE.

int statisticInfo::getString RMAttribute    aName,
unsigned long    aID,
char *&    aBuf
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 854 of file rmSysInfo.cpp.

References rmBaseArray< StatisticInfo >::getConstElement, StatisticInfo::info, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_ERROR_STATISTIC_STRING, RMCLIENT_SUCCESS, STATISTICINFO_DESCRIPTION, STATISTICINFO_NAME, and STATISTICINFO_UNITS.

int statisticInfo::getUnsigned RMAttribute    aName,
unsigned long    aID,
unsigned long &    aValue
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 758 of file rmSysInfo.cpp.

References StatisticInfo::counterValue, rmBaseArray< StatisticInfo >::getConstElement, subsystemInfo::getUUID, StatisticInfo::info, mSubsystemInfo, StatisticInfo::resourceId, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_ERROR_STATISTIC_UPPERBOUND, RMCLIENT_ERROR_SUBSYSTEM_UUID, RMCLIENT_SUCCESS, STATISTICINFO_COUNTERRESETVALUE32, STATISTICINFO_GAUGEUPPERBOUND32, STATISTICINFO_ID, STATISTICINFO_RESOURCEID, STATISTICINFO_SUBSYSTEMID, StatisticInfo::subsystemId, and SUBSYSTEMINFO_UUID.

int statisticInfo::getUnsigned64 RMAttribute    aName,
unsigned long    aID,
u_int64_t &    aValue
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 812 of file rmSysInfo.cpp.

References StatisticInfo::counterValue, rmBaseArray< StatisticInfo >::getConstElement, subsystemInfo::getUUID, StatisticInfo::info, mSubsystemInfo, StatisticInfo::resourceId, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_ERROR_STATISTIC_UPPERBOUND, RMCLIENT_ERROR_SUBSYSTEM_UUID, RMCLIENT_SUCCESS, STATISTICINFO_COUNTERRESETVALUE64, STATISTICINFO_GAUGEUPPERBOUND64, StatisticInfo::subsystemId, and SUBSYSTEMINFO_UUID.

int statisticInfo::getUUID RMAttribute    aName,
unsigned long    aID,
uuid_t    aUUID
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 620 of file rmSysInfo.cpp.

References rmBaseArray< StatisticInfo >::getConstElement, StatisticInfo::info, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_SUCCESS, and STATISTICINFO_SUBSYSTEMUUID.

int statisticInfo::getUUIDString RMAttribute    aName,
unsigned long    aID,
char *    aUUIDStr
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 594 of file rmSysInfo.cpp.

References rmBaseArray< StatisticInfo >::getConstElement, StatisticInfo::info, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_SUCCESS, and STATISTICINFO_SUBSYSTEMUUID.

int statisticInfo::init subsystemInfo   aSubsystemInfo,
resourceInfo   aResourceInfo
 

Definition at line 521 of file rmSysInfo.cpp.

References rmBaseArray< ResourceInfo >::getNextId, initStatisticInfoByResourceID, mResourceInfo, mSubsystemInfo, and RMCLIENT_SUCCESS.

Referenced by rmClient::init.

int statisticInfo::initStatisticInfoByResourceID unsigned long    aID
 

Definition at line 542 of file rmSysInfo.cpp.

References StatisticInfo::counterValue, rmBaseArray< SubsystemInfo >::getConstElement, resourceInfo::getUnsigned, StatisticInfo::guageUpperBound, StatisticInfo::info, SubsystemInfo::info, mResourceInfo, mSubsystemInfo, rmBaseArray< StatisticInfo >::newElement, StatisticInfo::resourceId, RESOURCEINFO_RESOURCEID, RESOURCEINFO_SUBSYSTEMID, RMCLIENT_ERROR_MEMORY, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_ERROR_SUBSYSTEM_INFO, RMCLIENT_SUCCESS, and StatisticInfo::subsystemId.

Referenced by resourceInfo::addResource, init, and resourceInfo::initResourceInfoBySubsystemID.

int statisticInfo::setInteger32 RMAttribute    aName,
unsigned long    aID,
long    aValue
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 680 of file rmSysInfo.cpp.

References StatisticInfo::counterValue, rmBaseArray< StatisticInfo >::getElement, subsystemInfo::getUUID, StatisticInfo::info, mSubsystemInfo, StatisticInfo::resourceId, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_ERROR_STATISTIC_UPPERBOUND, RMCLIENT_ERROR_SUBSYSTEM_UUID, RMCLIENT_SUCCESS, STATISTICINFO_COUNTERRESET, StatisticInfo::subsystemId, and SUBSYSTEMINFO_UUID.

int statisticInfo::setUnsigned RMAttribute    aName,
unsigned long    aID,
unsigned long    aValue
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 714 of file rmSysInfo.cpp.

References StatisticInfo::counterValue, rmBaseArray< StatisticInfo >::getElement, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_SUCCESS, and STATISTICINFO_COUNTERRESETVALUE32.

int statisticInfo::setUnsigned64 RMAttribute    aName,
unsigned long    aID,
u_int64_t    aValue
[virtual]
 

Reimplemented from rmBaseArray< StatisticInfo >.

Definition at line 736 of file rmSysInfo.cpp.

References StatisticInfo::counterValue, rmBaseArray< StatisticInfo >::getElement, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_STATISTIC_INFO, RMCLIENT_SUCCESS, and STATISTICINFO_COUNTERRESETVALUE64.


Member Data Documentation

resourceInfo* statisticInfo::mResourceInfo [private]
 

Definition at line 150 of file rmSysInfo.h.

Referenced by init, and initStatisticInfoByResourceID.

subsystemInfo* statisticInfo::mSubsystemInfo [private]
 

Definition at line 149 of file rmSysInfo.h.

Referenced by getUnsigned, getUnsigned64, init, initStatisticInfoByResourceID, and setInteger32.


The documentation for this class was generated from the following files:
Generated on Tue Sep 10 16:46:34 2002 for ResourceMonitorSNMPSubagent by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002