Package org.opends.server.monitors
Class ConnectionHandlerMonitor
- java.lang.Object
-
- org.opends.server.api.MonitorProvider<MonitorProviderCfg>
-
- org.opends.server.monitors.ConnectionHandlerMonitor
-
public class ConnectionHandlerMonitor extends MonitorProvider<MonitorProviderCfg>
This class implements a monitor provider that will report generic information for an enabled Directory Server connection handler, including its protocol, listeners, and established connections.
-
-
Constructor Summary
Constructors Constructor Description ConnectionHandlerMonitor(ConnectionHandler<? extends ConnectionHandlerCfg> connectionHandler)Creates a new instance of this connection handler monitor provider that will work with the provided connection handler.
-
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
-
ConnectionHandlerMonitor
public ConnectionHandlerMonitor(ConnectionHandler<? extends ConnectionHandlerCfg> connectionHandler)
Creates a new instance of this connection handler monitor provider that will work with the provided connection handler. Most of the initialization should be handled in theinitializeMonitorProvidermethod.- Parameters:
connectionHandler- The connection handler 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()
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<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.
-
-