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