Examples of GFacException


Examples of org.ogce.gfac.exception.GfacException

      OutputUtils.fillOutputFromStdout(invocationContext.getMessageContext("output"), context.getExecutionModel().getStdoutStr(), context.getExecutionModel().getStderrStr());

    } catch (IOException e) {     
      throw new JobSubmissionFault(e, "", "", buildCommand(cmdList), CurrentProviders.Local);
    } catch (InterruptedException e) {
      throw new GfacException(e, FaultCode.LocalError);
    }

  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

          break;
        } catch (Exception e) {
          String message = "Mkdir " + destURI + " with " + e.getMessage() + " (try " + tryCount + ") retrying at Gfac";
          tryCount++;
          if (tryCount >= 3) {
            throw new GfacException(e.getMessage(), e);
          }
          Thread.sleep(10000);
        }
      }
    } catch (ServerException e) {
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

          System.out.println("xregistryUrl=" + xregistryUrl);
          System.out.println("trustedCertificates=" + trustedCertificates);
          this.xregistryClient = new XRegistryClient(sessionCredentail, trustedCertificates, xregistryUrl);
        }
      } else {
        throw new GfacException("Neither host certificate of gss credential is set", FaultCode.ErrorAtDependentService);
      }
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

          System.out.println("hostcertsKeyFile=" + hostcertsKeyFile);
          System.out.println("trustedCertificates=" + trustedCertificates);
          this.xregistryClient = new XRegistryClient(hostcertsKeyFile, trustedCertificates, xregistryUrl);
        }
      } else {
        throw new GfacException("Neither host certificate of gss credential is set", FaultCode.ErrorAtDependentService);
      }
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

  public String[] app2Hosts(String appName) throws GfacException {
    try {
      return xregistryClient.app2Hosts(appName);
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

            AppData resultAppData = new AppData(xbeansData.getName(), xbeansData.getOwner(), xbeansData.getHostName());
            resultAppData.allowedAction = xbeansData.getAllowedAction();
            resultAppData.resourceID = xbeansData.getName();
            appDescList.add(resultAppData);
          } catch (XmlValueOutOfRangeException e) {
            throw new GfacException("Problem with retrieving object : " + e.getLocalizedMessage(), FaultCode.ErrorAtDependentService);
          }
        }
        appDesc = appDescList.toArray(new AppData[0]);
      } else {
        return null;
      }

      String[] finalResults = new String[appDesc.length];
      for (int i = 0; i < appDesc.length; i++) {
        finalResults[i] = appDesc[i].name + "#" + appDesc[i].secondryName;
      }
      return finalResults;
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

      String[] results = new String[serviceInstanceData.length];
      for (int i = 0; i < serviceInstanceData.length; i++) {
        try {
          results[i] = serviceInstanceData[i].getName().toString();
        } catch (XmlValueOutOfRangeException e) {
          throw new GfacException("Problem with retrieving object : " + e.getLocalizedMessage(), FaultCode.ErrorAtDependentService);
        }
      }
      return results;
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

      String[] results = new String[serviceDescData.length];
      for (int i = 0; i < serviceDescData.length; i++) {
        try {
          results[i] = serviceDescData[i].getName().toString();
        } catch (XmlValueOutOfRangeException e) {
          throw new GfacException("Problem with retrieving object : " + e.getLocalizedMessage(), FaultCode.ErrorAtDependentService);
        }
      }
      return results;
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

  public String getAbstractWsdl(String wsdlQName) throws GfacException {
    try {
      return xregistryClient.getAbstractWsdl(QName.valueOf(wsdlQName));
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

Examples of org.ogce.gfac.exception.GfacException

  public String getAppDesc(String appQName, String hostName) throws GfacException {
    try {
      return xregistryClient.getAppDesc(appQName, hostName);
    } catch (XRegistryClientException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.