public enum MasterNodeChangePredicate extends java.lang.Enum<MasterNodeChangePredicate> implements ClusterStateObserver.ChangePredicate
Enum Constant and Description |
---|
INSTANCE |
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.
|
static MasterNodeChangePredicate |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MasterNodeChangePredicate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MasterNodeChangePredicate INSTANCE
public static MasterNodeChangePredicate[] values()
for (MasterNodeChangePredicate c : MasterNodeChangePredicate.values()) System.out.println(c);
public static MasterNodeChangePredicate valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean apply(ClusterState previousState, ClusterState.ClusterStateStatus previousStatus, ClusterState newState, ClusterState.ClusterStateStatus newStatus)
ClusterStateObserver.ChangePredicate
apply
in interface ClusterStateObserver.ChangePredicate
public boolean apply(ClusterChangedEvent changedEvent)
ClusterStateObserver.ChangePredicate
apply
in interface ClusterStateObserver.ChangePredicate