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
ConstructorsConstructorDescriptionBaseDnMonitorData(String backendType, String backendId, Dn baseDn) Creates an instance of aBaseDnMonitorDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackendIdrecord component.Returns the value of thebackendTyperecord component.baseDn()Returns the value of thebaseDnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()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 StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BaseDnMonitorData
Creates an instance of aBaseDnMonitorDatarecord class.- Parameters:
backendType- the value for thebackendTyperecord componentbackendId- the value for thebackendIdrecord componentbaseDn- the value for thebaseDnrecord 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 thebackendTyperecord component.- Returns:
- the value of the
backendTyperecord component
-
backendId
Returns the value of thebackendIdrecord component.- Returns:
- the value of the
backendIdrecord component
-
baseDn
Returns the value of thebaseDnrecord component.- Returns:
- the value of the
baseDnrecord component
-