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.ChangePredicateapply in interface ClusterStateObserver.ChangePredicateprotected abstract boolean validate(ClusterState newState)
public boolean apply(ClusterChangedEvent changedEvent)
ClusterStateObserver.ChangePredicateapply in interface ClusterStateObserver.ChangePredicate