Class MonitorEntry
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActiveOperationsMonitorEntry,BackendMonitorEntry,ClientConnectionMonitorEntry,ConnectionHandlerMonitorEntry,DiskSpaceUsageMonitorEntry,EntryCacheMonitorEntry,FIFOEntryCacheMonitorEntry,GaugeMonitorEntry,GeneralMonitorEntry,GroupCacheMonitorEntry,HostSystemRecentCPUAndMemoryMonitorEntry,IndexMonitorEntry,JEEnvironmentMonitorEntry,LDAPExternalServerMonitorEntry,LDAPStatisticsMonitorEntry,LoadBalancingAlgorithmMonitorEntry,MemoryUsageMonitorEntry,ProcessingTimeHistogramMonitorEntry,ReplicaMonitorEntry,ReplicationServerMonitorEntry,ReplicationSummaryMonitorEntry,ResultCodeMonitorEntry,StackTraceMonitorEntry,SystemInfoMonitorEntry,TraditionalWorkQueueMonitorEntry,UnboundIDWorkQueueMonitorEntry,VersionMonitorEntry,X509CertificateMonitorEntry
@NotExtensible
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class MonitorEntry
extends Object
implements Serializable
This class defines a generic monitor entry that provides access to monitor
information provided by a Ping Identity, UnboundID, or Nokia/Alcatel-Lucent
8661 server instance. Subclasses may provide specific methods for
interpreting the information exposed by specific types of monitor entries.
See the
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.
See the
MonitorManager class for an example that demonstrates the
process for retrieving all monitor entries available in the directory server
and retrieving the information they provide using the generic API.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorEntry(Entry entry) Creates a new monitor entry from the information contained in the provided entry. -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddMonitorAttribute(Map<String, MonitorAttribute> attrs, String name, String displayName, String description, Boolean value) Adds a new monitor attribute to the specified map using the provided information.protected static voidaddMonitorAttribute(Map<String, MonitorAttribute> attrs, String name, String displayName, String description, Double value) Adds a new monitor attribute to the specified map using the provided information.protected static voidaddMonitorAttribute(Map<String, MonitorAttribute> attrs, String name, String displayName, String description, Integer value) Adds a new monitor attribute to the specified map using the provided information.protected static voidaddMonitorAttribute(Map<String, MonitorAttribute> attrs, String name, String displayName, String description, Long value) Adds a new monitor attribute to the specified map using the provided information.protected static voidaddMonitorAttribute(Map<String, MonitorAttribute> attrs, String name, String displayName, String description, String value) Adds a new monitor attribute to the specified map using the provided information.protected static voidaddMonitorAttribute(Map<String, MonitorAttribute> attrs, String name, String displayName, String description, Date value) Adds a new monitor attribute to the specified map using the provided information.protected static voidaddMonitorAttribute(Map<String, MonitorAttribute> attrs, String name, String displayName, String description, List<String> values) Adds a new monitor attribute to the specified map using the provided information.static MonitorEntryCreates a monitor entry object from the provided entry.protected final BooleangetBoolean(String attributeName) Retrieves the value of the specified attribute as aBooleanobject.protected final DateRetrieves the value of the specified attribute as aDateobject.final StringgetDN()Retrieves the DN for this monitor entry.protected final DoubleRetrieves the value of the specified attribute as aDoubleobject.final ReadOnlyEntrygetEntry()Retrieves theEntryused to create this monitor entry.protected final IntegergetInteger(String attributeName) Retrieves the value of the specified attribute as anIntegerobject.protected final LongRetrieves the value of the specified attribute as aLongobject.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.final StringRetrieves the name of the structural object class for this monitor entry.Retrieves a human-readable description name for this monitor entry.Retrieves a human-readable display name for this monitor entry.final StringRetrieves the monitor name for this monitor entry.protected final StringRetrieves the value of the specified attribute as a string.getStrings(String attributeName) Retrieves the set of values of the specified attribute as a string list.final StringtoString()Retrieves a string representation of this monitor entry.final voidtoString(StringBuilder buffer) Appends a string representation of this monitor entry to the provided buffer.
-
Constructor Details
-
MonitorEntry
Creates a new monitor entry from the information contained in the provided entry.- Parameters:
entry- The entry providing information to use for this monitor entry. It must not benull.
-
-
Method Details
-
getDN
Retrieves the DN for this monitor entry.- Returns:
- The DN for this monitor entry.
-
getEntry
Retrieves theEntryused to create this monitor entry.- Returns:
- The
Entryused to create this monitor entry.
-
getMonitorClass
Retrieves the name of the structural object class for this monitor entry.- Returns:
- The name of the structural object class for this monitor entry, or the generic monitor object class if no appropriate subclass could be identified.
-
getMonitorName
Retrieves the monitor name for this monitor entry.- Returns:
- The monitor name for this monitor entry, or
nullif it was not included in the monitor entry.
-
getMonitorDisplayName
Retrieves a human-readable display name for this monitor entry.- Returns:
- A human-readable display name for this monitor entry.
-
getMonitorDescription
Retrieves a human-readable description name for this monitor entry.- 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.- Returns:
- The set of parsed monitor attributes for this monitor entry.
-
decode
Creates a monitor entry object from the provided entry. An attempt will be made to decode the entry as an instance of the most appropriate subclass, but if that is not possible then it will be parsed as a generic monitor entry.- Parameters:
entry- The entry to be decoded as a monitor entry.- Returns:
- The decoded monitor entry of the appropriate subtype, or a generic monitor entry if no appropriate subclass could be identified.
-
getBoolean
Retrieves the value of the specified attribute as aBooleanobject.- Parameters:
attributeName- The name of the target attribute.- Returns:
- The
Booleanobject parsed from the specified attribute, ornullif the attribute does not exist in the entry or it cannot be parsed as aBooleanvalue.
-
getDate
Retrieves the value of the specified attribute as aDateobject.- Parameters:
attributeName- The name of the target attribute.- Returns:
- The
Dateobject parsed from the specified attribute, ornullif the attribute does not exist in the entry or it cannot be parsed as aDatevalue.
-
getDouble
Retrieves the value of the specified attribute as aDoubleobject.- Parameters:
attributeName- The name of the target attribute.- Returns:
- The
Doubleobject parsed from the specified attribute, ornullif the attribute does not exist in the entry or it cannot be parsed as aDoublevalue.
-
getInteger
Retrieves the value of the specified attribute as anIntegerobject.- Parameters:
attributeName- The name of the target attribute.- Returns:
- The
Integerobject parsed from the specified attribute, ornullif the attribute does not exist in the entry or it cannot be parsed as anIntegervalue.
-
getLong
Retrieves the value of the specified attribute as aLongobject.- Parameters:
attributeName- The name of the target attribute.- Returns:
- The
Longobject parsed from the specified attribute, ornullif the attribute does not exist in the entry or it cannot be parsed as aLongvalue.
-
getString
Retrieves the value of the specified attribute as a string.- Parameters:
attributeName- The name of the target attribute.- Returns:
- The string value of the specified attribute, or
nullif it does not exist in the entry.
-
getStrings
Retrieves the set of values of the specified attribute as a string list.- Parameters:
attributeName- The name of the target attribute.- Returns:
- The string values of the specified attribute, or an empty list if the specified attribute does not exist in the entry.
-
addMonitorAttribute
protected static void addMonitorAttribute(@NotNull Map<String, MonitorAttribute> attrs, @NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Boolean value) Adds a new monitor attribute to the specified map using the provided information.- Parameters:
attrs- The attribute map to which the information should be added.name- The name to use for this monitor attribute. It must be unique among all other monitor attribute names for the associated monitor entry.displayName- The human-readable display name for the monitor attribute.description- The human-readable description for the monitor attribute.value- The value for the monitor attribute.
-
addMonitorAttribute
protected static void addMonitorAttribute(@NotNull Map<String, MonitorAttribute> attrs, @NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Date value) Adds a new monitor attribute to the specified map using the provided information.- Parameters:
attrs- The attribute map to which the information should be added.name- The name to use for this monitor attribute. It must be unique among all other monitor attribute names for the associated monitor entry.displayName- The human-readable display name for the monitor attribute.description- The human-readable description for the monitor attribute.value- The value for the monitor attribute.
-
addMonitorAttribute
protected static void addMonitorAttribute(@NotNull Map<String, MonitorAttribute> attrs, @NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Double value) Adds a new monitor attribute to the specified map using the provided information.- Parameters:
attrs- The attribute map to which the information should be added.name- The name to use for this monitor attribute. It must be unique among all other monitor attribute names for the associated monitor entry.displayName- The human-readable display name for the monitor attribute.description- The human-readable description for the monitor attribute.value- The value for the monitor attribute.
-
addMonitorAttribute
protected static void addMonitorAttribute(@NotNull Map<String, MonitorAttribute> attrs, @NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Integer value) Adds a new monitor attribute to the specified map using the provided information.- Parameters:
attrs- The attribute map to which the information should be added.name- The name to use for this monitor attribute. It must be unique among all other monitor attribute names for the associated monitor entry.displayName- The human-readable display name for the monitor attribute.description- The human-readable description for the monitor attribute.value- The value for the monitor attribute.
-
addMonitorAttribute
protected static void addMonitorAttribute(@NotNull Map<String, MonitorAttribute> attrs, @NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Long value) Adds a new monitor attribute to the specified map using the provided information.- Parameters:
attrs- The attribute map to which the information should be added.name- The name to use for this monitor attribute. It must be unique among all other monitor attribute names for the associated monitor entry.displayName- The human-readable display name for the monitor attribute.description- The human-readable description for the monitor attribute.value- The value for the monitor attribute.
-
addMonitorAttribute
protected static void addMonitorAttribute(@NotNull Map<String, MonitorAttribute> attrs, @NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull String value) Adds a new monitor attribute to the specified map using the provided information.- Parameters:
attrs- The attribute map to which the information should be added.name- The name to use for this monitor attribute. It must be unique among all other monitor attribute names for the associated monitor entry.displayName- The human-readable display name for the monitor attribute.description- The human-readable description for the monitor attribute.value- The value for the monitor attribute.
-
addMonitorAttribute
protected static void addMonitorAttribute(@NotNull Map<String, MonitorAttribute> attrs, @NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull List<String> values) Adds a new monitor attribute to the specified map using the provided information.- Parameters:
attrs- The attribute map to which the information should be added.name- The name to use for this monitor attribute. It must be unique among all other monitor attribute names for the associated monitor entry.displayName- The human-readable display name for the monitor attribute.description- The human-readable description for the monitor attribute.values- The set of values for the monitor attribute.
-
toString
Retrieves a string representation of this monitor entry. -
toString
Appends a string representation of this monitor entry to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-