examples.wslauncher3
Interface WebserviceLauncher

All Known Implementing Classes:
WebserviceLauncherImpl

public interface WebserviceLauncher


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 wsurl, String method, String[] param)
          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 wsurl,
                   String method,
                   String[] param)
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 a token. To connect the request with the answer, the answer is assigned to the token in the syncmap_.

Parameters:
wsurl - the url of the webservice
method - the method of the webservice which shall be called
param - the parameters which are needed for a call of this method

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 - answer from the agent
token - token for the synchronization of the agent and the webservice launcher


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.