Package org.gcube.smartgears.lifecycle
Interface State<S extends State<S>>
- Type Parameters:
S- the specific state type
- All Known Implementing Classes:
ApplicationState,ContainerState
public interface State<S extends State<S>>
Represents a state in the lifecycle of a service.
- Author:
- Lucio Lelii (ISTI-CNR), Luca Frosini (ISTI-CNR)
-
Method Summary
-
Method Details
-
next
Returns the list of states to which services can transition to from this state.- Returns:
- the states
-
event
String event()Returns the event corresponding to this state. Returns the event associated with this state.- Returns:
- the event name
-
remoteForm
String remoteForm()Returns a serialisation of this state for exchange purposes.- Returns:
- the serialized state
-