Enum Class ApplicationState
- All Implemented Interfaces:
Serializable,Comparable<ApplicationState>,Constable,State<ApplicationState>
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 applications that have completed initialisation and can accept client requests.The permanent state of applications that has encountered some fatal failure and can no longer accept requests.The state of applications that are in the process of initialisation.The state of applications that have 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 ApplicationStateReturns the enum constant of this class with the specified name.static ApplicationState[]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
-
started
The state of applications that are in the process of initialisation. -
active
The state of applications that have completed initialisation and can accept client requests. -
stopped
The state of applications that have can no longer accept requests, even though they may in the future. -
failed
The permanent state of applications that has encountered some fatal failure and can no longer accept requests.
-
-
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<ApplicationState>- Returns:
- the event name
-