|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.core.cloud.CloudServiceImpl
public class CloudServiceImpl
Constructor Summary | |
---|---|
CloudServiceImpl()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext,
Map<String,Object> properties)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
String[] |
getCloudApplicationIdentifiers()
Returns the application identifiers for which a CloudClient instance was created. |
CloudServiceOptions |
getCloudServiceOptions()
|
DataService |
getDataService()
|
NetworkService |
getNetworkService()
|
PositionService |
getPositionService()
|
SystemAdminService |
getSystemAdminService()
|
SystemService |
getSystemService()
|
void |
handleEvent(org.osgi.service.event.Event event)
|
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 |
onConnectionEstablished()
Notifies that the DataService has established a connection. |
void |
onConnectionLost(Throwable cause)
Notifies that the DataService has unexpectedly disconnected. |
void |
onDisconnected()
Notifies that the DataService has cleanly disconnected. |
void |
onDisconnecting()
Notifies that the DataService is about to cleanly disconnect. |
void |
onMessageArrived(String topic,
byte[] payload,
int qos,
boolean retained)
Notifies a message arrival. |
void |
onMessageConfirmed(int messageId,
String topic)
Confirms message delivery to the broker. |
void |
onMessagePublished(int messageId,
String topic)
Notifies the a message has been published. |
void |
removeCloudClient(CloudClientImpl cloudClient)
|
void |
setDataService(DataService dataService)
|
void |
setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
setNetworkService(NetworkService networkService)
|
void |
setPositionService(PositionService positionService)
|
void |
setSystemAdminService(SystemAdminService systemAdminService)
|
void |
setSystemService(SystemService systemService)
|
void |
unsetDataService(DataService dataService)
|
void |
unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
unsetNetworkService(NetworkService networkService)
|
void |
unsetPositionService(PositionService positionService)
|
void |
unsetSystemAdminService(SystemAdminService systemAdminService)
|
void |
unsetSystemService(SystemService systemService)
|
void |
updated(Map<String,Object> properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloudServiceImpl()
Method Detail |
---|
public void setDataService(DataService dataService)
public void unsetDataService(DataService dataService)
public DataService getDataService()
public void setSystemAdminService(SystemAdminService systemAdminService)
public void unsetSystemAdminService(SystemAdminService systemAdminService)
public SystemAdminService getSystemAdminService()
public void setSystemService(SystemService systemService)
public void unsetSystemService(SystemService systemService)
public SystemService getSystemService()
public void setNetworkService(NetworkService networkService)
public void unsetNetworkService(NetworkService networkService)
public NetworkService getNetworkService()
public void setPositionService(PositionService positionService)
public void unsetPositionService(PositionService positionService)
public PositionService getPositionService()
public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
public void unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
protected void activate(org.osgi.service.component.ComponentContext componentContext, Map<String,Object> properties)
public void updated(Map<String,Object> properties)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
public CloudClient newCloudClient(String applicationId) throws EsfException
CloudService
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.
newCloudClient
in interface CloudService
applicationId
- A String object specifying a unique application ID.
EsfException
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 CloudServiceOptions getCloudServiceOptions()
public void removeCloudClient(CloudClientImpl cloudClient)
public void onConnectionEstablished()
DataServiceListener
onConnectionEstablished
in interface DataServiceListener
public void onDisconnecting()
DataServiceListener
onDisconnecting
in interface DataServiceListener
public void onDisconnected()
DataServiceListener
onDisconnected
in interface DataServiceListener
public void onConnectionLost(Throwable cause)
DataServiceListener
onConnectionLost
in interface DataServiceListener
public void onMessageArrived(String topic, byte[] payload, int qos, boolean retained)
DataServiceListener
onMessageArrived
in interface DataServiceListener
public void onMessagePublished(int messageId, String topic)
DataServiceListener
onMessagePublished
in interface DataServiceListener
public void onMessageConfirmed(int messageId, String topic)
DataServiceListener
onMessageConfirmed
in interface DataServiceListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |