Record Class ClusterNodeEndpoint.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.cluster.ClusterNodeEndpoint.Status
- Record Components:
node- application statedataSchema- highest possibly written schemavotingMembers- committed configuration sizeconfigurationEpoch- committed configuration epochjoint- whether reconfiguration is in progressquorumAvailable- current fresh read barrier succeeded
- Enclosing interface:
ClusterNodeEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theconfigurationEpochrecord component.intReturns the value of thedataSchemarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanjoint()Returns the value of thejointrecord component.node()Returns the value of thenoderecord component.booleanReturns the value of thequorumAvailablerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevotingMembersrecord component.
-
Constructor Details
-
Status
public Status(NodeView node, int dataSchema, int votingMembers, long configurationEpoch, boolean joint, boolean quorumAvailable) Creates an instance of aStatusrecord class.- Parameters:
node- the value for thenoderecord componentdataSchema- the value for thedataSchemarecord componentvotingMembers- the value for thevotingMembersrecord componentconfigurationEpoch- the value for theconfigurationEpochrecord componentjoint- the value for thejointrecord componentquorumAvailable- the value for thequorumAvailablerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
node
-
dataSchema
public int dataSchema()Returns the value of thedataSchemarecord component.- Returns:
- the value of the
dataSchemarecord component
-
votingMembers
public int votingMembers()Returns the value of thevotingMembersrecord component.- Returns:
- the value of the
votingMembersrecord component
-
configurationEpoch
public long configurationEpoch()Returns the value of theconfigurationEpochrecord component.- Returns:
- the value of the
configurationEpochrecord component
-
joint
-
quorumAvailable
public boolean quorumAvailable()Returns the value of thequorumAvailablerecord component.- Returns:
- the value of the
quorumAvailablerecord component
-