public class DefaultCamelCloudService extends Object implements CamelCloudService
CamelCloudService
Constructor and Description |
---|
DefaultCamelCloudService(org.apache.camel.CamelContext camelContext) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
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 applicationId)
Returns a new instance of the CloudClient for the given application Id.
|
void |
registerBaseEndpoint(String applicationId,
String baseEndpoint) |
void |
release(String applicationId) |
public DefaultCamelCloudService(org.apache.camel.CamelContext camelContext)
public CloudClient newCloudClient(String applicationId) throws KuraException
CloudService
CloudClient.release()
method during the bundle deactivation phase.
CloudClient.release()
method is called.
CloudClientListener.onConnectionEstablished()
callback method
in the CloudCallbackHandler to restore the subscriptions it needs.newCloudClient
in interface CloudService
applicationId
- A String object specifying a unique application ID.KuraException
public String[] getCloudApplicationIdentifiers()
CloudService
getCloudApplicationIdentifiers
in interface CloudService
public boolean isConnected()
CloudService
DataService
is currently connected to the remote
server.isConnected
in interface CloudService
public void registerBaseEndpoint(String applicationId, String baseEndpoint)
registerBaseEndpoint
in interface CamelCloudService
public void release(String applicationId)
release
in interface CamelCloudService
public void dispose()
Copyright © 2016. All Rights Reserved.