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

GenericConfig Struct Reference

#include <rmConfig.h>

List of all members.

Public Attributes

rmMonitorConfiguration config
 from ResourceMonitor daemon. More...

unsigned long subsystemId
 The subsystem ID of this configuration. More...

unsigned long thresholdConfigId
 The id of ThresholdConfig. More...

unsigned long watermarkConfigId
 The id of WatermarkConfig. More...

unsigned long leakyBucketConfigId
 The id of LeakybucketConfig;. More...

long refCnt
int status


Detailed Description

GenericConfig is a new representation of rmMonitorConfiguration. It basically contains a rmMonitorConfiguration plus some other information that will be used to construct GenericConfig table.

In specific, the subsystem is represented by a integer ID value instead of the uuid value that is in rmMonitorConfiguration. Also, rmThresholdConfiguration and rmWatermarkConfiguration is seperated from rmMonitorConfiguration. Threshold configuration will be managed by ThresholdConfig, and watermark configuration will be managed by WatermarkConfig. GenericConfig references those through thresholdConfigId and watermarkConfigId.

Remarks:
A specific GenericConfig is either threshold or watermark. This means that both thresholdConfigId and watermarkConfigId can not be valid at the same time. For a threshold config, watermarkConfigId will be set to -1. For a watermark config, thresholdConfigId will be set to -1.
Member refCnt tells how many times this config entry is being used by other entities, such as a monitor. (a GenericConfig can be used to create many different monitors.) A GenericConfig can only be modified when (refCnt == 0). Once it is referenced by a monitor, it is read-only.

Member status tells if the config entry is ready to be used by other entities or not. Only those with "ACTIVE" status can be used to create monitors.

Definition at line 38 of file rmConfig.h.


Member Data Documentation

rmMonitorConfiguration GenericConfig::config
 

from ResourceMonitor daemon.

Definition at line 40 of file rmConfig.h.

Referenced by rmGenericMonitorConfig::elementIsReady, rmGenericMonitorConfig::getInteger32, rmMonitor::getUnsigned, rmGenericMonitorConfig::getUnsigned, rmMonitor::getUUID, rmMonitor::getUUIDString, rmMonitor::init, rmMonitor::setInteger32, rmGenericMonitorConfig::setInteger32, rmMonitor::setUnsigned, and rmGenericMonitorConfig::setUnsigned.

unsigned long GenericConfig::leakyBucketConfigId
 

The id of LeakybucketConfig;.

Definition at line 44 of file rmConfig.h.

Referenced by rmGenericMonitorConfig::elementIsReady, rmGenericMonitorConfig::getUnsigned, rmMonitor::init, and rmGenericMonitorConfig::setUnsigned.

long GenericConfig::refCnt
 

Definition at line 46 of file rmConfig.h.

Referenced by rmGenericMonitorConfig::getInteger32, rmGenericMonitorConfig::setInteger32, and rmGenericMonitorConfig::setUnsigned.

int GenericConfig::status
 

Definition at line 47 of file rmConfig.h.

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

unsigned long GenericConfig::subsystemId
 

The subsystem ID of this configuration.

Definition at line 41 of file rmConfig.h.

Referenced by rmGenericMonitorConfig::elementIsReady, rmMonitor::getUnsigned, rmGenericMonitorConfig::getUnsigned, rmMonitor::init, and rmGenericMonitorConfig::setUnsigned.

unsigned long GenericConfig::thresholdConfigId
 

The id of ThresholdConfig.

Definition at line 42 of file rmConfig.h.

Referenced by rmGenericMonitorConfig::elementIsReady, rmGenericMonitorConfig::getUnsigned, rmMonitor::init, and rmGenericMonitorConfig::setUnsigned.

unsigned long GenericConfig::watermarkConfigId
 

The id of WatermarkConfig.

Definition at line 43 of file rmConfig.h.

Referenced by rmGenericMonitorConfig::elementIsReady, rmGenericMonitorConfig::getUnsigned, rmMonitor::init, and rmGenericMonitorConfig::setUnsigned.


The documentation for this struct 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