public static class QuorumCheck.NumericQuorumCheck extends java.lang.Object implements QuorumCheck, java.io.Serializable
QuorumCheck.LinearRangeQuorumCheck, QuorumCheck.NumericQuorumCheck, QuorumCheck.QuorumChecks
Constructor and Description |
---|
NumericQuorumCheck(int minRequiredSize,
double minRequiredRatio,
boolean allowEmpty) |
NumericQuorumCheck(int minRequiredSize,
double minRequiredRatio,
boolean allowEmpty,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
boolean |
isQuorate(int sizeHealthy,
int totalSize) |
java.lang.String |
toString() |
public NumericQuorumCheck(int minRequiredSize, double minRequiredRatio, boolean allowEmpty)
public NumericQuorumCheck(int minRequiredSize, double minRequiredRatio, boolean allowEmpty, java.lang.String name)
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 getName()
public java.lang.String toString()
toString
in class java.lang.Object