Package edu.indiana.extreme.gfac.utils

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


          try {
            logger.info("Registry URL: "+ registryURL);
                  return new XregistryServiceWrapper(registryURL,globalConfiguration);
              } catch (GfacException e) {
                e.printStackTrace();
              GfacException error = new GfacException("Failed to create registry Service client using " + registryURL,e,FaultCode.ErrorAtDependentService);
              error.addProperty(ErrorCodes.SERVICE_TYPE, ErrorCodes.ServiceType.Registry.toString());
              error.addProperty(ErrorCodes.URL_Name, registryURL);
              throw error;
          }
      }
View Full Code Here


          try {
            logger.info("Registry URL: "+ registryURL);
                  return new XregistryServiceWrapper(registryURL,trustedCertFile, gssCredential);
              } catch (GfacException e) {
                e.printStackTrace();
              GfacException error = new GfacException("Failed to create registry Service client using " + registryURL,e,FaultCode.ErrorAtDependentService);
              error.addProperty(ErrorCodes.SERVICE_TYPE, ErrorCodes.ServiceType.Registry.toString());
              error.addProperty(ErrorCodes.URL_Name, registryURL);
              throw error;
          }
      }
View Full Code Here

            Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null, serviceMap,
                    true);
            String wsdl = (String) serviceTable.get(WSDLConstants.AWSDL);
            return wsdl;
        } catch (Exception e) {
            throw new GfacException(e,FaultCode.InvaliedLocalArgumnet);
        }
    }
View Full Code Here

            registryService.registerServiceMap(serviceMapAsStr, XmlConstants.BUILDER
                    .serializeToString(ele));
            return serviceQname;
        } catch (Exception e) {
            throw new GfacException(e,FaultCode.LocalError);
        }
    }
View Full Code Here

                    .getStringValue());

            registryService.removeServiceMap(serviceQname.toString());
            return serviceQname;
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.LocalError);
        }
    }
View Full Code Here

            ApplicationDescriptionType appDesc = ApplicationDescriptionDocument.Factory.parse(
                    appDescAsStr).getApplicationDescription();
            registryService.removeAppDesc(appDesc.getApplicationName().getStringValue(), appDesc
                    .getDeploymentDescription().getHostName());
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.LocalError);
        }
    }
View Full Code Here

        try {
            HostDescriptionType appDesc = HostDescriptionDocument.Factory.parse(hostDescAsStr)
                    .getHostDescription();
            registryService.removeHostDesc(appDesc.getHostName());
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.LocalError);
        }
    }
View Full Code Here

            if(serviceMapAsStr != null){
                return ServiceMapDocument.Factory.parse(new StringReader(serviceMapAsStr));
            }
            return null;
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.LocalError);
        } catch (IOException e) {
            throw new GfacException(e,FaultCode.LocalError);
        }
    }
View Full Code Here

            if(oldAppDescAsStr != null){
                return ApplicationDescriptionDocument.Factory.parse(new StringReader(oldAppDescAsStr));
            }
            return null;
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.LocalError);
        } catch (IOException e) {
            throw new GfacException(e,FaultCode.LocalError);
        }
    }
View Full Code Here

            if(oldHostDescAsStr != null){
                return HostDescriptionDocument.Factory.parse(new StringReader(oldHostDescAsStr));
            }
            return null;
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.LocalError);
        } catch (IOException e) {
            throw new GfacException(e,FaultCode.LocalError);
        }
    }
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.