Record Class LocalBackendMonitor.BaseDnMonitorData

java.lang.Object
java.lang.Record
org.opends.server.monitors.LocalBackendMonitor.BaseDnMonitorData
Record Components:
backendId - the backend id
backendType - the backend type
baseDn - 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 Details

    • BaseDnMonitorData

      public BaseDnMonitorData(String backendType, String backendId, Dn baseDn)
      Creates an instance of a BaseDnMonitorData record class.
      Parameters:
      backendType - the value for the backendType record component
      backendId - the value for the backendId record component
      baseDn - the value for the baseDn record component
  • Method Details

    • monitorInstanceDn

      public Dn 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 registry
      additionalHierarchicalNamePrefixElements - 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • backendType

      public String backendType()
      Returns the value of the backendType record component.
      Returns:
      the value of the backendType record component
    • backendId

      public String backendId()
      Returns the value of the backendId record component.
      Returns:
      the value of the backendId record component
    • baseDn

      public Dn baseDn()
      Returns the value of the baseDn record component.
      Returns:
      the value of the baseDn record component