Package com.adaptris.core
Interface ComponentState
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ClosedState,ComponentStateImp,InitialisedState,StartedState,StoppedState
public interface ComponentState extends java.io.SerializableDefines the state transition requests that can be made to a
StateManagedComponent. Concrete implementations represent an actual state and permitted transitions from that state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrequestClose(StateManagedComponent comp)Perform operations required to movecompfrom this state toClosedState, if possible.voidrequestInit(StateManagedComponent comp)Perform operations required to movecompfrom this state toInitialisedState, if possible.voidrequestRestart(StateManagedComponent comp)Perform operations required to restart thecomp.voidrequestStart(StateManagedComponent comp)Perform operations required to movecompfrom this state toStartedState, if possible.voidrequestStop(StateManagedComponent comp)Perform operations required to movecompfrom this state toStoppedState, if possible.
-
-
-
Method Detail
-
requestInit
void requestInit(StateManagedComponent comp) throws CoreException
Perform operations required to move
compfrom this state toInitialisedState, if possible.- Parameters:
comp- theStateManagedComponentto manipulate- Throws:
CoreException- wrapping any underlying exceptions
-
requestStart
void requestStart(StateManagedComponent comp) throws CoreException
Perform operations required to move
compfrom this state toStartedState, if possible.- Parameters:
comp- theStateManagedComponentto manipulate- Throws:
CoreException- wrapping any underlying exceptions
-
requestStop
void requestStop(StateManagedComponent comp)
Perform operations required to move
compfrom this state toStoppedState, if possible.- Parameters:
comp- theStateManagedComponentto manipulate
-
requestClose
void requestClose(StateManagedComponent comp)
Perform operations required to move
compfrom this state toClosedState, if possible.- Parameters:
comp- theStateManagedComponentto manipulate
-
requestRestart
void requestRestart(StateManagedComponent comp) throws CoreException
Perform operations required to restart the
comp. Differs from start in that underlying components which are in theStartedStatewill be stopped, closed, inited and started.- Parameters:
comp- theStateManagedComponentto manipulate- Throws:
CoreException- wrapping any underlying exceptions
-
-