Configuration and property persistence
configreader + propertylogger: reading JSON configuration, persisting the property tree and monitoring active streams.
Modules
| Module | Function |
|---|---|
configreader.ConfigReader | Read-only wrapper: reads configfile.json (getConfiguration()) |
configreader.Config() | Reads configfile.json and returns the configuration dictionary |
configreader.Properties() | Reads the properties file properties.json and returns a dictionary |
propertylogger.run_propertylogger() | Property tree persistence + INIT acknowledgement (Property Logger service) |
datalogger.DataStreamLogger | Monitors active data streams and writes them into the property tree |
imagelogger.ImageStreamLogger | Monitors active image streams and writes them into the property tree |
Usage
from quatm.servers.configreader import ConfigReader
cfg = ConfigReader()
config = cfg.getConfiguration() # Full configuration dictionary