public static enum Member.Status extends Enum<Member.Status>
leader.
Member statuses are manged by the cluster leader. For each Member of a
Cluster, the leader periodically sends a heartbeat to the member to determine its availability.
In the event that the leader cannot contact a member for more than a few heartbeats, the leader will
set the member's availability status to UNAVAILABLE. Once the leader reestablishes communication
with the member, it will reset its status back to AVAILABLE.
| Enum Constant and Description |
|---|
AVAILABLE
Indicates that a member is reachable by the leader.
|
UNAVAILABLE
Indicates that a member is unreachable by the leader.
|
| Modifier and Type | Method and Description |
|---|---|
static Member.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Member.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Member.Status AVAILABLE
Availability is determined by the leader's ability to successfully send heartbeats to the member. If the
last heartbeat attempt to the member was successful, its status will be available. For members whose status
is UNAVAILABLE, once the leader is able to heartbeat the member its status will be reset to available.
public static final Member.Status UNAVAILABLE
Availability is determined by the leader's ability to successfully send heartbeats to the member. If the
leader repeatedly fails to heartbeat a member, the leader will eventually commit a configuration change setting
the member's status to unavailable. Once the leader is able to contact the member again, its status will be
reset to AVAILABLE.
public static Member.Status[] values()
for (Member.Status c : Member.Status.values()) System.out.println(c);
public static Member.Status 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 © 2013–2016. All rights reserved.