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

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


                "fileId:%s run failed ", history.getFileId()));
          }
          DebugInfoLog.info("debugId:" + debugId + " run fail ");
          history = context.getDebugHistoryManager()
              .findDebugHistory(debugId);
          DebugFailEvent jfe = new DebugFailEvent(
              history.getFileId(), history, exception);
          context.getDispatcher().forwardEvent(jfe);
        } else {
          // 运行成功,发出成功消息
          DebugInfoLog.info("debugId:" + debugId + " run success");
View Full Code Here


  }
  @Override
  public void beforeDispatch(MvcEvent mvce) {
    try {
      if(mvce.getAppEvent() instanceof DebugFailEvent){
        final DebugFailEvent event=(DebugFailEvent) mvce.getAppEvent();
        DebugHistory history=event.getHistory();
        FileDescriptor fd=fileManager.getFile(history.getFileId());
       
        String msg="调试任务:"+fd.getName()+" 运行失败";
        //此处可以发送IM消息
      }else if(mvce.getAppEvent() instanceof DebugSuccessEvent){
        final DebugSuccessEvent event=(DebugSuccessEvent) mvce.getAppEvent();
        DebugHistory history=event.getHistory();
        FileDescriptor fd=fileManager.getFile(history.getFileId());
       
        String msg="调试任务:"+fd.getName()+" 运行成功";
        //此处可以发送IM消息
      }
View Full Code Here

TOP

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

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.