Record Class PartitionDetector.PartitionDiagnostics
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionDetector.PartitionDiagnostics
- Record Components:
reachableNodes- set of nodes currently reachable and healthyunreachableNodes- set of nodes currently unreachablesuspectedNodes- set of nodes with high phi values (suspected failed)partitionCount- current number of partitions detected
- Enclosing class:
PartitionDetector
-
Constructor Summary
Constructors -
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.intReturns the value of thepartitionCountrecord component.Returns the value of thereachableNodesrecord component.Returns the value of thesuspectedNodesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunreachableNodesrecord component.
-
Constructor Details
-
PartitionDiagnostics
public PartitionDiagnostics(Set<String> reachableNodes, Set<String> unreachableNodes, Set<String> suspectedNodes, int partitionCount) Creates an instance of aPartitionDiagnosticsrecord class.- Parameters:
reachableNodes- the value for thereachableNodesrecord componentunreachableNodes- the value for theunreachableNodesrecord componentsuspectedNodes- the value for thesuspectedNodesrecord componentpartitionCount- the value for thepartitionCountrecord 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. -
reachableNodes
Returns the value of thereachableNodesrecord component.- Returns:
- the value of the
reachableNodesrecord component
-
unreachableNodes
Returns the value of theunreachableNodesrecord component.- Returns:
- the value of the
unreachableNodesrecord component
-
suspectedNodes
Returns the value of thesuspectedNodesrecord component.- Returns:
- the value of the
suspectedNodesrecord component
-
partitionCount
public int partitionCount()Returns the value of thepartitionCountrecord component.- Returns:
- the value of the
partitionCountrecord component
-