Package org.infinispan.lifecycle
Enum Class ComponentStatus
- All Implemented Interfaces:
Serializable
,Comparable<ComponentStatus>
,Constable
Different states a component may be in.
- Since:
- 4.0
- Author:
- Manik Surtani
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe component is in a failed state due to a problem with one of the other lifecycle transition phases.Thestart()
method has been called but not yet completed.Object has been instantiated, but start() has not been called.Thestart()
method has been completed and the component is running.Thestop()
method has been called but has not yet completed.Thestop()
method has completed and the component has terminated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static ComponentStatus
Returns the enum constant of this class with the specified name.static ComponentStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANTIATED
Object has been instantiated, but start() has not been called. -
INITIALIZING
Thestart()
method has been called but not yet completed. -
RUNNING
Thestart()
method has been completed and the component is running. -
STOPPING
Thestop()
method has been called but has not yet completed. -
TERMINATED
Thestop()
method has completed and the component has terminated. -
FAILED
The component is in a failed state due to a problem with one of the other lifecycle transition phases.
-
-
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
-
needToDestroyFailedCache
public boolean needToDestroyFailedCache() -
startAllowed
public boolean startAllowed() -
needToInitializeBeforeStart
public boolean needToInitializeBeforeStart() -
stopAllowed
public boolean stopAllowed() -
allowInvocations
public boolean allowInvocations() -
startingUp
public boolean startingUp() -
isTerminated
public boolean isTerminated() -
isStopping
public boolean isStopping()
-