9 unsigned char logPriority,
const std::string& iniFile) :
242 if(connectionString !=
"" && connectionString !=
"0"){
282 std::string clientIdentity((
const char*)clientMsg.
pop_front().c_str());
283 std::string messageId((
const char*)clientMsg.
pop_front().c_str());
285 std::string messageRoute((clientMsg.
parts())?(
const char*)clientMsg.
pop_front().c_str():
"");
298 zmsg msg(messageId.c_str());
302 msg.append(messageRoute.c_str());
378 << Poco::DateTimeFormatter::format(Poco::LocalDateTime(Poco::Timestamp(Poco::Timestamp::fromEpochTime(
getHeartbeatAt()/1000))),
"%Y-%m-%d %H:%M:%S") <<
"'" <<
flush;
391 std::vector<ClientWorkerItem> queue;
407 return resourceUsageConverter.
toString();
432 std::stringstream result;
499 std::stringstream result;
521 std::istringstream(parameters) >> heartbeatDelay;
531 std::istringstream(parameters) >> heartbeatTimeout;
541 std::istringstream(parameters) >> hbMode;
561 std::vector<zmq::pollitem_t> items;
563 items ={{*
_dataClientSock, 0, ZMQ_POLLIN, 0},{*
_inprocDataSock, 0, ZMQ_POLLIN, 0},{*
_inprocAdminSock, 0, ZMQ_POLLIN, 0}};
574 zmq::poll(&items[0], items.size(), delay);
578 if(items[0].revents & ZMQ_POLLIN){
584 if(items[items.size() - 2].revents & ZMQ_POLLIN){
589 if(items[items.size() - 1].revents & ZMQ_POLLIN){
619 if (EINTR!=error.
num()){
620 std::cout <<
"DataClientData E: " << error.
what() <<
std::endl;
622 }
catch(std::exception& e){
623 std::cout <<
"DataClientData E: " << e.what() <<
std::endl;
625 std::cout <<
"DataClientData E: Unknown exception" <<
std::endl;