public class ComponentStateManagerImpl extends java.lang.Object implements ComponentStateManager
ComponentStateManager is logically part of the container,
but the component can access it and request a state change.| Constructor and Description |
|---|
ComponentStateManagerImpl(java.lang.String componentName,
java.util.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
ComponentStates |
getCurrentState()
Returns the current state of the component
|
java.lang.String |
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.
|
void |
setState(ComponentStates newState)
Requests to change the state.
|
public ComponentStateManagerImpl(java.lang.String componentName,
java.util.logging.Logger logger)
public ComponentStates getCurrentState()
getCurrentState in interface ComponentStateManagerComponentStateManager.getCurrentState()public java.lang.String getName(ComponentStates corbaStateObj)
getName in interface ComponentStateManagercorbaStateObj - the int-based corba enum classalma.acs.component.ComponentStateManager#getName(alma.ACS.ComponentStates)public void setState(ComponentStates newState)
throws ComponentLifecycleException
setState in interface ComponentStateManagernewState - the new component stateComponentLifecycleException - if the transition from the current state to
the new state is not allowed.alma.acs.component.ComponentStateManager#setState(alma.ACS.ComponentStates)