rad 6.2.0
|
#include <dataContext.hpp>
Public Types | |
enum class | TrsHealthState { UNKNOWN , DISABLED , GOOD , BAD } |
Public Member Functions | |
DataContext () | |
virtual | ~DataContext ()=default |
virtual void | Initialize () |
virtual void | ReloadConfig ()=0 |
virtual Config & | GetConfig ()=0 |
virtual void | UpdateDb ()=0 |
virtual OldbInterface & | GetOldbInterface ()=0 |
virtual void | SetTrsHealth (TrsHealthState health) |
virtual TrsHealthState | GetTrsHealth () |
This interface contains mandatory methods used by the rad::Application class to retrieve application specific configuration and access/update CII OLDB.
|
strong |
Enum gets used for methods SetTrsHealth, GetTrsHealth.
rad::DataContext::DataContext | ( | ) |
|
virtualdefault |
Reimplemented in exciiserver::DataContext, and rad::utest::DataContext.
|
pure virtual |
Implemented in exciiserver::DataContext, AppDataContext, and rad::utest::DataContext.
|
pure virtual |
Implemented in exciiserver::DataContext, AppDataContext, and rad::utest::DataContext.
|
virtual |
Gets the TRS health state.
|
virtual |
This method allows to re-initialize the application data context after the configuration has been loaded at startup.
For example the OLDB prefix used by the OldbAsyncWriter may need to be reset after the configuration has been loaded (i.e. after the DataContext and its attributes have been instantiated).
Reimplemented in exciiserver::DataContext.
|
pure virtual |
Reload the configuration from file.
Implemented in exciiserver::DataContext, AppDataContext, and rad::utest::DataContext.
|
virtual |
Stores the TRS health state.
|
pure virtual |
Try to connect to the DB and write the application configuration to the OLDB. This method can also be used to create and initialize the monitoring branch of the OLDB.
Implemented in exciiserver::DataContext, AppDataContext, and rad::utest::DataContext.