Examples of task_info_list()


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

    StormClusterState clusterState = data.getStormClusterState();
   
    topologyMetricInfo.set_topology_id(topologyId);
    try {
      //update task metrics list
      Map<Integer, TaskInfo> taskInfoList = clusterState.task_info_list(topologyId);
        List<TaskMetricInfo> taskMetricList = clusterState.get_task_metric_list(topologyId);     
        for(TaskMetricInfo taskMetricInfo : taskMetricList) {
          TaskMetricData taskMetricData = new TaskMetricData();
          NimbusUtils.updateTaskMetricData(taskMetricData, taskMetricInfo);
          TaskInfo taskInfo = taskInfoList.get(Integer.parseInt(taskMetricInfo.getTaskId()));
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.