|
ifw-sup
1.0.0
|
Classes | |
| class | ActionMgr |
| class | ActionsDisable |
| class | ActionsEnable |
| class | ActionsInit |
| class | ActionsSetup |
| class | ActionsStd |
| class | ActivityDisabling |
| class | ActivityEnabling |
| class | ActivityInitialising |
| class | ActivitySettingUp |
| class | AppCmdsImpl |
| class | Config |
| class | DataContext |
| class | DbInterface |
| class | IConfig |
| struct | ReplyConfigData |
| class | StdCmdsImpl |
Functions | |
| template<class EVENT_DONE , class EVENT_ERR > | |
| void | EmulateEvent (const IConfig &config, rad::SMAdapter &sm, const std::string cmd, rad::ThreadActivity *activity) |
Variables | |
| constexpr auto | CONFIG_DEFAULT_PROCNAME = "ocfSupervisor" |
| constexpr auto | CONFIG_DEFAULT_FILENAME = "" |
| constexpr auto | CONFIG_DEFAULT_SCXML_FILENAME = "Supervisor.xml" |
| constexpr auto | CONFIG_DEFAULT_LOGLEVEL = "ERROR" |
| constexpr auto | CONFIG_DEFAULT_DB_ENDPOINT = "127.0.0.1:6379" |
| constexpr int | CONFIG_DEFAULT_DB_TIMEOUT = 2 |
| constexpr auto | CONFIG_DEFAULT_REQ_ENDPOINT = "tcp://*:5578" |
| constexpr auto | CONFIG_DEFAULT_PUB_ENDPOINT = "tcp://*:5568" |
| constexpr unsigned int | CONFIG_DEFAULT_CMD_TOUT = 60000 |
| constexpr auto | CONFIG_COMMAND_INIT = "Init" |
| constexpr auto | CONFIG_COMMAND_ENABLE = "Enable" |
| constexpr auto | CONFIG_COMMAND_DISABLE = "Disable" |
| constexpr auto | CONFIG_COMMAND_SETUP = "Setup" |
| constexpr auto | CONFIG_ENVVAR_DBHOST = "DB_HOST" |
| const short | SRV_STATE_NOT_OPERATIONAL = 1 |
| const short | SRV_STATE_OPERATIONAL = 2 |
| const short | SRV_SUBSTATE_NOTREADY = 1 |
| const short | SRV_SUBSTATE_READY = 2 |
| const short | SRV_SUBSTATE_IDLE = 3 |
| const short | SRV_SUBSTATE_INITIALISING = 4 |
| const short | SRV_SUBSTATE_ENABLING = 5 |
| const short | SRV_SUBSTATE_SETTINGUP = 6 |
| const short | SRV_SUBSTATE_ERROR = 10 |
| const std::string | SRV_STATE_NOT_OPERATIONAL_STR = "NotOperational" |
| const std::string | SRV_STATE_OPERATIONAL_STR = "Operational" |
| const std::string | SRV_STATE_UNAVAILABLE_STR = "Unavailable" |
| const std::string | SRV_SUBSTATE_NOTREADY_STR = "NotReady" |
| const std::string | SRV_SUBSTATE_READY_STR = "Ready" |
| const std::string | SRV_SUBSTATE_IDLE_STR = "Idle" |
| const std::string | SRV_SUBSTATE_INITIALISING_STR = "Initialising" |
| const std::string | SRV_SUBSTATE_ENABLING_STR = "Enabling" |
| const std::string | SRV_SUBSTATE_SETTINGUP_STR = "SettingUp" |
| const std::string | SRV_SUBSTATE_ERROR_STR = "Error" |
| const std::unordered_map< short, std::string > | SrvStateMap |
| const std::unordered_map< std::string, short > | SrvStateStrMap |
| const std::unordered_map< short, std::string > | SrvSubstateMap |
| const std::unordered_map< std::string, short > | SrvSubstateStrMap |
| const std::string | KEY_CONTROL_STATE = "state" |
| const std::string | KEY_CONTROL_SUBSTATE = "substate" |
| const std::string | KEY_CONTROL_STATUS = "status" |
| const std::string | KEY_CONTROL_STATE_STR = "state_str" |
| const std::string | KEY_CONTROL_SUBSTATE_STR = "substate_str" |
| const std::string | KEY_CONFIG_REQ_ENDPOINT = "req_endpoint" |
| const std::string | KEY_CONFIG_PUB_ENDPOINT = "pub_endpoint" |
| const std::string | KEY_CONFIG_SUB_ENDPOINT = "sub_endpoint" |
| const std::string | KEY_CONFIG_EXT_PUB_ENDPOINT = "ext_pub_endpoint" |
| const std::string | KEY_CONFIG_EXT_SUB_ENDPOINT = "ext_sub_endpoint" |
| const std::string | KEY_CONFIG_DB_ENDPOINT = "db_endpoint" |
| const std::string | KEY_CONFIG_DB_TIMEOUT = "db_timeout" |
| const std::string | KEY_CONFIG_SM_SCXML = "scxml" |
| const std::string | KEY_CONFIG_FILENAME = "filename" |
| const std::string | KEY_CONFIG_LOG_LEVEL = "loglevel" |
| const std::string | KEY_CONFIG_SERVER_ID = "server_id" |
| const std::string | KEY_CONFIG_SERVER = "server" |
| const std::string | KEY_CONFIG_COMANDS = "commands" |
| const std::string | KEY_CONFIG_CMDTOUT = "cmdtout" |
| const std::string | KEY_CONFIG_REPLY_TYPE = "reply_ok" |
| const std::string | KEY_CONFIG_REPLY_DELAY = "reply_delay" |
| const std::string | KEY_CONFIG_REPLY_ERR_MSG = "reply_error_msg" |
| void sup::subsim::common::EmulateEvent | ( | const IConfig & | config, |
| rad::SMAdapter & | sm, | ||
| const std::string | cmd, | ||
| rad::ThreadActivity * | activity | ||
| ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
no default value to force user to specify config filename since it overwrites the command line options.
|
constexpr |
|
constexpr |
Default application configuration values.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Application configuration environment variables
| const std::string sup::subsim::common::KEY_CONFIG_CMDTOUT = "cmdtout" |
| const std::string sup::subsim::common::KEY_CONFIG_COMANDS = "commands" |
| const std::string sup::subsim::common::KEY_CONFIG_DB_ENDPOINT = "db_endpoint" |
| const std::string sup::subsim::common::KEY_CONFIG_DB_TIMEOUT = "db_timeout" |
| const std::string sup::subsim::common::KEY_CONFIG_EXT_PUB_ENDPOINT = "ext_pub_endpoint" |
| const std::string sup::subsim::common::KEY_CONFIG_EXT_SUB_ENDPOINT = "ext_sub_endpoint" |
| const std::string sup::subsim::common::KEY_CONFIG_FILENAME = "filename" |
| const std::string sup::subsim::common::KEY_CONFIG_LOG_LEVEL = "loglevel" |
| const std::string sup::subsim::common::KEY_CONFIG_PUB_ENDPOINT = "pub_endpoint" |
| const std::string sup::subsim::common::KEY_CONFIG_REPLY_DELAY = "reply_delay" |
| const std::string sup::subsim::common::KEY_CONFIG_REPLY_ERR_MSG = "reply_error_msg" |
| const std::string sup::subsim::common::KEY_CONFIG_REPLY_TYPE = "reply_ok" |
| const std::string sup::subsim::common::KEY_CONFIG_REQ_ENDPOINT = "req_endpoint" |
| const std::string sup::subsim::common::KEY_CONFIG_SERVER = "server" |
| const std::string sup::subsim::common::KEY_CONFIG_SERVER_ID = "server_id" |
| const std::string sup::subsim::common::KEY_CONFIG_SM_SCXML = "scxml" |
| const std::string sup::subsim::common::KEY_CONFIG_SUB_ENDPOINT = "sub_endpoint" |
| const std::string sup::subsim::common::KEY_CONTROL_STATE = "state" |
| const std::string sup::subsim::common::KEY_CONTROL_STATE_STR = "state_str" |
| const std::string sup::subsim::common::KEY_CONTROL_STATUS = "status" |
| const std::string sup::subsim::common::KEY_CONTROL_SUBSTATE = "substate" |
| const std::string sup::subsim::common::KEY_CONTROL_SUBSTATE_STR = "substate_str" |
| const short sup::subsim::common::SRV_STATE_NOT_OPERATIONAL = 1 |
| const std::string sup::subsim::common::SRV_STATE_NOT_OPERATIONAL_STR = "NotOperational" |
| const short sup::subsim::common::SRV_STATE_OPERATIONAL = 2 |
| const std::string sup::subsim::common::SRV_STATE_OPERATIONAL_STR = "Operational" |
| const std::string sup::subsim::common::SRV_STATE_UNAVAILABLE_STR = "Unavailable" |
| const short sup::subsim::common::SRV_SUBSTATE_ENABLING = 5 |
| const std::string sup::subsim::common::SRV_SUBSTATE_ENABLING_STR = "Enabling" |
| const short sup::subsim::common::SRV_SUBSTATE_ERROR = 10 |
| const std::string sup::subsim::common::SRV_SUBSTATE_ERROR_STR = "Error" |
| const short sup::subsim::common::SRV_SUBSTATE_IDLE = 3 |
| const std::string sup::subsim::common::SRV_SUBSTATE_IDLE_STR = "Idle" |
| const short sup::subsim::common::SRV_SUBSTATE_INITIALISING = 4 |
| const std::string sup::subsim::common::SRV_SUBSTATE_INITIALISING_STR = "Initialising" |
| const short sup::subsim::common::SRV_SUBSTATE_NOTREADY = 1 |
| const std::string sup::subsim::common::SRV_SUBSTATE_NOTREADY_STR = "NotReady" |
| const short sup::subsim::common::SRV_SUBSTATE_READY = 2 |
| const std::string sup::subsim::common::SRV_SUBSTATE_READY_STR = "Ready" |
| const short sup::subsim::common::SRV_SUBSTATE_SETTINGUP = 6 |
| const std::string sup::subsim::common::SRV_SUBSTATE_SETTINGUP_STR = "SettingUp" |
| const std::unordered_map<short, std::string> sup::subsim::common::SrvStateMap |
| const std::unordered_map<std::string, short> sup::subsim::common::SrvStateStrMap |
| const std::unordered_map<short, std::string> sup::subsim::common::SrvSubstateMap |
| const std::unordered_map<std::string, short> sup::subsim::common::SrvSubstateStrMap |