Class 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 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 the initializeMonitorProvider method.
        Parameters:
        backend - The backend with which this monitor is associated.
    • Method Detail

      • getMonitorInstanceName

        public String getMonitorInstanceName()
        Description copied from class: MonitorProvider
        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.
      • getMonitorObjectClass

        public ObjectClass getMonitorObjectClass()
        Retrieves the objectclass that should be included in the monitor entry created from this monitor provider.
        Overrides:
        getMonitorObjectClass in class MonitorProvider<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: 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.