Package org.ogce.gfac.exception

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


            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

      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

      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

  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

  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

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

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

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

      String[] results = new String[hostDescData.length];
      for (int i = 0; i < hostDescData.length; i++) {
        try {
          results[i] = hostDescData[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

TOP

Related Classes of org.ogce.gfac.exception.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.