

Public Member Functions | |
| Client (Logger logger, String managerLoc, String clientName) throws Exception | |
| boolean | hasFreeSlot () |
| String | getDynamicComponent (ComponentSpec cs, boolean markAsDefault) throws AcsJContainerServicesEx |
| boolean | releaseComponent (String url) |
| void | cleanExit () |
Package Attributes | |
| ACSComponent | m_components [] |
| String | m_cURLs [] |
Private Attributes | |
| final int | MAXCOMPONENTS = 32 |
Client demostrates how to activate and release dynamic components
| alma::demo::dyncomp::Client::Client | ( | Logger | logger, | |
| String | managerLoc, | |||
| String | clientName | |||
| ) | throws Exception [inline] |
The constructor
References m_components, m_cURLs, and MAXCOMPONENTS.
| void alma::demo::dyncomp::Client::cleanExit | ( | ) | [inline] |
Release all the components before exiting
References alma::acs::component::client::ComponentClient::getContainerServices(), m_components, m_cURLs, and MAXCOMPONENTS.
Referenced by alma::demo::dyncomp::JDynAct::cleanExit().
| String alma::demo::dyncomp::Client::getDynamicComponent | ( | ComponentSpec | cs, | |
| boolean | markAsDefault | |||
| ) | throws AcsJContainerServicesEx [inline] |
Start a dynamic component
| cs | The component specification record | |
| markAsDefault | marck the specified dynamic component ad default |
References alma::acs::component::client::ComponentClient::getContainerServices(), m_components, m_cURLs, MAXCOMPONENTS, and alma::ACS::ACSComponentOperations::name().
Referenced by alma::demo::dyncomp::JDynAct::startDynamicComponent().
| boolean alma::demo::dyncomp::Client::hasFreeSlot | ( | ) | [inline] |
Check if a free slot exists into the array A free slot has a null value and, as the array is not ordered, may be in every position of the array
References m_components, and MAXCOMPONENTS.
Referenced by alma::demo::dyncomp::JDynAct::startDynamicComponent().
| boolean alma::demo::dyncomp::Client::releaseComponent | ( | String | url | ) | [inline] |
Release a component The component is specified with its cURL
| url | The name of the component |
References alma::acs::component::client::ComponentClient::getContainerServices(), m_components, m_cURLs, and MAXCOMPONENTS.
Referenced by alma::demo::dyncomp::JDynAct::releaseComponent().
Referenced by cleanExit(), Client(), getDynamicComponent(), hasFreeSlot(), and releaseComponent().
String alma::demo::dyncomp::Client::m_cURLs[] [package] |
Referenced by cleanExit(), Client(), getDynamicComponent(), and releaseComponent().
final int alma::demo::dyncomp::Client::MAXCOMPONENTS = 32 [private] |
Referenced by cleanExit(), Client(), getDynamicComponent(), hasFreeSlot(), and releaseComponent().
1.6.2