org.jclouds.cloudservers.domain
Enum ImageStatus

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

public enum ImageStatus
extends Enum<ImageStatus>

In-flight images will have the status attribute set to SAVING and the conditional progress element (0- 100% completion) will also be returned. Other possible values for the status attribute include: UNKNOWN, PREPARING, ACTIVE QUEUED, FAILED. Images with an ACTIVE status are available for install.

Author:
Adrian Cole

Enum Constant Summary
ACTIVE
           
FAILED
           
PREPARING
           
QUEUED
           
SAVING
           
UNKNOWN
           
UNRECOGNIZED
           
 
Method Summary
static ImageStatus fromValue(String v)
           
 String value()
           
static ImageStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageStatus[] 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

UNRECOGNIZED

public static final ImageStatus UNRECOGNIZED

UNKNOWN

public static final ImageStatus UNKNOWN

ACTIVE

public static final ImageStatus ACTIVE

SAVING

public static final ImageStatus SAVING

PREPARING

public static final ImageStatus PREPARING

QUEUED

public static final ImageStatus QUEUED

FAILED

public static final ImageStatus FAILED
Method Detail

values

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

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

valueOf

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

value

public String value()

fromValue

public static ImageStatus fromValue(String v)


Copyright © 2009-2012 jclouds. All Rights Reserved.