NetMonTransportService Class Reference

NetMonTransportService extends NetMonTransportServiceInterface. It sends events using DataSenderManager and receives events from the GlobalQueue. More...

#include <artdaq/ArtModules/NetMonTransportService.h>

Inheritance diagram for NetMonTransportService:
NetMonTransportServiceInterface

List of all members.

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.

Detailed Description

NetMonTransportService extends NetMonTransportServiceInterface. It sends events using DataSenderManager and receives events from the GlobalQueue.

Definition at line 16 of file NetMonTransportService.h.


Constructor & Destructor Documentation

NetMonTransportService::NetMonTransportService ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry &   
)

NetMonTransportService Constructor.

Parameters:
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
	 * 

Member Function Documentation

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.

Returns:
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.

Parameters:
[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.

Parameters:
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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on 23 May 2017 for artdaq by  doxygen 1.6.1