Package com.alipay.bluewhale.core.messaging

Examples of com.alipay.bluewhale.core.messaging.IConnection


        taskStats, reportErrorDie);
  }

  public TaskShutdownDameon execute() throws Exception {

    IConnection puller = mqContext.bind(topologyid, taskid);

    // ���������߳�
    TaskHeartbeatRunable hb = new TaskHeartbeatRunable(zkCluster, topologyid,
        taskid, uptime, taskStats, active, stormConf);
    AsyncLoopThread heartbeat_thread = new AsyncLoopThread(hb, true,
View Full Code Here


      task.shutdown();
    }

    // �رշ���tuple��socket����
    for (NodePort k : nodeportSocket.keySet()) {
      IConnection value = nodeportSocket.get(k);
      value.close();
    }

    virtualPortShutdown.shutdown();
    mq_context.term();
View Full Code Here

      // �����µ����ӣ�Ȼ�����Ӷ�����ӵ�node_port__socket��
      if (node != null) {
        for (NodePort nodePort : new_connections) {
          String host = node.get(nodePort.getNode());
          int port = nodePort.getPort();
          IConnection conn = mqContext
              .connect(topologyId, host, port);
          nodeportSocket.put(nodePort, conn);
        }
      }
      // �ر�Ӧ�ùرյ�����
View Full Code Here

              String errormsg = "can`t not found IConnection";
              LOG.warn("DrainerRunable warn", new Exception(
                  errormsg));
              continue;
            }
            IConnection conn = nodeportSocket.get(nodePort);
            if (conn == null) {
              String errormsg = "can`t not found nodePort";
              LOG.warn("DrainerRunable warn", new Exception(
                  errormsg));
              continue;
            }

            conn.send(taskId, tuple);
          }
          drainer.clear();
        }
      } catch (Exception e) {
        LOG.error("DrainerRunable send error", e);
View Full Code Here

TOP

Related Classes of com.alipay.bluewhale.core.messaging.IConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.