@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class GeneralMonitorEntry extends MonitorEntry
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.
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.Constructor and Description |
---|
GeneralMonitorEntry(Entry entry)
Creates a new general monitor entry from the provided entry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClusterName()
Retrieves the name of the cluster in which the server is a member.
|
java.lang.Long |
getCurrentConnections()
Retrieves the number of connections currently established.
|
java.util.Date |
getCurrentTime()
Retrieves the current time as reported by the Directory Server.
|
java.util.List<java.lang.String> |
getDegradedAlertTypes()
Retrieves the names of any alert types which may have caused the server to
be currently classified as "degraded".
|
java.lang.String |
getInstanceName()
Retrieves the name assigned to the Directory Server instance.
|
java.lang.String |
getLocationDN()
Retrieves the DN of the configuration entry that defines the server's
location.
|
java.lang.String |
getLocationName()
Retrieves the name of the configuration entry that defines the server's
location.
|
java.lang.Long |
getMaxConnections()
Retrieves the maximum number of concurrent connections established at any
time since startup.
|
java.util.Map<java.lang.String,MonitorAttribute> |
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.
|
java.lang.String |
getMonitorDescription()
Retrieves a human-readable description name for this monitor entry.
|
java.lang.String |
getMonitorDisplayName()
Retrieves a human-readable display name for this monitor entry.
|
java.lang.String |
getProductName()
Retrieves the Directory Server product name.
|
java.lang.String |
getServerUUID()
Retrieves the UUID value that was generated when the server instance was
initially created.
|
java.util.Date |
getStartTime()
Retrieves the time that the Directory Server was started.
|
java.lang.String |
getStartupID()
Retrieves a relatively compact identifier generated at the time the
Directory Server was started.
|
java.lang.String |
getStartupUUID()
Retrieves the UUID that was generated when the Directory Server was
started.
|
java.util.List<java.lang.String> |
getThirdPartyExtensionDNs()
Retrieves the DNs of the configuration entries for any third-party
extensions currently loaded in the server.
|
java.lang.Long |
getTotalConnections()
Retrieves the total number of connections established since startup.
|
java.util.List<java.lang.String> |
getUnavailableAlertTypes()
Retrieves the names of any alert types which may have caused the server to
be currently classified as "unavailable".
|
java.lang.Long |
getUptimeMillis()
Retrieves the Directory Server uptime in milliseconds.
|
java.lang.String |
getUptimeString()
Retrieves the human-readable string representation of the Directory Server
uptime.
|
java.lang.String |
getVendorName()
Retrieves the Directory Server vendor name string.
|
java.lang.String |
getVersionString()
Retrieves the Directory Server version string.
|
addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, decode, getBoolean, getDate, getDN, getDouble, getEntry, getInteger, getLong, getMonitorClass, getMonitorName, getString, getStrings, toString, toString
public GeneralMonitorEntry(@NotNull Entry entry)
entry
- The entry to be parsed as a general monitor entry. It must
not be null
.@Nullable public java.lang.Long getCurrentConnections()
null
if it was not included in the monitor entry.@Nullable public java.lang.Long getMaxConnections()
null
if it was not included in the
monitor entry.@Nullable public java.lang.Long getTotalConnections()
null
if it was not included in the monitor entry.@Nullable public java.util.Date getCurrentTime()
null
if it was not included in the monitor entry.@Nullable public java.util.Date getStartTime()
null
if
it was not included in the monitor entry.@Nullable public java.lang.String getClusterName()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getInstanceName()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getLocationName()
null
if it was not included in the monitor
entry.@Nullable public java.lang.String getLocationDN()
null
if it was not included in the monitor
entry.@Nullable public java.lang.String getServerUUID()
null
if it was not included in the
monitor entry.@Nullable public java.lang.String getStartupID()
null
if it was not
included in the monitor entry.@Nullable public java.lang.String getStartupUUID()
null
if it was not included in the monitor entry.@Nullable public java.lang.Long getUptimeMillis()
null
if
either the current time or the start time was not available.@Nullable public java.lang.String getUptimeString()
null
if it was not included in the monitor
entry.@Nullable public java.lang.String getProductName()
null
if it was not
included in the monitor entry.@Nullable public java.lang.String getVendorName()
null
if it
was not included in the monitor entry.@Nullable public java.lang.String getVersionString()
null
if it was not
included in the monitor entry.@NotNull public java.util.List<java.lang.String> getDegradedAlertTypes()
@NotNull public java.util.List<java.lang.String> getUnavailableAlertTypes()
@NotNull public java.util.List<java.lang.String> getThirdPartyExtensionDNs()
@NotNull public java.lang.String getMonitorDisplayName()
getMonitorDisplayName
in class MonitorEntry
@NotNull public java.lang.String getMonitorDescription()
getMonitorDescription
in class MonitorEntry
@NotNull public java.util.Map<java.lang.String,MonitorAttribute> getMonitorAttributes()
getMonitorAttributes
in class MonitorEntry