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 aDomainState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static Topology.DomainState
Parses a domain state from a string representation.Returns a pretty-printed string representation of the domain state.Returns the value of thepurgePoint
record component.Returns the value of thestableConsistencyPoint
record 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 aDomainState
record class.- Parameters:
stableConsistencyPoint
- the value for thestableConsistencyPoint
record componentpurgePoint
- the value for thepurgePoint
record 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 thestableConsistencyPoint
record component.- Returns:
- the value of the
stableConsistencyPoint
record component
-
purgePoint
Returns the value of thepurgePoint
record component.- Returns:
- the value of the
purgePoint
record component
-