Package org.apache.catalina
Enum Class LifecycleState
- All Implemented Interfaces:
Serializable,Comparable<LifecycleState>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionComponent has been destroyed.Component is being destroyed.Component has failed.Component has been initialized.Component is being initialized.New component, not yet initialized.Component has started.Component is starting.Component is preparing to start.Component has stopped.Component is stopping.Component is preparing to stop. -
Method Summary
Modifier and TypeMethodDescriptionReturns the lifecycle event associated with this state.booleanMay the public methods other than property getters/setters and lifecycle methods be called for a component in this state?static LifecycleStateReturns the enum constant of this class with the specified name.static LifecycleState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEW
New component, not yet initialized. -
INITIALIZING
Component is being initialized. -
INITIALIZED
Component has been initialized. -
STARTING_PREP
Component is preparing to start. -
STARTING
Component is starting. -
STARTED
Component has started. -
STOPPING_PREP
Component is preparing to stop. -
STOPPING
Component is stopping. -
STOPPED
Component has stopped. -
DESTROYING
Component is being destroyed. -
DESTROYED
Component has been destroyed. -
FAILED
Component has failed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isAvailable
public boolean isAvailable()May the public methods other than property getters/setters and lifecycle methods be called for a component in this state? It returnstruefor any component in any of the following states:- Returns:
trueif the component is available for use, otherwisefalse
-
getLifecycleEvent
Returns the lifecycle event associated with this state.- Returns:
- the lifecycle event, or
null
-