Examples of DescriptorDoesNotExistsException


Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

        if (descriptorRegistry != null) {
            descriptorRegistry.removeServiceDescriptor(serviceName);
        }else {
            GatewayResource gateway = jpa.getGateway();
            if (!isServiceDescriptorExists(serviceName)){
                throw new DescriptorDoesNotExistsException(serviceName);
            }
            gateway.removeServiceDescriptor(serviceName);
        }
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

            }
            GatewayResource gateway = jpa.getGateway();
            String applicationName = descriptor.getType().getApplicationName().getStringValue();
            applicationName = createAppName(serviceName, hostName, applicationName);
            if (!isApplicationDescriptorExists(serviceName,hostName,descriptor.getType().getApplicationName().getStringValue())){
                throw new DescriptorDoesNotExistsException(applicationName);
            }
            ApplicationDescriptorResource serviceDescriptorResource = gateway.getApplicationDescriptorResource(applicationName);
            serviceDescriptorResource.setContent(descriptor.toXML());
            serviceDescriptorResource.save();
        }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

        if (serviceName==null || hostname==null){
        throw new InsufficientDataException("Service name or Host name cannot be null");
      }
      GatewayResource gateway = jpa.getGateway();
    if (!isApplicationDescriptorExists(serviceName,hostname,applicationName)){
          throw new DescriptorDoesNotExistsException(createAppName(serviceName, hostname, applicationName));
        }
        return createApplicationDescriptor(gateway.getApplicationDescriptorResource(createAppName(serviceName, hostname, applicationName)));
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

             descriptorRegistry.removeApplicationDescriptor(serviceName, hostName, applicationName);
        } else {
            GatewayResource gateway = jpa.getGateway();
            String appName = createAppName(serviceName, hostName, applicationName);
            if (!isApplicationDescriptorExists(serviceName,hostName,applicationName)){
                throw new DescriptorDoesNotExistsException(appName);
            }
            gateway.removeApplicationDescriptor(appName);
        }

    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

    public void updateHostDescriptor(HostDescription descriptor) throws RegistryException {
      GatewayResource gateway = jpa.getGateway();
        String hostName = descriptor.getType().getHostName();
    if (!isHostDescriptorExists(hostName)){
          throw new DescriptorDoesNotExistsException(hostName);
        }
        HostDescriptorResource hostDescriptorResource = gateway.getHostDescriptorResource(hostName);
        hostDescriptorResource.setContent(descriptor.toXML());
        hostDescriptorResource.save();
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

  }

    public void removeHostDescriptor(String hostName) throws RegistryException {
      GatewayResource gateway = jpa.getGateway();
    if (!isHostDescriptorExists(hostName)){
          throw new DescriptorDoesNotExistsException(hostName);
        }
    gateway.removeHostDescriptor(hostName);
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

    public void updateServiceDescriptor(ServiceDescription descriptor) throws RegistryException {
      GatewayResource gateway = jpa.getGateway();
        String serviceName = descriptor.getType().getName();
    if (!isServiceDescriptorExists(serviceName)){
          throw new DescriptorDoesNotExistsException(serviceName);
        }
        ServiceDescriptorResource serviceDescriptorResource = gateway.getServiceDescriptorResource(serviceName);
        serviceDescriptorResource.setContent(descriptor.toXML());
        serviceDescriptorResource.save();
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

  }

    public void removeServiceDescriptor(String serviceName) throws RegistryException {
      GatewayResource gateway = jpa.getGateway();
    if (!isServiceDescriptorExists(serviceName)){
          throw new DescriptorDoesNotExistsException(serviceName);
        }
    gateway.removeServiceDescriptor(serviceName);
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

      }
      GatewayResource gateway = jpa.getGateway();
      String applicationName = descriptor.getType().getApplicationName().getStringValue();
        applicationName = createAppName(serviceName, hostName, applicationName);
    if (!isApplicationDescriptorExists(serviceName,hostName,descriptor.getType().getApplicationName().getStringValue())){
          throw new DescriptorDoesNotExistsException(applicationName);
        }
        ApplicationDescriptorResource serviceDescriptorResource = gateway.getApplicationDescriptorResource(applicationName);
        serviceDescriptorResource.setContent(descriptor.toXML());
        serviceDescriptorResource.save();
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.gateway.DescriptorDoesNotExistsException

      if (serviceName==null || hostname==null){
        throw new InsufficientDataException("Service name or Host name cannot be null");
      }
      GatewayResource gateway = jpa.getGateway();
    if (!isApplicationDescriptorExists(serviceName,hostname,applicationName)){
          throw new DescriptorDoesNotExistsException(createAppName(serviceName, hostname, applicationName));
        }
        return createApplicationDescriptor(gateway.getApplicationDescriptorResource(createAppName(serviceName, hostname, applicationName)));
    }
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.