Package org.infinispan.lifecycle
Enum ComponentStatus
- java.lang.Object
-
- java.lang.Enum<ComponentStatus>
-
- org.infinispan.lifecycle.ComponentStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<ComponentStatus>
public enum ComponentStatus extends Enum<ComponentStatus>
Different states a component may be in.- Since:
- 4.0
- Author:
- Manik Surtani
- See Also:
Lifecycle
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED
The component is in a failed state due to a problem with one of the other lifecycle transition phases.INITIALIZING
Thestart()
method has been called but not yet completed.INSTANTIATED
Object has been instantiated, but start() has not been called.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
INSTANTIATED
public static final ComponentStatus INSTANTIATED
Object has been instantiated, but start() has not been called.
-
INITIALIZING
public static final ComponentStatus INITIALIZING
Thestart()
method has been called but not yet completed.
-
RUNNING
public static final ComponentStatus RUNNING
Thestart()
method has been completed and the component is running.
-
STOPPING
public static final ComponentStatus STOPPING
Thestop()
method has been called but has not yet completed.
-
TERMINATED
public static final ComponentStatus TERMINATED
Thestop()
method has completed and the component has terminated.
-
FAILED
public static final ComponentStatus FAILED
The component is in a failed state due to a problem with one of the other lifecycle transition phases.
-
-
Method Detail
-
values
public static ComponentStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ComponentStatus c : ComponentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComponentStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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()
-
-