Examples of DescriptorRecordAlreadyExistsException


Examples of org.apache.airavata.client.api.DescriptorRecordAlreadyExistsException

    private void addWorkflow(Workflow workflow, String workflowAsString, String owner)
            throws AiravataAPIInvocationException, DescriptorRecordAlreadyExistsException {
        try {
            getClient().getRegistryClient().addWorkflow(workflow.getName(), workflowAsString);
        } catch (UserWorkflowAlreadyExistsException e) {
            throw new DescriptorRecordAlreadyExistsException("Workflow " +
                    workflow.getName()
                    + " already exists in the system.", e);
        } catch (RegistryException e) {
            throw new AiravataAPIInvocationException("An internal error occurred while adding workflow " +
                    workflow.getName(), e);
View Full Code Here

Examples of org.apache.airavata.client.api.DescriptorRecordAlreadyExistsException

    public void addServiceDescription(ServiceDescription serviceDescription) throws AiravataAPIInvocationException,
            DescriptorRecordAlreadyExistsException {
        try {
            getClient().getRegistryClient().addServiceDescriptor(serviceDescription);
        } catch (DescriptorAlreadyExistsException e) {
            throw new DescriptorRecordAlreadyExistsException("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

Examples of org.apache.airavata.client.api.DescriptorRecordAlreadyExistsException

        try {
            getClient().getRegistryClient().addApplicationDescriptor(serviceDescription.getType().getName(),
                    hostDescription.getType().getHostName(), applicationDeploymentDescription);
        } catch (DescriptorAlreadyExistsException e) {
            throw new DescriptorRecordAlreadyExistsException("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

Examples of org.apache.airavata.client.api.DescriptorRecordAlreadyExistsException

            DescriptorRecordAlreadyExistsException {

        try {
            getClient().getRegistryClient().addHostDescriptor(host);
        } catch (DescriptorAlreadyExistsException e) {
            throw new DescriptorRecordAlreadyExistsException("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
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.