|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<NodeState>
com.ace.moab.api.node.NodeState
public enum NodeState
This enum tracks the state of a node.
Enum Constant Summary | |
---|---|
BUSY
The node is running workload and cannot accept more. |
|
DOWN
The node is not available for workload. |
|
DRAINED
The node has been sent the drain request and has no workload on it. |
|
DRAINING
The node has been sent the drain request, but still has workload on it. |
|
FLUSH
The node is being reprovisioned. |
|
IDLE
The node is available for workload but is not running anything. |
|
NONE
The node is set to none by the resource manager. |
|
RESERVED
The node is being reserved. |
|
RUNNING
The node is running workload and can accept more. |
|
UNKNOWN
The state of the node is unknown. |
|
UP
The node is up, but the usage is being determined. |
Method Summary | |
---|---|
static java.util.List<java.lang.String> |
getStateStrings()
Gets a list of options in a string format. |
static NodeState |
parseNodeStateString(java.lang.String string)
Parses a string and translates it into a respective NodeState enum value. |
java.lang.String |
toString()
|
static NodeState |
valueOf(java.lang.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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NodeState NONE
public static final NodeState DOWN
public static final NodeState IDLE
public static final NodeState BUSY
public static final NodeState RUNNING
public static final NodeState DRAINED
public static final NodeState DRAINING
public static final NodeState FLUSH
public static final NodeState RESERVED
public static final NodeState UNKNOWN
public static final NodeState UP
Method Detail |
---|
public static final NodeState[] values()
for(NodeState c : NodeState.values()) System.out.println(c);
public static NodeState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static NodeState parseNodeStateString(java.lang.String string) throws java.text.ParseException
string
- the string to parse.
java.text.ParseException
- if the string cannot be parsed into a valid NodeState enum
value.public static java.util.List<java.lang.String> getStateStrings()
public java.lang.String toString()
toString
in class java.lang.Enum<NodeState>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |