The sk.ipesoft.sgcom.dataStorage module contains the DataStorage database entities and the DataStorageImpl, which encapsulates operations over this database. Its interface is divided into two parts - for writing and for selecting.
The saveCollectedData method is used at the end of each meter data collection - successful or unsuccessful - to save the collected data and the errors recorded.
The saveSnMapping method is called by JdlmsWrapper when it connects to a new type of meter and gets a new list of COSEM objects in the meter so that it can use it by calling getSnMapping when it reconnects to save time.
The takeCollectedData call creates a new transaction of reading and deleting collected data for a specific DataPoint on a specific logical device. The entire procedure is described in Chapter 1.3, point 7. The interface for managing the transaction is represented by an object of type CollectedData. If the metering central confirms the data reading, the call removeFromStorage removes the data from the DataStorage database. If the download fails, it is signaled by the call rollbackRemovalFromStorage and the data remains in the database.



Napíšte komentár