public enum NodeState extends Enum<NodeState>
Node during its lifecycle.
 Some actions/operations may be allowed or denied
 according to current state of the Node.Node.start(), 
Node.shutdown(boolean), 
AllowedDuringPassiveState, 
ClusterState| Enum Constant and Description | 
|---|
| ACTIVEInitial state of the Node. | 
| PASSIVENode can go into the  PASSIVEwhen one of the following things happen:
 
 
 WhenNode.shutdown(boolean)is called, until the shut down process is completed. | 
| SHUT_DOWNAfter  Node.shutdown(boolean)call completes, node's state will beSHUT_DOWN. | 
| Modifier and Type | Method and Description | 
|---|---|
| static NodeState | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static NodeState[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final NodeState ACTIVE
ACTIVE node is allowed to execute/process
 all kinds of operations. A node is in ACTIVE state while cluster state is
 ClusterState.ACTIVE or ClusterState.FROZEN.public static final NodeState PASSIVE
PASSIVE when one of the following things happen:
 Node.shutdown(boolean) is called, until the shut down process is completed.
 When the shut down process is completed, node goes into the SHUT_DOWN state.
 ClusterState.PASSIVE via
 Cluster.changeClusterState(ClusterState)
 PASSIVE state, all operations will be rejected except operations marked as
 ReadonlyOperation, join operations of some members that are explained in
 ClusterState, replication / migration operations and heartbeat operations.
 Operations those are to be allowed during PASSIVE state should be marked as
 AllowedDuringPassiveState.public static final NodeState SHUT_DOWN
Node.shutdown(boolean) call completes, node's state will be SHUT_DOWN.
 In SHUT_DOWN state node will be completely inactive. All operations/invocations
 will be rejected. Once a node is shutdown, it cannot be restarted.public static NodeState[] values()
for (NodeState c : NodeState.values()) System.out.println(c);
public static NodeState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.