public interface CloudService
DataService providing add-on
features over the management of the transport layer.
In addition to simple publish/subscribe, the Cloud Service API simplifies the implementation of more complex
interaction flows like request/response or remote resource management. Cloud Service abstracts the
developers from the complexity of the transport protocol and payload format used in the communication.CloudClient API or by extending the Cloudlet class.
Cloudlet simplifies the interactions with remote servers providing a servlet-like API
to implement request and response flows and remote resource management.| Modifier and Type | Method and Description |
|---|---|
String[] |
getCloudApplicationIdentifiers()
Returns the application identifiers for which a CloudClient instance was created.
|
boolean |
isConnected()
Returns true if the underlying
DataService is currently connected to the remote server. |
CloudClient |
newCloudClient(String appId)
Returns a new instance of the CloudClient for the given application Id.
|
CloudClient newCloudClient(String appId) throws EsfException
CloudClient.release() method during the bundle deactivation phase.
CloudClient.release() method is called.
CloudClientListener#connectionRestored callback method
in the CloudCallbackHandler to restore the subscriptions it needs.appId - A String object specifying a unique application ID.EsfExceptionString[] getCloudApplicationIdentifiers()
boolean isConnected()
DataService is currently connected to the remote server.Copyright © 2013. All Rights Reserved.