Package org.opends.server.monitors
Class VersionMonitorProvider
- java.lang.Object
-
- org.opends.server.api.MonitorProvider<VersionMonitorProviderCfg>
-
- org.opends.server.monitors.VersionMonitorProvider
-
public class VersionMonitorProvider extends MonitorProvider<VersionMonitorProviderCfg>
This class defines a monitor provider that reports Directory Server version information.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_BUILD_IDThe name of the attribute used to provide the build ID (aka the build timestamp).static StringATTR_BUILD_NUMBERThe name of the attribute used to provide the weekly build number.static StringATTR_COMPACT_VERSIONThe name of the attribute used to provide the compact version string.static StringATTR_FIX_IDSThe name of the attribute used to provide the list of bugfix IDs.static StringATTR_FULL_VERSIONThe name of the attribute used to provide the full version string.static StringATTR_MAJOR_VERSIONThe name of the attribute used to provide the major version number.static StringATTR_MINOR_VERSIONThe name of the attribute used to provide the minor version number.static StringATTR_POINT_VERSIONThe name of the attribute used to provide the point version number.static StringATTR_PRODUCT_NAMEThe name of the attribute used to provide the product name.static StringATTR_REVISIONThe name of the attribute used to provide the revision in the version control system.static StringATTR_SHORT_NAMEThe name of the attribute used to provide the short name.static StringATTR_VERSION_QUALIFIERThe name of the attribute used to provide the version qualifier string.
-
Constructor Summary
Constructors Constructor Description VersionMonitorProvider()
-
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(VersionMonitorProviderCfg 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
-
-
-
-
Field Detail
-
ATTR_PRODUCT_NAME
public static final String ATTR_PRODUCT_NAME
The name of the attribute used to provide the product name.- See Also:
- Constant Field Values
-
ATTR_SHORT_NAME
public static final String ATTR_SHORT_NAME
The name of the attribute used to provide the short name.- See Also:
- Constant Field Values
-
ATTR_MAJOR_VERSION
public static final String ATTR_MAJOR_VERSION
The name of the attribute used to provide the major version number.- See Also:
- Constant Field Values
-
ATTR_MINOR_VERSION
public static final String ATTR_MINOR_VERSION
The name of the attribute used to provide the minor version number.- See Also:
- Constant Field Values
-
ATTR_POINT_VERSION
public static final String ATTR_POINT_VERSION
The name of the attribute used to provide the point version number.- See Also:
- Constant Field Values
-
ATTR_VERSION_QUALIFIER
public static final String ATTR_VERSION_QUALIFIER
The name of the attribute used to provide the version qualifier string.- See Also:
- Constant Field Values
-
ATTR_BUILD_NUMBER
public static final String ATTR_BUILD_NUMBER
The name of the attribute used to provide the weekly build number.- See Also:
- Constant Field Values
-
ATTR_FIX_IDS
public static final String ATTR_FIX_IDS
The name of the attribute used to provide the list of bugfix IDs.- See Also:
- Constant Field Values
-
ATTR_REVISION
public static final String ATTR_REVISION
The name of the attribute used to provide the revision in the version control system.- See Also:
- Constant Field Values
-
ATTR_BUILD_ID
public static final String ATTR_BUILD_ID
The name of the attribute used to provide the build ID (aka the build timestamp).- See Also:
- Constant Field Values
-
ATTR_COMPACT_VERSION
public static final String ATTR_COMPACT_VERSION
The name of the attribute used to provide the compact version string.- See Also:
- Constant Field Values
-
ATTR_FULL_VERSION
public static final String ATTR_FULL_VERSION
The name of the attribute used to provide the full version string.- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeMonitorProvider
public void initializeMonitorProvider(VersionMonitorProviderCfg configuration) throws ConfigException, InitializationException
Description copied from class:MonitorProviderInitializes this monitor provider based on the information in the provided configuration entry.- Overrides:
initializeMonitorProviderin classMonitorProvider<VersionMonitorProviderCfg>- 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.InitializationException- If a problem occurs during initialization that is not related to the server configuration.
-
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<VersionMonitorProviderCfg>- 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<VersionMonitorProviderCfg>- Returns:
- A set of attributes containing monitor data that should be returned to the client if the corresponding monitor entry is requested.
-
-