org.apache.airavata.client.api.AiravataManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of airavata-client-api Show documentation
Show all versions of airavata-client-api Show documentation
Client API for accessing Airavata Services
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.client.api;
import org.apache.airavata.client.api.exception.AiravataAPIInvocationException;
import org.apache.airavata.registry.api.AiravataUser;
import org.apache.airavata.registry.api.Gateway;
import java.net.URI;
import java.util.Date;
import java.util.List;
/**
* This interface contains set of methods to access the basic configurations of AiravataClient required to connect to
* Airvata services running at the backend
*/
public interface AiravataManager {
/**
* Return a list of Workflow Interpreter service urls registered in the system
* @return 0 or more urls
* @throws AiravataAPIInvocationException
*/
public List getWorkflowInterpreterServiceURLs() throws AiravataAPIInvocationException;
/**
* Return a the first Workflow interpreter service url registered in the system
* @return url or null if a url is not registered
* @throws AiravataAPIInvocationException
*/
public URI getWorkflowInterpreterServiceURL() throws AiravataAPIInvocationException;
/**
* Return a the first GFaC service url registered in the system orelse return the defaultURL
* @param defaultURL
* @return url
* @throws AiravataAPIInvocationException
*/
public URI getWorkflowInterpreterServiceURL(URI defaultURL) throws AiravataAPIInvocationException;
/**
* Return a list of Workflow Interpreter service urls registered in the system
* @return 0 or more urls
* @throws AiravataAPIInvocationException
*/
public List getMessageBoxServiceURLs() throws AiravataAPIInvocationException;
/**
* Return a the first Workflow interpreter service url registered in the system
* @return url or null if a url is not registered
* @throws AiravataAPIInvocationException
*/
public URI getMessageBoxServiceURL() throws AiravataAPIInvocationException;
/**
* Return a the first GFaC service url registered in the system orelse return the defaultURL
* @param defaultURL
* @return url
* @throws AiravataAPIInvocationException
*/
public URI getMessageBoxServiceURL(URI defaultURL) throws AiravataAPIInvocationException;
/**
* Return a list of Workflow Interpreter service urls registered in the system
* @return 0 or more urls
* @throws AiravataAPIInvocationException
*/
public List getEventingServiceURLs() throws AiravataAPIInvocationException;
/**
* Return a the first Workflow interpreter service url registered in the system
* @return url or null if a url is not registered
* @throws AiravataAPIInvocationException
*/
public URI getEventingServiceURL() throws AiravataAPIInvocationException;
/**
* Return a the first GFaC service url registered in the system orelse return the defaultURL
* @param defaultURL
* @return url
* @throws AiravataAPIInvocationException
*/
public URI getEventingServiceURL(URI defaultURL) throws AiravataAPIInvocationException;
public void setConfiguration(String key, String value, Date expire) throws AiravataAPIInvocationException;
public void addConfiguration(String key, String value, Date expire) throws AiravataAPIInvocationException;
public void removeAllConfiguration(String key) throws AiravataAPIInvocationException;
public void removeConfiguration(String key, String value) throws AiravataAPIInvocationException;
public void addWorkflowInterpreterURI(URI uri) throws AiravataAPIInvocationException;
public void setEventingURI(URI uri) throws AiravataAPIInvocationException;
public void setMessageBoxURI(URI uri) throws AiravataAPIInvocationException;
public void addWorkflowInterpreterURI(URI uri, Date expire) throws AiravataAPIInvocationException;
public void setEventingURI(URI uri, Date expire) throws AiravataAPIInvocationException;
public void setMessageBoxURI(URI uri, Date expire) throws AiravataAPIInvocationException;
public void removeWorkflowInterpreterURI(URI uri) throws AiravataAPIInvocationException;
public void removeAllWorkflowInterpreterURI() throws AiravataAPIInvocationException;
public void unsetEventingURI() throws AiravataAPIInvocationException;
public void unsetMessageBoxURI() throws AiravataAPIInvocationException;
public Gateway getGateway () throws AiravataAPIInvocationException;
public AiravataUser getUser() throws AiravataAPIInvocationException;
}