public static class QuorumCheck.QuorumChecks
extends java.lang.Object
Constructor and Description |
---|
QuorumCheck.QuorumChecks() |
Modifier and Type | Method and Description |
---|---|
static QuorumCheck |
all()
Checks that all members that should be up are up (i.e.
|
static QuorumCheck |
allAndAtLeastOne()
Checks all members that should be up are up, and that there is at least one such member.
|
static QuorumCheck |
alwaysTrue()
Always "healthy"
|
static QuorumCheck |
atLeastOne()
Requires at least one member that should be up is up.
|
static QuorumCheck |
atLeastOneUnlessEmpty()
Requires at least one member to be up if the total size is non-zero.
|
static QuorumCheck |
newInstance(int minRequiredSize,
double minRequiredRatio,
boolean allowEmpty) |
public static QuorumCheck all()
public static QuorumCheck allAndAtLeastOne()
public static QuorumCheck atLeastOne()
public static QuorumCheck atLeastOneUnlessEmpty()
public static QuorumCheck alwaysTrue()
public static QuorumCheck newInstance(int minRequiredSize, double minRequiredRatio, boolean allowEmpty)