Package com.alipay.bluewhale.core.task.common

Examples of com.alipay.bluewhale.core.task.common.TaskInfo


    Set<Entry<Integer, String>> entrySet = taskToComponetId.entrySet();
    for (Iterator<Entry<Integer, String>> it = entrySet.iterator(); it
        .hasNext();) {
      // key is taskid, value is taskinfo
      Entry<Integer, String> entry = it.next();
      TaskInfo taskinfo = new TaskInfo(entry.getValue());
      stormClusterState.set_task(stormId, entry.getKey(), taskinfo);
    }
  }
View Full Code Here


      shardTask.put(i, new HashSet<Integer>());
      realtimeTask.put(i, new HashSet<Integer>());
    }
   
    for (Integer tid : reassignIds) {
      TaskInfo info = assen.zkCluster.task_info(assen.topologyId, tid);
      if (info == null) {
        this.otherTask.add(tid);
      }
      String commnetId=info.getComponentId();
      Integer group=0;
      String[] cols=commnetId.split("@");
      if(cols.length>=2)
      {
        group=StormUtils.parseInt(cols[1]);
View Full Code Here

        List<Integer> taks_ids = zkCluster.task_ids(topologyid);
        HashMap<Integer, String> rtn = null;
        if (taks_ids != null) {
          rtn = new HashMap<Integer, String>();
            for (Integer task : taks_ids) {
                TaskInfo info = zkCluster.task_info(topologyid, task);
                String componment_id = info.getComponentId();
                rtn.put(task, componment_id);
            }
        }
        return rtn;
    }
View Full Code Here

      nonAssignNodePort.add(p);
    }
   
    for(Integer task:reassignIds)
    {
      TaskInfo info=taskId2TaskInfo.get(task);
      if(info==null)
      {
        nonAssignTask.add(task);
        LOG.info("can`t find task:"+task+","+this.topologyId);
        continue;
      }
     
      String componname=info.getComponentId();
      Integer index=taskId2Index.get(new TaskId(componname, task));
      if(index==null)
      {
        nonAssignTask.add(task);
        LOG.info("can`t find taskindex:"+task+","+this.topologyId+",index:"+index);
View Full Code Here

    Set<Integer> allTaskIds = StormUtils.listToSet(this.zkCluster.task_ids(this.topologyId));
   
    HashSet<String> componnames=new HashSet<String>();
    HashMap<String,ArrayList<Integer>> componname2Ids=new HashMap<String,ArrayList<Integer>>();
    for (Integer tid : allTaskIds) {
      TaskInfo info = this.zkCluster.task_info(this.topologyId, tid);
      if (info == null) {
        LOG.info("can`t find TaskInfo "+this.topologyId+","+ tid);
        continue;
      }
      taskId2TaskInfo.put(tid, info);
     
      String componentId=info.getComponentId();
      componnames.add(componentId);
      ArrayList<Integer> tasks=componname2Ids.get(componentId);
      if(tasks==null)
      {
        tasks=new ArrayList<Integer>();
View Full Code Here

TOP

Related Classes of com.alipay.bluewhale.core.task.common.TaskInfo

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.