Record Class Topology.DomainState
java.lang.Object
java.lang.Record
org.forgerock.opendj.server.leaderbasedreplication.Topology.DomainState
- Record Components:
stableConsistencyPoint- the stable consistency pointpurgePoint- 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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDomainState(CSN stableConsistencyPoint, CSN purgePoint) Creates an instance of aDomainStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Topology.DomainStateParses a domain state from a string representation.Returns a pretty-printed string representation of the domain state.Returns the value of thepurgePointrecord component.Returns the value of thestableConsistencyPointrecord component.toJson()Returns the JSON representation of the domain state.toString()Returns a string representation of this record class.
-
Field Details
-
NO_SCP_CSN
The initial SCP. -
NO_PURGE_CSN
The initial PP.
-
-
Constructor Details
-
DomainState
Creates an instance of aDomainStaterecord class.- Parameters:
stableConsistencyPoint- the value for thestableConsistencyPointrecord componentpurgePoint- the value for thepurgePointrecord component
-
-
Method Details
-
toJson
Returns the JSON representation of the domain state.- Returns:
- the JSON representation of the domain state.
-
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. -
parse
Parses a domain state from a string representation.- Parameters:
domainState- the string representation of the domain state- Returns:
- the parsed domain state
-
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. -
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). -
stableConsistencyPoint
Returns the value of thestableConsistencyPointrecord component.- Returns:
- the value of the
stableConsistencyPointrecord component
-
purgePoint
Returns the value of thepurgePointrecord component.- Returns:
- the value of the
purgePointrecord component
-