Public Member Functions | |
ComponentStates | getCurrentState () |
void | setState (ComponentStates newState) throws ComponentLifecycleException |
String | getName (ComponentStates corbaStateObj) |
ComponentStates alma.acs.component.ComponentStateManager.getCurrentState | ( | ) |
Returns the current state of the component
Implemented in alma.acs.container.ComponentStateManagerImpl.
Referenced by alma.acs.component.ComponentImplBase.componentState().
String alma.acs.component.ComponentStateManager.getName | ( | ComponentStates | corbaStateObj | ) |
It seemed not worth it to create Java enum classes following the standard patterns, since the component has to return the CORBA state class anyway. Nonetheless, getting the state names for logging etc. might be useful.
corbaStateObj | the int-based corba enum class |
Implemented in alma.acs.container.ComponentStateManagerImpl.
void alma.acs.component.ComponentStateManager.setState | ( | ComponentStates | newState | ) | throws ComponentLifecycleException |
Requests to change the state. To be called only by the component (the container will use a separate method in the implementation class to allow for different transition validation rules)
newState | the new component state |
ComponentLifecycleException | if the transition from the current state to the new state is not allowed. |
Implemented in alma.acs.container.ComponentStateManagerImpl.