mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Update JSON files & readme, use FairMQDevicePtr, cleanup.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"fairMQOptions":
|
||||
{
|
||||
"device":
|
||||
{
|
||||
"devices":
|
||||
[{
|
||||
"id": "bsampler1",
|
||||
"channel":
|
||||
{
|
||||
"name": "data-out",
|
||||
"name": "data",
|
||||
"socket":
|
||||
{
|
||||
"type": "push",
|
||||
@@ -18,12 +18,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"device":
|
||||
{
|
||||
"id": "sink1",
|
||||
"channel":
|
||||
{
|
||||
"name": "data-in",
|
||||
"name": "data",
|
||||
"socket":
|
||||
{
|
||||
"type": "pull",
|
||||
@@ -34,7 +33,7 @@
|
||||
"rateLogging": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -14,13 +14,13 @@ namespace bpo = boost::program_options;
|
||||
void addCustomOptions(bpo::options_description& options)
|
||||
{
|
||||
options.add_options()
|
||||
("out-channel", bpo::value<std::string>()->default_value("data-out"), "Name of the output channel")
|
||||
("out-channel", bpo::value<std::string>()->default_value("data"), "Name of the output channel")
|
||||
("msg-size", bpo::value<int>()->default_value(1000), "Message size in bytes")
|
||||
("num-msgs", bpo::value<int>()->default_value(0), "Number of messages to send")
|
||||
("msg-rate", bpo::value<int>()->default_value(0), "Msg rate limit in maximum number of messages per second");
|
||||
}
|
||||
|
||||
FairMQDevice* getDevice(const FairMQProgOptions& /*config*/)
|
||||
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
|
||||
{
|
||||
return new FairMQBenchmarkSampler();
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ void addCustomOptions(bpo::options_description& options)
|
||||
("multipart", bpo::value<int>()->default_value(1), "Handle multipart payloads");
|
||||
}
|
||||
|
||||
FairMQDevice* getDevice(const FairMQProgOptions& /*config*/)
|
||||
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
|
||||
{
|
||||
return new FairMQMerger();
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ void addCustomOptions(bpo::options_description& options)
|
||||
("multipart", bpo::value<int>()->default_value(1), "Handle multipart payloads");
|
||||
}
|
||||
|
||||
FairMQDevice* getDevice(const FairMQProgOptions& /*config*/)
|
||||
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
|
||||
{
|
||||
return new FairMQMultiplier();
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ void addCustomOptions(bpo::options_description& options)
|
||||
("multipart", bpo::value<int>()->default_value(1), "Handle multipart payloads");
|
||||
}
|
||||
|
||||
FairMQDevice* getDevice(const FairMQProgOptions& /*config*/)
|
||||
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
|
||||
{
|
||||
return new FairMQProxy();
|
||||
}
|
||||
|
@@ -14,11 +14,11 @@ namespace bpo = boost::program_options;
|
||||
void addCustomOptions(bpo::options_description& options)
|
||||
{
|
||||
options.add_options()
|
||||
("in-channel", bpo::value<std::string>()->default_value("data-in"), "Name of the input channel")
|
||||
("in-channel", bpo::value<std::string>()->default_value("data"), "Name of the input channel")
|
||||
("num-msgs", bpo::value<int>()->default_value(0), "Number of messages to receive");
|
||||
}
|
||||
|
||||
FairMQDevice* getDevice(const FairMQProgOptions& /*config*/)
|
||||
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
|
||||
{
|
||||
return new FairMQSink();
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ void addCustomOptions(bpo::options_description& options)
|
||||
("multipart", bpo::value<int>()->default_value(1), "Handle multipart payloads");
|
||||
}
|
||||
|
||||
FairMQDevice* getDevice(const FairMQProgOptions& /*config*/)
|
||||
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
|
||||
{
|
||||
return new FairMQSplitter();
|
||||
}
|
||||
|
Reference in New Issue
Block a user