

Public Member Functions | |
| void | initialize (ContainerServices containerServices) |
| void | execute () |
| void | cleanUp () |
| void | aboutToAbort () |
| ComponentStates | componentState () |
| String | name () |
| String | sayHello () |
| String | sayHelloWithParameters (String inString, DoubleHolder inoutDouble, IntHolder outInt) |
Private Attributes | |
| ContainerServices | m_containerServices |
| Logger | m_logger |
A very simple component that does not make use of alma.acs.component.ComponentImplBase.
Javadoc comments have been removed to keep the listing for the tutorial shorter.
| void alma::demo::HelloDemoImpl::HelloDemoImpl::aboutToAbort | ( | ) | [inline] |
Called when due to some error condition the component is about to be forcefully removed some unknown amount of time later (usually not very much...).
The component should make an effort to die as neatly as possible.
Because of its urgency, this method will be called asynchronously to the execution of any other method of the component.
Implements alma::acs::component::ComponentLifecycle.
| void alma::demo::HelloDemoImpl::HelloDemoImpl::cleanUp | ( | ) | [inline] |
Called after the last functional call to the component has finished. The component should then orderly release resources etc.
Implements alma::acs::component::ComponentLifecycle.
References m_logger.
Referenced by aboutToAbort().
| ComponentStates alma::demo::HelloDemoImpl::HelloDemoImpl::componentState | ( | ) | [inline] |
Implements alma::ACS::ACSComponentOperations.
References alma::acs::container::ContainerServices::getComponentStateManager(), and m_containerServices.
| void alma::demo::HelloDemoImpl::HelloDemoImpl::execute | ( | ) | [inline] |
Called after ComponentLifecycle#initialize(ContainerServices) to tell the component that it has to be ready to accept incoming functional calls any time.
Examples:
initialize seemed too early Must be implemented as a synchronous (blocking) call (can spawn threads though).
Implements alma::acs::component::ComponentLifecycle.
References m_logger.
| void alma::demo::HelloDemoImpl::HelloDemoImpl::initialize | ( | ContainerServices | containerServices | ) | [inline] |
Called to give the component time to initialize itself. For instance, the component could retrieve connections, read in configuration files/parameters, build up in-memory tables, ...
Called before execute(). In fact, this method might be called quite some time before functional requests can be sent to the component.
Must be implemented as a synchronous (blocking) call.
| containerServices | callback object for services provided by the container |
Implements alma::acs::component::ComponentLifecycle.
References alma::acs::container::ContainerServicesBase::getLogger(), m_containerServices, and m_logger.
| String alma::demo::HelloDemoImpl::HelloDemoImpl::name | ( | ) | [inline] |
Implements alma::ACS::ACSComponentOperations.
References alma::acs::container::ContainerServicesBase::getName(), and m_containerServices.
| String alma::demo::HelloDemoImpl::HelloDemoImpl::sayHello | ( | ) | [inline] |
Implements alma::demo::HelloDemoOperations.
References m_logger.
| String alma::demo::HelloDemoImpl::HelloDemoImpl::sayHelloWithParameters | ( | String | inString, | |
| DoubleHolder | inoutDouble, | |||
| IntHolder | outInt | |||
| ) | [inline] |
References m_logger.
Referenced by componentState(), initialize(), and name().
Logger alma::demo::HelloDemoImpl::HelloDemoImpl::m_logger [private] |
Referenced by aboutToAbort(), cleanUp(), execute(), initialize(), sayHello(), and sayHelloWithParameters().
1.6.2