com.ace.moab.api.node
Enum PowerPolicy

java.lang.Object
  extended by java.lang.Enum<PowerPolicy>
      extended by com.ace.moab.api.node.PowerPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PowerPolicy>

public enum PowerPolicy
extends java.lang.Enum<PowerPolicy>

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

Author:
Brady Kimball

Enum Constant Summary
GREEN
          Moab will attempt to power the server off if there is no workload currently running on it.
STATIC
          The power is handled manually.
 
Method Summary
static PowerPolicy parseString(java.lang.String string)
          Parses a string and converts it into a PowerPolicy enum value if possible.
static PowerPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PowerPolicy[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GREEN

public static final PowerPolicy GREEN
Moab will attempt to power the server off if there is no workload currently running on it.


STATIC

public static final PowerPolicy STATIC
The power is handled manually.

Method Detail

values

public static final PowerPolicy[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(PowerPolicy c : PowerPolicy.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static PowerPolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

parseString

public static PowerPolicy parseString(java.lang.String string)
                               throws java.text.ParseException
Parses a string and converts it into a PowerPolicy enum value if possible.

Parameters:
string - the string to be parsed.
Returns:
the corresponding PowerPolicy enum value.
Throws:
java.text.ParseException - if the String cannot be parsed.


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.