Package com.taobao.zeus.web.platform.client.module.jobdisplay.job

Examples of com.taobao.zeus.web.platform.client.module.jobdisplay.job.JobHistoryModel


   
    grid.addCellDoubleClickHandler(new CellDoubleClickHandler() {
      @Override
      public void onCellClick(CellDoubleClickEvent event) {
        int row=event.getRowIndex();
        JobHistoryModel model=grid.getStore().get(row);
        if(model!=null){
          TreeNodeSelectEvent te=new TreeNodeSelectEvent(TreeKeyProviderTool.genJobProviderKey(model.getJobId()));
          presenter.getPlatformContext().getPlatformBus().fireEvent(te);
        }
      }
    });
   
View Full Code Here


   
    grid.addCellDoubleClickHandler(new CellDoubleClickHandler() {
      @Override
      public void onCellClick(CellDoubleClickEvent event) {
        int row=event.getRowIndex();
        JobHistoryModel model=grid.getStore().get(row);
        if(model!=null){
          TreeNodeSelectEvent te=new TreeNodeSelectEvent(TreeKeyProviderTool.genJobProviderKey(model.getJobId()));
          presenter.getPlatformContext().getPlatformBus().fireEvent(te);
        }
      }
    });
   
View Full Code Here

    }
  }
  @Override
  public JobHistoryModel getJobHistory(String id) {
    JobHistory his=jobHistoryManager.findJobHistory(id);
    JobHistoryModel d=new JobHistoryModel();
    d.setId(his.getId());
    d.setJobId(his.getJobId());
    d.setStartTime(his.getStartTime());
    d.setEndTime(his.getEndTime());
    d.setExecuteHost(his.getExecuteHost());
    d.setStatus(his.getStatus()==null?null:his.getStatus().toString());
    String type="";
    if(his.getTriggerType()!=null){
      if(his.getTriggerType()==TriggerType.MANUAL){
        type="手动调度";
      }else if(his.getTriggerType()==TriggerType.MANUAL_RECOVER){
        type="手动恢复";
      }else if(his.getTriggerType()==TriggerType.SCHEDULE){
        type="自动调度";
      }
    }
    d.setTriggerType(type);
    d.setIllustrate(his.getIllustrate());
    d.setLog(his.getLog().getContent());
    return d;
  }
View Full Code Here

    List<JobHistory> list=jobHistoryManager.pagingList(jobId, config.getOffset(), config.getLimit());
    int total =jobHistoryManager.pagingTotal(jobId);
   
    List<JobHistoryModel> data=new ArrayList<JobHistoryModel>();
    for(JobHistory his:list){
      JobHistoryModel d=new JobHistoryModel();
      d.setId( his.getId());
      d.setJobId(his.getJobId());
      d.setStartTime(his.getStartTime());
      d.setEndTime(his.getEndTime());
      d.setExecuteHost(his.getExecuteHost());
      d.setOperator(his.getOperator());
      d.setStatus(his.getStatus()==null?null:his.getStatus().toString());
      String type="";
      if(his.getTriggerType()!=null){
        if(his.getTriggerType()==TriggerType.MANUAL){
          type="手动调度";
        }else if(his.getTriggerType()==TriggerType.MANUAL_RECOVER){
          type="手动恢复";
        }else if(his.getTriggerType()==TriggerType.SCHEDULE){
          type="自动调度";
        }
      }
      d.setTriggerType(type);
      d.setIllustrate(his.getIllustrate());
      data.add(d);
    }
   
    return new PagingLoadResultBean<JobHistoryModel>(data,total,config.getOffset());
  }
View Full Code Here

      }else{
        hiss.add(jobHistoryManager.findJobHistory(js.getHistoryId()));       
      }
    }
    for(JobHistory his:hiss){
      JobHistoryModel d=new JobHistoryModel();
      d.setId(his.getId());
      d.setName(gb.getAllSubJobBeans().get(his.getJobId()).getJobDescriptor().getName());
      d.setOwner(gb.getAllSubJobBeans().get(his.getJobId()).getJobDescriptor().getOwner());
      d.setJobId(his.getJobId());
      d.setStartTime(his.getStartTime());
      d.setEndTime(his.getEndTime());
      d.setExecuteHost(his.getExecuteHost());
      d.setStatus(his.getStatus()==null?null:his.getStatus().toString());
      String type="";
      if(his.getTriggerType()!=null){
        if(his.getTriggerType()==TriggerType.MANUAL){
          type="手动调度";
        }else if(his.getTriggerType()==TriggerType.MANUAL_RECOVER){
          type="手动恢复";
        }else if(his.getTriggerType()==TriggerType.SCHEDULE){
          type="自动调度";
        }
      }
      d.setTriggerType(type);
      d.setIllustrate(his.getIllustrate());
      result.add(d);
    }
   
    return result;
  }
View Full Code Here

        continue;
      }
    }
    List<JobHistoryModel> result=new ArrayList<JobHistoryModel>();
    for(JobHistory his:list){
      JobHistoryModel d=new JobHistoryModel();
      d.setId(his.getId());
      d.setName(gb.getAllSubJobBeans().get(his.getJobId()).getJobDescriptor().getName());
      d.setOwner(gb.getAllSubJobBeans().get(his.getJobId()).getJobDescriptor().getOwner());
      d.setJobId(his.getJobId());
      d.setStartTime(his.getStartTime());
      d.setEndTime(his.getEndTime());
      d.setExecuteHost(his.getExecuteHost());
      d.setStatus(his.getStatus()==null?null:his.getStatus().toString());
      String type="";
      if(his.getTriggerType()!=null){
        if(his.getTriggerType()==TriggerType.MANUAL){
          type="手动调度";
        }else if(his.getTriggerType()==TriggerType.MANUAL_RECOVER){
          type="手动恢复";
        }else if(his.getTriggerType()==TriggerType.SCHEDULE){
          type="自动调度";
        }
      }
      d.setTriggerType(type);
      d.setIllustrate(his.getIllustrate());
      result.add(d);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.module.jobdisplay.job.JobHistoryModel

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.