10 unsigned char logPriority,
const std::string& iniFile) :
12 _shiftCounter(), _clientsQueue(){
193 std::string addr ((addrp)?addrp:
"");
255 << Poco::DateTimeFormatter::format(Poco::LocalDateTime(Poco::Timestamp(Poco::Timestamp::fromEpochTime(
getHeartbeatAt()/1000))),
"%Y-%m-%d %H:%M:%S") <<
"'" <<
flush;
321 std::stringstream result;
338 std::stringstream result;
359 std::istringstream(parameters) >> heartbeatDelay;
369 std::istringstream(parameters) >> hbTimeout;
379 std::istringstream(parameters) >> hbMode;
397 std::vector<zmq::pollitem_t> items;
399 items ={{*
_dataClientSock, 0, ZMQ_POLLIN, 0},{*
_inprocReducerOutSock, 0, ZMQ_POLLIN, 0},{*
_inprocAdminSock, 0, ZMQ_POLLIN, 0},{*
_inprocProxySock, 0, ZMQ_POLLIN, 0}};
401 items ={{*
_inprocReducerOutSock, 0, ZMQ_POLLIN, 0},{*
_inprocAdminSock, 0, ZMQ_POLLIN, 0},{*
_inprocProxySock, 0, ZMQ_POLLIN, 0}};
409 if(items[0].revents & ZMQ_POLLIN){
415 if(items[items.size() - 3].revents & ZMQ_POLLIN){
420 if(items[items.size() - 2].revents & ZMQ_POLLIN){
425 if(items[items.size() - 1].revents & ZMQ_POLLIN){
441 if (EINTR!=error.
num()){
442 std::cout <<
"DataClientProxy E: " << error.
what() <<
std::endl;
444 }
catch(std::exception& e){
445 std::cout <<
"DataClientProxy E: " << e.what() <<
std::endl;
447 std::cout <<
"DataClientProxy E: Unknown exception" <<
std::endl;