alma::ACS::impl::CharacteristicComponentImpl Class Reference

Inheritance diagram for alma::ACS::impl::CharacteristicComponentImpl:
Inheritance graph
[legend]
Collaboration diagram for alma::ACS::impl::CharacteristicComponentImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void initialize (ContainerServices containerServices) throws ComponentLifecycleException
void cleanUp ()
ContainerServices getComponentContainerServices ()
boolean execute (PrioritizedRunnable action)
Property registerProperty (PropertyOperations propertyImpl, Servant propertyServant)
void unregisterProperty (PropertyOperations propertyImpl)
CharacteristicComponentDesc descriptor ()
Any get_characteristic_by_name (String name) throws NoSuchCharacteristic
String[] find_characteristic (String wildcard)
PropertySet get_all_characteristics ()

Protected Attributes

CharacteristicModelImpl characteristicModelImpl
Map properties

Private Attributes

CharacteristicComponentDesc characteristicComponentDesc
ThreadPoolExecutor threadPool

Static Private Attributes

static final int MAX_REQUESTS = 100
static final int MAX_POOL_THREADS = 10

Detailed Description

Implementation of alma.ACS.CharacteristicComponentImpl.

Author:
Matej Sekoranja
Camilo Menay
Cristian Maureira
Version:
$id$

Member Function Documentation

void alma::ACS::impl::CharacteristicComponentImpl::cleanUp (  )  [inline]
CharacteristicComponentDesc alma::ACS::impl::CharacteristicComponentImpl::descriptor (  )  [inline]
boolean alma::ACS::impl::CharacteristicComponentImpl::execute ( PrioritizedRunnable  action  )  [inline]

Execute action. If the maximum pool size or queue size is bounded, then it is possible for incoming execute requests to block. BACIExecutor uses default 'Run' blocking policy: The thread making the execute request runs the task itself. This policy helps guard against lockup.

Parameters:
action action to execute.
Returns:
true on success.

Implements alma::ACS::jbaci::PrioritizedExecutor.

References alma::acs::container::ContainerServicesBase::getThreadFactory(), alma::acs::component::ComponentImplBase::m_containerServices, MAX_POOL_THREADS, MAX_REQUESTS, and threadPool.

String [] alma::ACS::impl::CharacteristicComponentImpl::find_characteristic ( String  wildcard  )  [inline]
PropertySet alma::ACS::impl::CharacteristicComponentImpl::get_all_characteristics (  )  [inline]
Any alma::ACS::impl::CharacteristicComponentImpl::get_characteristic_by_name ( String  name  )  throws NoSuchCharacteristic [inline]
ContainerServices alma::ACS::impl::CharacteristicComponentImpl::getComponentContainerServices (  )  [inline]
void alma::ACS::impl::CharacteristicComponentImpl::initialize ( ContainerServices  containerServices  )  throws ComponentLifecycleException [inline]
Property alma::ACS::impl::CharacteristicComponentImpl::registerProperty ( PropertyOperations  propertyImpl,
Servant  propertyServant 
) [inline]

Register property on this component (and optionally CORBA activate). Registration is needed for property destruction on component destruction.

Parameters:
propertyImpl property implementation.
propertyServant property CORBA servant (e.g. Rx<type>POATie class). If null property will be threated as non-CORBA property and no CORBA activation will be done.
Returns:
CORBA activated property reference, null if propertyServant == null.

References getComponentContainerServices(), alma::acs::component::ComponentImplBase::m_logger, and properties.

Referenced by alma::ACS::SpecialTestMasterComponentImpl::SpecialTestMasterComponentImpl::initialize(), test::jbaci::SimpleMasterComponentImpl::initialize(), alma::TT::SeqComponentImpl::initialize(), alma::TT::PrimComponentImpl::initialize(), alma::PS::PowerSupplyImpl::initialize(), alma::ACSCOURSE_MOUNT::Mount6Impl::Mount6Impl::initialize(), alma::ACS::MasterComponentImpl::MasterComponentImplBase::initialize(), alma::ACS::jbaci::enumProp::test::EnumTestComponentImpl::initialize(), and alma::acsexmplBuilding::BuildingImpl::initialize().

void alma::ACS::impl::CharacteristicComponentImpl::unregisterProperty ( PropertyOperations  propertyImpl  )  [inline]

Unregister property on this component (and optionally CORBA deactivate). Should be called by PropertyImpl.destroy() method.

Parameters:
propertyImpl property implementation.

References alma::acs::container::ContainerServicesBase::deactivateOffShoot(), getComponentContainerServices(), alma::acs::component::ComponentImplBase::m_logger, and properties.

Referenced by alma::ACS::impl::PropertyImpl::destroy().


Member Data Documentation

CharacteristicComponent descriptor (lazy initialization).

Referenced by descriptor().

Number of threads in thread pool.

Referenced by execute().

Number of requests in thread pool (guarantees order of execution).

Referenced by execute().

List of all component properties (needed on component destruction).

Referenced by cleanUp(), descriptor(), initialize(), registerProperty(), and unregisterProperty().

Component thread pool.

Referenced by cleanUp(), and execute().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2