Public Member Functions | Package Attributes

alma.demo.dyncomp.Client Class Reference

Inheritance diagram for alma.demo.dyncomp.Client:
alma.acs.component.client.ComponentClient

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 []

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

Member Function Documentation

void alma.demo.dyncomp.Client.cleanExit (  ) 
String alma.demo.dyncomp.Client.getDynamicComponent ( ComponentSpec  cs,
boolean  markAsDefault 
) throws AcsJContainerServicesEx

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)

References alma.acs.component.client.ComponentClient.getContainerServices(), alma.demo.dyncomp.Client.m_components, and alma.demo.dyncomp.Client.m_cURLs.

boolean alma.demo.dyncomp.Client.hasFreeSlot (  ) 

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 alma.demo.dyncomp.Client.m_components.

boolean alma.demo.dyncomp.Client.releaseComponent ( String  url  ) 

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

References alma.acs.component.client.ComponentClient.getContainerServices(), alma.demo.dyncomp.Client.m_components, and alma.demo.dyncomp.Client.m_cURLs.

Referenced by alma.demo.dyncomp.JDynAct.releaseComponent().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties