org.jclouds.cloudstack.domain
Enum VirtualMachine.State

java.lang.Object
  extended by java.lang.Enum<VirtualMachine.State>
      extended by org.jclouds.cloudstack.domain.VirtualMachine.State
All Implemented Interfaces:
Serializable, Comparable<VirtualMachine.State>
Enclosing class:
VirtualMachine

public static enum VirtualMachine.State
extends Enum<VirtualMachine.State>


Enum Constant Summary
DESTROYED
           
ERROR
           
EXPUNGING
           
MIGRATING
           
RUNNING
           
SHUTDOWNED
           
STARTING
           
STOPPED
           
STOPPING
           
UNKNOWN
           
UNRECOGNIZED
           
 
Method Summary
static VirtualMachine.State fromValue(String state)
           
 String toString()
           
static VirtualMachine.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VirtualMachine.State[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STARTING

public static final VirtualMachine.State STARTING

RUNNING

public static final VirtualMachine.State RUNNING

STOPPING

public static final VirtualMachine.State STOPPING

STOPPED

public static final VirtualMachine.State STOPPED

DESTROYED

public static final VirtualMachine.State DESTROYED

EXPUNGING

public static final VirtualMachine.State EXPUNGING

MIGRATING

public static final VirtualMachine.State MIGRATING

ERROR

public static final VirtualMachine.State ERROR

UNKNOWN

public static final VirtualMachine.State UNKNOWN

SHUTDOWNED

public static final VirtualMachine.State SHUTDOWNED

UNRECOGNIZED

public static final VirtualMachine.State UNRECOGNIZED
Method Detail

values

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

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

valueOf

public static VirtualMachine.State 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

toString

public String toString()
Overrides:
toString in class Enum<VirtualMachine.State>

fromValue

public static VirtualMachine.State fromValue(String state)


Copyright © 2009-2012 jclouds. All Rights Reserved.