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

alma::demo::dyncomp::Client Class Reference

List of all members.

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

Detailed Description

Client demostrates how to activate and release dynamic components

Author:
Alessandro Caproni, 2003, Nov 7


Constructor & Destructor Documentation

alma::demo::dyncomp::Client::Client Logger  logger,
String  managerLoc,
String  clientName
throws Exception [inline]
 

The constructor


Member Function Documentation

void alma::demo::dyncomp::Client::cleanExit  )  [inline]
 

Release all the components before exiting

String alma::demo::dyncomp::Client::getDynamicComponent ComponentSpec  cs,
boolean  markAsDefault
throws AcsJContainerServicesEx [inline]
 

Start a dynamic component

Parameters:
cs The component specification record
markAsDefault marck the specified dynamic component ad default
Returns:
The cUrl of the activated component (nul if the component is not activated)

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

boolean alma::demo::dyncomp::Client::releaseComponent String  url  )  [inline]
 

Release a component The component is specified with its cURL

Parameters:
url The name of the component
Returns:
false in case of error releasing the component or if the component with the specified url is not found


Member Data Documentation

ACSComponent alma::demo::dyncomp::Client::m_components[] [package]
 

String alma::demo::dyncomp::Client::m_cURLs[] [package]
 

final int alma::demo::dyncomp::Client::MAXCOMPONENTS = 32 [private]
 


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