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. | |
void | connect () override |
Reconnect the NetMonTransportService. | |
void | disconnect () override |
Disconnects the NetMonTranportService. | |
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. | |
void | receiveMessage (TBufferFile *&msg) override |
Receive data from the ConcurrentQueue. | |
size_t | dataReceiverCount () const |
Get the number of data receivers. |
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 *
void NetMonTransportService::connect | ( | ) | [override, virtual] |
Reconnect the NetMonTransportService.
Creates a new instance of DataSenderManager using the stored ParameterSet
Implements NetMonTransportServiceInterface.
Definition at line 51 of file NetMonTransportService_service.cc.
size_t NetMonTransportService::dataReceiverCount | ( | ) | const [inline] |
Get the number of data receivers.
Definition at line 72 of file NetMonTransportService.h.
void NetMonTransportService::disconnect | ( | ) | [override, virtual] |
Disconnects the NetMonTranportService.
Destructs the DataSenderManager
Implements NetMonTransportServiceInterface.
Definition at line 65 of file NetMonTransportService_service.cc.
void NetMonTransportService::receiveMessage | ( | TBufferFile *& | msg | ) | [override, virtual] |
Receive data from the ConcurrentQueue.
[out] | msg | Received data |
Implements NetMonTransportServiceInterface.
Definition at line 94 of file NetMonTransportService_service.cc.
void NetMonTransportService::sendMessage | ( | uint64_t | sequenceId, | |
uint8_t | messageType, | |||
TBufferFile & | msg | |||
) | [override, virtual] |
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.