com.ace.moab.api.node
Enum NodePower
java.lang.Object
java.lang.Enum<NodePower>
com.ace.moab.api.node.NodePower
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NodePower>
public enum NodePower
- extends java.lang.Enum<NodePower>
Represents the various options for a Node or Server's power state.
- Author:
- Scott Brown
Method Summary |
static NodePower |
parseNodePowerString(java.lang.String string)
Parses a string and translates it into a respective NodePower enum value. |
static NodePower |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NodePower[] |
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 |
ON
public static final NodePower ON
OFF
public static final NodePower OFF
RESET
public static final NodePower RESET
HIBERNATE
public static final NodePower HIBERNATE
STANDBY
public static final NodePower STANDBY
UNKNOWN
public static final NodePower UNKNOWN
values
public static final NodePower[] 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(NodePower c : NodePower.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static NodePower 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
parseNodePowerString
public static NodePower parseNodePowerString(java.lang.String string)
throws java.text.ParseException
- Parses a string and translates it into a respective NodePower enum value.
- Parameters:
string
- the string to parse.
- Returns:
- the corresponding NodePower object.
- Throws:
java.text.ParseException
- if the string cannot be parsed into a valid NodePower enum
value.
Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.