Package org.jclouds.lifecycle
Enum LifeCycle.Status
- java.lang.Object
-
- java.lang.Enum<LifeCycle.Status>
-
- 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
Enum Constants Enum Constant Description ACTIVE
The component is active / processing I/O events.INACTIVE
The component is inactive / has not been startedSHUT_DOWN
The component has shut down.SHUTDOWN_REQUEST
Shutdown of the component has been requested.SHUTTING_DOWN
The component is shutting down.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 nameNullPointerException
- if the argument is null
-
-