public enum LifecycleState extends java.lang.Enum<LifecycleState>
Enum Constant and Description |
---|
DESTROYED |
DESTROYING |
FAILED |
INITIALIZED |
INITIALIZING |
MUST_DESTROY
Deprecated.
Unused. Will be removed in Tomcat 8.5.x. The state transition
checking in
LifecycleBase
makes it impossible to use this state. The intended behaviour
can be obtained by implementing Lifecycle.SingleUse . |
MUST_STOP
Deprecated.
Unused. Will be removed in Tomcat 8.5.x. The state transition
checking in
LifecycleBase
makes it impossible to use this state. The intended behaviour
can be obtained by setting the state to
FAILED in
LifecycleBase.startInternal() |
NEW |
STARTED |
STARTING |
STARTING_PREP |
STOPPED |
STOPPING |
STOPPING_PREP |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLifecycleEvent() |
boolean |
isAvailable()
May the public methods other than property getters/setters and lifecycle
methods be called for a component in this state?
|
static LifecycleState |
valueOf(java.lang.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.
|
public static final LifecycleState NEW
public static final LifecycleState INITIALIZING
public static final LifecycleState INITIALIZED
public static final LifecycleState STARTING_PREP
public static final LifecycleState STARTING
public static final LifecycleState STARTED
public static final LifecycleState STOPPING_PREP
public static final LifecycleState STOPPING
public static final LifecycleState STOPPED
public static final LifecycleState DESTROYING
public static final LifecycleState DESTROYED
public static final LifecycleState FAILED
@Deprecated public static final LifecycleState MUST_STOP
LifecycleBase
makes it impossible to use this state. The intended behaviour
can be obtained by setting the state to
FAILED
in
LifecycleBase.startInternal()
@Deprecated public static final LifecycleState MUST_DESTROY
LifecycleBase
makes it impossible to use this state. The intended behaviour
can be obtained by implementing Lifecycle.SingleUse
.public static LifecycleState[] values()
for (LifecycleState c : LifecycleState.values()) System.out.println(c);
public static LifecycleState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isAvailable()
true
for any component in any of the following states:
public java.lang.String getLifecycleEvent()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.