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