Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] DataService questions

Hi Scott,


The Paho version we use in Kura did not implement reconnects.

This is why we had to implement this in the DataService.

The logic is very simple. If Paho gets disconnected the DataService will start a reconnect task after an initial random delay and then periodically. These intervals are part of the DataService configuration [1].


The other benefit is offline buffering. Our Paho version did not implement it. This is configurable too. Please take a look to [1] and the DataService Javadoc [2].


To send a contribution just create a Github pull request against the Kura develop branch.


[1] https://github.com/eclipse/kura/blob/develop/kura/org.eclipse.kura.core/OSGI-INF/metatype/org.eclipse.kura.data.DataService.xml


[2] http://download.eclipse.org/kura/releases/2.0.0/docs/apidocs/


Ciao,

  Cristiano


Da: kura-dev-bounces@xxxxxxxxxxx <kura-dev-bounces@xxxxxxxxxxx> per conto di Lewis, ScottX <scottx.lewis@xxxxxxxxx>
Inviato: venerdì 16 settembre 2016 18.18.09
A: Kura Developers mailing list
Oggetto: Re: [kura-dev] DataService questions
 
Hi Christiano,

<stuff deleted>

Hi Scott,

  We are interested in any useful contribution covering "dark" areas of Kura.

The DataTransportService implementation of Kura is just a thin layer on top of Paho.


It is not that useful with the Paho version currently distributed with Kura but I assume you have a specific use case in mind.


[Scott]  Yes, we do.  But you make it sound as if things might be changing (wrt DataTransportService) in future versions of Paho and/or Kura.   Or am I misinterpreting?


I would tap at least to the DataService that implements auto reconnects and offline buffering of messages.


[Scott]  Ok, thanks.   One question about auto reconnects:   Does this use/extend the Paho auto-reconnection logic, or does it do something other/different?   Are there any pointers (docs and/or source refs) about how the auto-reconnection logic in DataService works?


Thanks,


Scott



Back to the top