|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <Receiver.hpp>
Classes | |
| struct | ConnectionInfo |
| struct | Response |
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 | |
| Receiver ()=default | |
| virtual | ~Receiver ()=default |
| virtual std::string | connect_for_receives (const ConnectionInfo &connection_info)=0 |
| virtual bool | can_receive () const noexcept=0 |
| Response | receive (const duration_t &timeout, message_size_t num_bytes=s_any_size, bool no_tmoexcept_mode=false) |
| virtual bool | data_pending ()=0 |
| virtual void | register_callback (std::function< void(Response &)>)=0 |
| virtual void | unregister_callback ()=0 |
| Receiver (const Receiver &)=delete | |
| Receiver & | operator= (const Receiver &)=delete |
| Receiver (Receiver &&)=delete | |
| Receiver & | operator= (Receiver &&)=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() |
| static constexpr message_size_t | s_any_size |
Protected Member Functions | |
| void | generate_opmon_data () override |
| virtual Response | receive_ (const duration_t &timeout, 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 73 of file Receiver.hpp.
| using dunedaq::ipm::Receiver::duration_t = std::chrono::milliseconds |
Definition at line 83 of file Receiver.hpp.
| using dunedaq::ipm::Receiver::message_size_t = int |
Definition at line 87 of file Receiver.hpp.
|
default |
|
virtualdefault |
|
delete |
|
delete |
|
pure virtualnoexcept |
|
pure virtual |
|
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 39 of file Receiver.cpp.
| dunedaq::ipm::Receiver::Response dunedaq::ipm::Receiver::receive | ( | const duration_t & | timeout, |
| message_size_t | num_bytes = s_any_size, | ||
| bool | no_tmoexcept_mode = false ) |
Definition at line 15 of file Receiver.cpp.
|
protectedpure virtual |
|
pure virtual |
|
pure virtual |
|
mutableprivate |
Definition at line 128 of file Receiver.hpp.
|
protected |
Definition at line 122 of file Receiver.hpp.
|
mutableprivate |
Definition at line 129 of file Receiver.hpp.
|
staticconstexpr |
Definition at line 88 of file Receiver.hpp.
|
staticconstexpr |
Definition at line 84 of file Receiver.hpp.
|
staticconstexpr |
Definition at line 85 of file Receiver.hpp.