Package com.adaptris.core
Class StartedState
- java.lang.Object
-
- com.adaptris.core.ComponentStateImp
-
- com.adaptris.core.StartedState
-
- All Implemented Interfaces:
ComponentState
,java.io.Serializable
public final class StartedState extends ComponentStateImp
Represents started
StateManagedComponent
s and implements permitted transitions.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ComponentStateImp
log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartedState
getInstance()
Returns the single instance of this class.void
requestClose(StateManagedComponent comp)
Perform operations required to movecomp
from this state toClosedState
, if possible.void
requestInit(StateManagedComponent comp)
Perform operations required to movecomp
from this state toInitialisedState
, if possible.void
requestStop(StateManagedComponent comp)
Perform operations required to movecomp
from this state toStoppedState
, if possible.-
Methods inherited from class com.adaptris.core.ComponentStateImp
requestRestart, requestStart, toString
-
-
-
-
Method Detail
-
requestStop
public void requestStop(StateManagedComponent comp)
Description copied from interface:ComponentState
Perform operations required to move
comp
from this state toStoppedState
, if possible.- Specified by:
requestStop
in interfaceComponentState
- Overrides:
requestStop
in classComponentStateImp
- Parameters:
comp
- theStateManagedComponent
to manipulate- See Also:
(com.adaptris.core.StateManagedComponent)
-
requestClose
public void requestClose(StateManagedComponent comp)
Description copied from interface:ComponentState
Perform operations required to move
comp
from this state toClosedState
, if possible.- Specified by:
requestClose
in interfaceComponentState
- Overrides:
requestClose
in classComponentStateImp
- Parameters:
comp
- theStateManagedComponent
to manipulate- See Also:
(com.adaptris.core.StateManagedComponent)
-
requestInit
public void requestInit(StateManagedComponent comp) throws CoreException
Description copied from interface:ComponentState
Perform operations required to move
comp
from this state toInitialisedState
, if possible.- Specified by:
requestInit
in interfaceComponentState
- Overrides:
requestInit
in classComponentStateImp
- Parameters:
comp
- theStateManagedComponent
to manipulate- Throws:
CoreException
- wrapping any underlying exceptions- See Also:
#requestInit(com.adaptris.core.StateManagedComponent)
-
getInstance
public static StartedState getInstance()
Returns the single instance of this class.
- Returns:
- the single instance of this class
-
-