|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransportService
Method Summary | |
---|---|
String |
getAgentId(String agentUrl)
Get the id of an agent from its url. |
String |
getAgentUrl(String agentId)
Get the url of an agent from its id. |
List<String> |
getProtocols()
Get the protocols supported by this service |
JSONResponse |
send(String senderId,
String receiver,
JSONRequest request)
Send a message to an other agent |
void |
sendAsync(String senderId,
String receiver,
JSONRequest request,
AsyncCallback<JSONResponse> callback)
Asynchronously Send a message to an other agent |
Method Detail |
---|
String getAgentUrl(String agentId)
agentId
-
String getAgentId(String agentUrl)
agentUrl
-
JSONResponse send(String senderId, String receiver, JSONRequest request) throws Exception
senderId
- request
-
Exception
void sendAsync(String senderId, String receiver, JSONRequest request, AsyncCallback<JSONResponse> callback) throws Exception
senderId
- request
- callback
- with a JSONResponse
Exception
List<String> getProtocols()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |