examples.wslauncher3
Interface DelegationService
- All Known Implementing Classes:
- DelegationServiceImpl
- public interface DelegationService
Method Summary |
String |
delegate(String wsurl,
String method,
Object[] params)
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. |
WHATIS
public static final String WHATIS
- The
WhatIs
entry key for this service.
- See Also:
- Constant Field Values
delegate
public String delegate(String wsurl,
String method,
Object[] params)
- 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.
- Parameters:
wsurl
- the url of the webservice to callmethod
- method to invoke at the webservice
- Returns:
- answ
the answer given by the AGENT_
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 agent2token
- token for the synchronization of delegation service and agent2
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.