Package org.opends.server.monitors
Class SystemInfoMonitorProvider
- java.lang.Object
-
- org.opends.server.api.MonitorProvider<SystemInfoMonitorProviderCfg>
-
- org.opends.server.monitors.SystemInfoMonitorProvider
-
public class SystemInfoMonitorProvider extends MonitorProvider<SystemInfoMonitorProviderCfg>
This class defines a Directory Server monitor provider that can be used to collect information about the system and the JVM on which the Directory Server is running.
-
-
Constructor Summary
Constructors Constructor Description SystemInfoMonitorProvider()
-
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(SystemInfoMonitorProviderCfg configuration)Initializes this monitor provider based on the information in the provided configuration entry.-
Methods inherited from class org.opends.server.api.MonitorProvider
finalizeMonitorProvider, getMonitorObjectClass, isConfigurationAcceptable, scheduleUpdate
-
-
-
-
Method Detail
-
initializeMonitorProvider
public void initializeMonitorProvider(SystemInfoMonitorProviderCfg configuration) throws ConfigException, InitializationException
Description copied from class:MonitorProviderInitializes this monitor provider based on the information in the provided configuration entry.- Overrides:
initializeMonitorProviderin classMonitorProvider<SystemInfoMonitorProviderCfg>- 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()
Description copied from class:MonitorProviderRetrieves 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<SystemInfoMonitorProviderCfg>- 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<SystemInfoMonitorProviderCfg>- Returns:
- A set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
-
-