DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <RequestHandler.hpp>
Public Member Functions | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the RequestHandler object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
uint16_t | get_handler_threads () const |
Get "handler_threads" attribute value. Number of threads tohandle this link. | |
void | set_handler_threads (uint16_t value) |
Set "handler_threads" attribute value. Number of threads tohandle this link. | |
uint32_t | get_request_timeout () const |
Get "request_timeout" attribute value. Request timeout in milliseconds. | |
void | set_request_timeout (uint32_t value) |
Set "request_timeout" attribute value. Request timeout in milliseconds. | |
float | get_pop_limit_pct () const |
Get "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop. | |
void | set_pop_limit_pct (float value) |
Set "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop. | |
float | get_pop_size_pct () const |
Get "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer. | |
void | set_pop_size_pct (float value) |
Set "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer. | |
bool | get_warn_on_timeout () const |
Get "warn_on_timeout" attribute value. | |
void | set_warn_on_timeout (bool value) |
Set "warn_on_timeout" attribute value. | |
bool | get_warn_on_empty_buffer () const |
Get "warn_on_empty_buffer" attribute value. | |
void | set_warn_on_empty_buffer (bool value) |
Set "warn_on_empty_buffer" attribute value. | |
uint32_t | get_periodic_data_transmission_ms () const |
Get "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never. | |
void | set_periodic_data_transmission_ms (uint32_t value) |
Set "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never. | |
const dunedaq::appmodel::DataRecorderConf * | get_data_recorder () const |
Get "data_recorder" relationship value. | |
void | set_data_recorder (const dunedaq::appmodel::DataRecorderConf *value) |
Set "data_recorder" relationship value. | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the RequestHandler object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
uint16_t | get_handler_threads () const |
Get "handler_threads" attribute value. Number of threads tohandle this link. | |
void | set_handler_threads (uint16_t value) |
Set "handler_threads" attribute value. Number of threads tohandle this link. | |
uint32_t | get_request_timeout () const |
Get "request_timeout" attribute value. Request timeout in milliseconds. | |
void | set_request_timeout (uint32_t value) |
Set "request_timeout" attribute value. Request timeout in milliseconds. | |
float | get_pop_limit_pct () const |
Get "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop. | |
void | set_pop_limit_pct (float value) |
Set "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop. | |
float | get_pop_size_pct () const |
Get "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer. | |
void | set_pop_size_pct (float value) |
Set "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer. | |
bool | get_warn_on_timeout () const |
Get "warn_on_timeout" attribute value. | |
void | set_warn_on_timeout (bool value) |
Set "warn_on_timeout" attribute value. | |
bool | get_warn_on_empty_buffer () const |
Get "warn_on_empty_buffer" attribute value. | |
void | set_warn_on_empty_buffer (bool value) |
Set "warn_on_empty_buffer" attribute value. | |
uint32_t | get_periodic_data_transmission_ms () const |
Get "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never. | |
void | set_periodic_data_transmission_ms (uint32_t value) |
Set "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never. | |
const dunedaq::appmodel::DataRecorderConf * | get_data_recorder () const |
Get "data_recorder" relationship value. | |
void | set_data_recorder (const dunedaq::appmodel::DataRecorderConf *value) |
Set "data_recorder" relationship value. | |
![]() | |
const std::string & | UID () const noexcept |
const std::string & | class_name () const noexcept |
bool | castable (const std::string &target) const noexcept |
bool | castable (const std::string *target) const noexcept |
template<class TARGET > | |
const TARGET * | cast () const noexcept |
Casts object to different class. | |
std::string | full_name () const noexcept |
const ConfigObject & | config_object () const |
DalRegistry & | registry () const noexcept |
Configuration & | configuration () const noexcept |
void | unread () |
void | set (const ConfigObject &o) noexcept |
void | move (const std::string &at) |
void | rename (const std::string &new_id) |
void | p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const |
print object headers | |
std::ostream & | print_object (std::ostream &s) const |
print object details | |
void | throw_init_ex (dunedaq::conffwk::Exception &ex) |
throw object initialisation exception (i.e. | |
Static Public Member Functions | |
static const std::string & | __get_handler_threads_str () noexcept |
static const std::string & | __get_request_timeout_str () noexcept |
static const std::string & | __get_pop_limit_pct_str () noexcept |
static const std::string & | __get_pop_size_pct_str () noexcept |
static const std::string & | __get_warn_on_timeout_str () noexcept |
static const std::string & | __get_warn_on_empty_buffer_str () noexcept |
static const std::string & | __get_periodic_data_transmission_ms_str () noexcept |
static const std::string & | __get_data_recorder_str () noexcept |
static const std::string & | __get_handler_threads_str () noexcept |
static const std::string & | __get_request_timeout_str () noexcept |
static const std::string & | __get_pop_limit_pct_str () noexcept |
static const std::string & | __get_pop_size_pct_str () noexcept |
static const std::string & | __get_warn_on_timeout_str () noexcept |
static const std::string & | __get_warn_on_empty_buffer_str () noexcept |
static const std::string & | __get_periodic_data_transmission_ms_str () noexcept |
static const std::string & | __get_data_recorder_str () noexcept |
![]() | |
static void | p_null (std::ostream &s) |
print "(null)" | |
static void | p_rm (std::ostream &s) |
print "(deleted object)" | |
static void | p_error (std::ostream &s, dunedaq::conffwk::Exception &ex) |
print error text | |
static void | throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj) |
throw exception in generated get method (i.e. | |
static bool | is_null (const DalObject *ref) noexcept |
check a pointer on DAL object is null | |
Static Public Attributes | |
static const std::string & | s_class_name |
static const std::string | s_handler_threads = "handler_threads" |
static const std::string | s_request_timeout = "request_timeout" |
static const std::string | s_pop_limit_pct = "pop_limit_pct" |
static const std::string | s_pop_size_pct = "pop_size_pct" |
static const std::string | s_warn_on_timeout = "warn_on_timeout" |
static const std::string | s_warn_on_empty_buffer = "warn_on_empty_buffer" |
static const std::string | s_periodic_data_transmission_ms = "periodic_data_transmission_ms" |
static const std::string | s_data_recorder = "data_recorder" |
Protected Member Functions | |
RequestHandler (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~RequestHandler () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
RequestHandler (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~RequestHandler () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
DalObject (DalRegistry &db, const ConfigObject &o) noexcept | |
virtual | ~DalObject () |
void | clear () noexcept |
void | check () const |
bool | is_deleted () const |
void | increment_created () noexcept |
void | increment_read () noexcept |
void | check_init () const |
Check and initialize object if necessary. | |
template<typename T > | |
void | _set_object (const std::string &name, const T *value) |
Helper method for generated set single-value relationship methods. | |
template<typename T > | |
void | _set_objects (const std::string &name, const std::vector< const T * > &value) |
Helper method for generated set multi-value relationship methods. | |
bool | get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const |
Read relationship values as DAL objects using DAL factory. | |
bool | get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const |
Run algorithm and return result as DAL objects using DAL factory. | |
Private Attributes | |
uint16_t | m_handler_threads |
uint32_t | m_request_timeout |
float | m_pop_limit_pct |
float | m_pop_size_pct |
bool | m_warn_on_timeout |
bool | m_warn_on_empty_buffer |
uint32_t | m_periodic_data_transmission_ms |
const dunedaq::appmodel::DataRecorderConf * | m_data_recorder |
Friends | |
class | conffwk::Configuration |
class | conffwk::DalObject |
class | conffwk::DalFactory |
class | conffwk::DalRegistry |
Additional Inherited Members | |
![]() | |
std::mutex | m_mutex |
Used to protect changes of DAL object. | |
bool | p_was_read |
is true, if the object was read | |
DalRegistry & | p_registry |
Configuration object. | |
ConfigObject | p_obj |
Config object used by given template object. | |
std::string | p_UID |
Is used for template objects (see dqm_conffwk) | |
Definition at line 29 of file RequestHandler.hpp.
|
protectednoexcept |
Definition at line 31 of file RequestHandler.cpp.
|
protectedvirtualnoexcept |
Definition at line 93 of file RequestHandler.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 342 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 342 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 102 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 102 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 108 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 108 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 104 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 104 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 105 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 105 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 103 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 103 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 107 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 107 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 106 of file RequestHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 106 of file RequestHandler.hpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
Definition at line 97 of file RequestHandler.cpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
|
protected |
Definition at line 107 of file RequestHandler.cpp.
|
protected |
|
inline |
Get "data_recorder" relationship value.
Definition at line 352 of file RequestHandler.hpp.
|
inline |
Get "data_recorder" relationship value.
Definition at line 352 of file RequestHandler.hpp.
|
inline |
Get "handler_threads" attribute value. Number of threads tohandle this link.
Definition at line 119 of file RequestHandler.hpp.
|
inline |
Get "handler_threads" attribute value. Number of threads tohandle this link.
Definition at line 119 of file RequestHandler.hpp.
|
inline |
Get "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never.
Definition at line 313 of file RequestHandler.hpp.
|
inline |
Get "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never.
Definition at line 313 of file RequestHandler.hpp.
|
inline |
Get "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop.
Definition at line 185 of file RequestHandler.hpp.
|
inline |
Get "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop.
Definition at line 185 of file RequestHandler.hpp.
|
inline |
Get "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer.
Definition at line 218 of file RequestHandler.hpp.
|
inline |
Get "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer.
Definition at line 218 of file RequestHandler.hpp.
|
inline |
Get "request_timeout" attribute value. Request timeout in milliseconds.
Definition at line 152 of file RequestHandler.hpp.
|
inline |
Get "request_timeout" attribute value. Request timeout in milliseconds.
Definition at line 152 of file RequestHandler.hpp.
|
inline |
Get "warn_on_empty_buffer" attribute value.
Definition at line 281 of file RequestHandler.hpp.
|
inline |
Get "warn_on_empty_buffer" attribute value.
Definition at line 281 of file RequestHandler.hpp.
|
inline |
Get "warn_on_timeout" attribute value.
Definition at line 250 of file RequestHandler.hpp.
|
inline |
Get "warn_on_timeout" attribute value.
Definition at line 250 of file RequestHandler.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
Definition at line 72 of file RequestHandler.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
|
virtual |
Print details of the RequestHandler object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
Definition at line 40 of file RequestHandler.cpp.
|
virtual |
Print details of the RequestHandler object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
void dunedaq::appmodel::RequestHandler::set_data_recorder | ( | const dunedaq::appmodel::DataRecorderConf * | value | ) |
Set "data_recorder" relationship value.
value | new relationship value |
Definition at line 126 of file RequestHandler.cpp.
void dunedaq::appmodel::RequestHandler::set_data_recorder | ( | const dunedaq::appmodel::DataRecorderConf * | value | ) |
Set "data_recorder" relationship value.
value | new relationship value |
|
inline |
Set "handler_threads" attribute value. Number of threads tohandle this link.
value | new attribute value |
Definition at line 135 of file RequestHandler.hpp.
|
inline |
Set "handler_threads" attribute value. Number of threads tohandle this link.
value | new attribute value |
Definition at line 135 of file RequestHandler.hpp.
|
inline |
Set "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never.
value | new attribute value |
Definition at line 329 of file RequestHandler.hpp.
|
inline |
Set "periodic_data_transmission_ms" attribute value. Period at which data are sent out, optionally. 0 means never.
value | new attribute value |
Definition at line 329 of file RequestHandler.hpp.
|
inline |
Set "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop.
value | new attribute value |
Definition at line 201 of file RequestHandler.hpp.
|
inline |
Set "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop.
value | new attribute value |
Definition at line 201 of file RequestHandler.hpp.
|
inline |
Set "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer.
value | new attribute value |
Definition at line 234 of file RequestHandler.hpp.
|
inline |
Set "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer.
value | new attribute value |
Definition at line 234 of file RequestHandler.hpp.
|
inline |
Set "request_timeout" attribute value. Request timeout in milliseconds.
value | new attribute value |
Definition at line 168 of file RequestHandler.hpp.
|
inline |
Set "request_timeout" attribute value. Request timeout in milliseconds.
value | new attribute value |
Definition at line 168 of file RequestHandler.hpp.
|
inline |
Set "warn_on_empty_buffer" attribute value.
value | new attribute value |
Definition at line 296 of file RequestHandler.hpp.
|
inline |
Set "warn_on_empty_buffer" attribute value.
value | new attribute value |
Definition at line 296 of file RequestHandler.hpp.
|
inline |
Set "warn_on_timeout" attribute value.
value | new attribute value |
Definition at line 265 of file RequestHandler.hpp.
|
inline |
Set "warn_on_timeout" attribute value.
value | new attribute value |
Definition at line 265 of file RequestHandler.hpp.
|
friend |
Definition at line 31 of file RequestHandler.hpp.
|
friend |
Definition at line 33 of file RequestHandler.hpp.
|
friend |
Definition at line 32 of file RequestHandler.hpp.
|
friend |
Definition at line 34 of file RequestHandler.hpp.
|
private |
Definition at line 87 of file RequestHandler.hpp.
|
private |
Definition at line 80 of file RequestHandler.hpp.
|
private |
Definition at line 86 of file RequestHandler.hpp.
|
private |
Definition at line 82 of file RequestHandler.hpp.
|
private |
Definition at line 83 of file RequestHandler.hpp.
|
private |
Definition at line 81 of file RequestHandler.hpp.
|
private |
Definition at line 85 of file RequestHandler.hpp.
|
private |
Definition at line 84 of file RequestHandler.hpp.
|
static |
The name of the configuration class.
Definition at line 46 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 340 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 94 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 100 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 96 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 97 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 95 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 99 of file RequestHandler.hpp.
|
inlinestatic |
Definition at line 98 of file RequestHandler.hpp.