26 std::unique_ptr<fair::mq::Message> reply(channel.NewMessage());
28 int timeoutinMS = 60000;
29 if (channel.Send(request, timeoutinMS) > 0) {
30 LOG(info) <<
"Waiting for configuration answer ";
31 if (channel.Receive(reply, timeoutinMS) > 0) {
32 LOG(info) <<
"Configuration answer received, containing " << reply->GetSize() <<
" bytes ";
35 auto message = std::make_unique<TMessageWrapper>(reply->GetData(), reply->GetSize());
41 LOG(info) <<
"COMMUNICATED ENGINE " << config->
mMCEngine;
44 conf.resetFromConfigData(*config);
45 FairLogger::GetLogger()->SetLogVerbosityLevel(conf.getLogVerbosity().c_str());
48 LOG(error) <<
"No configuration received within " << timeoutinMS <<
"ms\n";
52 LOG(error) <<
"Could not send configuration request within " << timeoutinMS <<
"ms\n";