Enum ContainerState
- java.lang.Object
-
- java.lang.Enum<ContainerState>
-
- org.gcube.smartgears.lifecycle.container.ContainerState
-
- All Implemented Interfaces:
Serializable,Comparable<ContainerState>,State<ContainerState>
public enum ContainerState extends Enum<ContainerState> implements State<ContainerState>
The state and state transitions of the lifecycle of an application managed as a gCube service.- Author:
- Fabio Simeoni
-
-
Enum Constant Summary
Enum Constants Enum Constant Description activeThe state of a container in which all applications are active.downThe state of a container which has been explicitly shutdown.failedThe state of a container that has not completed initialisation.notAuthorizedThe state of a container that is in the process of pre authorization.partActiveThe state of a container in which not all applications are active.startedThe state of a container that is in the process of initialisation.stoppedThe state of a container in which applications can no longer accept requests, even though they may in the future.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringevent()Returns the event corresponding to this state.static ContainerStatevalueOf(String name)Returns the enum constant of this type with the specified name.static ContainerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.gcube.smartgears.lifecycle.State
next, remoteForm
-
-
-
-
Enum Constant Detail
-
notAuthorized
public static final ContainerState notAuthorized
The state of a container that is in the process of pre authorization.
-
started
public static final ContainerState started
The state of a container that is in the process of initialisation.
-
partActive
public static final ContainerState partActive
The state of a container in which not all applications are active.
-
active
public static final ContainerState active
The state of a container in which all applications are active.
-
stopped
public static final ContainerState stopped
The state of a container in which applications can no longer accept requests, even though they may in the future.
-
down
public static final ContainerState down
The state of a container which has been explicitly shutdown.
-
failed
public static final ContainerState failed
The state of a container that has not completed initialisation.
-
-
Method Detail
-
values
public static ContainerState[] 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 (ContainerState c : ContainerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContainerState 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
-
event
public String event()
Description copied from interface:StateReturns the event corresponding to this state.- Specified by:
eventin interfaceState<ContainerState>- Returns:
- the
-
-