public final class StoppedState extends ComponentStateImp
Represents stopped StateManagedComponent
s and implements permitted transitions.
log
Modifier and Type | Method and Description |
---|---|
static StoppedState |
getInstance()
Returns the single instance of this class.
|
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 |
requestStart(StateManagedComponent comp)
Perform operations required to move
comp from this
state to StartedState , if possible. |
requestRestart, requestStop, toString
public void requestStart(StateManagedComponent comp) throws CoreException
ComponentState
Perform operations required to move comp
from this
state to StartedState
, if possible.
requestStart
in interface ComponentState
requestStart
in class ComponentStateImp
comp
- the StateManagedComponent
to manipulateCoreException
- wrapping any underlying exceptions(com.adaptris.core.StateManagedComponent)
public void requestClose(StateManagedComponent comp)
ComponentState
Perform operations required to move comp
from this
state to ClosedState
, if possible.
requestClose
in interface ComponentState
requestClose
in class ComponentStateImp
comp
- the StateManagedComponent
to manipulate(com.adaptris.core.StateManagedComponent)
public void requestInit(StateManagedComponent comp) throws CoreException
ComponentState
Perform operations required to move comp
from this
state to InitialisedState
, if possible.
requestInit
in interface ComponentState
requestInit
in class ComponentStateImp
comp
- the StateManagedComponent
to manipulateCoreException
- wrapping any underlying exceptions(com.adaptris.core.StateManagedComponent)
public static StoppedState getInstance()
Returns the single instance of this class.