mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
use factory for sockets
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include <string>
|
||||
|
||||
#include "FairMQDevice.h"
|
||||
#include "TString.h"
|
||||
|
||||
/**
|
||||
* Sampler to generate traffic for benchmarking.
|
||||
@@ -28,16 +27,16 @@ class FairMQBenchmarkSampler: public FairMQDevice
|
||||
};
|
||||
FairMQBenchmarkSampler();
|
||||
virtual ~FairMQBenchmarkSampler();
|
||||
void Log(Int_t intervalInMs);
|
||||
void Log(int intervalInMs);
|
||||
void ResetEventCounter();
|
||||
virtual void SetProperty(const Int_t& key, const TString& value, const Int_t& slot = 0);
|
||||
virtual TString GetProperty(const Int_t& key, const TString& default_ = "", const Int_t& slot = 0);
|
||||
virtual void SetProperty(const Int_t& key, const Int_t& value, const Int_t& slot = 0);
|
||||
virtual Int_t GetProperty(const Int_t& key, const Int_t& default_ = 0, const Int_t& slot = 0);
|
||||
virtual void SetProperty(const int& key, const std::string& value, const int& slot = 0);
|
||||
virtual std::string GetProperty(const int& key, const std::string& default_ = "", const int& slot = 0);
|
||||
virtual void SetProperty(const int& key, const int& value, const int& slot = 0);
|
||||
virtual int GetProperty(const int& key, const int& default_ = 0, const int& slot = 0);
|
||||
protected:
|
||||
Int_t fEventSize;
|
||||
Int_t fEventRate;
|
||||
Int_t fEventCounter;
|
||||
int fEventSize;
|
||||
int fEventRate;
|
||||
int fEventCounter;
|
||||
virtual void Init();
|
||||
virtual void Run();
|
||||
};
|
||||
|
Reference in New Issue
Block a user