public enum RaftNodeStatus extends Enum<RaftNodeStatus>
Enum Constant and Description |
---|
ACTIVE
The normal operation mode of Raft node.
|
INITIAL
Initial state of a Raft node before it is started.
|
STEPPED_DOWN
When a Raft 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 Raft nodes' statuses in
that group become
TERMINATED . |
TERMINATING
When a Raft group is being terminated, all Raft nodes' statuses in that
group become
TERMINATING . |
UPDATING_GROUP_MEMBER_LIST
During membership changes, Raft 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 INITIAL
public static final RaftNodeStatus ACTIVE
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
Raft 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 the 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 © 2019 Hazelcast, Inc.. All rights reserved.