Package com.taobao.zeus.socket.protocol.Protocol

Examples of com.taobao.zeus.socket.protocol.Protocol.ExecuteKind


    history.setTriggerType(triggerType);
    history.setOperator(LoginUser.getUser().getUid());
    history.setIllustrate("触发人:"+LoginUser.getUser().getUid());
    history.setStatus(Status.RUNNING);
    jobHistoryManager.addJobHistory(history);
    ExecuteKind kind=null;
    if(triggerType==TriggerType.MANUAL){
      kind=ExecuteKind.ManualKind;
    }else if(triggerType==TriggerType.MANUAL_RECOVER){
      kind=ExecuteKind.ScheduleKind;
    }
View Full Code Here


  public void cancel(String historyId) throws GwtException {
    JobHistory history=jobHistoryManager.findJobHistory(historyId);
    if(!permissionManager.hasJobPermission(LoginUser.getUser().getUid(), history.getJobId())){
      throw new GwtException("你没有权限执行该操作");
    }
    ExecuteKind kind=null;
    if(history.getTriggerType()==TriggerType.MANUAL){
      kind=ExecuteKind.ManualKind;
    }else{
      kind=ExecuteKind.ScheduleKind;
    }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.socket.protocol.Protocol.ExecuteKind

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.