com.ace.moab.api.node
Enum NodeOperation

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

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

This class represents an operation that can be taken on a given node.

Author:
Scott Brown

Enum Constant Summary
CREATE_VM
           
MIGRATE_VM
           
MODIFY_OS
           
POWER_OFF
           
POWER_ON
           
REBOOT
           
 
Method Summary
static java.util.List<java.lang.String> getNames()
          Returns a collection of all the names of the enum values NodeOperation type.
static NodeOperation parseNodeOperationString(java.lang.String nodeOperationString)
          Parses a string and converts it into a NodeOperation enum value if possible.
 java.lang.String toString()
           
static NodeOperation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NodeOperation[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CREATE_VM

public static final NodeOperation CREATE_VM

MIGRATE_VM

public static final NodeOperation MIGRATE_VM

MODIFY_OS

public static final NodeOperation MODIFY_OS

POWER_ON

public static final NodeOperation POWER_ON

POWER_OFF

public static final NodeOperation POWER_OFF

REBOOT

public static final NodeOperation REBOOT
Method Detail

values

public static final NodeOperation[] 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(NodeOperation c : NodeOperation.values())
        System.out.println(c);

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

valueOf

public static NodeOperation 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

parseNodeOperationString

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

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

getNames

public static java.util.List<java.lang.String> getNames()
Returns a collection of all the names of the enum values NodeOperation type.

Returns:
a collection of all the names of the enum values NodeOperation type.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<NodeOperation>


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