

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 |
Implementation of alma.ACS.CharacteristicComponentImpl.
| void alma::ACS::impl::CharacteristicComponentImpl::cleanUp | ( | ) | [inline] |
Reimplemented from alma::acs::component::ComponentImplBase.
Reimplemented in alma::ACS::MasterComponentImpl::MasterComponentImplBase.
References alma::ACS::impl::PropertyImpl::destroy(), alma::acs::component::ComponentImplBase::m_logger, properties, and threadPool.
| 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.
| action | action to execute. |
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] |
References characteristicModelImpl, and alma::ACS::impl::CharacteristicModelImpl::find_characteristic().
| PropertySet alma::ACS::impl::CharacteristicComponentImpl::get_all_characteristics | ( | ) | [inline] |
Implements alma::ACS::CharacteristicModelOperations.
References characteristicModelImpl, alma::ACS::impl::CharacteristicModelImpl::get_all_characteristics(), alma::ACS::impl::CharacteristicModelImpl::lendContainerServices(), and alma::acs::component::ComponentImplBase::m_containerServices.
Referenced by descriptor().
| Any alma::ACS::impl::CharacteristicComponentImpl::get_characteristic_by_name | ( | String | name | ) | throws NoSuchCharacteristic [inline] |
References characteristicModelImpl, alma::ACS::impl::CharacteristicModelImpl::get_characteristic_by_name(), alma::ACS::impl::CharacteristicModelImpl::lendContainerServices(), alma::acs::component::ComponentImplBase::m_containerServices, and alma::acs::component::ComponentImplBase::name().
| ContainerServices alma::ACS::impl::CharacteristicComponentImpl::getComponentContainerServices | ( | ) | [inline] |
Get component container services.
References alma::acs::component::ComponentImplBase::m_containerServices.
Referenced by alma::ACS::impl::CommonPropertyImpl::CommonPropertyImpl(), alma::ACS::impl::PropertyImpl::get_all_characteristics(), alma::ACS::impl::PropertyImpl::get_characteristic_by_name(), alma::ACS::impl::PropertyImpl::PropertyImpl(), alma::ACS::impl::CommonPropertyImpl::registerMonitor(), registerProperty(), alma::ACS::impl::CommonPropertyImpl::unregisterMonitor(), and unregisterProperty().
| void alma::ACS::impl::CharacteristicComponentImpl::initialize | ( | ContainerServices | containerServices | ) | throws ComponentLifecycleException [inline] |
Reimplemented from alma::acs::component::ComponentImplBase.
Reimplemented in alma::ACSCOURSE_MOUNT::Mount6Impl::Mount6Impl, alma::ACS::jbaci::enumProp::test::EnumTestComponentImpl, alma::acsexmplBuilding::BuildingImpl, alma::PS::PowerSupplyImpl, alma::TT::PrimComponentImpl, alma::TT::SeqComponentImpl, test::jbaci::SimpleMasterComponentImpl, alma::ACS::MasterComponentImpl::MasterComponentImplBase, and alma::ACS::SpecialTestMasterComponentImpl::SpecialTestMasterComponentImpl.
References characteristicModelImpl, alma::acs::container::ContainerServicesBase::getCDB(), alma::acs::component::ComponentImplBase::m_containerServices, alma::acs::component::ComponentImplBase::m_instanceName, and properties.
| 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.
| 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. |
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.
| 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().
CharacteristicComponentDesc alma::ACS::impl::CharacteristicComponentImpl::characteristicComponentDesc [private] |
CharacteristicComponent descriptor (lazy initialization).
Referenced by descriptor().
CharacteristicModelImpl alma::ACS::impl::CharacteristicComponentImpl::characteristicModelImpl [protected] |
CharacteristicModel implementation (delegate).
Referenced by find_characteristic(), get_all_characteristics(), get_characteristic_by_name(), and initialize().
final int alma::ACS::impl::CharacteristicComponentImpl::MAX_POOL_THREADS = 10 [static, private] |
Number of threads in thread pool.
Referenced by execute().
final int alma::ACS::impl::CharacteristicComponentImpl::MAX_REQUESTS = 100 [static, private] |
Number of requests in thread pool (guarantees order of execution).
Referenced by execute().
Map alma::ACS::impl::CharacteristicComponentImpl::properties [protected] |
List of all component properties (needed on component destruction).
Referenced by cleanUp(), descriptor(), initialize(), registerProperty(), and unregisterProperty().
ThreadPoolExecutor alma::ACS::impl::CharacteristicComponentImpl::threadPool [private] |
1.6.2