Package org.opends.server.monitors
Class EntryCacheMonitorProvider
- java.lang.Object
-
- org.opends.server.api.MonitorProvider<EntryCacheMonitorProviderCfg>
-
- org.opends.server.monitors.EntryCacheMonitorProvider
-
public class EntryCacheMonitorProvider extends MonitorProvider<EntryCacheMonitorProviderCfg>
This class defines a Directory Server monitor provider that can be used to obtain information about the entry cache state. Note that the information reported is obtained with no locking, so it may not be entirely consistent.
-
-
Constructor Summary
Constructors Constructor Description EntryCacheMonitorProvider()Creates default instance of this monitor provider.EntryCacheMonitorProvider(String entryCacheName, EntryCache<? extends EntryCacheCfg> entryCache)Creates implementation specific instance of this monitor provider.
-
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.voidinitializeMonitorProvider(EntryCacheMonitorProviderCfg configuration)Initializes this monitor provider based on the information in the provided configuration entry.-
Methods inherited from class org.opends.server.api.MonitorProvider
finalizeMonitorProvider, getMonitorObjectClass, isConfigurationAcceptable, scheduleUpdate
-
-
-
-
Constructor Detail
-
EntryCacheMonitorProvider
public EntryCacheMonitorProvider()
Creates default instance of this monitor provider.
-
EntryCacheMonitorProvider
public EntryCacheMonitorProvider(String entryCacheName, EntryCache<? extends EntryCacheCfg> entryCache)
Creates implementation specific instance of this monitor provider.- Parameters:
entryCacheName- The name to use for this monitor provider.entryCache- The entry cache to associate this monitor provider with.
-
-
Method Detail
-
initializeMonitorProvider
public void initializeMonitorProvider(EntryCacheMonitorProviderCfg configuration) throws ConfigException
Initializes this monitor provider based on the information in the provided configuration entry.- Overrides:
initializeMonitorProviderin classMonitorProvider<EntryCacheMonitorProviderCfg>- Parameters:
configuration- The configuration to use to initialize this monitor provider.- Throws:
ConfigException- If an unrecoverable problem arises in the process of performing the initialization.
-
getMonitorInstanceName
public String getMonitorInstanceName()
Description copied from class:MonitorProviderRetrieves 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<EntryCacheMonitorProviderCfg>- Returns:
- The name of 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<EntryCacheMonitorProviderCfg>- Returns:
- A set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
-
-