public interface ComponentState
extends java.io.Serializable
Defines the state transition requests that can be made to a
StateManagedComponent
. Concrete implementations represent an
actual state and permitted transitions from that state.
Modifier and Type | Method and Description |
---|---|
void |
requestClose(StateManagedComponent comp)
Perform operations required to move
comp from this
state to ClosedState , if possible. |
void |
requestInit(StateManagedComponent comp)
Perform operations required to move
comp from this
state to InitialisedState , if possible. |
void |
requestRestart(StateManagedComponent comp)
Perform operations required to restart the
comp . |
void |
requestStart(StateManagedComponent comp)
Perform operations required to move
comp from this
state to StartedState , if possible. |
void |
requestStop(StateManagedComponent comp)
Perform operations required to move
comp from this
state to StoppedState , if possible. |
void requestInit(StateManagedComponent comp) throws CoreException
Perform operations required to move comp
from this
state to InitialisedState
, if possible.
comp
- the StateManagedComponent
to manipulateCoreException
- wrapping any underlying exceptionsvoid requestStart(StateManagedComponent comp) throws CoreException
Perform operations required to move comp
from this
state to StartedState
, if possible.
comp
- the StateManagedComponent
to manipulateCoreException
- wrapping any underlying exceptionsvoid requestStop(StateManagedComponent comp)
Perform operations required to move comp
from this
state to StoppedState
, if possible.
comp
- the StateManagedComponent
to manipulatevoid requestClose(StateManagedComponent comp)
Perform operations required to move comp
from this
state to ClosedState
, if possible.
comp
- the StateManagedComponent
to manipulatevoid requestRestart(StateManagedComponent comp) throws CoreException
Perform operations required to restart the comp
. Differs
from start in that underlying components which are in the
StartedState
will be stopped, closed, inited and started.
comp
- the StateManagedComponent
to manipulateCoreException
- wrapping any underlying exceptions