Groovy Documentation

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

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

enum PowerPolicy

This enumeration represents the power policy to take when deciding about resource power.

Authors:
bkimball


Enum Constant Summary
GREEN

@deprecated Use OnDemand instead.

NONE

ONDEMAND

Moab will attempt to power the server off if there is no workload running on it.

STATIC

The power is handled manually.

 
Property Summary
String humanReadable

String moabLabel

 
Constructor Summary
private PowerPolicy(String moabLabel, String humanReadable)

 
Method Summary
static PowerPolicy parseString(String string)

Parses a string and converts it into a PowerPolicy enum value if possible.

String toString()

PowerPolicy valueOf(String name)

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

PowerPolicy[] 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

GREEN

PowerPolicy GREEN
deprecated:
Use OnDemand instead.


NONE

PowerPolicy NONE


ONDEMAND

PowerPolicy ONDEMAND
Moab will attempt to power the server off if there is no workload running on it.


STATIC

PowerPolicy STATIC
The power is handled manually.


 
Property Detail

humanReadable

String humanReadable


moabLabel

String moabLabel


 
Constructor Detail

PowerPolicy

private PowerPolicy(String moabLabel, String humanReadable)


 
Method Detail

parseString

static PowerPolicy parseString(String string)
Parses a string and converts it into a PowerPolicy enum value if possible.
throws:
ParseException if the String cannot be parsed.
Parameters:
string - the string to be parsed.
Returns:
the corresponding PowerPolicy enum value.


toString

String toString()


valueOf

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


values

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


 

Groovy Documentation