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

rmGenericMonitorConfig Class Reference

#include <rmConfig.h>

Inheritance diagram for rmGenericMonitorConfig:

rmRefArray< GenericConfig > rmStatusArray< GenericConfig > rmBaseArray< GenericConfig > IBaseAccessor List of all members.

Public Methods

 rmGenericMonitorConfig (subsystemInfo *aSubsystemInfo, rmThresholdMonitorConfig *aThresholdConfig, rmWatermarkMonitorConfig *aWatermarkConfig, rmLeakyBucketMonitorConfig *aleakyBucketConfig)
virtual ~rmGenericMonitorConfig ()
virtual int removeElement (unsigned long aID)
 Remove an entry from the table. More...

virtual bool elementIsReady (const GenericConfig &aElement) const
virtual int getInteger32 (RMAttribute aName, unsigned long aID, long &aValue)
virtual int setInteger32 (RMAttribute aName, unsigned long aID, long aValue)
virtual int getUnsigned (RMAttribute aName, unsigned long aID, unsigned long &aValue)
virtual int setUnsigned (RMAttribute aName, unsigned long aID, unsigned long aValue)

Private Attributes

subsystemInfomSubsystemInfo
rmThresholdMonitorConfigmThresholdConfig
rmWatermarkMonitorConfigmWatermarkConfig
rmLeakyBucketMonitorConfigmLeakyBucketConfig

Constructor & Destructor Documentation

rmGenericMonitorConfig::rmGenericMonitorConfig subsystemInfo   aSubsystemInfo,
rmThresholdMonitorConfig   aThresholdConfig,
rmWatermarkMonitorConfig   aWatermarkConfig,
rmLeakyBucketMonitorConfig   aleakyBucketConfig
[inline]
 

Definition at line 124 of file rmConfig.h.

References mLeakyBucketConfig, mSubsystemInfo, mThresholdConfig, and mWatermarkConfig.

virtual rmGenericMonitorConfig::~rmGenericMonitorConfig   [inline, virtual]
 

Definition at line 133 of file rmConfig.h.


Member Function Documentation

bool rmGenericMonitorConfig::elementIsReady const GenericConfig   aElement const [virtual]
 

This is to test if a genericConfig entry is ready to be made active or not. only active genericConfig can be used to create monitors.

Parameters:
aElement  the genericConfig entry that's being tested.
Returns:
TRUE or FALSE depends on the entry itself.

Reimplemented from rmBaseArray< GenericConfig >.

Definition at line 60 of file rmConfig.cpp.

References GenericConfig::config, GenericConfig::leakyBucketConfigId, GenericConfig::subsystemId, GenericConfig::thresholdConfigId, and GenericConfig::watermarkConfigId.

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

Get the attribute value which type is an int32. If succedded, aValue will be set.

Parameters:
aName  the name of the attribute
aID  the id of the entry
aValue  the value of the attribute
Returns:
RMCLIENT_SUCCESS is everything goes well.

Reimplemented from rmBaseArray< GenericConfig >.

Definition at line 105 of file rmConfig.cpp.

References GenericConfig::config, GENERICCONFIG_MONITORTYPE, GENERICCONFIG_REFCOUNT, GENERICCONFIG_STATISTICTRANSFORM, GENERICCONFIG_STATUS, rmBaseArray< GenericConfig >::getConstElement, GenericConfig::refCnt, RMAttribute, RMCLIENT_ERROR_GENERIC_CONFIG, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_SUCCESS, and GenericConfig::status.

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

Reimplemented from rmBaseArray< GenericConfig >.

Definition at line 173 of file rmConfig.cpp.

References GenericConfig::config, GENERICCONFIG_LEAKYBUCKETID, GENERICCONFIG_RESOURCEID, GENERICCONFIG_STATISTICID, GENERICCONFIG_SUBSYSTEMID, GENERICCONFIG_THRESHOLDID, GENERICCONFIG_WATERMARKID, rmBaseArray< GenericConfig >::getConstElement, GenericConfig::leakyBucketConfigId, RMAttribute, RMCLIENT_ERROR_GENERIC_CONFIG, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_SUCCESS, GenericConfig::subsystemId, GenericConfig::thresholdConfigId, and GenericConfig::watermarkConfigId.

int rmGenericMonitorConfig::removeElement unsigned long    aID [virtual]
 

Remove an entry from the table.

To remove a GenericConfig entry, we have to decrement the refCnt of the ThresholdConfig or WatermarkConfig entry that this GenericConfig is currently associated with.

Parameters:
aID  The id value of this GenericConfig.
Returns:
RMCLIENT_SUCCESS on return.
Remarks:
This function overrides the implementation in base class.

Reimplemented from rmRefArray< GenericConfig >.

Definition at line 21 of file rmConfig.cpp.

References rmBaseArray< GenericConfig >::findId, rmBaseArray< GenericConfig >::mElementArray, mLeakyBucketConfig, mThresholdConfig, mWatermarkConfig, rmRefArray< LeakyBucketConfig >::release, rmRefArray< WatermarkConfig >::release, rmRefArray< ThresholdConfig >::release, rmRefArray::removeElement, and RMCLIENT_SUCCESS.

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

Reimplemented from rmBaseArray< GenericConfig >.

Definition at line 137 of file rmConfig.cpp.

References GenericConfig::config, GENERICCONFIG_MONITORTYPE, GENERICCONFIG_STATISTICTRANSFORM, GENERICCONFIG_STATUS, rmBaseArray< GenericConfig >::getElement, GenericConfig::refCnt, RMAttribute, RMCLIENT_ERROR_CC_REFCNT, RMCLIENT_ERROR_GENERIC_CONFIG, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_NOSUCHVALUE, RMCLIENT_SUCCESS, rmStatusArray< GenericConfig >::setStatus, and rmStatusArray< GenericConfig >::updateStatus.

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

Reimplemented from rmBaseArray< GenericConfig >.

Definition at line 213 of file rmConfig.cpp.

References ACTIVE, rmRefArray< LeakyBucketConfig >::addRef, rmRefArray< WatermarkConfig >::addRef, rmRefArray< ThresholdConfig >::addRef, LeakyBucketConfig::config, WatermarkConfig::config, ThresholdConfig::config, GenericConfig::config, GENERICCONFIG_LEAKYBUCKETID, GENERICCONFIG_RESOURCEID, GENERICCONFIG_STATISTICID, GENERICCONFIG_SUBSYSTEMID, GENERICCONFIG_THRESHOLDID, GENERICCONFIG_WATERMARKID, rmBaseArray< LeakyBucketConfig >::getElement, rmBaseArray< WatermarkConfig >::getElement, rmBaseArray< ThresholdConfig >::getElement, rmBaseArray< GenericConfig >::getElement, subsystemInfo::getUUID, GenericConfig::leakyBucketConfigId, mLeakyBucketConfig, mSubsystemInfo, mThresholdConfig, mWatermarkConfig, GenericConfig::refCnt, rmRefArray< LeakyBucketConfig >::release, rmRefArray< WatermarkConfig >::release, rmRefArray< ThresholdConfig >::release, RMAttribute, RMCLIENT_ERROR_CC_REFCNT, RMCLIENT_ERROR_GENERIC_CONFIG, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_NOSUCHVALUE, RMCLIENT_SUCCESS, LeakyBucketConfig::status, WatermarkConfig::status, ThresholdConfig::status, GenericConfig::subsystemId, SUBSYSTEMINFO_UUID, GenericConfig::thresholdConfigId, rmStatusArray< GenericConfig >::updateStatus, and GenericConfig::watermarkConfigId.


Member Data Documentation

rmLeakyBucketMonitorConfig* rmGenericMonitorConfig::mLeakyBucketConfig [private]
 

Definition at line 150 of file rmConfig.h.

Referenced by removeElement, rmGenericMonitorConfig, and setUnsigned.

subsystemInfo* rmGenericMonitorConfig::mSubsystemInfo [private]
 

Definition at line 147 of file rmConfig.h.

Referenced by rmGenericMonitorConfig, and setUnsigned.

rmThresholdMonitorConfig* rmGenericMonitorConfig::mThresholdConfig [private]
 

Definition at line 148 of file rmConfig.h.

Referenced by removeElement, rmGenericMonitorConfig, and setUnsigned.

rmWatermarkMonitorConfig* rmGenericMonitorConfig::mWatermarkConfig [private]
 

Definition at line 149 of file rmConfig.h.

Referenced by removeElement, rmGenericMonitorConfig, and setUnsigned.


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