Record Class Topology.DomainState

java.lang.Object
java.lang.Record
org.forgerock.opendj.server.leaderbasedreplication.Topology.DomainState
Record Components:
stableConsistencyPoint - the stable consistency point
purgePoint - the purge point
Enclosing class:
Topology

public static record Topology.DomainState(CSN stableConsistencyPoint, CSN purgePoint) extends Record
Represents the domain state.

The domain state contains the stable consistency point (SCP) and the purge point (PP) of the domain.

  • Field Details

    • NO_SCP_CSN

      public static final CSN NO_SCP_CSN
      The initial SCP.
    • NO_PURGE_CSN

      public static final CSN NO_PURGE_CSN
      The initial PP.
  • Constructor Details

    • DomainState

      public DomainState(CSN stableConsistencyPoint, CSN purgePoint)
      Creates an instance of a DomainState record class.
      Parameters:
      stableConsistencyPoint - the value for the stableConsistencyPoint record component
      purgePoint - the value for the purgePoint record component
  • Method Details

    • toJson

      public JsonValue toJson()
      Returns the JSON representation of the domain state.
      Returns:
      the JSON representation of the domain state.
    • toString

      public 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
    • parse

      public static Topology.DomainState parse(String domainState)
      Parses a domain state from a string representation.
      Parameters:
      domainState - the string representation of the domain state
      Returns:
      the parsed domain state
    • prettyPrint

      public String prettyPrint()
      Returns a pretty-printed string representation of the domain state.
      Returns:
      a pretty-printed string representation of the domain state
    • 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.
    • stableConsistencyPoint

      public CSN stableConsistencyPoint()
      Returns the value of the stableConsistencyPoint record component.
      Returns:
      the value of the stableConsistencyPoint record component
    • purgePoint

      public CSN purgePoint()
      Returns the value of the purgePoint record component.
      Returns:
      the value of the purgePoint record component