Class ApplicationLifecycle
java.lang.Object
org.gcube.smartgears.lifecycle.DefaultLifecycle<ApplicationState>
org.gcube.smartgears.lifecycle.application.ApplicationLifecycle
- All Implemented Interfaces:
Lifecycle<ApplicationState>
The
Lifecycle of an application.- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe event qualifier that correspond to theApplicationState.activestate of the service lifecycle.static final StringThe event qualifier that correspond to theApplicationState.failedstate of the service lifecycle.static final StringThe event qualifier that correspond to theApplicationState.startedstate of the service lifecycle.static final StringThe event qualifier that correspond to the stopped state of the service lifecycle. -
Constructor Summary
ConstructorsConstructorDescriptionApplicationLifecycle(org.gcube.common.events.Hub hub, String name) Creates a new application lifecycle. -
Method Summary
Methods inherited from class org.gcube.smartgears.lifecycle.DefaultLifecycle
moveTo, previous, state, tryMoveTo
-
Field Details
-
start
The event qualifier that correspond to theApplicationState.startedstate of the service lifecycle.- See Also:
-
activation
The event qualifier that correspond to theApplicationState.activestate of the service lifecycle.- See Also:
-
stop
The event qualifier that correspond to the stopped state of the service lifecycle.- See Also:
-
failure
The event qualifier that correspond to theApplicationState.failedstate of the service lifecycle.- See Also:
-
-
Constructor Details
-
ApplicationLifecycle
Creates a new application lifecycle.- Parameters:
hub- the event hubname- the lifecycle name
-