Class ParallelWorkQueueMonitor

  • All Implemented Interfaces:
    Runnable

    public class ParallelWorkQueueMonitor
    extends MonitorProvider<MonitorProviderCfg>
    implements Runnable
    This class defines a Directory Server monitor that can be used to provide information about the state of the work queue.
    • Field Detail

      • ATTR_CURRENT_BACKLOG

        public static final String ATTR_CURRENT_BACKLOG
        The name to use for the monitor attribute that provides the current request backlog.
        See Also:
        Constant Field Values
      • ATTR_AVERAGE_BACKLOG

        public static final String ATTR_AVERAGE_BACKLOG
        The name to use for the monitor attribute that provides the average request backlog.
        See Also:
        Constant Field Values
      • ATTR_MAX_BACKLOG

        public static final String ATTR_MAX_BACKLOG
        The name to use for the monitor attribute that provides the maximum observed request backlog.
        See Also:
        Constant Field Values
      • ATTR_OPS_SUBMITTED

        public static final String ATTR_OPS_SUBMITTED
        The name to use for the monitor attribute that provides the total number of operations submitted.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ParallelWorkQueueMonitor

        public ParallelWorkQueueMonitor​(ParallelWorkQueue workQueue)
        Initializes this monitor provider. Note that no initialization should be done here, since it should be performed in the initializeMonitorProvider class.
        Parameters:
        workQueue - The work queue with which this monitor is associated.
    • Method Detail

      • 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:
        getMonitorInstanceName in class MonitorProvider<MonitorProviderCfg>
        Returns:
        The name of this monitor provider.
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • getMonitorData

        public MonitorData getMonitorData()
        Description copied from class: MonitorProvider
        Retrieves a set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
        Specified by:
        getMonitorData in class MonitorProvider<MonitorProviderCfg>
        Returns:
        A set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.