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

rmGenericMonitorControl Class Reference

#include <rmControl.h>

Inheritance diagram for rmGenericMonitorControl:

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

Public Methods

 rmGenericMonitorControl (rmThresholdMonitorControl *aThresholdControl, rmLeakyBucketMonitorControl *aLeakyBucketControl)
virtual ~rmGenericMonitorControl ()
virtual int removeElement (unsigned long aID)
 remove an entry from the GenericControl table. More...

virtual bool elementIsReady (const GenericControl &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)
virtual int getUUIDString (RMAttribute aName, unsigned long aID, char *aUUIDStr)
virtual int setUUIDString (RMAttribute aName, unsigned long aID, char *aUUIDStr)
virtual int getUUID (RMAttribute aName, unsigned long aID, uuid_t aUUID)
virtual long addRef (unsigned long aID)

Private Attributes

rmThresholdMonitorControlmThresholdControl
rmLeakyBucketMonitorControlmLeakyBucketControl

Constructor & Destructor Documentation

rmGenericMonitorControl::rmGenericMonitorControl rmThresholdMonitorControl   aThresholdControl,
rmLeakyBucketMonitorControl   aLeakyBucketControl
[inline]
 

Definition at line 92 of file rmControl.h.

References mLeakyBucketControl, and mThresholdControl.

virtual rmGenericMonitorControl::~rmGenericMonitorControl   [inline, virtual]
 

Definition at line 97 of file rmControl.h.


Member Function Documentation

long rmGenericMonitorControl::addRef unsigned long    aID [virtual]
 

Reimplemented from rmRefArray< GenericControl >.

Definition at line 368 of file rmControl.cpp.

References ACTIVE, and rmBaseArray< GenericControl >::findId.

Referenced by rmMonitor::init, and rmMonitor::setUnsigned.

bool rmGenericMonitorControl::elementIsReady const GenericControl   aElement const [virtual]
 

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 46 of file rmControl.cpp.

References GenericControl::control, GenericControl::leakyBucketControlId, and GenericControl::thresholdControlId.

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

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 74 of file rmControl.cpp.

References GenericControl::control, GENERICCONTROL_MONITORLOCATION, GENERICCONTROL_MONITORTYPE, GENERICCONTROL_REFCOUNT, GENERICCONTROL_STATUS, rmBaseArray< GenericControl >::getConstElement, GenericControl::refCnt, RMAttribute, RMCLIENT_ERROR_GENERIC_CONTROL, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_SUCCESS, and GenericControl::status.

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

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 144 of file rmControl.cpp.

References GenericControl::control, GENERICCONTROL_LEAKYBUCKETID, GENERICCONTROL_MONITORLIFE, GENERICCONTROL_MONITORMICRORATE, GENERICCONTROL_MONITORRATE, GENERICCONTROL_THRESHOLDID, rmBaseArray< GenericControl >::getConstElement, GenericControl::leakyBucketControlId, RMAttribute, RMCLIENT_ERROR_GENERIC_CONTROL, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_SUCCESS, and GenericControl::thresholdControlId.

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

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 339 of file rmControl.cpp.

References GenericControl::control, GENERICCONTROL_DATACAPTURE, GENERICCONTROL_MONITORUUID, rmBaseArray< GenericControl >::getConstElement, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_GENERIC_CONTROL, RMCLIENT_ERROR_NOSUCHNAME, and RMCLIENT_SUCCESS.

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

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 270 of file rmControl.cpp.

References GenericControl::control, GENERICCONTROL_DATACAPTURE, GENERICCONTROL_MONITORUUID, rmBaseArray< GenericControl >::getConstElement, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_GENERIC_CONTROL, RMCLIENT_ERROR_NOSUCHNAME, and RMCLIENT_SUCCESS.

int rmGenericMonitorControl::removeElement unsigned long    aID [virtual]
 

remove an entry from the GenericControl table.

Remove an entry from GenericControl table. The refCnt of the ThresholdControl data that is being referenced by this GenericControl has to be decremented also.

Parameters:
aID  ID of the GenericControl entry.
Returns:
RMCLIENT_SUCCESS on return.
Remarks:
This function overrides the base class implementation.

Reimplemented from rmRefArray< GenericControl >.

Definition at line 19 of file rmControl.cpp.

References rmBaseArray< GenericControl >::findId, rmBaseArray< GenericControl >::mElementArray, mLeakyBucketControl, mThresholdControl, rmRefArray< LeakyBucketControl >::release, rmRefArray< ThresholdControl >::release, rmRefArray::removeElement, and RMCLIENT_SUCCESS.

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

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 107 of file rmControl.cpp.

References GenericControl::control, GENERICCONTROL_MONITORLOCATION, GENERICCONTROL_MONITORTYPE, GENERICCONTROL_STATUS, rmBaseArray< GenericControl >::getElement, GenericControl::refCnt, RMAttribute, RMCLIENT_ERROR_CC_REFCNT, RMCLIENT_ERROR_GENERIC_CONTROL, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_NOSUCHVALUE, RMCLIENT_SUCCESS, rmStatusArray< GenericControl >::setStatus, and rmStatusArray< GenericControl >::updateStatus.

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

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 181 of file rmControl.cpp.

References ACTIVE, rmRefArray< LeakyBucketControl >::addRef, rmRefArray< ThresholdControl >::addRef, LeakyBucketControl::control, ThresholdControl::control, GenericControl::control, GENERICCONTROL_LEAKYBUCKETID, GENERICCONTROL_MONITORLIFE, GENERICCONTROL_MONITORMICRORATE, GENERICCONTROL_MONITORRATE, GENERICCONTROL_THRESHOLDID, rmBaseArray< LeakyBucketControl >::getElement, rmBaseArray< ThresholdControl >::getElement, rmBaseArray< GenericControl >::getElement, GenericControl::leakyBucketControlId, mLeakyBucketControl, mThresholdControl, GenericControl::refCnt, rmRefArray< LeakyBucketControl >::release, rmRefArray< ThresholdControl >::release, RMAttribute, RMCLIENT_ERROR_CC_REFCNT, RMCLIENT_ERROR_GENERIC_CONTROL, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_NOSUCHVALUE, RMCLIENT_SUCCESS, LeakyBucketControl::status, ThresholdControl::status, GenericControl::thresholdControlId, and rmStatusArray< GenericControl >::updateStatus.

int rmGenericMonitorControl::setUUIDString RMAttribute    aName,
unsigned long    aID,
char *    aUUIDStr
[virtual]
 

Reimplemented from rmBaseArray< GenericControl >.

Definition at line 300 of file rmControl.cpp.

References GenericControl::control, GENERICCONTROL_DATACAPTURE, GENERICCONTROL_MONITORUUID, rmBaseArray< GenericControl >::getElement, GenericControl::refCnt, RMAttribute, RMCLIENT_ERROR_BAD_POINTER, RMCLIENT_ERROR_CC_REFCNT, RMCLIENT_ERROR_GENERIC_CONTROL, RMCLIENT_ERROR_NOSUCHNAME, RMCLIENT_ERROR_NOSUCHVALUE, RMCLIENT_SUCCESS, and rmStatusArray< GenericControl >::updateStatus.


Member Data Documentation

rmLeakyBucketMonitorControl* rmGenericMonitorControl::mLeakyBucketControl [private]
 

Definition at line 119 of file rmControl.h.

Referenced by removeElement, rmGenericMonitorControl, and setUnsigned.

rmThresholdMonitorControl* rmGenericMonitorControl::mThresholdControl [private]
 

Definition at line 118 of file rmControl.h.

Referenced by removeElement, rmGenericMonitorControl, 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