public enum Status extends Enum<Status>
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 Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status INSTANTIATED
public static final Status INITIALIZING
start()
method has been called but not yet completed.public static final Status RUNNING
start()
method has been completed and the component is running.public static final Status STOPPING
stop()
method has been called but has not yet completed.public static final Status TERMINATED
stop()
method has completed and the component has terminated.public static final Status FAILED
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status 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.