public enum ComponentStatus extends Enum<ComponentStatus>
Lifecycle
Enum Constant and Description |
---|
FAILED
The component is in a failed state due to a problem with one of the other lifecycle transition phases.
|
INITIALIZING
The
start() method has been called but not yet completed. |
INSTANTIATED
Object has been instantiated, but start() has not been called.
|
RUNNING
The
start() method has been completed and the component is running. |
STOPPING
The
stop() method has been called but has not yet completed. |
TERMINATED
The
stop() method has completed and the component has terminated. |
Modifier and Type | Method and Description |
---|---|
boolean |
allowInvocations() |
boolean |
isStopping() |
boolean |
isTerminated() |
boolean |
needToDestroyFailedCache() |
boolean |
needToInitializeBeforeStart() |
boolean |
startAllowed() |
boolean |
startingUp() |
boolean |
stopAllowed() |
static ComponentStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentStatus INSTANTIATED
public static final ComponentStatus INITIALIZING
start()
method has been called but not yet completed.public static final ComponentStatus RUNNING
start()
method has been completed and the component is running.public static final ComponentStatus STOPPING
stop()
method has been called but has not yet completed.public static final ComponentStatus TERMINATED
stop()
method has completed and the component has terminated.public static final ComponentStatus FAILED
public static ComponentStatus[] values()
for (ComponentStatus c : ComponentStatus.values()) System.out.println(c);
public static ComponentStatus 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 needToDestroyFailedCache()
public boolean startAllowed()
public boolean needToInitializeBeforeStart()
public boolean stopAllowed()
public boolean allowInvocations()
public boolean startingUp()
public boolean isTerminated()
public boolean isStopping()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.