org.jboss.bootstrap.spi.lifecycle
Enum LifecycleState
java.lang.Object
java.lang.Enum<LifecycleState>
org.jboss.bootstrap.spi.lifecycle.LifecycleState
- All Implemented Interfaces:
- Serializable, Comparable<LifecycleState>
public enum LifecycleState
- extends Enum<LifecycleState>
LifecycleState
Describes current state of the Server lifecycle
INSTANCIATED == Instanciated, the initial state of new servers. Never re-enters this state
(so lifecycle event callbacks will never be made here)
PRE_INIT == Just prior to initialization, open to configuration, mutable operations permitted.
In this state no more than once.
INITIALIZED == Initialization completed, mutable operations frozen. In this state
no more than once.
IDLE == Not yet started, or has previously stopped. Awaiting start.
STARTING == In start lifecycle
STARTED == Fully started, in service
STOPPING == In stop lifecycle
STOPPED == Transition state to denote fully stopped before returning to IDLE
- Version:
- $Revision: $
- Author:
- ALR
Method Summary |
static LifecycleState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LifecycleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
INSTANCIATED
public static final LifecycleState INSTANCIATED
PRE_INIT
public static final LifecycleState PRE_INIT
INITIALIZED
public static final LifecycleState INITIALIZED
IDLE
public static final LifecycleState IDLE
STARTING
public static final LifecycleState STARTING
STARTED
public static final LifecycleState STARTED
STOPPING
public static final LifecycleState STOPPING
STOPPED
public static final LifecycleState STOPPED
values
public static LifecycleState[] 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 (LifecycleState c : LifecycleState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LifecycleState 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 JBoss, a division of Red Hat, Inc.. All Rights Reserved.