Package org.opends.server.api
Class MonitorData
java.lang.Object
org.opends.server.api.MonitorData
This class is used to hold monitoring data, i.e. a list of attributes.
It provides convenient methods to easily build such data.
Note:
Creating monitor entries may become a lot easier once we've migrated to the SDK Entry class:
Entry entry = ...; entry.addAttribute("stringStat", "aString") .addAttribute("integerStat", 12345) .addAttribute("dnStat", Dn.valueOf("dc=aDN");We could also envisage an annotation based approach where we determine the monitor content from annotated fields/methods in an object.
-
Constructor Summary
ConstructorDescriptionMonitorData
(Schema schema) Builds a MonitorData object by using the provided schema. -
Method Summary
Modifier and TypeMethodDescriptionAdds an attribute with the provided name and value.Adds an attribute with the provided name and values.toString()
-
Constructor Details
-
MonitorData
Builds a MonitorData object by using the provided schema.- Parameters:
schema
- the schema to use when building the monitor data
-
-
Method Details
-
add
Adds an attribute with the provided name and value.- Parameters:
attrName
- the attribute nameattrValue
- the attribute value- Returns:
- This
MonitorData
object.
-
addAll
Adds an attribute with the provided name and values.- Parameters:
attrName
- the attribute nameattrValues
- the attribute values- Returns:
- This
MonitorData
object.
-
toString
-