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

subsystemInfo Class Reference

#include <rmSysInfo.h>

Inheritance diagram for subsystemInfo:

rmBaseArray< SubsystemInfo > IBaseAccessor List of all members.

Public Methods

 subsystemInfo (unsigned long aSystemStartupTime)
virtual ~subsystemInfo ()
int init (resourceInfo *aResourceInfo, statisticInfo *aStatisticInfo)
virtual int getUUIDString (RMAttribute aName, unsigned long aID, char *aUUIDStr)
virtual int getUUID (RMAttribute aName, unsigned long aID, uuid_t aUUID)
virtual int getUnsigned (RMAttribute aName, unsigned long aID, unsigned long &aValue)
virtual int getString (RMAttribute aName, unsigned long aID, char *&aBuf)
virtual unsigned long getSubsystemIDByUUID (const uuid_t aUUID)
virtual int addSubsystemByUUID (const uuid_t aUUID)
virtual int removeSubsystemByUUID (const uuid_t aUUID)

Private Attributes

resourceInfomResourceInfo
statisticInfomStatisticInfo

Detailed Description

subsystemInfo class.

This is the object that manages all the subsystem info.

This class implements the IBaseAccessor interface by inheriting from rmBaseArray<SubsystemInfo> template class.

Definition at line 52 of file rmSysInfo.h.


Constructor & Destructor Documentation

subsystemInfo::subsystemInfo unsigned long    aSystemStartupTime [inline]
 

Definition at line 55 of file rmSysInfo.h.

virtual subsystemInfo::~subsystemInfo   [inline, virtual]
 

Definition at line 56 of file rmSysInfo.h.


Member Function Documentation

int subsystemInfo::addSubsystemByUUID const uuid_t    aUUID [virtual]
 

Definition at line 190 of file rmSysInfo.cpp.

References getSubsystemIDByUUID, SubsystemInfo::info, resourceInfo::initResourceInfoBySubsystemID, mResourceInfo, rmBaseArray< SubsystemInfo >::newElement, RMCLIENT_ERROR_SUBSYSTEM_ID, and RMCLIENT_ERROR_SUBSYSTEM_INFO.

Referenced by rmEvent::processSystemEvent.

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

Reimplemented from rmBaseArray< SubsystemInfo >.

Definition at line 136 of file rmSysInfo.cpp.

References rmBaseArray< SubsystemInfo >::getConstElement, SubsystemInfo::info, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_SUBSYSTEM_INFO, RMCLIENT_ERROR_SUBSYSTEM_STRING, RMCLIENT_SUCCESS, SUBSYSTEMINFO_DESCRIPTION, and SUBSYSTEMINFO_NAME.

unsigned long subsystemInfo::getSubsystemIDByUUID const uuid_t    aUUID [virtual]
 

Definition at line 169 of file rmSysInfo.cpp.

References rmBaseArray< SubsystemInfo >::getConstElement, rmBaseArray< SubsystemInfo >::getNextId, and SubsystemInfo::info.

Referenced by resourceInfo::addResource, addSubsystemByUUID, dataCaptureInfo::init, rmMonitor::init, resourceInfo::removeResource, removeSubsystemByUUID, rmEvent::sendResourceEvent, and rmEvent::sendSubSystemEvent.

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

Reimplemented from rmBaseArray< SubsystemInfo >.

Definition at line 111 of file rmSysInfo.cpp.

References rmBaseArray< SubsystemInfo >::getConstElement, SubsystemInfo::info, RMAttribute, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_SUBSYSTEM_INFO, RMCLIENT_SUCCESS, SUBSYSTEMINFO_RESOURCECOUNT, and SUBSYSTEMINFO_STATISTICCOUNT.

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

Reimplemented from rmBaseArray< SubsystemInfo >.

Definition at line 87 of file rmSysInfo.cpp.

References rmBaseArray< SubsystemInfo >::getConstElement, SubsystemInfo::info, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_SUBSYSTEM_INFO, RMCLIENT_SUCCESS, and SUBSYSTEMINFO_UUID.

Referenced by statisticInfo::getUnsigned, statisticInfo::getUnsigned64, statisticInfo::setInteger32, and rmGenericMonitorConfig::setUnsigned.

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

Reimplemented from rmBaseArray< SubsystemInfo >.

Definition at line 62 of file rmSysInfo.cpp.

References rmBaseArray< SubsystemInfo >::getConstElement, SubsystemInfo::info, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_SUBSYSTEM_INFO, RMCLIENT_SUCCESS, and SUBSYSTEMINFO_UUID.

int subsystemInfo::init resourceInfo   aResourceInfo,
statisticInfo   aStatisticInfo
 

Initializes the subsystem info.

This class contains pointers to resourceInfo and statisticInfo also.

Parameters:
aResourceInfo  resourceInfo object.
aStatisticInfo  statisticInfo object.
Returns:
RMCLIENT_SUCCESS or other error numbers.

Definition at line 24 of file rmSysInfo.cpp.

References SubsystemInfo::info, mResourceInfo, mStatisticInfo, rmBaseArray< SubsystemInfo >::newElement, RMCLIENT_ERROR_MEMORY, RMCLIENT_ERROR_SUBSYSTEM_INFO, and RMCLIENT_SUCCESS.

Referenced by rmClient::init.

int subsystemInfo::removeSubsystemByUUID const uuid_t    aUUID [virtual]
 

Definition at line 217 of file rmSysInfo.cpp.

References rmBaseArray< ResourceInfo >::getConstElement, rmBaseArray< StatisticInfo >::getConstElement, rmBaseArray< ResourceInfo >::getNextId, rmBaseArray< StatisticInfo >::getNextId, getSubsystemIDByUUID, mResourceInfo, mStatisticInfo, rmBaseArray< SubsystemInfo >::removeElement, rmBaseArray< ResourceInfo >::removeElement, rmBaseArray< StatisticInfo >::removeElement, RMCLIENT_ERROR_SUBSYSTEM_ID, ResourceInfo::subsystemId, and StatisticInfo::subsystemId.

Referenced by rmEvent::processSystemEvent.


Member Data Documentation

resourceInfo* subsystemInfo::mResourceInfo [private]
 

Definition at line 73 of file rmSysInfo.h.

Referenced by addSubsystemByUUID, init, and removeSubsystemByUUID.

statisticInfo* subsystemInfo::mStatisticInfo [private]
 

Definition at line 74 of file rmSysInfo.h.

Referenced by init, and removeSubsystemByUUID.


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