Class GeneralMonitorEntry
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
com.unboundid.ldap.sdk.unboundidds.monitors.GeneralMonitorEntry
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class GeneralMonitorEntry
extends MonitorEntry
This class defines a monitor entry that provides general information about
the state of the Directory Server. The general monitor entry is the
top-level monitor entry that is generated by the monitor backend and is the
parent of all monitor entries generated by the registered monitor providers.
Information that may be included in the general monitor entry includes:
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Information that may be included in the general monitor entry includes:
- The number of connections currently established to the server.
- The maximum number of connections that have been established at any one time.
- The total number of connections established to the server since startup.
- The time that the directory server was started.
- The current time on the server.
- The length of time in milliseconds that the server has been online.
- A user-friendly string that describes the length of time that the server has been online.
- The name of the directory server product.
- The name of the vendor that provides the directory server.
- The server version string.
- The DNs of the configuration entries for any third-party extensions loaded in the server.
MonitorManager.getGeneralMonitorEntry(com.unboundid.ldap.sdk.LDAPConnection) method.
This entry provides specific methods for accessing information about the
server (e.g., the
getCurrentConnections() method can be used
to retrieve the number of connections currently established). Alternately,
this information may be accessed using the generic API. See the
MonitorManager class documentation for an example that demonstrates
the use of the generic API for accessing monitor data.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralMonitorEntry(Entry entry) Creates a new general monitor entry from the provided entry. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the cluster in which the server is a member.Retrieves the number of connections currently established.Retrieves the current time as reported by the Directory Server.Retrieves the names of any alert types which may have caused the server to be currently classified as "degraded".Retrieves the name assigned to the Directory Server instance.Retrieves the DN of the configuration entry that defines the server's location.Retrieves the name of the configuration entry that defines the server's location.Retrieves the maximum number of concurrent connections established at any time since startup.Retrieves the set of parsed monitor attributes for this monitor entry, mapped from a unique identifier (in all lowercase characters) to the corresponding monitor attribute.Retrieves a human-readable description name for this monitor entry.Retrieves a human-readable display name for this monitor entry.Retrieves the Directory Server product name.Retrieves the UUID value that was generated when the server instance was initially created.Retrieves the time that the Directory Server was started.Retrieves a relatively compact identifier generated at the time the Directory Server was started.Retrieves the UUID that was generated when the Directory Server was started.Retrieves the DNs of the configuration entries for any third-party extensions currently loaded in the server.Retrieves the total number of connections established since startup.Retrieves the names of any alert types which may have caused the server to be currently classified as "unavailable".Retrieves the Directory Server uptime in milliseconds.Retrieves the human-readable string representation of the Directory Server uptime.Retrieves the Directory Server vendor name string.Retrieves the Directory Server version string.Methods inherited from class com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, decode, getBoolean, getDate, getDN, getDouble, getEntry, getInteger, getLong, getMonitorClass, getMonitorName, getString, getStrings, toString, toString
-
Constructor Details
-
GeneralMonitorEntry
Creates a new general monitor entry from the provided entry.- Parameters:
entry- The entry to be parsed as a general monitor entry. It must not benull.
-
-
Method Details
-
getCurrentConnections
Retrieves the number of connections currently established.- Returns:
- The number of connections currently established, or
nullif it was not included in the monitor entry.
-
getMaxConnections
Retrieves the maximum number of concurrent connections established at any time since startup.- Returns:
- The maximum number of concurrent connections established at any
time since startup, or
nullif it was not included in the monitor entry.
-
getTotalConnections
Retrieves the total number of connections established since startup.- Returns:
- The total number of connections established since startup, or
nullif it was not included in the monitor entry.
-
getCurrentTime
Retrieves the current time as reported by the Directory Server.- Returns:
- The current time as reported by the Directory Server, or
nullif it was not included in the monitor entry.
-
getStartTime
Retrieves the time that the Directory Server was started.- Returns:
- The time that the Directory Server was started, or
nullif it was not included in the monitor entry.
-
getClusterName
Retrieves the name of the cluster in which the server is a member.- Returns:
- The name of the cluster in which the server is a member, or
nullif it was not included in the monitor entry.
-
getInstanceName
Retrieves the name assigned to the Directory Server instance.- Returns:
- The name assigned to the Directory Server instance, or
nullif it was not included in the monitor entry.
-
getLocationName
Retrieves the name of the configuration entry that defines the server's location.- Returns:
- The name of the configuration entry that defines the server's
location, or
nullif it was not included in the monitor entry.
-
getLocationDN
Retrieves the DN of the configuration entry that defines the server's location.- Returns:
- The DN of the configuration entry that defines the server's
location, or
nullif it was not included in the monitor entry.
-
getServerUUID
Retrieves the UUID value that was generated when the server instance was initially created.- Returns:
- The UUID value that was generated when the server instance was
initially created, or
nullif it was not included in the monitor entry.
-
getStartupID
Retrieves a relatively compact identifier generated at the time the Directory Server was started.- Returns:
- A relatively compact identifier generated at the time the
Directory Server was started, or
nullif it was not included in the monitor entry.
-
getStartupUUID
Retrieves the UUID that was generated when the Directory Server was started.- Returns:
- The UUID that was generated when the Directory Server was started,
or
nullif it was not included in the monitor entry.
-
getUptimeMillis
Retrieves the Directory Server uptime in milliseconds.- Returns:
- The Directory Server uptime in milliseconds, or
nullif either the current time or the start time was not available.
-
getUptimeString
Retrieves the human-readable string representation of the Directory Server uptime.- Returns:
- The human-readable string representation of the Directory Server
uptime, or
nullif it was not included in the monitor entry.
-
getProductName
Retrieves the Directory Server product name.- Returns:
- The Directory Serve product name, or
nullif it was not included in the monitor entry.
-
getVendorName
Retrieves the Directory Server vendor name string.- Returns:
- The Directory Server vendor name string, or
nullif it was not included in the monitor entry.
-
getVersionString
Retrieves the Directory Server version string.- Returns:
- The Directory Server version string, or
nullif it was not included in the monitor entry.
-
getDegradedAlertTypes
Retrieves the names of any alert types which may have caused the server to be currently classified as "degraded".- Returns:
- The names of any alert types which may have caused the server to be currently classified as "degraded", or an empty list if it was not included in the monitor entry (which likely indicates that the server is not classified as "degraded").
-
getThirdPartyExtensionDNs
Retrieves the DNs of the configuration entries for any third-party extensions currently loaded in the server.- Returns:
- The DNs of the configuration entries for any third-party extensions currently loaded in the server, or an empty list if it was not included in the monitor entry.
-
getMonitorDisplayName
Retrieves a human-readable display name for this monitor entry.- Overrides:
getMonitorDisplayNamein classMonitorEntry- Returns:
- A human-readable display name for this monitor entry.
-
getMonitorDescription
Retrieves a human-readable description name for this monitor entry.- Overrides:
getMonitorDescriptionin classMonitorEntry- Returns:
- A human-readable description name for this monitor entry.
-
getMonitorAttributes
Retrieves the set of parsed monitor attributes for this monitor entry, mapped from a unique identifier (in all lowercase characters) to the corresponding monitor attribute.- Overrides:
getMonitorAttributesin classMonitorEntry- Returns:
- The set of parsed monitor attributes for this monitor entry.
-