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

rmClient Class Reference

Inheritance diagram for rmClient:

subagentBase List of all members.

Public Methods

 rmClient ()
virtual ~rmClient ()
virtual int init ()
virtual void shutdown ()
virtual void addEvent (posix_log_recid_t aRecid, unsigned long aMonid)
 add event for a subagent. More...

virtual void processEvents ()
 process all the events. More...


Protected Methods

virtual IBaseAccessorgetEntity (RMEntity aEntity)

Private Attributes

subsystemInfomSubsystemInfo
resourceInfomResourceInfo
statisticInfomStatisticInfo
dataCaptureInfomDataCaptureInfo
rmThresholdMonitorConfigmThresholdConfig
rmWatermarkMonitorConfigmWatermarkConfig
rmLeakyBucketMonitorConfigmLeakyBucketConfig
rmGenericMonitorConfigmGenericConfig
rmThresholdMonitorControlmThresholdControl
rmLeakyBucketMonitorControlmLeakyBucketControl
rmGenericMonitorControlmGenericControl
rmMonitormMonitor
rmEventmEvent
eventLogmEventLog

Detailed Description

This is the ResourceMonitor Subagent.

Definition at line 104 of file rmClient.cpp.


Constructor & Destructor Documentation

rmClient::rmClient   [inline]
 

Definition at line 107 of file rmClient.cpp.

rmClient::~rmClient   [virtual]
 

Definition at line 579 of file rmClient.cpp.

References shutdown.


Member Function Documentation

virtual void rmClient::addEvent posix_log_recid_t    aRecid,
unsigned long    aMonid
[inline, virtual]
 

add event for a subagent.

Implements subagentBase.

Definition at line 113 of file rmClient.cpp.

References rmEvent::addEvent, and mEvent.

IBaseAccessor * rmClient::getEntity RMEntity    aEntity [protected, virtual]
 

get the object that implements the aEntity.

Because all objects implement the IBaseAccessor interface, we can switch based on the entiry number, and always return a pointer to that interface. This function simplifies the delegation functions implemented in subagentBase functions.

Implements subagentBase.

Definition at line 737 of file rmClient.cpp.

References DATACAPTUREPLUGININFO, EVENTLOG, GENERICCONFIG, GENERICCONTROL, LEAKYBUCKETCONFIG, LEAKYBUCKETCONTROL, mDataCaptureInfo, mEventLog, mGenericConfig, mGenericControl, mLeakyBucketConfig, mLeakyBucketControl, mMonitor, MONITOR, mResourceInfo, mStatisticInfo, mSubsystemInfo, mThresholdConfig, mThresholdControl, mWatermarkConfig, RESORUCEINFO, RMEntity, STATISTICINFO, SUBSYSTEMINFO, THRESHOLDCONFIG, THRESHOLDCONTROL, and WATERMARKCONFIG.

int rmClient::init   [virtual]
 

Initializes the ResourceMonitor Subagent.

This is the global factory method that creats the objects that are needed to run the subagent, includeing subsystems, configurations, controls, and monitors.

Implements subagentBase.

Definition at line 594 of file rmClient.cpp.

References eventLog::init, rmEvent::init, rmMonitor::init, rmBaseArray< GenericControl >::init, rmBaseArray< LeakyBucketControl >::init, rmBaseArray< ThresholdControl >::init, rmBaseArray< GenericConfig >::init, rmBaseArray< LeakyBucketConfig >::init, rmBaseArray< WatermarkConfig >::init, rmBaseArray< ThresholdConfig >::init, dataCaptureInfo::init, statisticInfo::init, resourceInfo::init, subsystemInfo::init, mDataCaptureInfo, mEvent, mEventLog, mGenericConfig, mGenericControl, mLeakyBucketConfig, mLeakyBucketControl, mMonitor, mResourceInfo, mStatisticInfo, mSubsystemInfo, mThresholdConfig, mThresholdControl, mWatermarkConfig, RMCLIENT_ERROR_MEMORY, RMCLIENT_SUCCESS, and shutdown.

virtual void rmClient::processEvents   [inline, virtual]
 

process all the events.

Implements subagentBase.

Definition at line 118 of file rmClient.cpp.

References mEvent, and rmEvent::processEvents.

void rmClient::shutdown   [virtual]
 

Shut down the ResourceMonitor subagent.

Shut down the ResourceMonitor subagent by delete all the objects and free up the memory.

Implements subagentBase.

Definition at line 708 of file rmClient.cpp.

References mDataCaptureInfo, mEvent, mEventLog, mGenericConfig, mGenericControl, mLeakyBucketConfig, mLeakyBucketControl, mMonitor, mResourceInfo, mStatisticInfo, mSubsystemInfo, mThresholdConfig, mThresholdControl, and mWatermarkConfig.

Referenced by init, and ~rmClient.


Member Data Documentation

dataCaptureInfo* rmClient::mDataCaptureInfo [private]
 

Definition at line 130 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmEvent* rmClient::mEvent [private]
 

Definition at line 139 of file rmClient.cpp.

Referenced by addEvent, init, processEvents, and shutdown.

eventLog* rmClient::mEventLog [private]
 

Definition at line 140 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmGenericMonitorConfig* rmClient::mGenericConfig [private]
 

Definition at line 134 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmGenericMonitorControl* rmClient::mGenericControl [private]
 

Definition at line 137 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmLeakyBucketMonitorConfig* rmClient::mLeakyBucketConfig [private]
 

Definition at line 133 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmLeakyBucketMonitorControl* rmClient::mLeakyBucketControl [private]
 

Definition at line 136 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmMonitor* rmClient::mMonitor [private]
 

Definition at line 138 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

resourceInfo* rmClient::mResourceInfo [private]
 

Definition at line 128 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

statisticInfo* rmClient::mStatisticInfo [private]
 

Definition at line 129 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

subsystemInfo* rmClient::mSubsystemInfo [private]
 

Definition at line 127 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmThresholdMonitorConfig* rmClient::mThresholdConfig [private]
 

Definition at line 131 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmThresholdMonitorControl* rmClient::mThresholdControl [private]
 

Definition at line 135 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.

rmWatermarkMonitorConfig* rmClient::mWatermarkConfig [private]
 

Definition at line 132 of file rmClient.cpp.

Referenced by getEntity, init, and shutdown.


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