artdaq
v3_02_00
|
RTIDDSTransfer is a TransferInterface implementation plugin that transfers data using RTI DDS. More...
Public Member Functions | |
virtual | ~RTIDDSTransfer ()=default |
RTIDDSTransfer default Destructor. | |
RTIDDSTransfer (fhicl::ParameterSet const &ps, Role role) | |
RTIDDSTransfer Constructor. More... | |
int | receiveFragment (artdaq::Fragment &fragment, size_t receiveTimeout) override |
Receive a Fragment using DDS. More... | |
CopyStatus | copyFragment (artdaq::Fragment &fragment, size_t send_timeout_usec=std::numeric_limits< size_t >::max()) override |
Copy a Fragment to the destination. More... | |
CopyStatus | moveFragment (artdaq::Fragment &&fragment, size_t send_timeout_usec=std::numeric_limits< size_t >::max()) override |
Move a Fragment to the destination. More... | |
bool | isRunning () override |
Determine whether the TransferInterface plugin is able to send/receive data. More... | |
![]() | |
TransferInterface (const fhicl::ParameterSet &ps, Role role) | |
TransferInterface Constructor. More... | |
TransferInterface (const TransferInterface &)=delete | |
Copy Constructor is deleted. | |
TransferInterface & | operator= (const TransferInterface &)=delete |
Copy Assignment operator is deleted. More... | |
virtual | ~TransferInterface ()=default |
Default virtual Destructor. | |
virtual int | receiveFragmentHeader (detail::RawFragmentHeader &header, size_t receiveTimeout)=0 |
Receive a Fragment Header from the transport mechanism. More... | |
virtual int | receiveFragmentData (RawDataType *destination, size_t wordCount)=0 |
Receive the body of a Fragment to the given destination pointer. More... | |
virtual CopyStatus | moveFragment (artdaq::Fragment &&fragment)=0 |
Move a Fragment to the destination. This should be reliable, if the underlying transport mechanism supports reliable sending. More... | |
std::string | uniqueLabel () const |
Get the unique label of this TransferInterface instance. More... | |
virtual int | source_rank () const |
Get the source rank for this TransferInterface instance. More... | |
virtual int | destination_rank () const |
Get the destination rank for this TransferInterface instance. More... | |
std::string | GetTraceName () const |
Constructs a name suitable for TRACE messages. More... | |
Additional Inherited Members | |
![]() | |
enum | : int { DATA_END = -2222, RECV_TIMEOUT = -1111, RECV_SUCCESS = 0 } |
enum | Role { Role::kSend, Role::kReceive } |
Used to determine if a TransferInterface is a Sender or Receiver. More... | |
enum | CopyStatus { CopyStatus::kSuccess, CopyStatus::kTimeout, CopyStatus::kErrorNotRequiringException } |
Returned from the send functions, this enumeration describes the possible return codes. If an exception occurs, it will be thrown and should be handled normally. More... | |
![]() | |
static std::string | CopyStatusToString (CopyStatus in) |
![]() | |
Role | role () const |
Get the TransferInterface::Role of this TransferInterface. More... | |
![]() | |
size_t | buffer_count_ |
The number of Fragment transfers the TransferInterface can handle simultaneously. | |
const size_t | max_fragment_size_words_ |
The maximum size of the transferred Fragment objects, in artdaq::Fragment::RawDataType words. | |
const short | partition_number_ |
The partition number of the DAQ. | |
RTIDDSTransfer is a TransferInterface implementation plugin that transfers data using RTI DDS.
Definition at line 22 of file RTIDDS_transfer.cc.
|
inline |
RTIDDSTransfer Constructor.
ps | ParameterSet used to configure RTIDDSTransfer |
role | Role of this RTIDDSTransfer instance (kSend or kReceive) |
RTIDDSTransfer only requires the Parameters for configuring a TransferInterface
Definition at line 37 of file RTIDDS_transfer.cc.
|
overridevirtual |
Copy a Fragment to the destination.
fragment | Fragment to copy |
send_timeout_usec | Timeout for send, in microseconds. Default size_t::MAX_VALUE |
Implements artdaq::TransferInterface.
Definition at line 136 of file RTIDDS_transfer.cc.
|
inlineoverridevirtual |
Determine whether the TransferInterface plugin is able to send/receive data.
Reimplemented from artdaq::TransferInterface.
Definition at line 73 of file RTIDDS_transfer.cc.
|
override |
Move a Fragment to the destination.
fragment | Fragment to move |
send_timeout_usec | Timeout for send, in microseconds. Default size_t::MAX_VALUE |
Definition at line 127 of file RTIDDS_transfer.cc.
|
overridevirtual |
Receive a Fragment using DDS.
[out] | fragment | Received Fragment |
receiveTimeout | Timeout for receive, in microseconds |
Reimplemented from artdaq::TransferInterface.
Definition at line 89 of file RTIDDS_transfer.cc.