Package edu.indiana.extreme.gfac.utils

Examples of edu.indiana.extreme.gfac.utils.GfacException


  public static void createObject(RegistryService regService, String serviceMapStr) throws GfacException {
    try {
      RegistryUtil.registerServiceMapFromStr(regService, serviceMapStr);
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      throw new GfacException(errormessage, FaultCode.LocalError);
    }
  }
View Full Code Here


      RegistryUtil.registerServiceMapFromStr(regService, serviceMapStr);
    } catch (Exception e) {
      if (oldServiceMap != null) {
        RegistryUtil.registerServiceMapFromStr(regService, oldServiceMap.xmlText());
      }
      throw new GfacException(e, FaultCode.ErrorAtClientWhileWsCall);
    }
    // System.out.println("######"+serviceMapStr);

    String servicewsdl = RegistryUtil.createAwsdl4ServiceMap(serviceMapStr);
View Full Code Here

    for (int i = 0; i < operations.size(); i++) {
      MethodBean op = (MethodBean) operations.get(i);

      if (op == null) {
        throw new GfacException("Operation can not be Null", FaultCode.InvaliedLocalArgumnet);
      }

      MethodType[] methods = pt.getMethodArray();
      MethodType method = null;
      if (methods != null) {
View Full Code Here

    for (int i = 0; i < operations.size(); i++) {
      MethodBean op = (MethodBean) operations.get(i);

      if (op == null) {
        throw new GfacException("Operation can not be Null", FaultCode.InvaliedLocalArgumnet);
      }

      MethodType[] methods = pt.getMethodArray();
      MethodType method = null;
      if (methods != null) {
View Full Code Here

      public String getType() {
          return type;
      }
      public ParamObject(String name, String type,int index, String desc) throws GfacException {
          if(name == null || type == null || name.trim().length() == 0 || type.trim().length() == 0){
              throw new GfacException("parameter name or type must not be Null name = " + name + "  type = "+ type,FaultCode.InvaliedLocalArgumnet );
          }
          System.out.println("Parameter name ="+ name + " value = "+ type);
          this.name = name;
          this.type = type;
          this.index = index;
View Full Code Here

          this.index = index;
          this.setDesc(desc);
      }
      public ParamObject(String name, String type,int index, String regExp,String desc) throws GfacException {
          if(name == null || type == null || name.trim().length() == 0 || type.trim().length() == 0){
              throw new GfacException("parameter name or type must not be Null name = " + name + "  type = "+ type,FaultCode.InvaliedLocalArgumnet );
          }
          System.out.println("Parameter name ="+ name + " value = "+ type + " Regex = " + regExp);
          this.name = name;
          this.type = type;
          this.index = index;
View Full Code Here

            && getMyproxyPassword() != null) {
          gssCredential = renewProxy();
        }
      return gssCredential;
    } catch (Exception e) {
      throw new GfacException(e, FaultCode.LocalError);
    }
  }
View Full Code Here

  public static void createObject(RegistryService regService,String appDescStr) throws GfacException {
    try {
      regService.registerAppDesc(appDescStr);
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      throw new GfacException(errormessage, FaultCode.LocalError);
    }

  }
View Full Code Here

    // application Name have hostname separated by # like appicationName#hostname
    String [] splitNames = applicationName.split("#");
    if(splitNames != null && splitNames.length == 2){
      return getBeanObjectInfo(regService,splitNames[0], splitNames[1], bean);
    }else{
      throw new GfacException("Input is wrong. Send Application Name and Host Name concat by #",FaultCode.InvaliedLocalArgumnet);
    }
  }
View Full Code Here

    String appDescStr = regService.getAppDesc(applicationName, hostName);
    if (appDescStr != null) {
      ApplicationDescriptionType appDescriptionType = GfacUtils.parseAppDescirption(new StringReader(appDescStr));
      return getBean(appDescriptionType,bean);
    } else {
      throw new GfacException("Applcation  " + applicationName + " on " + hostName + " does not exist",FaultCode.InvaliedLocalArgumnet);
    }
  }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.gfac.utils.GfacException

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.