Public Member Functions | |
AlmaSubsystemContext (AlmaSubsystemActions actions, AcsLogger logger, ThreadFactory threadFactory) | |
synchronized void | addAcsStateChangeListener (AcsStateChangeListener listener) |
synchronized AlmaSubsystemStateAbstract | getCurrentTopLevelState () |
synchronized void | initPass1 () throws AcsJIllegalStateEventEx |
synchronized void | initPass2 () throws AcsJIllegalStateEventEx |
synchronized void | reinit () throws AcsJIllegalStateEventEx |
synchronized void | start () throws AcsJIllegalStateEventEx |
synchronized void | stop () throws AcsJIllegalStateEventEx |
synchronized void | shutdownPass1 () throws AcsJIllegalStateEventEx |
synchronized void | shutdownPass2 () throws AcsJIllegalStateEventEx |
synchronized void | error () throws AcsJIllegalStateEventEx |
void | initSubsysPass1 () throws AcsStateActionException |
void | initSubsysPass2 () throws AcsStateActionException |
void | reinitSubsystem () throws AcsStateActionException |
void | shutDownSubsysPass1 () throws AcsStateActionException |
void | shutDownSubsysPass2 () throws AcsStateActionException |
void | cleanUp () |
Public Attributes | |
AvailableState | m_stateAvailable |
ErrorState | m_stateError |
OnlineState | m_stateOnline |
OperationalState | m_stateOperational |
OfflineState | m_stateOffline |
ShutdownState | m_stateShutdown |
ShuttingdownPass1State | m_stateShuttingdownPass1 |
InitializingPass2State | m_stateInitializingPass2 |
InitializingPass1State | m_stateInitializingPass1 |
ReinitializingState | m_stateReinitializing |
PreInitializedState | m_statePreInitialized |
PreShutdownState | m_statePreShutdown |
ShuttingdownPass2State | m_stateShuttingdownPass2 |
Package Functions | |
void | setState (AlmaSubsystemStateAbstract newState, String eventName) |
void | illegalEvent (String stateName, String eventName) throws AcsJIllegalStateEventEx |
void | logTransition (AcsState sourceState, AcsState targetState, String eventName) |
ThreadPoolExecutor | getSharedActivityExecutor () |
The super context class for the AlmaSubsystem state machine.
alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.AlmaSubsystemContext | ( | AlmaSubsystemActions | actions, | |
AcsLogger | logger, | |||
ThreadFactory | threadFactory | |||
) |
References alma.ACS.MasterComponentImpl.statemachine.ShutdownState.activate(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.getCurrentTopLevelState(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.getStateHierarchy(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateAvailable, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateError, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateInitializingPass1, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateInitializingPass2, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateOffline, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateOnline, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateOperational, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_statePreInitialized, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_statePreShutdown, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateReinitializing, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateShutdown, alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateShuttingdownPass1, and alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.m_stateShuttingdownPass2.
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.addAcsStateChangeListener | ( | AcsStateChangeListener | listener | ) |
Registers an object that will be notified about any state change in this state machine.
listener |
Referenced by alma.ACS.MasterComponentImpl.MasterComponentImplBase.initialize().
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.cleanUp | ( | ) |
Final clean-up, must be called before unloading this class. Afterwards it may be in an undefined state.
Referenced by alma.ACS.MasterComponentImpl.MasterComponentImplBase.cleanUp().
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.error | ( | ) | throws AcsJIllegalStateEventEx |
synchronized AlmaSubsystemStateAbstract alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.getCurrentTopLevelState | ( | ) |
ThreadPoolExecutor alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.getSharedActivityExecutor | ( | ) | [package] |
Referenced by alma.ACS.MasterComponentImpl.statemachine.ShuttingdownPass2State.entry(), alma.ACS.MasterComponentImpl.statemachine.ShuttingdownPass1State.entry(), alma.ACS.MasterComponentImpl.statemachine.ReinitializingState.entry(), alma.ACS.MasterComponentImpl.statemachine.InitializingPass2State.entry(), and alma.ACS.MasterComponentImpl.statemachine.InitializingPass1State.entry().
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.illegalEvent | ( | String | stateName, | |
String | eventName | |||
) | throws AcsJIllegalStateEventEx [package] |
Referenced by alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.error(), alma.ACS.MasterComponentImpl.statemachine.OfflineSubStateAbstract.initPass1(), alma.ACS.MasterComponentImpl.statemachine.AvailableSubStateAbstract.initPass1(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.initPass1(), alma.ACS.MasterComponentImpl.statemachine.OfflineSubStateAbstract.initPass2(), alma.ACS.MasterComponentImpl.statemachine.AvailableSubStateAbstract.initPass2(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.initPass2(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.reinit(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.shutdownPass1(), alma.ACS.MasterComponentImpl.statemachine.OfflineSubStateAbstract.shutdownPass2(), alma.ACS.MasterComponentImpl.statemachine.AvailableSubStateAbstract.shutdownPass2(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.shutdownPass2(), alma.ACS.MasterComponentImpl.statemachine.AvailableSubStateAbstract.start(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.start(), alma.ACS.MasterComponentImpl.statemachine.AvailableSubStateAbstract.stop(), and alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.stop().
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.initPass1 | ( | ) | throws AcsJIllegalStateEventEx |
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.initPass2 | ( | ) | throws AcsJIllegalStateEventEx |
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.initSubsysPass1 | ( | ) | throws AcsStateActionException |
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.initSubsysPass2 | ( | ) | throws AcsStateActionException |
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.reinit | ( | ) | throws AcsJIllegalStateEventEx |
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.reinitSubsystem | ( | ) | throws AcsStateActionException |
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.setState | ( | AlmaSubsystemStateAbstract | newState, | |
String | eventName | |||
) | [package] |
References alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.entry(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.getCurrentTopLevelState(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemStateAbstract.getStateHierarchy(), alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.logTransition(), and alma.acs.genfw.runtime.sm.AcsStateChangeListener.stateChangedNotify().
Referenced by alma.ACS.MasterComponentImpl.statemachine.AvailableState.setSubstate().
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.shutdownPass1 | ( | ) | throws AcsJIllegalStateEventEx |
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.shutdownPass2 | ( | ) | throws AcsJIllegalStateEventEx |
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.shutDownSubsysPass1 | ( | ) | throws AcsStateActionException |
void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.shutDownSubsysPass2 | ( | ) | throws AcsStateActionException |
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.start | ( | ) | throws AcsJIllegalStateEventEx |
synchronized void alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.stop | ( | ) | throws AcsJIllegalStateEventEx |
Referenced by alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.AlmaSubsystemContext(), alma.ACS.MasterComponentImpl.statemachine.ShuttingdownPass2State.entry(), alma.ACS.MasterComponentImpl.statemachine.ShuttingdownPass1State.entry(), alma.ACS.MasterComponentImpl.statemachine.ReinitializingState.entry(), alma.ACS.MasterComponentImpl.statemachine.InitializingPass2State.entry(), alma.ACS.MasterComponentImpl.statemachine.InitializingPass1State.entry(), and alma.ACS.MasterComponentImpl.statemachine.AvailableSubStateAbstract.error().
Referenced by alma.ACS.MasterComponentImpl.statemachine.AlmaSubsystemContext.AlmaSubsystemContext(), alma.ACS.MasterComponentImpl.statemachine.ReinitializingState.entry(), alma.ACS.MasterComponentImpl.statemachine.InitializingPass2State.entry(), alma.ACS.MasterComponentImpl.statemachine.OperationalState.stop(), and alma.ACS.MasterComponentImpl.statemachine.OnlineState.stop().