Groovy Documentation

com.ace.mws.plugins
[Java] Enum NodeReportState

java.lang.Object
  java.lang.Enum
      com.ace.mws.plugins.NodeReportState

public enum NodeReportState
extends Enum

This enumeration represents the current state of a node.


Enum Constant Summary
BUSY

DOWN

DRAINED

DRAINING

FLUSH

IDLE

NONE

RESERVED

RUNNING

UNKNOWN

UP

 
Field Summary
private String str

This enumeration represents the current state of a node.

 
Method Summary
private def NodeReportState(String str)

static NodeReportState parse(String string)

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

String toString()

Returns a human-readable name such as "Unknown" for UNKNOWN.

NodeReportState valueOf(String name)

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

NodeReportState[] values()

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

 
Methods inherited from class Enum
name, equals, toString, hashCode, compareTo, compareTo, valueOf, getDeclaringClass, ordinal, wait, wait, wait, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

BUSY

NodeReportState BUSY


DOWN

NodeReportState DOWN


DRAINED

NodeReportState DRAINED


DRAINING

NodeReportState DRAINING


FLUSH

NodeReportState FLUSH


IDLE

NodeReportState IDLE


NONE

NodeReportState NONE


RESERVED

NodeReportState RESERVED


RUNNING

NodeReportState RUNNING


UNKNOWN

NodeReportState UNKNOWN


UP

NodeReportState UP


 
Field Detail

str

private String str
This enumeration represents the current state of a node.


 
Method Detail

NodeReportState

private def NodeReportState(String str)


parse

public static NodeReportState parse(String string)
Parses a string and translates it into a respective NodeReportState enum value. Will return null when the string cannot be parsed.
Parameters:
string - The string to parse.
Returns:
The corresponding NodeReportState object or null if not found.


toString

public String toString()
Returns a human-readable name such as "Unknown" for UNKNOWN.
Returns:
Value in a human readable form.


valueOf

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


values

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


 

Groovy Documentation