Record Class Topology.ReplicaInfo
java.lang.Object
java.lang.Record
org.forgerock.opendj.server.leaderbasedreplication.Topology.ReplicaInfo
- Record Components:
replicaId
- the replica IDcoordinate
- the coordinates of the replicastatus
- the status of the replicastatusTimestamp
- the timestamp of the status
- Enclosing class:
- Topology
public static record Topology.ReplicaInfo(ReplicaId replicaId, Topology.ReplicaCoordinate coordinate, Topology.RegisteredStatus status, long statusTimestamp)
extends Record
The information of a replica returned by the topology.
-
Constructor Summary
ConstructorsConstructorDescriptionReplicaInfo
(ReplicaId replicaId, Topology.ReplicaCoordinate coordinate, Topology.RegisteredStatus status, long statusTimestamp) Creates an instance of aReplicaInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoordinate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thereplicaId
record component.status()
Returns the value of thestatus
record component.long
Returns the value of thestatusTimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ReplicaInfo
public ReplicaInfo(ReplicaId replicaId, Topology.ReplicaCoordinate coordinate, Topology.RegisteredStatus status, long statusTimestamp) Creates an instance of aReplicaInfo
record class.- Parameters:
replicaId
- the value for thereplicaId
record componentcoordinate
- the value for thecoordinate
record componentstatus
- the value for thestatus
record componentstatusTimestamp
- the value for thestatusTimestamp
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
replicaId
Returns the value of thereplicaId
record component.- Returns:
- the value of the
replicaId
record component
-
coordinate
Returns the value of thecoordinate
record component.- Returns:
- the value of the
coordinate
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
statusTimestamp
public long statusTimestamp()Returns the value of thestatusTimestamp
record component.- Returns:
- the value of the
statusTimestamp
record component
-