@PublicAPI public enum NodeState extends Enum<NodeState>
Enum Constant and Description |
---|
BUSY
a node provided to a RM user.
|
CONFIGURING
a node cannot be provided to a RM user, it is under configuration
|
DEPLOYING
a node for which one the deployment process has been triggered but which
is not registered yet.
|
DOWN
a node that has been detected down.
|
FREE
a node that can be provided to a RM user, and able to perform a task
|
LOST
a node for which one the deployment process failed
|
TO_BE_REMOVED
a busy node which must be removed from resource manager when the user
will give back the node.
|
Modifier and Type | Method and Description |
---|---|
static NodeState |
parse(String value)
Returns the enum constant of the specified NodeState with the specified description.
|
String |
toString()
Returns a string representation of the state.
|
static NodeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeState FREE
public static final NodeState BUSY
public static final NodeState DOWN
public static final NodeState TO_BE_REMOVED
public static final NodeState DEPLOYING
public static final NodeState LOST
public static final NodeState CONFIGURING
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 nameNullPointerException
- if the argument is nullpublic static NodeState parse(String value)
value
- the value returned by toString()
.IllegalArgumentException
- if the specified enum type has no constant with the specified name, or the specified class object does not represent an enum type.NullPointerException
- if enumType or name is null
.