Package org.opends.server.monitors
Class MemoryUsageMonitorProvider
- java.lang.Object
-
- org.opends.server.api.MonitorProvider<MemoryUsageMonitorProviderCfg>
-
- org.opends.server.monitors.MemoryUsageMonitorProvider
-
- All Implemented Interfaces:
Runnable
public class MemoryUsageMonitorProvider extends MonitorProvider<MemoryUsageMonitorProviderCfg> implements Runnable
This class defines a monitor provider that reports information about Directory Server memory usage.
-
-
Constructor Summary
Constructors Constructor Description MemoryUsageMonitorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitorDatagetMonitorData()Retrieves a set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.StringgetMonitorInstanceName()Retrieves the name of this monitor provider.voidinitializeMonitorProvider(MemoryUsageMonitorProviderCfg configuration)Initializes this monitor provider based on the information in the provided configuration entry.voidrun()-
Methods inherited from class org.opends.server.api.MonitorProvider
finalizeMonitorProvider, getMonitorObjectClass, isConfigurationAcceptable, scheduleUpdate
-
-
-
-
Method Detail
-
initializeMonitorProvider
public void initializeMonitorProvider(MemoryUsageMonitorProviderCfg configuration) throws ConfigException, InitializationException
Initializes this monitor provider based on the information in the provided configuration entry.- Overrides:
initializeMonitorProviderin classMonitorProvider<MemoryUsageMonitorProviderCfg>- Parameters:
configuration- The configuration to use to initialize this monitor provider.- Throws:
ConfigException- If an unrecoverable problem arises in the process of performing the initialization.InitializationException- If a problem occurs during initialization that is not related to the server configuration.
-
getMonitorInstanceName
public String getMonitorInstanceName()
Retrieves the name of this monitor provider. It should be unique among all monitor providers, including all instances of the same monitor provider.- Specified by:
getMonitorInstanceNamein classMonitorProvider<MemoryUsageMonitorProviderCfg>- Returns:
- The name of this monitor provider.
-
getMonitorData
public MonitorData getMonitorData()
Description copied from class:MonitorProviderRetrieves a set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.- Specified by:
getMonitorDatain classMonitorProvider<MemoryUsageMonitorProviderCfg>- Returns:
- A set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
-
-