Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] How to use the new "multiple clouds" API

Thanks Dave, that helps!
I had discovered the OSGi console command in the meantime, works like a charm.

Can you advise on what would be the best approach for adding to a Kura gateway a new CloudServiceImpl (potentially coming with its own DataService and MqttTransport "flavors", or simply reusing the default ones).
I wonder if the "default" Cloud/Data/MqttTransport Service impl should be copy/pasted and modified by someone interested in extending them with e.g new parameter they require for configuring the connection to a specific cloud?

Thanks
Benjamin 




Benjamin Cabé – IoT Evangelist

Eclipse Foundation
+33 (0) 619196101
@kartben

De : <kura-dev-bounces@xxxxxxxxxxx> on behalf of "Woodard, David" <david.woodard@xxxxxxxxxxxx>
Répondre à : Kura Developers mailing list <kura-dev@xxxxxxxxxxx>
Date : jeudi 23 juin 2016 19:31
À : Kura Developers mailing list <kura-dev@xxxxxxxxxxx>
Objet : Re: [kura-dev] How to use the new "multiple clouds" API

Hi Benjamin,

Formal documentation is coming, but see below for the highlights. The first release of this feature is obviously not very user friendly. The coming releases of Kura will have the ability to add new “stacks” from the UI. So, stay tuned.

* To create a new stack, login to the OSGi console and enter the command:

kura.cloud:createConfiguration org.eclipse.kura.cloud.CloudService-2

This will create a second instance of the CloudService, DataService, and MqttTransport. If you refresh your web UI, you will see the new tabs for configuring your new connection.

* With multiple stacks, your application will need to specify the correct instance. To do this, add the below to your XML component definition:

target="(kura.service.pid=org.eclipse.kura.cloud.CloudService-2)”

That should be it. If you have any issues, let me know.

Thanks,
--Dave

On Jun 23, 2016, at 09:52, Benjamin Cabé <benjamin@xxxxxxxxxxx> wrote:

Hi,

Are there available examples on how to practically use the new CloudServiceFactory? I couldn't see anywhere where the (Default)CloudServiceFactory is actually used today, so I am wondering what is the suggested way of registering new "stacks"? 
Also, does the UI already support the ability to edit the configuration of the different Cloud/Data/Transport service instances?

Thanks!
Benjamin
_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev

_______________________________________________ kura-dev mailing list kura-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/kura-dev

Back to the top