Examples of InsufficientDataException


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

    public void addApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegistryException {
        if (descriptorRegistry != null){
            descriptorRegistry.addApplicationDescriptor(serviceName, hostName, descriptor);
        else {
            if (serviceName==null || hostName==null){
                throw new InsufficientDataException("Service name or Host name cannot be null");
            }
            GatewayResource gateway = jpa.getGateway();
            WorkerResource workerResource = jpa.getWorker();
            String applicationName = descriptor.getType().getApplicationName().getStringValue();
            applicationName = createAppName(serviceName, hostName, applicationName);
View Full Code Here

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

    public void updateApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegistryException {
      if (descriptorRegistry != null){
            descriptorRegistry.updateApplicationDescriptor(serviceName, hostName, descriptor);
        } else {
            if (serviceName==null || hostName==null){
                throw new InsufficientDataException("Service name or Host name cannot be null");
            }
            GatewayResource gateway = jpa.getGateway();
            String applicationName = descriptor.getType().getApplicationName().getStringValue();
            applicationName = createAppName(serviceName, hostName, applicationName);
            if (!isApplicationDescriptorExists(serviceName,hostName,descriptor.getType().getApplicationName().getStringValue())){
View Full Code Here

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

    public ApplicationDescription getApplicationDescriptor(String serviceName, String hostname, String applicationName)throws DescriptorDoesNotExistsException, MalformedDescriptorException, RegistryException{
        if (descriptorRegistry != null){
            return descriptorRegistry.getApplicationDescriptor(serviceName, hostname, applicationName);
        }
        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));
        }
View Full Code Here

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

    public void addApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegistryException {
        if (descriptorRegistry != null){
            descriptorRegistry.addApplicationDescriptor(serviceName, hostName, descriptor);
        else {
            if (serviceName==null || hostName==null){
                throw new InsufficientDataException("Service name or Host name cannot be null");
            }
            GatewayResource gateway = jpa.getGateway();
            WorkerResource workerResource = jpa.getWorker();
            String applicationName = descriptor.getType().getApplicationName().getStringValue();
            applicationName = createAppName(serviceName, hostName, applicationName);
View Full Code Here

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

    public void updateApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegistryException {
      if (descriptorRegistry != null){
            descriptorRegistry.updateApplicationDescriptor(serviceName, hostName, descriptor);
        } else {
            if (serviceName==null || hostName==null){
                throw new InsufficientDataException("Service name or Host name cannot be null");
            }
            GatewayResource gateway = jpa.getGateway();
            String applicationName = descriptor.getType().getApplicationName().getStringValue();
            applicationName = createAppName(serviceName, hostName, applicationName);
            if (!isApplicationDescriptorExists(serviceName,hostName,descriptor.getType().getApplicationName().getStringValue())){
View Full Code Here

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

    public ApplicationDescription getApplicationDescriptor(String serviceName, String hostname, String applicationName)throws DescriptorDoesNotExistsException, MalformedDescriptorException, RegistryException{
        if (descriptorRegistry != null){
            return descriptorRegistry.getApplicationDescriptor(serviceName, hostname, applicationName);
        }
        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));
        }
View Full Code Here

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

        addApplicationDescriptor(serviceDescription.getType().getName(),hostDescriptor.getType().getHostName(),descriptor);
    }

    public void addApplicationDescriptor(String serviceName, String hostName, ApplicationDeploymentDescription descriptor) throws RegistryException {
      if (serviceName==null || hostName==null){
        throw new InsufficientDataException("Service name or Host name cannot be null");
      }
      GatewayResource gateway = jpa.getGateway();
        WorkerResource workerResource = jpa.getWorker();
        String applicationName = descriptor.getType().getApplicationName().getStringValue();
        applicationName = createAppName(serviceName, hostName, applicationName);
View Full Code Here

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

      updateApplicationDescriptor(serviceDescription.getType().getName(),hostDescriptor.getType().getHostName(),descriptor);
    }

    public void updateApplicationDescriptor(String serviceName, String hostName, ApplicationDeploymentDescription descriptor) throws RegistryException {
      if (serviceName==null || hostName==null){
        throw new InsufficientDataException("Service name or Host name cannot be null");
      }
      GatewayResource gateway = jpa.getGateway();
      String applicationName = descriptor.getType().getApplicationName().getStringValue();
        applicationName = createAppName(serviceName, hostName, applicationName);
    if (!isApplicationDescriptorExists(serviceName,hostName,descriptor.getType().getApplicationName().getStringValue())){
View Full Code Here

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

        }
  }
   
    public ApplicationDeploymentDescription getApplicationDescriptor(String serviceName, String hostname, String applicationName)throws DescriptorDoesNotExistsException, MalformedDescriptorException, RegistryException{
      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));
        }
View Full Code Here

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

    public void addApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegistryException {
        if (descriptorRegistry != null){
            descriptorRegistry.addApplicationDescriptor(serviceName, hostName, descriptor);
        else {
            if (serviceName==null || hostName==null){
                throw new InsufficientDataException("Service name or Host name cannot be null");
            }
            GatewayResource gateway = jpa.getGateway();
            WorkerResource workerResource = jpa.getWorker();
            String applicationName = descriptor.getType().getApplicationName().getStringValue();
            applicationName = 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.