public static enum MeshNode.State extends Enum<MeshNode.State>
Mesh node.| Enum Constant and Description |
|---|
AVAILABLE
Indicates that the node is available and that requests can be routed to it.
|
DELETING
Indicates that the node is being removed from the cluster.
|
DISABLED
Indicates that the node is disabled.
|
DRAINING
Indicates that the node is currently draining its RPC requests.
|
OFFLINE
Indicates that the node is currently offline.
|
| Modifier and Type | Method and Description |
|---|---|
static MeshNode.State |
fromId(int id)
Retrieves the state associated with the specified
ID. |
int |
getId()
Retrieves a unique identifier for this state.
|
String |
getStatusMessage()
Retrieves the status message describing this state.
|
static MeshNode.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MeshNode.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeshNode.State AVAILABLE
public static final MeshNode.State DELETING
public static final MeshNode.State DISABLED
public static final MeshNode.State DRAINING
public static final MeshNode.State OFFLINE
public static MeshNode.State[] values()
for (MeshNode.State c : MeshNode.State.values()) System.out.println(c);
public static MeshNode.State 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 nullpublic int getId()
@Nonnull public String getStatusMessage()
public static MeshNode.State fromId(int id)
ID.id - the ID to retrieve a State forIllegalArgumentException - if no state exists with the specified IDCopyright © 2023 Atlassian. All rights reserved.