Groovy Documentation

com.ace.mws.nodes
[Groovy] Enum NodeState

java.lang.Object
  com.ace.mws.nodes.NodeState

enum NodeState

This enumeration 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.

 
Field Summary
private String str

 
Constructor Summary
private NodeState(String str)

 
Method Summary
static NodeState parseNodeStateString(String string)

Parses a string and translates it into a respective NodeState enum value.

String toString()

NodeState valueOf(String name)

Returns the enum constant of this type with the specified name.

NodeState[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

BUSY

NodeState BUSY
The node is running workload and cannot accept more.


DOWN

NodeState DOWN
The node is not available for workload.


DRAINED

NodeState DRAINED
The node has been sent the drain request and has no workload on it.


DRAINING

NodeState DRAINING
The node has been sent the drain request, but still has workload on it.


FLUSH

NodeState FLUSH
The node is being reprovisioned.


IDLE

NodeState IDLE
The node is available for workload but is not running anything.


NONE

NodeState NONE
The node is set to none by the resource manager.


RESERVED

NodeState RESERVED
The node is being reserved. This is an internal Moab state.


RUNNING

NodeState RUNNING
The node is running workload and can accept more.


UNKNOWN

NodeState UNKNOWN
The state of the node is unknown.


UP

NodeState UP
The node is up, but the usage is being determined.


 
Field Detail

str

private String str


 
Constructor Detail

NodeState

private NodeState(String str)


 
Method Detail

parseNodeStateString

static NodeState parseNodeStateString(String string)
Parses a string and translates it into a respective NodeState enum value. Will return UNKNOWN when the string cannot be parsed.
Parameters:
string - the string to parse.
Returns:
the corresponding NodeState object.


toString

String toString()


valueOf

NodeState valueOf(String name)
Returns the enum constant of this type with the specified name.


values

NodeState[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation