Enum Class ContainerState
- All Implemented Interfaces:
Serializable,Comparable<ContainerState>,Constable,State<ContainerState>
The state and state transitions of the lifecycle of an application managed as a gCube service.
- Author:
- Fabio Simeoni
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe state of a container in which all applications are active.The state of a container which has been explicitly shutdown.The state of a container that has not completed initialisation.The state of a container that is in the process of pre authorization.The state of a container in which not all applications are active.The state of a container that is in the process of initialisation.The state of a container in which applications can no longer accept requests, even though they may in the future. -
Method Summary
Modifier and TypeMethodDescriptionevent()Returns the event corresponding to this state.static ContainerStateReturns the enum constant of this class with the specified name.static ContainerState[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.gcube.smartgears.lifecycle.State
next, remoteForm
-
Enum Constant Details
-
notAuthorized
The state of a container that is in the process of pre authorization. -
started
The state of a container that is in the process of initialisation. -
partActive
The state of a container in which not all applications are active. -
active
The state of a container in which all applications are active. -
stopped
The state of a container in which applications can no longer accept requests, even though they may in the future. -
down
The state of a container which has been explicitly shutdown. -
failed
The state of a container that has not completed initialisation.
-
-
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
-
event
Description copied from interface:StateReturns the event corresponding to this state. Returns the event associated with this state.- Specified by:
eventin interfaceState<ContainerState>- Returns:
- the event name
-