|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <Sender.hpp>
Classes | |
| struct | ConnectionInfo |
Public Types | |
| using | duration_t = std::chrono::milliseconds |
| using | message_size_t = int |
| Public Types inherited from dunedaq::opmonlib::MonitorableObject | |
| using | NodePtr = std::weak_ptr<MonitorableObject> |
| using | NewNodePtr = std::shared_ptr<MonitorableObject> |
| using | ElementId = std::string |
Public Member Functions | |
| Sender ()=default | |
| virtual | ~Sender ()=default |
| virtual std::string | connect_for_sends (const ConnectionInfo &connection_info)=0 |
| virtual bool | can_send () const noexcept=0 |
| bool | send (const void *message, message_size_t message_size, const duration_t &timeout, std::string const &metadata="", bool no_tmoexcept_mode=false) |
| Sender (const Sender &)=delete | |
| Sender & | operator= (const Sender &)=delete |
| Sender (Sender &&)=delete | |
| Sender & | operator= (Sender &&)=delete |
| Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject (const MonitorableObject &)=delete | |
| MonitorableObject & | operator= (const MonitorableObject &)=delete |
| MonitorableObject (MonitorableObject &&)=delete | |
| MonitorableObject & | operator= (MonitorableObject &&)=delete |
| virtual | ~MonitorableObject ()=default |
| auto | get_opmon_id () const noexcept |
| auto | get_opmon_level () const noexcept |
Static Public Attributes | |
| static constexpr duration_t | s_block = duration_t::max() |
| static constexpr duration_t | s_no_block = duration_t::zero() |
Protected Member Functions | |
| void | generate_opmon_data () override |
| virtual bool | send_ (const void *message, message_size_t N, const duration_t &timeout, std::string const &metadata, bool no_tmoexcept_mode)=0 |
| Protected Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject ()=default | |
| void | register_node (ElementId name, NewNodePtr) |
| void | publish (google::protobuf::Message &&, CustomOrigin &&co={}, OpMonLevel l=to_level(EntryOpMonLevel::kDefault)) const noexcept |
Protected Attributes | |
| ConnectionInfo | m_connection_info |
Private Attributes | |
| std::atomic< size_t > | m_bytes = { 0 } |
| std::atomic< size_t > | m_messages = { 0 } |
Additional Inherited Members | |
| Static Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| static bool | publishable_metric (OpMonLevel entry, OpMonLevel system) noexcept |
Definition at line 74 of file Sender.hpp.
| using dunedaq::ipm::Sender::duration_t = std::chrono::milliseconds |
Definition at line 84 of file Sender.hpp.
| using dunedaq::ipm::Sender::message_size_t = int |
Definition at line 88 of file Sender.hpp.
|
default |
|
virtualdefault |
|
delete |
|
delete |
|
pure virtualnoexcept |
|
pure virtual |
|
overrideprotectedvirtual |
Hook for customisable pubblication. The function can throw, exception will be caught by the monitoring thread
Reimplemented from dunedaq::opmonlib::MonitorableObject.
Definition at line 44 of file Sender.cpp.
| bool dunedaq::ipm::Sender::send | ( | const void * | message, |
| message_size_t | message_size, | ||
| const duration_t & | timeout, | ||
| std::string const & | metadata = "", | ||
| bool | no_tmoexcept_mode = false ) |
Definition at line 17 of file Sender.cpp.
|
protectedpure virtual |
|
mutableprivate |
Definition at line 125 of file Sender.hpp.
|
protected |
Definition at line 115 of file Sender.hpp.
|
mutableprivate |
Definition at line 126 of file Sender.hpp.
|
staticconstexpr |
Definition at line 85 of file Sender.hpp.
|
staticconstexpr |
Definition at line 86 of file Sender.hpp.