public abstract static class ClusterStateObserver.ValidationPredicate extends Object implements ClusterStateObserver.ChangePredicate
| Constructor and Description |
|---|
ClusterStateObserver.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 ClusterStateObserver.ValidationPredicate()
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.ChangePredicateCopyright © 2009–2017. All rights reserved.