Class MonitorAttribute
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.MonitorAttribute
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class MonitorAttribute
extends Object
implements Serializable
This class provides a data structure for providing information about the data
presented in an attribute in a Directory Server monitor entry. It includes
a human-readable display name, a human-readable description, a class that
represents the data type for the values, and the set of values.
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 Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorAttribute(String name, String displayName, String description, Boolean value) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Double value) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Double[] values) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Integer value) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Integer[] values) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Long value) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Long[] values) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, String value) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, String[] values) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Date value) Creates a new monitor attribute with the provided information.MonitorAttribute(String name, String displayName, String description, Date[] values) Creates a new monitor attribute with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the value for this monitor attribute as aBooleanobject.Class<?> Retrieves the class representing the data type for this monitor attribute.Retrieves the value for this monitor attribute as aDateobject.Retrieves the values for this monitor attribute as a list ofDateobjects.Retrieves the human-readable description for this monitor attribute, if available.Retrieves the human-readable display name for this monitor attribute.Retrieves the value for this monitor attribute as aDoubleobject.Retrieves the values for this monitor attribute as a list ofDoubleobjects.Retrieves the value for this monitor attribute as anIntegerobject.Retrieves the values for this monitor attribute as a list ofIntegerobjects.Retrieves the value for this monitor attribute as aLongobject.Retrieves the values for this monitor attribute as a list ofLongobjects.getName()Retrieves the name used to identify this monitor attribute.Retrieves the value for this monitor attribute as aStringobject.Retrieves the values for this monitor attribute as a list ofStringobjects.getValue()Retrieves the value for this monitor attribute as anObject.Retrieves the set of values for this monitor attribute as a list ofObjects.booleanIndicates whether this monitor attribute has multiple values.toString()Retrieves a string representation of this monitor attribute.voidtoString(StringBuilder buffer) Appends a string representation of this monitor attribute to the provided buffer.
-
Constructor Details
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Boolean value) Creates a new monitor attribute with the provided information. It will have a single Boolean value.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.value- TheBooleanvalue for this monitor attribute. It must not benull.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Date value) Creates a new monitor attribute with the provided information. It will have a single Date value.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.value- TheDatevalue for this monitor attribute. It must not benull.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Date[] values) Creates a new monitor attribute with the provided information. It will have one or more Date values.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.values- The set ofDatevalues for this monitor attribute. It must not benullor empty.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Double value) Creates a new monitor attribute with the provided information. It will have a single Double value.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.value- TheDoublevalue for this monitor attribute. It must not benull.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Double[] values) Creates a new monitor attribute with the provided information. It will have one or more Double values.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.values- The set ofDoublevalues for this monitor attribute. It must not benullor empty.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Integer value) Creates a new monitor attribute with the provided information. It will have a single Long value.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.value- TheIntegervalue for this monitor attribute. It must not benull.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Integer[] values) Creates a new monitor attribute with the provided information. It will have a single Long value.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.values- The set ofIntegervalues for this monitor attribute. It must not benullor empty.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Long value) Creates a new monitor attribute with the provided information. It will have a single Long value.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.value- TheLongvalue for this monitor attribute. It must not benull.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull Long[] values) Creates a new monitor attribute with the provided information. It will have one or more Long values.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.values- The set ofLongvalues for this monitor attribute. It must not benullor empty.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull String value) Creates a new monitor attribute with the provided information. It will have a single String value.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.value- TheStringvalue for this monitor attribute. It must not benull.
-
MonitorAttribute
public MonitorAttribute(@NotNull String name, @NotNull String displayName, @Nullable String description, @NotNull String[] values) Creates a new monitor attribute with the provided information. It will have one or more String values.- Parameters:
name- The name used to identify this monitor attribute. It must not benull.displayName- The human-readable display name for this monitor attribute. It must not benull.description- A human-readable description for this monitor attribute. It may benullif no description is available.values- The set ofStringvalues for this monitor attribute. It must not benullor empty.
-
-
Method Details
-
getName
Retrieves the name used to identify this monitor attribute. It is not necessarily human-readable, but it should be used as the key for this monitor attribute in the map returned by theMonitorEntry.getMonitorAttributesmethod.- Returns:
- The name used to identify this monitor attribute.
-
getDisplayName
Retrieves the human-readable display name for this monitor attribute.- Returns:
- The human-readable display name for this monitor attribute.
-
getDescription
Retrieves the human-readable description for this monitor attribute, if available.- Returns:
- The human-readable description for this monitor attribute, or
nullif none is available.
-
getDataType
Retrieves the class representing the data type for this monitor attribute. It will be one of the following class types: Boolean, Date, Double, Long, or String.- Returns:
- The class representing the data type for this monitor attribute.
-
hasMultipleValues
Indicates whether this monitor attribute has multiple values.- Returns:
trueif this monitor attribute has more than one value, orfalseif not.
-
getValue
Retrieves the value for this monitor attribute as anObject. If it has multiple values, then the first will be returned.- Returns:
- The value for this monitor attribute as an
Object.
-
getValues
Retrieves the set of values for this monitor attribute as a list ofObjects.- Returns:
- The set of values for this monitor attribute as a list of
Objects.
-
getBooleanValue
Retrieves the value for this monitor attribute as aBooleanobject.- Returns:
- The value for this monitor attribute as a
Booleanobject. - Throws:
ClassCastException- If the data type for this monitor attribute is notBoolean.
-
getDateValue
Retrieves the value for this monitor attribute as aDateobject.- Returns:
- The value for this monitor attribute as a
Dateobject. - Throws:
ClassCastException- If the data type for this monitor attribute is notDate.
-
getDateValues
Retrieves the values for this monitor attribute as a list ofDateobjects.- Returns:
- The values for this monitor attribute as a list of
Dateobjects. - Throws:
ClassCastException- If the data type for this monitor attribute is notDate.
-
getDoubleValue
Retrieves the value for this monitor attribute as aDoubleobject.- Returns:
- The value for this monitor attribute as a
Doubleobject. - Throws:
ClassCastException- If the data type for this monitor attribute is notDouble.
-
getDoubleValues
Retrieves the values for this monitor attribute as a list ofDoubleobjects.- Returns:
- The values for this monitor attribute as a list of
Doubleobjects. - Throws:
ClassCastException- If the data type for this monitor attribute is notDouble.
-
getIntegerValue
Retrieves the value for this monitor attribute as anIntegerobject.- Returns:
- The value for this monitor attribute as an
Integerobject. - Throws:
ClassCastException- If the data type for this monitor attribute is notInteger.
-
getIntegerValues
Retrieves the values for this monitor attribute as a list ofIntegerobjects.- Returns:
- The values for this monitor attribute as a list of
Integerobjects. - Throws:
ClassCastException- If the data type for this monitor attribute is notInteger.
-
getLongValue
Retrieves the value for this monitor attribute as aLongobject.- Returns:
- The value for this monitor attribute as a
Longobject. - Throws:
ClassCastException- If the data type for this monitor attribute is notLong.
-
getLongValues
Retrieves the values for this monitor attribute as a list ofLongobjects.- Returns:
- The values for this monitor attribute as a list of
Longobjects. - Throws:
ClassCastException- If the data type for this monitor attribute is notLong.
-
getStringValue
Retrieves the value for this monitor attribute as aStringobject.- Returns:
- The value for this monitor attribute as a
Stringobject. - Throws:
ClassCastException- If the data type for this monitor attribute is notString.
-
getStringValues
Retrieves the values for this monitor attribute as a list ofStringobjects.- Returns:
- The values for this monitor attribute as a list of
Stringobjects. - Throws:
ClassCastException- If the data type for this monitor attribute is notString.
-
toString
Retrieves a string representation of this monitor attribute. -
toString
Appends a string representation of this monitor attribute to the provided buffer.- Parameters:
buffer- The buffer to which the string representation should be appended.
-