Package org.opends.server.monitors
Class LocalBackendMonitor
- java.lang.Object
-
- org.opends.server.api.MonitorProvider<MonitorProviderCfg>
-
- org.opends.server.monitors.LocalBackendMonitor
-
public class LocalBackendMonitor extends MonitorProvider<MonitorProviderCfg>
This class implements a monitor provider that will report generic information for an enabled Directory Server backend, including its backend ID, base DNs, writability mode, and the number of entries it contains.
-
-
Constructor Summary
Constructors Constructor Description LocalBackendMonitor(LocalBackend<?> backend)Creates a new instance of this backend monitor provider that will work with the provided backend.
-
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.ObjectClassgetMonitorObjectClass()Retrieves the objectclass that should be included in the monitor entry created from this monitor provider.voidinitializeMonitorProvider(MonitorProviderCfg configuration)Initializes this monitor provider based on the information in the provided configuration entry.-
Methods inherited from class org.opends.server.api.MonitorProvider
finalizeMonitorProvider, isConfigurationAcceptable, scheduleUpdate
-
-
-
-
Constructor Detail
-
LocalBackendMonitor
public LocalBackendMonitor(LocalBackend<?> backend)
Creates a new instance of this backend monitor provider that will work with the provided backend. Most of the initialization should be handled in theinitializeMonitorProvidermethod.- Parameters:
backend- The backend with which this monitor is associated.
-
-
Method Detail
-
initializeMonitorProvider
public void initializeMonitorProvider(MonitorProviderCfg configuration)
Description copied from class:MonitorProviderInitializes this monitor provider based on the information in the provided configuration entry.- Overrides:
initializeMonitorProviderin classMonitorProvider<MonitorProviderCfg>- Parameters:
configuration- The configuration to use to initialize this monitor provider.
-
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<MonitorProviderCfg>- Returns:
- The name of this monitor provider.
-
getMonitorObjectClass
public ObjectClass getMonitorObjectClass()
Retrieves the objectclass that should be included in the monitor entry created from this monitor provider.- Overrides:
getMonitorObjectClassin classMonitorProvider<MonitorProviderCfg>- Returns:
- The objectclass that should be included in the monitor entry created from 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<MonitorProviderCfg>- Returns:
- A set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
-
-