artdaq
v2_02_03
|
NetMonTransportService extends NetMonTransportServiceInterface. It sends events using DataSenderManager and receives events from the GlobalQueue. More...
#include <artdaq/ArtModules/NetMonTransportService.h>
Public Member Functions | |
virtual | ~NetMonTransportService () |
NetMonTransportService Destructor. Calls disconnect(). | |
NetMonTransportService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
NetMonTransportService Constructor. More... | |
void | connect () override |
Reconnect the NetMonTransportService. More... | |
void | disconnect () override |
Disconnects the NetMonTranportService. More... | |
void | listen () override |
Listen for connections. This method is a No-Op. | |
void | sendMessage (uint64_t sequenceId, uint8_t messageType, TBufferFile &msg) override |
Send ROOT data, wrapped in an artdaq::Fragment object. More... | |
void | receiveMessage (TBufferFile *&msg) override |
Receive data from the ConcurrentQueue. More... | |
size_t | dataReceiverCount () const |
Get the number of data receivers. More... | |
![]() | |
virtual | ~NetMonTransportServiceInterface ()=default |
Default virtual destructor. | |
NetMonTransportService extends NetMonTransportServiceInterface. It sends events using DataSenderManager and receives events from the GlobalQueue.
Definition at line 16 of file NetMonTransportService.h.
NetMonTransportService::NetMonTransportService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | |||
) |
NetMonTransportService Constructor.
pset | ParameterSet used to configure NetMonTransportService and DataSenderManager |
* NetMonTransportService accepts the following Parameters * "rank" (OPTIONAL): The rank of this applicaiton, for use by non-artdaq applications running NetMonTransportService *
Definition at line 38 of file NetMonTransportService_service.cc.
|
overridevirtual |
Reconnect the NetMonTransportService.
Creates a new instance of DataSenderManager using the stored ParameterSet
Implements NetMonTransportServiceInterface.
Definition at line 51 of file NetMonTransportService_service.cc.
|
inline |
Get the number of data receivers.
Definition at line 72 of file NetMonTransportService.h.
|
overridevirtual |
Disconnects the NetMonTranportService.
Destructs the DataSenderManager
Implements NetMonTransportServiceInterface.
Definition at line 65 of file NetMonTransportService_service.cc.
|
overridevirtual |
Receive data from the ConcurrentQueue.
[out] | msg | Received data |
Implements NetMonTransportServiceInterface.
Definition at line 94 of file NetMonTransportService_service.cc.
|
overridevirtual |
Send ROOT data, wrapped in an artdaq::Fragment object.
sequenceId | The sequence id of the Fragment which will wrap the ROOT data |
messageType | The type id of the Fragment which will wrap the ROOT data |
msg | The ROOT data to send |
Implements NetMonTransportServiceInterface.
Definition at line 72 of file NetMonTransportService_service.cc.