Package com.taobao.zeus.web.platform.client.util

Examples of com.taobao.zeus.web.platform.client.util.GwtException


      throws GwtException {
    try {
      permissionGroupManager.moveGroup(LoginUser.getUser().getUid(), groupId, newParentGroupId);
    } catch (ZeusException e) {
      log.error("move",e);
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here


  private JobService jobService;
  @Override
  public JobModel createJob(String jobName, String parentGroupId,
      String jobType) throws GwtException {
    if(Environment.isPrePub()){
      throw new GwtException("预发环境无法创建Job");
    }
    return jobService.createJob(jobName, parentGroupId, jobType);
  }
View Full Code Here

  }

  @Override
  public void deleteJob(String jobId) throws GwtException {
    if(Environment.isPrePub()){
      throw new GwtException("预发环境无法删除Job");
    }
    jobService.deleteJob(jobId);
  }
View Full Code Here

      triggerType=TriggerType.MANUAL;
    }else if(type==2){
      triggerType=TriggerType.MANUAL_RECOVER;
    }
    if(Environment.isPrePub() && triggerType==TriggerType.MANUAL_RECOVER){
      throw new GwtException("预发环境无法 执行 手动恢复操作");
    }
    jobService.run(jobId, type);
  }
View Full Code Here

  }

  @Override
  public void switchAuto(String jobId, Boolean auto) throws GwtException {
    if(Environment.isPrePub()){
      throw new GwtException("预发环境无法修改状态");
    }
    jobService.switchAuto(jobId, auto);
  }
View Full Code Here

  }

  @Override
  public JobModel updateJob(JobModel jobModel) throws GwtException {
    if(Environment.isPrePub()){
      throw new GwtException("预发环境无法更新Job");
    }
    return jobService.updateJob(jobModel);
  }
View Full Code Here

    String debugId = history.getId();

    try {
      worker.executeJobFromWeb(ExecuteKind.DebugKind, history.getId());
    } catch (Exception e) {
      throw new GwtException(e.getMessage());
    }

    return debugId;
  }
View Full Code Here

    try {
      worker.cancelJobFromWeb(ExecuteKind.DebugKind, debugId, LoginUser
          .getUser().getUid());
    } catch (Exception e) {
      log.error("cancelDebug error", e);
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

    p.setHadoopConf(conf);
    try {
      profileManager.update(uid, p);
    } catch (Exception e) {
      log.error("updateHadoopConf",e);
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.util.GwtException

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.