Allow to limit number of messages for the Benchmark sampler and sink

This commit is contained in:
Alexey Rybalchenko
2016-01-07 17:37:43 +01:00
committed by Florian Uhlig
parent c10a6abeef
commit 0e1a1ad552
7 changed files with 161 additions and 69 deletions

View File

@@ -28,8 +28,9 @@ class FairMQBenchmarkSampler : public FairMQDevice
public:
enum
{
EventSize = FairMQDevice::Last,
EventRate,
MsgSize = FairMQDevice::Last,
NumMsgs,
MsgRate,
Last
};
@@ -37,7 +38,6 @@ class FairMQBenchmarkSampler : public FairMQDevice
virtual ~FairMQBenchmarkSampler();
void Log(int intervalInMs);
void ResetEventCounter();
virtual void SetProperty(const int key, const std::string& value);
virtual std::string GetProperty(const int key, const std::string& default_ = "");
@@ -48,9 +48,8 @@ class FairMQBenchmarkSampler : public FairMQDevice
virtual void ListProperties();
protected:
int fEventSize;
int fEventRate;
int fEventCounter;
int fMsgSize;
int fNumMsgs;
virtual void Run();
};