Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Difference between kura.data.DataServiceListener and kura.data.listener.DataServiceListener
Difference between kura.data.DataServiceListener and kura.data.listener.DataServiceListener [message #1763866] Mon, 22 May 2017 10:45 Go to next message
iqbal elfaita is currently offline iqbal elfaitaFriend
Messages: 26
Registered: March 2017
Junior Member
Hello all,

I wanna ask about the different between kura.data.DataServiceListener dan kura.data.listener.DataServiceListener. When I used the kura.data.DataServiceListener it said that "kura.data.DataServiceListener is deprecated" so will it work properly if I used it ?

and if i changed it with kura.data.listener.DataServiceListener will it give me the same fiture ?

Thanks
Iqbal
Re: Difference between kura.data.DataServiceListener and kura.data.listener.DataServiceListener [message #1763875 is a reply to message #1763866] Mon, 22 May 2017 11:58 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 264
Registered: July 2015
Location: Italy
Senior Member
Hi Iqbal,
I would suggest having a look here at the Javadoc: http://download.eclipse.org/kura/docs/api/3.0.0/apidocs/ and http://download.eclipse.org/kura/docs/api/3.0.0/apidocs/org/eclipse/kura/data/DataServiceListener.html
In org.eclipse.kura.data.DataServiceListener it reports that: "Deprecated.
As of org.eclipse.kura.data 1.1.0, use DataService.addDataServiceListener(org.eclipse.kura.data.listener.DataServiceListener) to register a listener to a DataService."

The interface is the same, but comparing the Javadocs you'll see that the expected behaviour is slightly different.

Best regards,
Matteo

[Updated on: Mon, 22 May 2017 11:59]

Report message to a moderator

Re: Difference between kura.data.DataServiceListener and kura.data.listener.DataServiceListener [message #1763901 is a reply to message #1763875] Mon, 22 May 2017 17:54 Go to previous messageGo to next message
iqbal elfaita is currently offline iqbal elfaitaFriend
Messages: 26
Registered: March 2017
Junior Member
Hello Matteo,

Thanks for your helping, its really help me to suggest using addDataServiceListener, now I could implemented the DataService for publishing data from Kura.

Thanks a lot,
Iqbal
Re: Difference between kura.data.DataServiceListener and kura.data.listener.DataServiceListener [message #1789957 is a reply to message #1763866] Fri, 01 June 2018 08:03 Go to previous message
Maneesh Kumar is currently offline Maneesh KumarFriend
Messages: 1
Registered: June 2018
Junior Member
Hi Iqbal Elfaita,

Could you please help me use this "kura.data.listener.DataServiceListener" interface. If you could please explain how you used this in your code then that would be very helpful for me. I'm simply implementing this new interface now but not success-ed and also not sure how to use DataService#addDataServiceListener(org.eclipse.kura.data.listener.DataServiceListener) this method.

Thanks,
Maneesh Kumar
Previous Topic:Developing new kura wire components
Next Topic:influxdb in Eclipse Kura
Goto Forum:
  


Current Time: Sun Sep 23 19:35:59 GMT 2018

Powered by FUDForum. Page generated in 0.01695 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top