Class ContainerLifecycle
java.lang.Object
org.gcube.smartgears.lifecycle.DefaultLifecycle<ContainerState>
org.gcube.smartgears.lifecycle.container.ContainerLifecycle
- All Implemented Interfaces:
Lifecycle<ContainerState>
The
Lifecycle of the application container.- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe event qualifier that correspond to theContainerState.partActivestate of the container lifecycle.static final StringThe event qualifier that correspond to the failed state of the container lifecycle.static final StringThe event qualifier that correspond to theContainerState.activestate of the container lifecycle.static final StringThe event qualifier that correspond to the pending state of the container lifecycle.static final StringThe event qualifier that correspond to theContainerState.stoppedstate of the container lifecycle.static final StringThe event qualifier that correspond to theContainerState.startedstate of the container lifecycle.static final StringThe event qualifier that correspond to theContainerState.stoppedstate of the container lifecycle. -
Constructor Summary
ConstructorsConstructorDescriptionContainerLifecycle(org.gcube.common.events.Hub hub) Creates an instance with an eventHub. -
Method Summary
Methods inherited from class org.gcube.smartgears.lifecycle.DefaultLifecycle
moveTo, previous, state, tryMoveTo
-
Field Details
-
pending
The event qualifier that correspond to the pending state of the container lifecycle.- See Also:
-
start
The event qualifier that correspond to theContainerState.startedstate of the container lifecycle.- See Also:
-
activation
The event qualifier that correspond to theContainerState.partActivestate of the container lifecycle.- See Also:
-
part_activation
The event qualifier that correspond to theContainerState.activestate of the container lifecycle.- See Also:
-
stop
The event qualifier that correspond to theContainerState.stoppedstate of the container lifecycle.- See Also:
-
shutdown
The event qualifier that correspond to theContainerState.stoppedstate of the container lifecycle.- See Also:
-
failure
The event qualifier that correspond to the failed state of the container lifecycle.- See Also:
-
-
Constructor Details
-
ContainerLifecycle
public ContainerLifecycle(org.gcube.common.events.Hub hub) Creates an instance with an eventHub.- Parameters:
hub- the event hub
-