org.jclouds.compute.domain
Enum NodeState

java.lang.Object
  extended by java.lang.Enum<NodeState>
      extended by org.jclouds.compute.domain.NodeState
All Implemented Interfaces:
Serializable, Comparable<NodeState>

public enum NodeState
extends Enum<NodeState>

Indicates the status of a node

Author:
Adrian Cole

Enum Constant Summary
ERROR
          There is an error on the node
PENDING
          The node is in transition
RUNNING
          The node is available for requests
SUSPENDED
          The node is deployed, but suspended or stopped.
TERMINATED
          The node is visible, and in the process of being deleted.
UNRECOGNIZED
          The state of the node is unrecognized.
 
Method Summary
static NodeState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PENDING

public static final NodeState PENDING
The node is in transition


TERMINATED

public static final NodeState TERMINATED
The node is visible, and in the process of being deleted.


SUSPENDED

public static final NodeState SUSPENDED
The node is deployed, but suspended or stopped.


RUNNING

public static final NodeState RUNNING
The node is available for requests


ERROR

public static final NodeState ERROR
There is an error on the node


UNRECOGNIZED

public static final NodeState UNRECOGNIZED
The state of the node is unrecognized.

Method Detail

values

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

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

valueOf

public static NodeState valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009-2011 jclouds. All Rights Reserved.