@PrivateApi public enum NodeState extends Enum<NodeState>
Nodeduring its lifecycle. Some actions/operations may be allowed or denied according to current state of the
|Enum Constant and Description|
Initial state of the Node.
Node can go into the
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final NodeState ACTIVE
ACTIVEnode is allowed to execute/process all kinds of operations. A node is in
ACTIVEstate while cluster state is
public static final NodeState PASSIVE
PASSIVEwhen 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
PASSIVEstate, 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
PASSIVEstate should be marked as
public static final NodeState SHUT_DOWN
Node.shutdown(boolean)call completes, node's state will be
SHUT_DOWNstate 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 name
NullPointerException- if the argument is null
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.