ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Classes | Functions | Variables
server Namespace Reference

Classes

class  ActionMgr
 This class is responsible for the life-cycle management of actions and activities. More...
 
class  ActionsStd
 This class contains the implementation of the actions dealing with the standard commands from stdif.xml and the following signals: More...
 
class  Config
 This class provide access to the command line options and the configuration parameters stored in the configuration file. More...
 
class  DataContext
 This class provide access to the application run-time data including the in-memory DB. More...
 
class  DbInterface
 This class is the write-only interface to the CII OLDB. More...
 
class  StdCmdsImpl
 

Functions

std::optional< std::string > MakeStatusString (std::list< scxml4cpp::State * > &&states)
 Make a status string from active states (as returned from scxml4cpp::Executor::getStatus()). More...
 
log4cplus::Logger & GetLogger ()
 

Variables

const std::string KEY_CONFIG_PUB_ENDPOINT = rad::KEY_CONFIG + "pub_endpoint"
 Rad configuration keys. More...
 
const std::string KEY_CONFIG_INSTRUMENT_ID = rad::KEY_CONFIG + "instrument_id"
 
const std::string KEY_CONFIG_DATAROOT = rad::KEY_CONFIG + "dataroot"
 
const std::string KEY_CONFIG_WORKSPACE = rad::KEY_CONFIG + "daq/workspace"
 
const std::string KEY_CONFIG_STALE_DAQ_ACQUIRING = rad::KEY_CONFIG + "daq/stale_acquiring_hours"
 
const std::string KEY_CONFIG_STALE_DAQ_MERGING = rad::KEY_CONFIG + "daq/stale_merging_hours"
 
const std::string KEY_CONFIG_DPM_REQ_ENDPOINT = rad::KEY_CONFIG + "dpm/req_endpoint"
 
const std::string KEY_CONFIG_DPM_PUB_ENDPOINT = rad::KEY_CONFIG + "dpm/pub_endpoint"
 
const std::string KEY_CONFIG_DPM_TIMEOUT_SEC = rad::KEY_CONFIG + "dpm/timeout_sec"
 
const std::string CONFIG_DEFAULT_PROCNAME = "ocm"
 Default application configuration values. More...
 
const std::string CONFIG_DEFAULT_FILENAME = "config/daqOcmServer/config.yaml"
 
const std::string CONFIG_DEFAULT_WORKSPACE = "ocm"
 
const std::string CONFIG_DEFAULT_SCXML_FILENAME = "config/daqOcmServer/sm.xml"
 
const std::string CONFIG_DEFAULT_LOG_LEVEL = "WARN"
 
const int CONFIG_DEFAULT_DB_TIMEOUT_SEC = 2
 
const std::string CONFIG_DEFAULT_REQ_ENDPOINT = "zpb.rr://127.0.0.1:12081/"
 
const std::string CONFIG_DEFAULT_PUB_ENDPOINT = "zpb.ps://127.0.0.1:12082/"
 
const std::string CONFIG_DEFAULT_OLDB_URI_PREFIX = "cii.oldb:/elt"
 
const int CONFIG_DEFAULT_OLDB_CONN_TIMEOUT = 2
 
const std::string CONFIG_ENVVAR_OUT_PATH = "DATAROOT"
 Application configuration environment variables. More...
 
const std::string KEY_CONTROL_STATE = "ctr.state"
 
const std::string LOGGER_NAME = "daq.ocm"
 
const std::string LOGGER_NAME_MANAGER = "daq.ocm.manager"
 
const std::string LOGGER_NAME_EVENTLOG = "daq.ocm.eventlog"
 

Function Documentation

◆ GetLogger()

log4cplus::Logger & server::GetLogger ( )

Definition at line 14 of file logger.cpp.

◆ MakeStatusString()

std::optional< std::string > server::MakeStatusString ( std::list< scxml4cpp::State * > &&  states)

Make a status string from active states (as returned from scxml4cpp::Executor::getStatus()).

Assumptions:

  • Top level state Off is a final state when exiting, otherwise:
  • One leaf state (State::isActive() == true).
  • Ancestors == 2 (On/<state>/<substate>)
Note
: scml4cpp::State does not provide const-accessors so states must be provided as non-const, but won't modiy it.
Returns
"<state>;<substate>" if assumptions hold
std::nullopt otherwise.

Definition at line 29 of file actionsStd.cpp.

Variable Documentation

◆ CONFIG_DEFAULT_DB_TIMEOUT_SEC

const int server::CONFIG_DEFAULT_DB_TIMEOUT_SEC = 2

Definition at line 45 of file config.hpp.

◆ CONFIG_DEFAULT_FILENAME

const std::string server::CONFIG_DEFAULT_FILENAME = "config/daqOcmServer/config.yaml"

Definition at line 41 of file config.hpp.

◆ CONFIG_DEFAULT_LOG_LEVEL

const std::string server::CONFIG_DEFAULT_LOG_LEVEL = "WARN"

Definition at line 44 of file config.hpp.

◆ CONFIG_DEFAULT_OLDB_CONN_TIMEOUT

const int server::CONFIG_DEFAULT_OLDB_CONN_TIMEOUT = 2

Definition at line 49 of file config.hpp.

◆ CONFIG_DEFAULT_OLDB_URI_PREFIX

const std::string server::CONFIG_DEFAULT_OLDB_URI_PREFIX = "cii.oldb:/elt"

Definition at line 48 of file config.hpp.

◆ CONFIG_DEFAULT_PROCNAME

const std::string server::CONFIG_DEFAULT_PROCNAME = "ocm"

Default application configuration values.

Definition at line 40 of file config.hpp.

◆ CONFIG_DEFAULT_PUB_ENDPOINT

const std::string server::CONFIG_DEFAULT_PUB_ENDPOINT = "zpb.ps://127.0.0.1:12082/"

Definition at line 47 of file config.hpp.

◆ CONFIG_DEFAULT_REQ_ENDPOINT

const std::string server::CONFIG_DEFAULT_REQ_ENDPOINT = "zpb.rr://127.0.0.1:12081/"

Definition at line 46 of file config.hpp.

◆ CONFIG_DEFAULT_SCXML_FILENAME

const std::string server::CONFIG_DEFAULT_SCXML_FILENAME = "config/daqOcmServer/sm.xml"

Definition at line 43 of file config.hpp.

◆ CONFIG_DEFAULT_WORKSPACE

const std::string server::CONFIG_DEFAULT_WORKSPACE = "ocm"

Definition at line 42 of file config.hpp.

◆ CONFIG_ENVVAR_OUT_PATH

const std::string server::CONFIG_ENVVAR_OUT_PATH = "DATAROOT"

Application configuration environment variables.

Definition at line 54 of file config.hpp.

◆ KEY_CONFIG_DATAROOT

const std::string server::KEY_CONFIG_DATAROOT = rad::KEY_CONFIG + "dataroot"

Definition at line 28 of file config.hpp.

◆ KEY_CONFIG_DPM_PUB_ENDPOINT

const std::string server::KEY_CONFIG_DPM_PUB_ENDPOINT = rad::KEY_CONFIG + "dpm/pub_endpoint"

Definition at line 34 of file config.hpp.

◆ KEY_CONFIG_DPM_REQ_ENDPOINT

const std::string server::KEY_CONFIG_DPM_REQ_ENDPOINT = rad::KEY_CONFIG + "dpm/req_endpoint"

Definition at line 33 of file config.hpp.

◆ KEY_CONFIG_DPM_TIMEOUT_SEC

const std::string server::KEY_CONFIG_DPM_TIMEOUT_SEC = rad::KEY_CONFIG + "dpm/timeout_sec"

Definition at line 35 of file config.hpp.

◆ KEY_CONFIG_INSTRUMENT_ID

const std::string server::KEY_CONFIG_INSTRUMENT_ID = rad::KEY_CONFIG + "instrument_id"

Definition at line 27 of file config.hpp.

◆ KEY_CONFIG_PUB_ENDPOINT

const std::string server::KEY_CONFIG_PUB_ENDPOINT = rad::KEY_CONFIG + "pub_endpoint"

Rad configuration keys.

Definition at line 26 of file config.hpp.

◆ KEY_CONFIG_STALE_DAQ_ACQUIRING

const std::string server::KEY_CONFIG_STALE_DAQ_ACQUIRING = rad::KEY_CONFIG + "daq/stale_acquiring_hours"

Definition at line 30 of file config.hpp.

◆ KEY_CONFIG_STALE_DAQ_MERGING

const std::string server::KEY_CONFIG_STALE_DAQ_MERGING = rad::KEY_CONFIG + "daq/stale_merging_hours"

Definition at line 31 of file config.hpp.

◆ KEY_CONFIG_WORKSPACE

const std::string server::KEY_CONFIG_WORKSPACE = rad::KEY_CONFIG + "daq/workspace"

Definition at line 29 of file config.hpp.

◆ KEY_CONTROL_STATE

const std::string server::KEY_CONTROL_STATE = "ctr.state"

Definition at line 18 of file dbInterface.hpp.

◆ LOGGER_NAME

const std::string server::LOGGER_NAME = "daq.ocm"

Definition at line 17 of file logger.hpp.

◆ LOGGER_NAME_EVENTLOG

const std::string server::LOGGER_NAME_EVENTLOG = "daq.ocm.eventlog"

Definition at line 19 of file logger.hpp.

◆ LOGGER_NAME_MANAGER

const std::string server::LOGGER_NAME_MANAGER = "daq.ocm.manager"

Definition at line 18 of file logger.hpp.