3 This plugin logs properties in a sqlite database file. It can also be used as a source to
4 play back previous logs to AMB.
6 To enable the Database plugin, run cmake and enable the database_plugin option:
8 cmake -Ddatabase_plugin=On ..
10 To use the Database plugin, add the following to the "sources" array in /etc/ambd/config:
14 "path" : "/usr/lib/automotive-message-broker/databasesinkplugin.so",
15 "databaseFile" : "storage",
16 "bufferLength" : "100",
17 "properties" : "{ 'properties' : ['VehicleSpeed','EngineSpeed'] }",
18 "startOnLoad" : "false",
19 "playbackOnLoad" : "false",
20 "playbackMultiplier" : "1",
24 Configuration Key Definitions:
27 name of plugin. This key is not used by the plugin at this moment.
30 path to plugin on the filesystem.
38 Number of logged items to keep in memory before flushing to the database file.
39 A higher number will reduce writes and improve performance.
44 List of properties to log.
47 Start logging when AMB starts.
52 Play back the specified log (see "databaseFile") when AMB starts.
57 Speed at which to play back the specified log.
65 Frequency in Hz in which the database will write contents. Only the newest values
66 will be written. Other values are discarded. If bufferLength is not full,the
67 database will not be written to until it is.
75 File to be used to log or play back.
77 corresponds to configuration option "databaseFile".
83 Indicates whether logging to the database is occuring. Set to true to turn on
84 logging. Set to false to stop logging. This property is mutually exclusive with
85 the DatabasePlayback property. Setting this to true will turn off playback.
87 Default: false when configuration option "startOnLoad" is not set.
93 Indicates whether database playback is occuring. Set to true to turn on playback.
94 Set to false to turn off playback. This property is mutually exclusive with the
95 DatabaseLogging property. Setting this to true will turn off logging.
97 Default: false when configuration option "playbackOnLoad" is not set.