Package com.taobao.zeus.model.JobStatus

Examples of com.taobao.zeus.model.JobStatus.TriggerType


      @Override
      public void run() {
        JobHistory his = context.getJobHistoryManager().findJobHistory(
            context.getGroupManager().getJobStatus(jobId)
                .getHistoryId());
        TriggerType type = his.getTriggerType();
        ScheduleInfoLog.info("JobId:" + jobId + " run start");
        his.getLog().appendZeus(
            new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
                .format(new Date()) + " 开始运行");
        context.getJobHistoryManager().updateJobHistoryLog(his.getId(),
View Full Code Here


  protected UserManager userManager;
  @Override
  public void alarm(String historyId, String title, String content,ChainException chain)
      throws Exception {
    JobHistory history=jobHistoryManager.findJobHistory(historyId);
    TriggerType type=history.getTriggerType();
    String jobId=history.getJobId();
    List<String> users=new ArrayList<String>();
    if(type==TriggerType.SCHEDULE){
      users=followManager.findActualJobFollowers(jobId);
    }else{
View Full Code Here

    return jobService.jobHistoryPaging(jobId,config);
  }

  @Override
  public void run(String jobId, int type) throws GwtException {
    TriggerType triggerType=null;
    if(type==1){
      triggerType=TriggerType.MANUAL;
    }else if(type==2){
      triggerType=TriggerType.MANUAL_RECOVER;
    }
View Full Code Here

      }
    }
  }
  @Override
  public void run(String jobId, int type) throws GwtException {
    TriggerType triggerType=null;
    if(type==1){
      triggerType=TriggerType.MANUAL;
    }else if(type==2){
      triggerType=TriggerType.MANUAL_RECOVER;
    }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.model.JobStatus.TriggerType

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.