public enum RaftNodeStatus extends Enum<RaftNodeStatus>
Enum Constant and Description |
---|
ACTIVE
Initial state of a node.
|
STEPPED_DOWN
When a node is removed from the cluster after a membership change is
committed, its status becomes
STEPPED_DOWN . |
TERMINATED
When a Raft group is terminated completely, all nodes' statuses in
that group become
TERMINATED . |
TERMINATING
When a Raft group is being terminated, all nodes' statuses in that group
become
TERMINATING . |
UPDATING_GROUP_MEMBER_LIST
During membership changes, node statuses become
UPDATING_GROUP_MEMBER_LIST and they apply requested change once
the entry is appended to the log. |
Modifier and Type | Method and Description |
---|---|
static RaftNodeStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftNodeStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftNodeStatus ACTIVE
ACTIVE
node operates normally.public static final RaftNodeStatus UPDATING_GROUP_MEMBER_LIST
UPDATING_GROUP_MEMBER_LIST
and they apply requested change once
the entry is appended to the log. Once log is committed, if the related
node is the being removed from group, status becomes
STEPPED_DOWN
, otherwise ACTIVE
.public static final RaftNodeStatus STEPPED_DOWN
STEPPED_DOWN
.public static final RaftNodeStatus TERMINATING
TERMINATING
. Once termination process is completed, then
statuses become TERMINATED
.public static final RaftNodeStatus TERMINATED
TERMINATED
.public static RaftNodeStatus[] values()
for (RaftNodeStatus c : RaftNodeStatus.values()) System.out.println(c);
public static RaftNodeStatus 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 © 2021 Hazelcast, Inc.. All Rights Reserved.