 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreObjPtr.h>
14 #include <framework/dataobjects/EventMetaData.h>
15 #include <framework/core/RandomGenerator.h>
16 #include <framework/pcore/zmq/sockets/ZMQClient.h>
17 #include <framework/pcore/zmq/utils/StreamHelper.h>
28 class ZMQRxWorkerModule :
public Module {
33 void event()
override;
int m_param_compressionLevel
Parameter: Compression level of the streamer.
void terminate() override
Terminate the client and tell the monitor, we are done.
StreamHelper m_streamer
The data store streamer.
std::string m_param_xpubProxySocketName
Parameter: name of the pub multicast socket.
void event() override
Receive an event and store it in the datastore. Tell the input process we are ready.
void initialize() override
Initialize the streamer.
bool m_firstEvent
Set to false if the objects are initialized.
StoreObjPtr< EventMetaData > m_eventMetaData
The event meta data in the data store needed for confirming events.
Helper class for data store serialization.
unsigned int m_param_bufferSize
How many events do we want to have in the buffer.
std::string m_param_xsubProxySocketName
Parameter: name of the sub multicast socket.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
std::string m_param_socketName
Parameter: name of the data socket.
bool m_param_handleMergeable
Parameter: Can we handle mergeables?
ZMQClient m_zmqClient
Our ZMQ client.
ZMQRxWorkerModule()
Constructor setting the moudle paramters.
unsigned int m_param_maximalWaitingTime
Maximal time to wait in polling.
StoreObjPtr< RandomGenerator > m_randomgenerator
The random generator in the data store.
A helper class for communicating over ZMQ. Includes a multicast and (if needed) also a data socket.