Differences

This shows you the differences between two versions of the page.

Link to this comparison view

persistence_service_for_the_sddl_core [2019/02/25 17:54] (current)
rodrigopumar created
Line 1: Line 1:
 +====== Persistence Service for the SDDL Core ======
 +The persistence service on the SDDL core is used to populate the database with json messages exchanged with Mobile Hub. It supported receiving and sending message to mobile hubs.
  
 +====== Usage ====== ​
 +For usage you of the project PersistenceServiceSDDL you need:
 +
 +  - Download Faircom [[https://​www.faircom.com/​download-ctreeace|c-treeACE]] and navigate to Faircom folder *\winX64\bin\ace\sql and execute ctreesql.exe or the linux analogue folder and executable.
 +  - Start the gateway with the public IP, port and DDS product (e.g. $ gateway 127.0.0.1 5500 OpenSplice)
 +  - Execute *\winX64\tools\guitools.java\c-treeACEExplorer.jar on Faircom folder to see the database or the linux analogue folder and executable. ​
 +  - Open the project PersistenceServiceSDDL making sure all maven dependencies and lastest contextnet is on the project.
 +  - Run PersistanceService.Java
 +====== The project ====== ​
 +The project has the following structure and the following source java code:
 +
 +{{:​capture.png?​nolink&​400|}}
 + 
 +====== The SDDL Persistance core section ====== ​
 +The blue marked section of the project is the persistence source code.
 +
 +The PersistanceService.Java initializes de processing SDDL core node, and uses the CtreeDatabase.java to persist the information on the CTreeACE database.'​
 +
 +It also uses utils.java to parse the json messages received from the mobile hub.
 +It contains in model all classes that the SDDL can receive from sensors from the mobile hub. All of these classes extend the InformationData.java abstract classes.
 +
 +By running the PersistanceService.java it will initialize the Core, by giving the Server IP to the mobile Hubs, it will be ready to receive and process the json messages exchanged with mobile hub node and persists relevant data on the c-treACE database.
 +====== The simulated mobile Hub for developing purposes ====== ​
 +The red marked section of the project is a client that simulates a MobileHub where the developer can create json messages and send to the PersistanceService. ​
 +By running HelloCoreClient.java after running the PersistanceService.Java it will generate all supported messages to test the persistence and easy the development of new features without needing for a actual mobile hub with sensors that send all types of messages functioning.
 +====== The supported messages ====== ​
 +The black arrow marked section consists of MsgFormats.md that contains the supported json messages it can receive from mobile hub or send it back to mobile. If the developer will change the json format of the message or add additional messages is important to keep this document up to date.
 +
 +====== Video Example ======
 +{{youtube>​epyCRzGag-Y?​medium}}
  • persistence_service_for_the_sddl_core.txt
  • Last modified: 2019/02/25 17:54
  • by rodrigopumar