public static class QuorumCheck.LinearRangeQuorumCheck extends java.lang.Object implements QuorumCheck, java.io.Serializable
QuorumCheck.LinearRangeQuorumCheck, QuorumCheck.NumericQuorumCheck, QuorumCheck.QuorumChecks
Modifier and Type | Method and Description |
---|---|
boolean |
isQuorate(int sizeHealthy,
int totalSize) |
static QuorumCheck.LinearRangeQuorumCheck |
of(java.lang.Iterable<? extends java.lang.Iterable<java.lang.Integer>> points) |
static QuorumCheck.LinearRangeQuorumCheck |
of(java.lang.String name,
java.lang.Iterable<? extends java.lang.Iterable<java.lang.Integer>> points) |
java.lang.String |
toString() |
public static QuorumCheck.LinearRangeQuorumCheck of(java.lang.String name, java.lang.Iterable<? extends java.lang.Iterable<java.lang.Integer>> points)
public static QuorumCheck.LinearRangeQuorumCheck of(java.lang.Iterable<? extends java.lang.Iterable<java.lang.Integer>> points)
public boolean isQuorate(int sizeHealthy, int totalSize)
isQuorate
in interface QuorumCheck
sizeHealthy
- Number of healthy memberstotalSize
- Total number of members one would expect to be healthy (i.e. ignoring stopped members)public java.lang.String toString()
toString
in class java.lang.Object