ifw-sup  1.0.0
Classes | Enumerations | Functions | Variables
sup::syssup::common Namespace Reference

Classes

class  ActionMgr
 
class  ActionsDisable
 
class  ActionsEnable
 
class  ActionsInit
 
class  ActionsRecover
 
class  ActionsStd
 
class  ActivityDisabling
 
class  ActivityEnabling
 
class  ActivityInitialising
 
class  ActivityRecovering
 
class  AppCmdsImpl
 
class  Config
 
class  DataContext
 
class  DbInterface
 
class  Dispatcher
 
class  Factory
 
class  Generic
 
class  IConfig
 
class  ISubsys
 
class  SingleReplier
 
struct  State
 The State struct. More...
 
class  StdCmdsImpl
 
struct  Subsys
 
struct  SubsysData
 The SubsysData struct. More...
 
class  SubsysFacade
 
struct  SubsystemConfig
 

Enumerations

enum  ScopeEnum : short { ScopeEnum::EXTERNAL = 10, ScopeEnum::INTERNAL = 11 }
 

Functions

template<typename T >
std::ostream & operator<< (typename std::enable_if< std::is_enum< T >::value, std::ostream >::type &stream, const T &e)
 
std::string demangle (const char *name)
 

Variables

constexpr auto CONFIG_DEFAULT_PROCNAME = "supSupervisor"
 
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_WAIT_TOUT = 500
 
constexpr unsigned int CONFIG_DEFAULT_CMD_TOUT = 60000
 
constexpr auto CONFIG_ENVVAR_DBHOST = "DB_HOST"
 
constexpr auto KEY_CONTROL_STATE = "state"
 
constexpr auto KEY_CONTROL_SUBSTATE = "substate"
 
constexpr auto KEY_CONTROL_STATUS = "status"
 
constexpr auto KEY_CONTROL_STATE_STR = "state_str"
 
constexpr auto KEY_CONTROL_SUBSTATE_STR = "substate_str"
 
constexpr auto KEY_CONTROL_ESTIMATED_STATE = "estimated_state"
 
constexpr auto KEY_CONTROL_ESTIMATED_SUBSTATE = "estimated_substate"
 
constexpr auto KEY_CONFIG_REQ_ENDPOINT = "req_endpoint"
 
constexpr auto KEY_CONFIG_PUB_ENDPOINT = "pub_endpoint"
 
constexpr auto KEY_CONFIG_DB_ENDPOINT = "db_endpoint"
 
constexpr auto KEY_CONFIG_DB_TIMEOUT = "db_timeout"
 
constexpr auto KEY_CONFIG_SM_SCXML = "scxml"
 
constexpr auto KEY_CONFIG_FILENAME = "filename"
 
constexpr auto KEY_CONFIG_LOG_LEVEL = "loglevel"
 
constexpr auto KEY_CONFIG_SERVER_ID = "server_id"
 
constexpr auto KEY_CONFIG_SERVER = "server"
 
constexpr auto KEY_CONFIG_SUBSYS = "subsystems"
 
constexpr auto KEY_CONFIG_WAITTOUT = "waittout"
 
constexpr auto KEY_CONFIG_CMDTOUT = "cmdtout"
 
constexpr auto KEY_CONFIG_SUBSYS_SCOPE = "scope"
 
constexpr auto KEY_CONFIG_SUBSYS_ACCESS = "access"
 
constexpr auto KEY_CONFIG_SUBSYS_RR_ENDPOINT = "rr_endpoint"
 
constexpr auto KEY_CONFIG_SUBSYS_PS_ENDPOINT = "ps_endpoint"
 
constexpr auto KEY_CONFIG_SUBSYS_TYPE = "type"
 
const std::map< std::string, ScopeEnumScopeMap
 
constexpr auto KEY_STATUS_SUBSYS_STATE = "state"
 
constexpr auto KEY_STATUS_SUBSYS_SUBSTATE = "substate"
 
constexpr auto STATE_UNDEFINED_STR = "Undefined"
 
constexpr auto STATE_NOT_OP_ERROR_STR = "NotOpError"
 
constexpr auto STATE_ERROR_STR = "Error"
 
constexpr auto STATE_OFF_STR = "Off"
 
constexpr auto STATE_NOT_OPERATIONAL_STR = "NotOperational"
 
constexpr auto STATE_OPERATIONAL_STR = "Operational"
 
constexpr auto SUBSTATE_NOTREADY_STR = "NotReady"
 
constexpr auto SUBSTATE_INITIALISING_STR = "Initialising"
 
constexpr auto SUBSTATE_READY_STR = "Ready"
 
constexpr auto SUBSTATE_ENABLING_STR = "Enabling"
 
constexpr auto SUBSTATE_RECOVERING_STR = "Recovering"
 
constexpr auto SUBSTATE_IDLE_STR = "Idle"
 
constexpr auto SUBSTATE_BUSY_STR = "Busy"
 
constexpr auto SUBSTATE_SETTING_UP_STR = "SettingUp"
 
constexpr auto SUBSTATE_NOT_RECORDING_STR = "NotRecording"
 
constexpr auto SUBSTATE_RECORDING_STR = "Recording"
 
constexpr auto SUBSTATE_REC_PAUSED_STR = "RecPaused"
 
constexpr auto KEY_STATUS_SUBSYS_CONNECTION = "connection_status"
 

Enumeration Type Documentation

◆ ScopeEnum

enum sup::syssup::common::ScopeEnum : short
strong
Enumerator
EXTERNAL 
INTERNAL 

Function Documentation

◆ demangle()

std::string sup::syssup::common::demangle ( const char *  name)

◆ operator<<()

template<typename T >
std::ostream& sup::syssup::common::operator<< ( typename std::enable_if< std::is_enum< T >::value, std::ostream >::type &  stream,
const T &  e 
)

Variable Documentation

◆ CONFIG_DEFAULT_CMD_TOUT

constexpr unsigned int sup::syssup::common::CONFIG_DEFAULT_CMD_TOUT = 60000
constexpr

◆ CONFIG_DEFAULT_DB_ENDPOINT

constexpr auto sup::syssup::common::CONFIG_DEFAULT_DB_ENDPOINT = "127.0.0.1:6379"
constexpr

◆ CONFIG_DEFAULT_DB_TIMEOUT

constexpr int sup::syssup::common::CONFIG_DEFAULT_DB_TIMEOUT = 2
constexpr

◆ CONFIG_DEFAULT_FILENAME

constexpr auto sup::syssup::common::CONFIG_DEFAULT_FILENAME = ""
constexpr

no default value to force user to specify config filename since it overwrites the command line options.

◆ CONFIG_DEFAULT_LOGLEVEL

constexpr auto sup::syssup::common::CONFIG_DEFAULT_LOGLEVEL = "ERROR"
constexpr

◆ CONFIG_DEFAULT_PROCNAME

constexpr auto sup::syssup::common::CONFIG_DEFAULT_PROCNAME = "supSupervisor"
constexpr

Default application configuration values.

◆ CONFIG_DEFAULT_PUB_ENDPOINT

constexpr auto sup::syssup::common::CONFIG_DEFAULT_PUB_ENDPOINT = "tcp://*:5568"
constexpr

◆ CONFIG_DEFAULT_REQ_ENDPOINT

constexpr auto sup::syssup::common::CONFIG_DEFAULT_REQ_ENDPOINT = "tcp://*:5578"
constexpr

◆ CONFIG_DEFAULT_SCXML_FILENAME

constexpr auto sup::syssup::common::CONFIG_DEFAULT_SCXML_FILENAME = "Supervisor.xml"
constexpr

◆ CONFIG_DEFAULT_WAIT_TOUT

constexpr unsigned int sup::syssup::common::CONFIG_DEFAULT_WAIT_TOUT = 500
constexpr

◆ CONFIG_ENVVAR_DBHOST

constexpr auto sup::syssup::common::CONFIG_ENVVAR_DBHOST = "DB_HOST"
constexpr

Application configuration environment variables

◆ KEY_CONFIG_CMDTOUT

constexpr auto sup::syssup::common::KEY_CONFIG_CMDTOUT = "cmdtout"
constexpr

◆ KEY_CONFIG_DB_ENDPOINT

constexpr auto sup::syssup::common::KEY_CONFIG_DB_ENDPOINT = "db_endpoint"
constexpr

◆ KEY_CONFIG_DB_TIMEOUT

constexpr auto sup::syssup::common::KEY_CONFIG_DB_TIMEOUT = "db_timeout"
constexpr

◆ KEY_CONFIG_FILENAME

constexpr auto sup::syssup::common::KEY_CONFIG_FILENAME = "filename"
constexpr

◆ KEY_CONFIG_LOG_LEVEL

constexpr auto sup::syssup::common::KEY_CONFIG_LOG_LEVEL = "loglevel"
constexpr

◆ KEY_CONFIG_PUB_ENDPOINT

constexpr auto sup::syssup::common::KEY_CONFIG_PUB_ENDPOINT = "pub_endpoint"
constexpr

◆ KEY_CONFIG_REQ_ENDPOINT

constexpr auto sup::syssup::common::KEY_CONFIG_REQ_ENDPOINT = "req_endpoint"
constexpr

◆ KEY_CONFIG_SERVER

constexpr auto sup::syssup::common::KEY_CONFIG_SERVER = "server"
constexpr

◆ KEY_CONFIG_SERVER_ID

constexpr auto sup::syssup::common::KEY_CONFIG_SERVER_ID = "server_id"
constexpr

◆ KEY_CONFIG_SM_SCXML

constexpr auto sup::syssup::common::KEY_CONFIG_SM_SCXML = "scxml"
constexpr

◆ KEY_CONFIG_SUBSYS

constexpr auto sup::syssup::common::KEY_CONFIG_SUBSYS = "subsystems"
constexpr

◆ KEY_CONFIG_SUBSYS_ACCESS

constexpr auto sup::syssup::common::KEY_CONFIG_SUBSYS_ACCESS = "access"
constexpr

◆ KEY_CONFIG_SUBSYS_PS_ENDPOINT

constexpr auto sup::syssup::common::KEY_CONFIG_SUBSYS_PS_ENDPOINT = "ps_endpoint"
constexpr

◆ KEY_CONFIG_SUBSYS_RR_ENDPOINT

constexpr auto sup::syssup::common::KEY_CONFIG_SUBSYS_RR_ENDPOINT = "rr_endpoint"
constexpr

◆ KEY_CONFIG_SUBSYS_SCOPE

constexpr auto sup::syssup::common::KEY_CONFIG_SUBSYS_SCOPE = "scope"
constexpr

◆ KEY_CONFIG_SUBSYS_TYPE

constexpr auto sup::syssup::common::KEY_CONFIG_SUBSYS_TYPE = "type"
constexpr

◆ KEY_CONFIG_WAITTOUT

constexpr auto sup::syssup::common::KEY_CONFIG_WAITTOUT = "waittout"
constexpr

◆ KEY_CONTROL_ESTIMATED_STATE

constexpr auto sup::syssup::common::KEY_CONTROL_ESTIMATED_STATE = "estimated_state"
constexpr

◆ KEY_CONTROL_ESTIMATED_SUBSTATE

constexpr auto sup::syssup::common::KEY_CONTROL_ESTIMATED_SUBSTATE = "estimated_substate"
constexpr

◆ KEY_CONTROL_STATE

constexpr auto sup::syssup::common::KEY_CONTROL_STATE = "state"
constexpr

◆ KEY_CONTROL_STATE_STR

constexpr auto sup::syssup::common::KEY_CONTROL_STATE_STR = "state_str"
constexpr

◆ KEY_CONTROL_STATUS

constexpr auto sup::syssup::common::KEY_CONTROL_STATUS = "status"
constexpr

◆ KEY_CONTROL_SUBSTATE

constexpr auto sup::syssup::common::KEY_CONTROL_SUBSTATE = "substate"
constexpr

◆ KEY_CONTROL_SUBSTATE_STR

constexpr auto sup::syssup::common::KEY_CONTROL_SUBSTATE_STR = "substate_str"
constexpr

◆ KEY_STATUS_SUBSYS_CONNECTION

constexpr auto sup::syssup::common::KEY_STATUS_SUBSYS_CONNECTION = "connection_status"
constexpr

◆ KEY_STATUS_SUBSYS_STATE

constexpr auto sup::syssup::common::KEY_STATUS_SUBSYS_STATE = "state"
constexpr

◆ KEY_STATUS_SUBSYS_SUBSTATE

constexpr auto sup::syssup::common::KEY_STATUS_SUBSYS_SUBSTATE = "substate"
constexpr

◆ ScopeMap

const std::map<std::string, ScopeEnum> sup::syssup::common::ScopeMap
Initial value:
{
{ "external", ScopeEnum::EXTERNAL },
{ "internal", ScopeEnum::INTERNAL }
}

◆ STATE_ERROR_STR

constexpr auto sup::syssup::common::STATE_ERROR_STR = "Error"
constexpr

◆ STATE_NOT_OP_ERROR_STR

constexpr auto sup::syssup::common::STATE_NOT_OP_ERROR_STR = "NotOpError"
constexpr

◆ STATE_NOT_OPERATIONAL_STR

constexpr auto sup::syssup::common::STATE_NOT_OPERATIONAL_STR = "NotOperational"
constexpr

◆ STATE_OFF_STR

constexpr auto sup::syssup::common::STATE_OFF_STR = "Off"
constexpr

◆ STATE_OPERATIONAL_STR

constexpr auto sup::syssup::common::STATE_OPERATIONAL_STR = "Operational"
constexpr

◆ STATE_UNDEFINED_STR

constexpr auto sup::syssup::common::STATE_UNDEFINED_STR = "Undefined"
constexpr

◆ SUBSTATE_BUSY_STR

constexpr auto sup::syssup::common::SUBSTATE_BUSY_STR = "Busy"
constexpr

◆ SUBSTATE_ENABLING_STR

constexpr auto sup::syssup::common::SUBSTATE_ENABLING_STR = "Enabling"
constexpr

◆ SUBSTATE_IDLE_STR

constexpr auto sup::syssup::common::SUBSTATE_IDLE_STR = "Idle"
constexpr

◆ SUBSTATE_INITIALISING_STR

constexpr auto sup::syssup::common::SUBSTATE_INITIALISING_STR = "Initialising"
constexpr

◆ SUBSTATE_NOT_RECORDING_STR

constexpr auto sup::syssup::common::SUBSTATE_NOT_RECORDING_STR = "NotRecording"
constexpr

◆ SUBSTATE_NOTREADY_STR

constexpr auto sup::syssup::common::SUBSTATE_NOTREADY_STR = "NotReady"
constexpr

◆ SUBSTATE_READY_STR

constexpr auto sup::syssup::common::SUBSTATE_READY_STR = "Ready"
constexpr

◆ SUBSTATE_REC_PAUSED_STR

constexpr auto sup::syssup::common::SUBSTATE_REC_PAUSED_STR = "RecPaused"
constexpr

◆ SUBSTATE_RECORDING_STR

constexpr auto sup::syssup::common::SUBSTATE_RECORDING_STR = "Recording"
constexpr

◆ SUBSTATE_RECOVERING_STR

constexpr auto sup::syssup::common::SUBSTATE_RECOVERING_STR = "Recovering"
constexpr

◆ SUBSTATE_SETTING_UP_STR

constexpr auto sup::syssup::common::SUBSTATE_SETTING_UP_STR = "SettingUp"
constexpr