Package com.taobao.zeus.schedule.mvc.event

Examples of com.taobao.zeus.schedule.mvc.event.JobSuccessEvent


          context.getDispatcher().forwardEvent(jfe);
        } else {
          // 运行成功,发出成功消息
          ScheduleInfoLog.info("manual jobId::" + history.getJobId()
              + " run success");
          JobSuccessEvent jse = new JobSuccessEvent(
              history.getJobId(), history.getTriggerType(),
              historyId);
          context.getDispatcher().forwardEvent(jse);
        }
      };
View Full Code Here


          context.getDispatcher().forwardEvent(jfe);
        } else {
          // 运行成功,发出成功消息
          ScheduleInfoLog.info("JobId:" + jobId
              + " run success and dispatch the success event");
          JobSuccessEvent jse = new JobSuccessEvent(jobId,
              his.getTriggerType(), his.getId());
          context.getDispatcher().forwardEvent(jse);
        }
      }
    }.start();
View Full Code Here

  }
  @Override
  public void beforeDispatch(MvcEvent mvce) {
    try {
      if(mvce.getAppEvent() instanceof JobSuccessEvent){
        final JobSuccessEvent event=(JobSuccessEvent) mvce.getAppEvent();
        if(event.getTriggerType()==TriggerType.SCHEDULE){
          return;
        }
        JobHistory history=jobHistoryManager.findJobHistory(event.getHistoryId());
        final JobDescriptor jd=groupManager.getJobDescriptor(history.getJobId()).getX();
        if(history.getOperator()!=null){
          //此处可以发送IM消息
        }
      }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.schedule.mvc.event.JobSuccessEvent

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.