public abstract static class ClusterStateObserver.ValidationPredicate extends java.lang.Object implements ClusterStateObserver.ChangePredicate
Constructor and Description |
---|
ValidationPredicate() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(ClusterChangedEvent changedEvent)
called to see whether a cluster change should be accepted
|
boolean |
apply(ClusterState previousState,
ClusterState.ClusterStateStatus previousStatus,
ClusterState newState,
ClusterState.ClusterStateStatus newStatus)
a rough check used when starting to monitor for a new change.
|
protected abstract boolean |
validate(ClusterState newState) |
public boolean apply(ClusterState previousState, ClusterState.ClusterStateStatus previousStatus, ClusterState newState, ClusterState.ClusterStateStatus newStatus)
ClusterStateObserver.ChangePredicate
apply
in interface ClusterStateObserver.ChangePredicate
protected abstract boolean validate(ClusterState newState)
public boolean apply(ClusterChangedEvent changedEvent)
ClusterStateObserver.ChangePredicate
apply
in interface ClusterStateObserver.ChangePredicate