examples.wslauncher6
Interface WebserviceLauncher

All Known Implementing Classes:
WebserviceLauncherImpl

public interface WebserviceLauncher

Service interface to launch agent(s) via webservice. Dependent of the given XML-based control structure one agent migrates to the given list of web service delegates in a sequencial manner resp. agents migrate to the given web service delegates in parallel (see methode launch()).

Version:
$Id: WebserviceLauncher.java 1812 2006-05-22 15:03:32Z jpeters $
Author:
C. Nickel, M. Sommer, J. Peters

Field Summary
static String WHATIS
          The WhatIs entry key for this service.
static String WS_NAME
          Name of the web service to be deployed.
 
Method Summary
 void launch(String xmlControl, String xmlDoc, long docId)
          This method generates a token and stores it in the agent's properties as well as in the syncmap_.
 void response(String answ, String token)
          Checks if the token is a key in the syncmap.
 

Field Detail

WHATIS

public static final String WHATIS
The WhatIs entry key for this service.

See Also:
Constant Field Values

WS_NAME

public static final String WS_NAME
Name of the web service to be deployed.

See Also:
Constant Field Values
Method Detail

launch

public void launch(String xmlControl,
                   String xmlDoc,
                   long docId)
This method generates a token and stores it in the agent's properties as well as in the syncmap_. It launches the agent named in AGENT_. Webservice and agent are synchronized via the token. To connect the request with the answer, the answer is assigned to the token in the syncmap_.


response

public void response(String answ,
                     String token)
Checks if the token is a key in the syncmap. The method then stores the answer under this key and notifies the waiting webservice.

Parameters:
answ - the answer given by the webservice
token - the token to notify the waiting WebserviceLauncher


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.