public class ParallelWorkQueueMonitor extends MonitorProvider<MonitorProviderCfg> implements Runnable
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_AVERAGE_BACKLOG
The name to use for the monitor attribute that provides the average request backlog.
|
static String |
ATTR_CURRENT_BACKLOG
The name to use for the monitor attribute that provides the current request backlog.
|
static String |
ATTR_MAX_BACKLOG
The name to use for the monitor attribute that provides the maximum
observed request backlog.
|
static String |
ATTR_OPS_SUBMITTED
The name to use for the monitor attribute that provides the total number of
operations submitted.
|
Constructor and Description |
---|
ParallelWorkQueueMonitor(ParallelWorkQueue workQueue)
Initializes this monitor provider.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Attribute> |
getMonitorData()
Retrieves a set of attributes containing monitor data that should be
returned to the client if the corresponding monitor entry is requested.
|
String |
getMonitorInstanceName()
Retrieves the name of this monitor provider.
|
void |
initializeMonitorProvider(MonitorProviderCfg configuration)
Initializes this monitor provider based on the information in the provided configuration entry.
|
void |
run() |
finalizeMonitorProvider, getMonitorObjectClass, isConfigurationAcceptable, scheduleUpdate
public static final String ATTR_CURRENT_BACKLOG
public static final String ATTR_AVERAGE_BACKLOG
public static final String ATTR_MAX_BACKLOG
public static final String ATTR_OPS_SUBMITTED
public ParallelWorkQueueMonitor(ParallelWorkQueue workQueue)
initializeMonitorProvider
class.workQueue
- The work queue with which this monitor is associated.public void initializeMonitorProvider(MonitorProviderCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
initializeMonitorProvider
in class MonitorProvider<MonitorProviderCfg>
configuration
- The configuration to use to initialize this monitor provider.org.forgerock.opendj.config.server.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.public String getMonitorInstanceName()
getMonitorInstanceName
in class MonitorProvider<MonitorProviderCfg>
public ArrayList<Attribute> getMonitorData()
getMonitorData
in class MonitorProvider<MonitorProviderCfg>
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.