|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CloudCallService
The CloudCallService provides helper methods to make a request/response conversation with the remote server.
The call methods deal with the logic required to build request messages and track the corresponding responses.
All call methods are synchronous; after a request is issued, the implementation will wait for the response
to arrive or a timeout occurs. The timeout interval used by the service is configurable as a property
of the DataTransportService.
| Method Summary | |
|---|---|
EsfResponsePayload |
call(String appId,
String appTopic,
EsfPayload appPayload,
int timeout)
Sends a local (to this device) request to a Cloudlet application with the given application ID waiting for the response. |
EsfResponsePayload |
call(String deviceId,
String appId,
String appTopic,
EsfPayload appPayload,
int timeout)
Sends a request to a remote server or device identified by the specified deviceId and targeting the given application ID waiting for the response. |
boolean |
isConnected()
Returns true if the underlying DataService is currently connected to the remote server. |
| Method Detail |
|---|
EsfResponsePayload call(String appId,
String appTopic,
EsfPayload appPayload,
int timeout)
throws EsfConnectException,
EsfTimeoutException,
EsfStoreException,
EsfException
appId - appTopic - appPayload - the application specific payload of an EsfRequestPayload.timeout -
EsfConnectException
EsfTimeoutException
EsfStoreException
EsfException
EsfResponsePayload call(String deviceId,
String appId,
String appTopic,
EsfPayload appPayload,
int timeout)
throws EsfConnectException,
EsfTimeoutException,
EsfStoreException,
EsfException
deviceId - appId - appTopic - appPayload - timeout -
EsfConnectException
EsfTimeoutException
EsfStoreException
EsfExceptionboolean isConnected()
DataService is currently connected to the remote server.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||