|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DataSubscriberModel.hpp>
Public Types | |
| using | inherited = SourceConcept |
| 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 | |
| DataSubscriberModel () | |
| SourceModel Constructor. | |
| ~DataSubscriberModel () | |
| void | init (const confmodel::DaqModule *cfg) override |
| void | start () |
| void | stop () |
| bool | handle_payload (PayloadType &message) |
| Public Member Functions inherited from dunedaq::datahandlinglibs::SourceConcept | |
| SourceConcept () | |
| virtual | ~SourceConcept () |
| SourceConcept (const SourceConcept &)=delete | |
| SourceConcept is not copy-constructible. | |
| SourceConcept & | operator= (const SourceConcept &)=delete |
| SourceConcept is not copy-assginable. | |
| SourceConcept (SourceConcept &&)=delete | |
| SourceConcept is not move-constructible. | |
| SourceConcept & | operator= (SourceConcept &&)=delete |
| SourceConcept is not move-assignable. | |
| 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 |
Protected Member Functions | |
| virtual void | generate_opmon_data () override |
| 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 |
Private Types | |
| using | source_t = dunedaq::iomanager::ReceiverConcept<PayloadType> |
| using | sink_t = dunedaq::iomanager::SenderConcept<PayloadType> |
Private Attributes | |
| std::shared_ptr< source_t > | m_data_receiver |
| std::shared_ptr< sink_t > | m_data_sender |
| std::atomic< uint64_t > | m_packets {0} |
| std::atomic< uint64_t > | m_sum_packets {0} |
| std::atomic< uint64_t > | m_dropped_packets {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 33 of file DataSubscriberModel.hpp.
| using dunedaq::datahandlinglibs::DataSubscriberModel< PayloadType >::inherited = SourceConcept |
Definition at line 36 of file DataSubscriberModel.hpp.
|
private |
Definition at line 91 of file DataSubscriberModel.hpp.
|
private |
Definition at line 88 of file DataSubscriberModel.hpp.
|
inline |
SourceModel Constructor.
| name | Instance name for this SourceModel instance |
Definition at line 42 of file DataSubscriberModel.hpp.
|
inline |
Definition at line 43 of file DataSubscriberModel.hpp.
|
inlineoverrideprotectedvirtual |
Hook for customisable pubblication. The function can throw, exception will be caught by the monitoring thread
Reimplemented from dunedaq::opmonlib::MonitorableObject.
Definition at line 78 of file DataSubscriberModel.hpp.
|
inline |
Definition at line 68 of file DataSubscriberModel.hpp.
|
inlineoverridevirtual |
Implements dunedaq::datahandlinglibs::SourceConcept.
Definition at line 45 of file DataSubscriberModel.hpp.
|
inlinevirtual |
Implements dunedaq::datahandlinglibs::SourceConcept.
Definition at line 57 of file DataSubscriberModel.hpp.
|
inlinevirtual |
Implements dunedaq::datahandlinglibs::SourceConcept.
Definition at line 64 of file DataSubscriberModel.hpp.
|
private |
Definition at line 89 of file DataSubscriberModel.hpp.
|
private |
Definition at line 92 of file DataSubscriberModel.hpp.
|
private |
Definition at line 96 of file DataSubscriberModel.hpp.
|
private |
Definition at line 94 of file DataSubscriberModel.hpp.
|
private |
Definition at line 95 of file DataSubscriberModel.hpp.