Package org.apache.airavata.client.api.exception

Examples of org.apache.airavata.client.api.exception.AiravataAPIInvocationException


    @Override
  public List<ApplicationDescription> searchApplicationDescription(
            String serviceName, String hostName)
      throws AiravataAPIInvocationException {
    throw new AiravataAPIInvocationException(new UnimplementedRegOperationException());
  }
View Full Code Here


  public Map<String[], ApplicationDescription> getAllApplicationDescriptions()
      throws AiravataAPIInvocationException {
    try {
      return getClient().getRegistryClient().getApplicationDescriptors();
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

  @Override
  public List<ApplicationDescription> searchApplicationDescription(
            String serviceName, String hostName, String applicationName)
      throws AiravataAPIInvocationException {
    throw new AiravataAPIInvocationException(new UnimplementedRegOperationException());
  }
View Full Code Here

        list.add(applicationDescriptors.get(hostName));
        map.put(getClient().getRegistryClient().getHostDescriptor(hostName),list);
      }
      return map;
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

                                             String hostName, String applicationName)
      throws AiravataAPIInvocationException {
    try {
      getClient().getRegistryClient().removeApplicationDescriptor(serviceName, hostName, applicationName);
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

  public HostDescription getHostDescription(String hostId)
      throws AiravataAPIInvocationException {
    try {
      return getClient().getRegistryClient().getHostDescriptor(hostId);
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

  public List<HostDescription> getAllHostDescriptions()
      throws AiravataAPIInvocationException {
    try {
      return getClient().getRegistryClient().getHostDescriptors();
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

      }else{
        getClient().getRegistryClient().addHostDescriptor(host);
      }
      return host.getType().getHostName();
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

            getClient().getRegistryClient().addHostDescriptor(host);
        } catch (org.apache.airavata.registry.api.exception.gateway.DescriptorAlreadyExistsException e) {
            throw new DescriptorAlreadyExistsException("Host descriptor " + host.getType().getHostName()
                    + " already exists.", e);
        } catch (RegException e) {
            throw new AiravataAPIInvocationException("An internal error occurred while trying to add host descriptor"
                    + host.getType().getHostName(),
                    e);
        } catch (AiravataConfigurationException e) {
            throw new AiravataAPIInvocationException("Error retrieving registry controller. " +
                    "An error occurred while trying to " +
                    "add host descriptor" + host.getType().getHostName(), e);
        }

    }
View Full Code Here

    @Override
    public void updateHostDescription(HostDescription host) throws AiravataAPIInvocationException {
        try {
            getClient().getRegistryClient().updateHostDescriptor(host);
        } catch (RegException e) {
            throw new AiravataAPIInvocationException("An internal error occurred while trying to add host descriptor"
                    + host.getType().getHostName(),
                    e);
        } catch (AiravataConfigurationException e) {
            throw new AiravataAPIInvocationException("Error retrieving registry controller. " +
                    "An error occurred while trying to " +
                    "add host descriptor" + host.getType().getHostName(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.client.api.exception.AiravataAPIInvocationException

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.