Package com.taobao.zeus.model

Examples of com.taobao.zeus.model.JobHistory


      dep.putAll(status.getReadyDependency());
      model.setReadyDependencies(dep);
      model.setStatus(status.getStatus()==null?null:status.getStatus().getId());
      model.setName(jd.getName());
      model.setAuto(jd.getAuto());
      JobHistory his=jobHisMap.get(jd.getId());
      if(his!=null && his.getStartTime()!=null){
        SimpleDateFormat format=new SimpleDateFormat("MM-dd HH:mm:ss");
        model.setLastStatus(format.format(his.getStartTime())+" "+(his.getStatus()==null?"":his.getStatus().getId()));
      }
      result.add(model);
    }
   
    return new PagingLoadResultBean<JobModel>(result,total,start);
View Full Code Here


      gb=globe.getAllSubGroupBeans().get(groupId);
    }
    Set<String> jobs=gb.getAllSubJobBeans().keySet();
    List<JobHistory> list=jobHistoryManager.findRecentRunningHistory();
    for(Iterator<JobHistory> it=list.iterator();it.hasNext();){
      JobHistory j=it.next();
      if(j.getStatus()==Status.SUCCESS || j.getStatus()==Status.FAILED){
        it.remove();
        continue;
      }
      if(j.getTriggerType()!=TriggerType.MANUAL){
        it.remove();
        continue;
      }
      if(!jobs.contains(j.getJobId())){
        it.remove();
        continue;
      }
    }
    List<JobHistoryModel> result=new ArrayList<JobHistoryModel>();
View Full Code Here

TOP

Related Classes of com.taobao.zeus.model.JobHistory

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.