|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.opends.server.api.DirectoryThread
org.opends.server.api.MonitorProvider<MonitorProviderCfg>
org.opends.server.monitors.ConnectionHandlerMonitor
public class ConnectionHandlerMonitor
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
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 | |
---|---|
java.util.List<Attribute> |
getMonitorData()
Retrieves a set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested. |
java.lang.String |
getMonitorInstanceName()
Retrieves the name of this monitor provider. |
ObjectClass |
getMonitorObjectClass()
Retrieves the objectclass that should be included in the monitor entry created from this monitor provider. |
long |
getUpdateInterval()
Retrieves the length of time in milliseconds that should elapse between calls to the updateMonitorData method. |
void |
initializeMonitorProvider(MonitorProviderCfg configuration)
Initializes this monitor provider based on the information in the provided configuration entry. |
void |
updateMonitorData()
Performs any processing periodic processing that may be desired to update the information associated with this monitor. |
Methods inherited from class org.opends.server.api.MonitorProvider |
---|
finalizeMonitorProvider, isConfigurationAcceptable, run |
Methods inherited from class org.opends.server.api.DirectoryThread |
---|
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, setAssociatedTask |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectionHandlerMonitor(ConnectionHandler<? extends ConnectionHandlerCfg> connectionHandler)
initializeMonitorProvider
method.
connectionHandler
- The connection handler with which this monitor
is associated.Method Detail |
---|
public void initializeMonitorProvider(MonitorProviderCfg configuration)
initializeMonitorProvider
in class MonitorProvider<MonitorProviderCfg>
configuration
- The configuration to use to initialize
this monitor provider.public java.lang.String getMonitorInstanceName()
getMonitorInstanceName
in class MonitorProvider<MonitorProviderCfg>
public ObjectClass getMonitorObjectClass()
getMonitorObjectClass
in class MonitorProvider<MonitorProviderCfg>
public long getUpdateInterval()
updateMonitorData
method. A
negative or zero return value indicates that the
updateMonitorData
method should not be periodically
invoked.
getUpdateInterval
in class MonitorProvider<MonitorProviderCfg>
updateMonitorData()
method.public void updateMonitorData()
getUpdateInterval
milliseconds apart,
but no guarantees will be made.
updateMonitorData
in class MonitorProvider<MonitorProviderCfg>
public java.util.List<Attribute> getMonitorData()
getMonitorData
in class MonitorProvider<MonitorProviderCfg>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |