Belle II Software development
|
List-like structure for storing and retaining event backups. More...
#include <ProcessedEventsBackupList.h>
Public Member Functions | |
void | storeEvent (std::unique_ptr< EvtMessage > evtMsg, const StoreObjPtr< EventMetaData > &evtMetaData, const unsigned int workerId) |
Add a new event backup with the given information. Takes ownership of the evt message. | |
void | removeEvent (const EventMetaData &evtMetaData) |
Remove all backups with the given event meta data (on confirmation) | |
int | checkForTimeout (const Duration &timeout) const |
Check the items for timeout. Returns -1 if no timeout happened and the worker id, if it did. | |
template<class AZMQClient > | |
void | sendWorkerBackupEvents (unsigned int worker, const AZMQClient &socket) |
Send all backups of a given worker directly to the multicast and delete them. | |
unsigned int | size () const |
Check the size. | |
Private Types | |
using | Duration = std::chrono::milliseconds |
Short for the class of a duration (always measured in milliseconds) | |
Private Attributes | |
std::vector< ProcessedEventBackup > | m_evtBackupVector |
The vector where the event backups are stored. | |
List-like structure for storing and retaining event backups.
Definition at line 24 of file ProcessedEventsBackupList.h.
|
private |
Short for the class of a duration (always measured in milliseconds)
Definition at line 26 of file ProcessedEventsBackupList.h.
int checkForTimeout | ( | const Duration & | timeout | ) | const |
Check the items for timeout. Returns -1 if no timeout happened and the worker id, if it did.
Definition at line 31 of file ProcessedEventsBackupList.cc.
void removeEvent | ( | const EventMetaData & | evtMetaData | ) |
Remove all backups with the given event meta data (on confirmation)
Definition at line 19 of file ProcessedEventsBackupList.cc.
unsigned int size | ( | ) | const |
Check the size.
Definition at line 43 of file ProcessedEventsBackupList.cc.
void storeEvent | ( | std::unique_ptr< EvtMessage > | evtMsg, |
const StoreObjPtr< EventMetaData > & | evtMetaData, | ||
const unsigned int | workerId | ||
) |
Add a new event backup with the given information. Takes ownership of the evt message.
Definition at line 12 of file ProcessedEventsBackupList.cc.
|
private |
The vector where the event backups are stored.
Definition at line 47 of file ProcessedEventsBackupList.h.