org.jclouds.gogrid.domain
Enum ServerState

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

public enum ServerState
extends Enum<ServerState>

Author:
Adrian Cole

Enum Constant Summary
OFF
           
ON
           
RESTARTING
           
RESTORING
           
SAVING
           
STARTING
           
STOPPING
           
UNRECOGNIZED
           
UPDATING
           
 
Method Summary
static ServerState fromValue(String state)
           
 String toString()
           
 String value()
           
static ServerState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServerState[] 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

ON

public static final ServerState ON

STARTING

public static final ServerState STARTING

OFF

public static final ServerState OFF

STOPPING

public static final ServerState STOPPING

RESTARTING

public static final ServerState RESTARTING

SAVING

public static final ServerState SAVING

RESTORING

public static final ServerState RESTORING

UPDATING

public static final ServerState UPDATING

UNRECOGNIZED

public static final ServerState UNRECOGNIZED
Method Detail

values

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

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

valueOf

public static ServerState 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()

toString

public String toString()
Overrides:
toString in class Enum<ServerState>

fromValue

public static ServerState fromValue(String state)


Copyright © 2009-2012 jclouds. All Rights Reserved.