public enum LifecycleState extends Enum<LifecycleState>
Enum Constant and Description |
---|
DESTROYED |
DESTROYING |
FAILED |
INITIALIZED |
INITIALIZING |
MUST_DESTROY
Deprecated.
Unused. Will be removed in Tomcat 9.0.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 9.0.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 |
---|---|
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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAvailable()
true
for any component in any of the following states:
true
if the component is available for use,
otherwise false
public String getLifecycleEvent()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.