Package org.opends.server.monitors
Record Class LocalBackendMonitor.BaseDnMonitorData
java.lang.Object
java.lang.Record
org.opends.server.monitors.LocalBackendMonitor.BaseDnMonitorData
- Record Components:
backendId
- the backend idbackendType
- the backend typebaseDn
- base DN exposed by the backend
- Enclosing class:
- LocalBackendMonitor<B extends LocalBackend<?>>
public static record LocalBackendMonitor.BaseDnMonitorData(String backendType, String backendId, Dn baseDn)
extends Record
Stores metric data local backends.
-
Constructor Summary
ConstructorDescriptionBaseDnMonitorData
(String backendType, String backendId, Dn baseDn) Creates an instance of aBaseDnMonitorData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackendId
record component.Returns the value of thebackendType
record component.baseDn()
Returns the value of thebaseDn
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the DN exposed by the corresponding monitor object.newMetricRegistryHolder
(MeterRegistry parent, String... additionalHierarchicalNamePrefixElements) Builds and returns a new meter registry holder using the information held in this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BaseDnMonitorData
Creates an instance of aBaseDnMonitorData
record class.- Parameters:
backendType
- the value for thebackendType
record componentbackendId
- the value for thebackendId
record componentbaseDn
- the value for thebaseDn
record component
-
-
Method Details
-
monitorInstanceDn
Returns the DN exposed by the corresponding monitor object.- Returns:
- the DN exposed by the corresponding monitor object
-
newMetricRegistryHolder
public MeterRegistryHolder newMetricRegistryHolder(MeterRegistry parent, String... additionalHierarchicalNamePrefixElements) Builds and returns a new meter registry holder using the information held in this object.- Parameters:
parent
- the parent meter registryadditionalHierarchicalNamePrefixElements
- additional prefix elements to use for the hierarchical name of the generated meter registry holder. Optional- Returns:
- a new meter registry holder using the information held in this object
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
backendType
Returns the value of thebackendType
record component.- Returns:
- the value of the
backendType
record component
-
backendId
Returns the value of thebackendId
record component.- Returns:
- the value of the
backendId
record component
-
baseDn
Returns the value of thebaseDn
record component.- Returns:
- the value of the
baseDn
record component
-