DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appmodel::DFOConf Class Reference

#include <DFOConf.hpp>

Inheritance diagram for dunedaq::appmodel::DFOConf:
[legend]
Collaboration diagram for dunedaq::appmodel::DFOConf:
[legend]

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the DFOConf 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.
 
uint32_t get_general_queue_timeout_ms () const
 Get "general_queue_timeout_ms" attribute value.
 
void set_general_queue_timeout_ms (uint32_t value)
 Set "general_queue_timeout_ms" attribute value.
 
uint32_t get_stop_timeout_ms () const
 Get "stop_timeout_ms" attribute value.
 
void set_stop_timeout_ms (uint32_t value)
 Set "stop_timeout_ms" attribute value.
 
int32_t get_td_send_retries () const
 Get "td_send_retries" attribute value.
 
void set_td_send_retries (int32_t value)
 Set "td_send_retries" attribute value.
 
int32_t get_busy_threshold () const
 Get "busy_threshold" attribute value.
 
void set_busy_threshold (int32_t value)
 Set "busy_threshold" attribute value.
 
int32_t get_free_threshold () const
 Get "free_threshold" attribute value.
 
void set_free_threshold (int32_t value)
 Set "free_threshold" attribute value.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the DFOConf 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.
 
uint32_t get_general_queue_timeout_ms () const
 Get "general_queue_timeout_ms" attribute value.
 
void set_general_queue_timeout_ms (uint32_t value)
 Set "general_queue_timeout_ms" attribute value.
 
uint32_t get_stop_timeout_ms () const
 Get "stop_timeout_ms" attribute value.
 
void set_stop_timeout_ms (uint32_t value)
 Set "stop_timeout_ms" attribute value.
 
int32_t get_td_send_retries () const
 Get "td_send_retries" attribute value.
 
void set_td_send_retries (int32_t value)
 Set "td_send_retries" attribute value.
 
int32_t get_busy_threshold () const
 Get "busy_threshold" attribute value.
 
void set_busy_threshold (int32_t value)
 Set "busy_threshold" attribute value.
 
int32_t get_free_threshold () const
 Get "free_threshold" attribute value.
 
void set_free_threshold (int32_t value)
 Set "free_threshold" attribute value.
 
- Public Member Functions inherited from dunedaq::conffwk::DalObject
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 ConfigObjectconfig_object () const
 
DalRegistryregistry () const noexcept
 
Configurationconfiguration () 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_general_queue_timeout_ms_str () noexcept
 
static const std::string & __get_stop_timeout_ms_str () noexcept
 
static const std::string & __get_td_send_retries_str () noexcept
 
static const std::string & __get_busy_threshold_str () noexcept
 
static const std::string & __get_free_threshold_str () noexcept
 
static const std::string & __get_general_queue_timeout_ms_str () noexcept
 
static const std::string & __get_stop_timeout_ms_str () noexcept
 
static const std::string & __get_td_send_retries_str () noexcept
 
static const std::string & __get_busy_threshold_str () noexcept
 
static const std::string & __get_free_threshold_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::conffwk::DalObject
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_general_queue_timeout_ms = "general_queue_timeout_ms"
 
static const std::string s_stop_timeout_ms = "stop_timeout_ms"
 
static const std::string s_td_send_retries = "td_send_retries"
 
static const std::string s_busy_threshold = "busy_threshold"
 
static const std::string s_free_threshold = "free_threshold"
 

Protected Member Functions

 DFOConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DFOConf () 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
 
 DFOConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DFOConf () 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
 
- Protected Member Functions inherited from dunedaq::conffwk::DalObject
 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

uint32_t m_general_queue_timeout_ms
 
uint32_t m_stop_timeout_ms
 
int32_t m_td_send_retries
 
int32_t m_busy_threshold
 
int32_t m_free_threshold
 

Friends

class conffwk::Configuration
 
class conffwk::DalObject
 
class conffwk::DalFactory
 
class conffwk::DalRegistry
 

Additional Inherited Members

- Protected Attributes inherited from dunedaq::conffwk::DalObject
std::mutex m_mutex
 Used to protect changes of DAL object.
 
bool p_was_read
 is true, if the object was read
 
DalRegistryp_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)
 

Detailed Description

Definition at line 20 of file DFOConf.hpp.

Constructor & Destructor Documentation

◆ DFOConf() [1/2]

dunedaq::appmodel::DFOConf::DFOConf ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

Definition at line 26 of file DFOConf.cpp.

26 :
28 {
29 ;
30 }
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~DFOConf() [1/2]

dunedaq::appmodel::DFOConf::~DFOConf ( )
protectedvirtualnoexcept

Definition at line 76 of file DFOConf.cpp.

77 {
78 }

◆ DFOConf() [2/2]

dunedaq::appmodel::DFOConf::DFOConf ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

◆ ~DFOConf() [2/2]

virtual dunedaq::appmodel::DFOConf::~DFOConf ( )
protectedvirtualnoexcept

Member Function Documentation

◆ __get_busy_threshold_str() [1/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_busy_threshold_str ( )
inlinestaticnoexcept

Definition at line 91 of file DFOConf.hpp.

91{ return s_busy_threshold; }
static const std::string s_busy_threshold
Definition DFOConf.hpp:85

◆ __get_busy_threshold_str() [2/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_busy_threshold_str ( )
inlinestaticnoexcept

Definition at line 91 of file DFOConf.hpp.

91{ return s_busy_threshold; }

◆ __get_free_threshold_str() [1/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_free_threshold_str ( )
inlinestaticnoexcept

Definition at line 92 of file DFOConf.hpp.

92{ return s_free_threshold; }
static const std::string s_free_threshold
Definition DFOConf.hpp:86

◆ __get_free_threshold_str() [2/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_free_threshold_str ( )
inlinestaticnoexcept

Definition at line 92 of file DFOConf.hpp.

92{ return s_free_threshold; }

◆ __get_general_queue_timeout_ms_str() [1/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_general_queue_timeout_ms_str ( )
inlinestaticnoexcept

Definition at line 88 of file DFOConf.hpp.

static const std::string s_general_queue_timeout_ms
Definition DFOConf.hpp:82

◆ __get_general_queue_timeout_ms_str() [2/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_general_queue_timeout_ms_str ( )
inlinestaticnoexcept

Definition at line 88 of file DFOConf.hpp.

◆ __get_stop_timeout_ms_str() [1/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_stop_timeout_ms_str ( )
inlinestaticnoexcept

Definition at line 89 of file DFOConf.hpp.

89{ return s_stop_timeout_ms; }
static const std::string s_stop_timeout_ms
Definition DFOConf.hpp:83

◆ __get_stop_timeout_ms_str() [2/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_stop_timeout_ms_str ( )
inlinestaticnoexcept

Definition at line 89 of file DFOConf.hpp.

89{ return s_stop_timeout_ms; }

◆ __get_td_send_retries_str() [1/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_td_send_retries_str ( )
inlinestaticnoexcept

Definition at line 90 of file DFOConf.hpp.

90{ return s_td_send_retries; }
static const std::string s_td_send_retries
Definition DFOConf.hpp:84

◆ __get_td_send_retries_str() [2/2]

static const std::string & dunedaq::appmodel::DFOConf::__get_td_send_retries_str ( )
inlinestaticnoexcept

Definition at line 90 of file DFOConf.hpp.

90{ return s_td_send_retries; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::DFOConf::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Implements dunedaq::conffwk::DalObject.

Definition at line 80 of file DFOConf.cpp.

81 {
82 std::vector<const dunedaq::conffwk::DalObject *> vec;
83
84 if (!get(name, vec, upcast_unregistered, true))
85 throw_get_ex(name, s_class_name, this);
86
87 return vec;
88 }
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...
Definition DFOConf.cpp:80
static const std::string & s_class_name
Definition DFOConf.hpp:37
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.
Definition DalObject.cpp:82

◆ get() [2/4]

virtual std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::DFOConf::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Implements dunedaq::conffwk::DalObject.

◆ get() [3/4]

bool dunedaq::appmodel::DFOConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 90 of file DFOConf.cpp.

91 {
92 if (first_call)
93 {
94 std::lock_guard scoped_lock(m_mutex);
95
96 check();
97 check_init();
98
99 if (get_rel_objects(name, upcast_unregistered, vec))
100 return true;
101 }
102
103 if (first_call)
104 return get_algo_objects(name, vec);
105
106 return false;
107 }
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.
Definition DalObject.cpp:8
std::mutex m_mutex
Used to protect changes of DAL object.
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.
Definition DalObject.cpp:25
void check_init() const
Check and initialize object if necessary.

◆ get() [4/4]

bool dunedaq::appmodel::DFOConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_busy_threshold() [1/2]

int32_t dunedaq::appmodel::DFOConf::get_busy_threshold ( ) const
inline

Get "busy_threshold" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 195 of file DFOConf.hpp.

196 {
197 std::lock_guard scoped_lock(m_mutex);
198 check();
199 check_init();
200 return m_busy_threshold;
201 }

◆ get_busy_threshold() [2/2]

int32_t dunedaq::appmodel::DFOConf::get_busy_threshold ( ) const
inline

Get "busy_threshold" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 195 of file DFOConf.hpp.

196 {
197 std::lock_guard scoped_lock(m_mutex);
198 check();
199 check_init();
200 return m_busy_threshold;
201 }

◆ get_free_threshold() [1/2]

int32_t dunedaq::appmodel::DFOConf::get_free_threshold ( ) const
inline

Get "free_threshold" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 226 of file DFOConf.hpp.

227 {
228 std::lock_guard scoped_lock(m_mutex);
229 check();
230 check_init();
231 return m_free_threshold;
232 }

◆ get_free_threshold() [2/2]

int32_t dunedaq::appmodel::DFOConf::get_free_threshold ( ) const
inline

Get "free_threshold" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 226 of file DFOConf.hpp.

227 {
228 std::lock_guard scoped_lock(m_mutex);
229 check();
230 check_init();
231 return m_free_threshold;
232 }

◆ get_general_queue_timeout_ms() [1/2]

uint32_t dunedaq::appmodel::DFOConf::get_general_queue_timeout_ms ( ) const
inline

Get "general_queue_timeout_ms" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 102 of file DFOConf.hpp.

103 {
104 std::lock_guard scoped_lock(m_mutex);
105 check();
106 check_init();
108 }
uint32_t m_general_queue_timeout_ms
Definition DFOConf.hpp:71

◆ get_general_queue_timeout_ms() [2/2]

uint32_t dunedaq::appmodel::DFOConf::get_general_queue_timeout_ms ( ) const
inline

Get "general_queue_timeout_ms" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 102 of file DFOConf.hpp.

103 {
104 std::lock_guard scoped_lock(m_mutex);
105 check();
106 check_init();
108 }

◆ get_stop_timeout_ms() [1/2]

uint32_t dunedaq::appmodel::DFOConf::get_stop_timeout_ms ( ) const
inline

Get "stop_timeout_ms" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 133 of file DFOConf.hpp.

134 {
135 std::lock_guard scoped_lock(m_mutex);
136 check();
137 check_init();
138 return m_stop_timeout_ms;
139 }

◆ get_stop_timeout_ms() [2/2]

uint32_t dunedaq::appmodel::DFOConf::get_stop_timeout_ms ( ) const
inline

Get "stop_timeout_ms" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 133 of file DFOConf.hpp.

134 {
135 std::lock_guard scoped_lock(m_mutex);
136 check();
137 check_init();
138 return m_stop_timeout_ms;
139 }

◆ get_td_send_retries() [1/2]

int32_t dunedaq::appmodel::DFOConf::get_td_send_retries ( ) const
inline

Get "td_send_retries" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 164 of file DFOConf.hpp.

165 {
166 std::lock_guard scoped_lock(m_mutex);
167 check();
168 check_init();
169 return m_td_send_retries;
170 }

◆ get_td_send_retries() [2/2]

int32_t dunedaq::appmodel::DFOConf::get_td_send_retries ( ) const
inline

Get "td_send_retries" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 164 of file DFOConf.hpp.

165 {
166 std::lock_guard scoped_lock(m_mutex);
167 check();
168 check_init();
169 return m_td_send_retries;
170 }

◆ init() [1/2]

void dunedaq::appmodel::DFOConf::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Implements dunedaq::conffwk::DalObject.

Definition at line 58 of file DFOConf.cpp.

59 {
60 p_was_read = true;
62 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
63
64 try {
70 }
71 catch (dunedaq::conffwk::Exception & ex) {
72 throw_init_ex(ex);
73 }
74 }
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
void increment_read() noexcept
bool p_was_read
is true, if the object was read
ConfigObject p_obj
Config object used by given template object.
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

virtual void dunedaq::appmodel::DFOConf::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Implements dunedaq::conffwk::DalObject.

◆ print() [1/2]

void dunedaq::appmodel::DFOConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the DFOConf object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Implements dunedaq::conffwk::DalObject.

Definition at line 33 of file DFOConf.cpp.

34 {
35 check_init();
36
37 try {
38 const std::string str(indent+2, ' ');
39
40 if (print_header)
41 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
42
43
44 // print direct attributes
45
51 }
52 catch (dunedaq::conffwk::Exception & ex) {
54 }
55 }
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
Definition DalObject.cpp:65
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
Definition DalObject.cpp:59
void p_sv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print single-value attribute

◆ print() [2/2]

virtual void dunedaq::appmodel::DFOConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the DFOConf object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Implements dunedaq::conffwk::DalObject.

◆ set_busy_threshold() [1/2]

void dunedaq::appmodel::DFOConf::set_busy_threshold ( int32_t value)
inline

Set "busy_threshold" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 210 of file DFOConf.hpp.

211 {
212 std::lock_guard scoped_lock(m_mutex);
213 check();
214 clear();
216 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_busy_threshold() [2/2]

void dunedaq::appmodel::DFOConf::set_busy_threshold ( int32_t value)
inline

Set "busy_threshold" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 210 of file DFOConf.hpp.

211 {
212 std::lock_guard scoped_lock(m_mutex);
213 check();
214 clear();
216 }

◆ set_free_threshold() [1/2]

void dunedaq::appmodel::DFOConf::set_free_threshold ( int32_t value)
inline

Set "free_threshold" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 241 of file DFOConf.hpp.

242 {
243 std::lock_guard scoped_lock(m_mutex);
244 check();
245 clear();
247 }

◆ set_free_threshold() [2/2]

void dunedaq::appmodel::DFOConf::set_free_threshold ( int32_t value)
inline

Set "free_threshold" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 241 of file DFOConf.hpp.

242 {
243 std::lock_guard scoped_lock(m_mutex);
244 check();
245 clear();
247 }

◆ set_general_queue_timeout_ms() [1/2]

void dunedaq::appmodel::DFOConf::set_general_queue_timeout_ms ( uint32_t value)
inline

Set "general_queue_timeout_ms" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 117 of file DFOConf.hpp.

118 {
119 std::lock_guard scoped_lock(m_mutex);
120 check();
121 clear();
123 }

◆ set_general_queue_timeout_ms() [2/2]

void dunedaq::appmodel::DFOConf::set_general_queue_timeout_ms ( uint32_t value)
inline

Set "general_queue_timeout_ms" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 117 of file DFOConf.hpp.

118 {
119 std::lock_guard scoped_lock(m_mutex);
120 check();
121 clear();
123 }

◆ set_stop_timeout_ms() [1/2]

void dunedaq::appmodel::DFOConf::set_stop_timeout_ms ( uint32_t value)
inline

Set "stop_timeout_ms" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 148 of file DFOConf.hpp.

149 {
150 std::lock_guard scoped_lock(m_mutex);
151 check();
152 clear();
154 }

◆ set_stop_timeout_ms() [2/2]

void dunedaq::appmodel::DFOConf::set_stop_timeout_ms ( uint32_t value)
inline

Set "stop_timeout_ms" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 148 of file DFOConf.hpp.

149 {
150 std::lock_guard scoped_lock(m_mutex);
151 check();
152 clear();
154 }

◆ set_td_send_retries() [1/2]

void dunedaq::appmodel::DFOConf::set_td_send_retries ( int32_t value)
inline

Set "td_send_retries" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 179 of file DFOConf.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 clear();
185 }

◆ set_td_send_retries() [2/2]

void dunedaq::appmodel::DFOConf::set_td_send_retries ( int32_t value)
inline

Set "td_send_retries" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 179 of file DFOConf.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 clear();
185 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 22 of file DFOConf.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 24 of file DFOConf.hpp.

◆ conffwk::DalObject

Definition at line 23 of file DFOConf.hpp.

◆ conffwk::DalRegistry

Definition at line 25 of file DFOConf.hpp.

Member Data Documentation

◆ m_busy_threshold

int32_t dunedaq::appmodel::DFOConf::m_busy_threshold
private

Definition at line 74 of file DFOConf.hpp.

◆ m_free_threshold

int32_t dunedaq::appmodel::DFOConf::m_free_threshold
private

Definition at line 75 of file DFOConf.hpp.

◆ m_general_queue_timeout_ms

uint32_t dunedaq::appmodel::DFOConf::m_general_queue_timeout_ms
private

Definition at line 71 of file DFOConf.hpp.

◆ m_stop_timeout_ms

uint32_t dunedaq::appmodel::DFOConf::m_stop_timeout_ms
private

Definition at line 72 of file DFOConf.hpp.

◆ m_td_send_retries

int32_t dunedaq::appmodel::DFOConf::m_td_send_retries
private

Definition at line 73 of file DFOConf.hpp.

◆ s_busy_threshold

static const std::string dunedaq::appmodel::DFOConf::s_busy_threshold = "busy_threshold"
inlinestatic

Definition at line 85 of file DFOConf.hpp.

◆ s_class_name

static const std::string & dunedaq::appmodel::DFOConf::s_class_name
static

The name of the configuration class.

Definition at line 37 of file DFOConf.hpp.

◆ s_free_threshold

static const std::string dunedaq::appmodel::DFOConf::s_free_threshold = "free_threshold"
inlinestatic

Definition at line 86 of file DFOConf.hpp.

◆ s_general_queue_timeout_ms

static const std::string dunedaq::appmodel::DFOConf::s_general_queue_timeout_ms = "general_queue_timeout_ms"
inlinestatic

Definition at line 82 of file DFOConf.hpp.

◆ s_stop_timeout_ms

static const std::string dunedaq::appmodel::DFOConf::s_stop_timeout_ms = "stop_timeout_ms"
inlinestatic

Definition at line 83 of file DFOConf.hpp.

◆ s_td_send_retries

static const std::string dunedaq::appmodel::DFOConf::s_td_send_retries = "td_send_retries"
inlinestatic

Definition at line 84 of file DFOConf.hpp.


The documentation for this class was generated from the following files: