3#ifndef _RequestHandler_0_dunedaq__appmodel_0_appmodel_H_
4#define _RequestHandler_0_dunedaq__appmodel_0_appmodel_H_
21 class DataRecorderConf;
40 virtual
void init(
bool init_children);
58 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
121 std::lock_guard scoped_lock(
m_mutex);
137 std::lock_guard scoped_lock(
m_mutex);
154 std::lock_guard scoped_lock(
m_mutex);
170 std::lock_guard scoped_lock(
m_mutex);
187 std::lock_guard scoped_lock(
m_mutex);
203 std::lock_guard scoped_lock(
m_mutex);
220 std::lock_guard scoped_lock(
m_mutex);
236 std::lock_guard scoped_lock(
m_mutex);
252 std::lock_guard scoped_lock(
m_mutex);
267 std::lock_guard scoped_lock(
m_mutex);
283 std::lock_guard scoped_lock(
m_mutex);
298 std::lock_guard scoped_lock(
m_mutex);
315 std::lock_guard scoped_lock(
m_mutex);
331 std::lock_guard scoped_lock(
m_mutex);
354 std::lock_guard scoped_lock(
m_mutex);
376 return obj.print_object(s);
static const std::string & __get_warn_on_empty_buffer_str() noexcept
static const std::string s_periodic_data_transmission_ms
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...
float get_pop_limit_pct() const
Get "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop.
void set_request_timeout(uint32_t value)
Set "request_timeout" attribute value. Request timeout in milliseconds.
uint32_t get_periodic_data_transmission_ms() const
Get "periodic_data_transmission_ms" attribute value. Period at which data are sent out,...
bool get_warn_on_timeout() const
Get "warn_on_timeout" attribute value.
void set_data_recorder(const dunedaq::appmodel::DataRecorderConf *value)
Set "data_recorder" relationship value.
static const std::string & __get_warn_on_timeout_str() noexcept
static const std::string & __get_data_recorder_str() noexcept
uint32_t m_request_timeout
float get_pop_size_pct() const
Get "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer.
void set_warn_on_empty_buffer(bool value)
Set "warn_on_empty_buffer" attribute value.
static const std::string & __get_request_timeout_str() noexcept
void set_warn_on_timeout(bool value)
Set "warn_on_timeout" attribute value.
uint32_t m_periodic_data_transmission_ms
static const std::string s_request_timeout
RequestHandler(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
friend class conffwk::DalFactory
static const std::string s_handler_threads
static const std::string s_warn_on_timeout
uint16_t get_handler_threads() const
Get "handler_threads" attribute value. Number of threads tohandle this link.
static const std::string & s_class_name
static const std::string s_data_recorder
static const std::string & __get_pop_limit_pct_str() noexcept
void set_pop_size_pct(float value)
Set "pop_size_pct" attribute value. Percentage of current occupancy to pop from the latency buffer.
static const std::string s_pop_size_pct
static const std::string & __get_periodic_data_transmission_ms_str() noexcept
void set_handler_threads(uint16_t value)
Set "handler_threads" attribute value. Number of threads tohandle this link.
void set_pop_limit_pct(float value)
Set "pop_limit_pct" attribute value. Latency buffer occupancy percentage to issue an auto-pop.
void set_periodic_data_transmission_ms(uint32_t value)
Set "periodic_data_transmission_ms" attribute value. Period at which data are sent out,...
friend class conffwk::DalObject
static const std::string s_warn_on_empty_buffer
bool m_warn_on_empty_buffer
uint32_t get_request_timeout() const
Get "request_timeout" attribute value. Request timeout in milliseconds.
virtual void init(bool init_children)
bool get_warn_on_empty_buffer() const
Get "warn_on_empty_buffer" attribute value.
uint16_t m_handler_threads
const dunedaq::appmodel::DataRecorderConf * get_data_recorder() const
Get "data_recorder" relationship value.
static const std::string & __get_pop_size_pct_str() noexcept
static const std::string s_pop_limit_pct
static const std::string & __get_handler_threads_str() noexcept
const dunedaq::appmodel::DataRecorderConf * m_data_recorder
virtual ~RequestHandler() noexcept
void set_by_val(const std::string &name, T value)
Set attribute value.
The base class for any generated DAL object.
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constRequestHandler * >::const_iterator RequestHandlerIterator