org.jclouds.lifecycle
Enum LifeCycle.Status

java.lang.Object
  extended by java.lang.Enum<LifeCycle.Status>
      extended by org.jclouds.lifecycle.LifeCycle.Status
All Implemented Interfaces:
Serializable, Comparable<LifeCycle.Status>
Enclosing interface:
LifeCycle

public static enum LifeCycle.Status
extends Enum<LifeCycle.Status>

States that are possible for a component.


Enum Constant Summary
ACTIVE
          The component is active / processing I/O events.
INACTIVE
          The component is inactive / has not been started
SHUT_DOWN
          The component has shut down.
SHUTDOWN_REQUEST
          Shutdown of the component has been requested.
SHUTTING_DOWN
          The component is shutting down.
 
Method Summary
static LifeCycle.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LifeCycle.Status[] 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

INACTIVE

public static final LifeCycle.Status INACTIVE
The component is inactive / has not been started


ACTIVE

public static final LifeCycle.Status ACTIVE
The component is active / processing I/O events.


SHUTDOWN_REQUEST

public static final LifeCycle.Status SHUTDOWN_REQUEST
Shutdown of the component has been requested.


SHUTTING_DOWN

public static final LifeCycle.Status SHUTTING_DOWN
The component is shutting down.


SHUT_DOWN

public static final LifeCycle.Status SHUT_DOWN
The component has shut down.

Method Detail

values

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

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

valueOf

public static LifeCycle.Status 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.