controls-kt/controls-xodus
Atos1337 23e821d2c2 Merge remote-tracking branch 'origin/victorsam/finish-hostory-access' into victorsam/finish-hostory-access
# Conflicts:
#	controls-mongo/build.gradle.kts
#	controls-mongo/src/main/kotlin/ru/mipt/npm/controls/mongo/connections.kt
#	controls-xodus/src/main/kotlin/ru/mipt/npm/controls/xodus/connections.kt
#	controls-xodus/src/main/kotlin/ru/mipt/npm/controls/xodus/util/queries.kt
#	demo/car/src/main/kotlin/ru/mipt/npm/controls/demo/car/VirtualCarController.kt
2022-01-15 16:01:50 +03:00
..
src Update propertyHistoryTest for xodus 2022-01-15 16:00:23 +03:00
build.gradle.kts Refactor synchronous storage api 2022-01-14 22:00:52 +03:00
README.md Refactor synchronous storage api 2022-01-14 22:00:52 +03:00

Description

This module allows you to store DeviceMessages from certain DeviceManager or MagixMessages from magix server in xodus database.

Usage

All usage examples can be found in VirtualCarController.

Storage from Device Manager

Just call connectMongo. For more details, you can see comments in source code

Storage from Magix Server

Just pass such lambda as parameter to startMagixServer:

{ flow ->
    // some code
    storeInXodus(flow)
    // some code
}

For more details, you can see comments in source code