Examples of task_heartbeat()


Examples of com.alibaba.jstorm.cluster.StormClusterState.task_heartbeat()

    Integer zkReportTime = null;

    StormClusterState stormClusterState = data.getStormClusterState();
    TaskHeartbeat zkTaskHeartbeat = null;
    try {
      zkTaskHeartbeat = stormClusterState.task_heartbeat(topologyId,
          taskId);
      if (zkTaskHeartbeat != null) {
        zkReportTime = zkTaskHeartbeat.getTimeSecs();
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.alipay.bluewhale.core.cluster.StormClusterState.task_heartbeat()

        Entry<Integer, String> entry =  it.next();
        Integer taskId =  entry.getKey();
        String componentId =  entry.getValue();
        NodePort np = (NodePort) assignment.getTaskToNodeport().get(taskId);
        //���ָ��task��������Ϣ
        TaskHeartbeat heartbeat = stormClusterState.task_heartbeat(topologyId, taskId);
        if (np == null || heartbeat == null) {
          continue;
        }
        String host = (String) assignment.getNodeHost().get(np.getNode());
        List<TaskError> errors = stormClusterState.task_errors(topologyId, taskId);
View Full Code Here

Examples of com.alipay.bluewhale.core.cluster.StormClusterState.task_heartbeat()

      }else{
        con.setHostname("nohost");
      }
      con.setTaskId(tid);
      con.setTaskInfo(stat.task_info(stormId, tid));
      con.setHb(stat.task_heartbeat(stormId, tid));
      con.setTaskerrors(stat.task_errors(stormId, tid));
     
      StringBuffer buff=new StringBuffer();
      buff.append("getComponentId:"+ con.getTaskInfo().getComponentId()+"<br>\r\n");
      buff.append("任务:"+ String.format("%03d",con.getTaskId())+"<br>\r\n");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.