mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 10:01:47 +00:00
Allow to limit number of messages for the Benchmark sampler and sink
This commit is contained in:
committed by
Florian Uhlig
parent
c10a6abeef
commit
0e1a1ad552
@@ -15,15 +15,33 @@
|
||||
#ifndef FAIRMQSINK_H_
|
||||
#define FAIRMQSINK_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "FairMQDevice.h"
|
||||
|
||||
class FairMQSink : public FairMQDevice
|
||||
{
|
||||
public:
|
||||
enum
|
||||
{
|
||||
NumMsgs = FairMQDevice::Last,
|
||||
Last
|
||||
};
|
||||
|
||||
FairMQSink();
|
||||
virtual ~FairMQSink();
|
||||
|
||||
virtual void SetProperty(const int key, const std::string& value);
|
||||
virtual std::string GetProperty(const int key, const std::string& default_ = "");
|
||||
virtual void SetProperty(const int key, const int value);
|
||||
virtual int GetProperty(const int key, const int default_ = 0);
|
||||
|
||||
virtual std::string GetPropertyDescription(const int key);
|
||||
virtual void ListProperties();
|
||||
|
||||
protected:
|
||||
int fNumMsgs;
|
||||
|
||||
virtual void Run();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user