Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::container::ComponentStateManagerImpl Class Reference

List of all members.

Public Member Functions

 ComponentStateManagerImpl (String componentName, Logger logger)
synchronized ComponentStates getCurrentState ()
String getName (ComponentStates corbaStateObj)
synchronized void setState (ComponentStates newState) throws ComponentLifecycleException

Package Functions

synchronized void setStateByContainer (ComponentStates newState) throws ComponentLifecycleException

Private Attributes

ComponentStates m_currentState
Logger m_logger
String m_componentName

Detailed Description

Manages the state of a component, enforcing state transition rules. An instance of ComponentStateManager is logically part of the container, but the component can access it and request a state change.

Author:
hsommer created Oct 22, 2003 5:03:07 PM


Constructor & Destructor Documentation

alma::acs::container::ComponentStateManagerImpl::ComponentStateManagerImpl String  componentName,
Logger  logger
[inline]
 


Member Function Documentation

synchronized ComponentStates alma::acs::container::ComponentStateManagerImpl::getCurrentState  )  [inline]
 

{}

See also:
alma.acs.component.ComponentStateManager::getCurrentState()

String alma::acs::container::ComponentStateManagerImpl::getName ComponentStates  corbaStateObj  )  [inline]
 

{}

See also:
alma.acs.component.ComponentStateManager::getName(alma.ACS.ComponentStates)

synchronized void alma::acs::container::ComponentStateManagerImpl::setState ComponentStates  newState  )  throws ComponentLifecycleException [inline]
 

{}

See also:
alma.acs.component.ComponentStateManager::setState(alma.ACS.ComponentStates)

synchronized void alma::acs::container::ComponentStateManagerImpl::setStateByContainer ComponentStates  newState  )  throws ComponentLifecycleException [inline, package]
 

To be called by the container only (it's not part of the interface).

TODO: figure out state transition rules. Perhaps allow the currently discussed set of rules only in this method, and restrict component-initiated transitions (through method setState) to those involving the ERROR state.

See also:
alma.acs.component.ComponentStateManager::setState(alma.ACS.ComponentStates)


Member Data Documentation

String alma::acs::container::ComponentStateManagerImpl::m_componentName [private]
 

ComponentStates alma::acs::container::ComponentStateManagerImpl::m_currentState [private]
 

Logger alma::acs::container::ComponentStateManagerImpl::m_logger [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:27 2009 for ACS Java API by doxygen 1.3.8