How to create customized kura components and use them in Wire graph [message #1801114] |
Mon, 14 January 2019 03:40  |
Eclipse User |
|
|
|
Hi,
I just learning in able to be able to use Kura in my project and I'm unable to connect the dots here. So, I followed the hello world example [1] and was able to see log messages getting printed inside eclipse using the OSGi Framework-Kura_Emulator_OSX . After that, I wanted to start using Kura wires to develop my solution, so, I'm following the How to use DB Store and Filter components in Kura Wires tutorial here [2]. I completed the graph (without the cloud part for simplicity) and clicked Apply . The wires are now blinking which indicates that the data (envelopes) are moving between my 3 connected components (timer -> opcua-driver -> logger). Now, how do I deploy this application that I created using Kura Wires? how to see its output?
Note : I checked my [b] /var/log/ [\b] folder and I don't see neither the kura.log file nor kura-console.log files.
[1]http://eclipse.github.io/kura/dev/hello-example.html
[2]http://eclipse.github.io/kura/wires/kura-wires-dbfilter.html
[Updated on: Tue, 15 January 2019 02:44] by Moderator
|
|
|
|
|
Re: How to run a Wire Graph [message #1801300 is a reply to message #1801165] |
Wed, 16 January 2019 05:47  |
Eclipse User |
|
|
|
Hi Khaled
About your questions:
1) I'm a bit confused about what your are trying to do. If I understand right, you would like to reuse the wire graph you have created in other Kura deployments. The Wire Graph configuration is saved as any other configuration and can be retrieved and restored via the settings tab downloading and restoring snapshots. It will also configure the rest of the instance. If you want to isolate the WireGraphService, you can find it in the snapshot (it's an XML), but you must keep in mind that the components used by the WireGraphService must exist also.
2) I don't know any specific manual and I've found it a bit hard in the beginning also, but there is a way to provide your own Wire components. I suggest you to learn back from the current Wire components. Any of them would be a good template for a new one you create. The simplest yet more complete in my opinion is Fifo. Basically you must declare in the OSGI-INF file the interfaces for WireComponents and bind to the WireHelperService. In Java you must implement such interfaces. Once you install the bundle in Kura, it will be mapped and appear as new block in the Wire Graph.
|
|
|
Powered by
FUDForum. Page generated in 0.30236 seconds