9 #ifndef SERVER_DB_INTERFACE_HPP_
10 #define SERVER_DB_INTERFACE_HPP_
12 #include <rad/oldbAsyncWriter.hpp>
20 const std::string KEY_CONFIG_REQ_ENDPOINT =
"cfg.req.endpoint";
22 const std::string KEY_CONFIG_DB_ENDPOINT =
"cfg.db.endpoint";
23 const std::string KEY_CONFIG_DB_PREFIX =
"cfg.db.prefix";
24 const std::string KEY_CONFIG_DB_TIMEOUT_SEC =
"cfg.db.timeout_sec";
25 const std::string KEY_CONFIG_SM_SCXML =
"cfg.sm.scxml";
26 const std::string KEY_CONFIG_FILENAME =
"cfg.filename";
27 const std::string KEY_CONFIG_LOG_LEVEL =
"cfg.log.level";
28 const std::string KEY_CONFIG_LOG_PROPERTIES =
"cfg.log.properties";
54 DbInterface(
const std::string& prefix, rad::OldbAsyncWriter& runtime_db);
80 void Set(
const std::string& key,
const std::string& value);
87 rad::OldbAsyncWriter& m_runtime_db;
This class provide access to the command line options and the configuration parameters stored in the ...
This class is the write-only interface to the CII OLDB.
DbInterface(const std::string &prefix, rad::OldbAsyncWriter &runtime_db)
Constructor.
void Set(const std::string &key, const std::string &value)
void SetConfig(Config &cfg)
Set the application configuration information in the DB.
void SetControlState(const std::string &value)
DbInterface & operator=(const DbInterface &)=delete
Disable copy constructor.
virtual ~DbInterface()
Destructor.
DbInterface(const DbInterface &)=delete
const std::string KEY_CONFIG_PUB_ENDPOINT
Rad configuration keys.
const std::string KEY_CONFIG_DPM_TIMEOUT_SEC
const std::string KEY_CONFIG_STALE_DAQ_ACQUIRING
const std::string KEY_CONFIG_DATAROOT
const std::string KEY_CONFIG_DPM_PUB_ENDPOINT
const std::string KEY_CONFIG_WORKSPACE
const std::string KEY_CONTROL_STATE
const std::string KEY_CONFIG_INSTRUMENT_ID
const std::string KEY_CONFIG_STALE_DAQ_MERGING
const std::string KEY_CONFIG_DPM_REQ_ENDPOINT