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

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


    public void addServiceDescription(ServiceDescription serviceDescription) throws DescriptorAlreadyExistsException,
        AiravataAPIInvocationException{
        try {
            getClient().getRegistryClient().addServiceDescriptor(serviceDescription);
        } catch (org.apache.airavata.registry.api.exception.gateway.DescriptorAlreadyExistsException e) {
            throw new DescriptorAlreadyExistsException("Service descriptor "
                    + serviceDescription.getType().getName()
                    + " already exists.", e);
        } catch (RegException e) {
            throw new AiravataAPIInvocationException("An internal error occurred while trying to add service descriptor"
                    + serviceDescription.getType().getName(),
View Full Code Here


        try {
            getClient().getRegistryClient().addApplicationDescriptor(serviceDescription.getType().getName(),
                    hostDescription.getType().getHostName(), applicationDeploymentDescription);
        } catch (org.apache.airavata.registry.api.exception.gateway.DescriptorAlreadyExistsException e) {
            throw new DescriptorAlreadyExistsException("Application descriptor " +
                    applicationDeploymentDescription.getType().getApplicationName().getStringValue()
                    + " already associated to host " + hostDescription.getType().getHostName()
                    + " and service " + serviceDescription.getType().getName(), e);
        } catch (RegException e) {
View Full Code Here

        AiravataAPIInvocationException{

        try {
            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);
View Full Code Here

    public void addServiceDescription(ServiceDescription serviceDescription) throws DescriptorAlreadyExistsException,
        AiravataAPIInvocationException{
        try {
            getClient().getRegistryClient().addServiceDescriptor(serviceDescription);
        } catch (org.apache.airavata.registry.api.exception.gateway.DescriptorAlreadyExistsException e) {
            throw new DescriptorAlreadyExistsException("Service descriptor "
                    + serviceDescription.getType().getName()
                    + " already exists.", e);
        } catch (RegistryException e) {
            throw new AiravataAPIInvocationException("An internal error occurred while trying to add service descriptor"
                    + serviceDescription.getType().getName(),
View Full Code Here

        try {
            getClient().getRegistryClient().addApplicationDescriptor(serviceDescription.getType().getName(),
                    hostDescription.getType().getHostName(), applicationDeploymentDescription);
        } catch (org.apache.airavata.registry.api.exception.gateway.DescriptorAlreadyExistsException e) {
            throw new DescriptorAlreadyExistsException("Application descriptor " +
                    applicationDeploymentDescription.getType().getApplicationName().getStringValue()
                    + " already associated to host " + hostDescription.getType().getHostName()
                    + " and service " + serviceDescription.getType().getName(), e);
        } catch (RegistryException e) {
View Full Code Here

        AiravataAPIInvocationException{

        try {
            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 (RegistryException e) {
            throw new AiravataAPIInvocationException("An internal 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.DescriptorAlreadyExistsException

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.