From 9f6e30e41d2f4366d4e8cd6f253cc88661a513d2 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Mon, 27 Apr 2015 20:36:08 +0530 Subject: [PATCH 1/5] Adding more support to the registry for paginated result retrieval of project and experiment data. Renamed all *searchWithPagination methods to search* with method overloading --- .../registry/jpa/impl/ExperimentRegistry.java | 152 +++++++++--- .../jpa/impl/LoggingRegistryImpl.java | 7 +- .../registry/jpa/impl/ProjectRegistry.java | 33 ++- .../registry/jpa/impl/RegistryImpl.java | 57 ++++- .../jpa/resources/ProjectResource.java | 119 ++++++++- .../jpa/resources/WorkerResource.java | 234 +++++++++++++++--- .../registry/jpa/utils/QueryGenerator.java | 73 ++++-- .../registry/jpa/RegistryUseCaseTest.java | 15 +- 8 files changed, 569 insertions(+), 121 deletions(-) diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java index 7d47762544..a0e9ecfef6 100644 --- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java +++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java @@ -1823,6 +1823,13 @@ public void updateSchedulingData(ComputationalResourceScheduling resourceSchedul } } + /** + * Method to get matching experiment list + * @param fieldName + * @param value + * @return + * @throws RegistryException + */ public List getExperimentList(String fieldName, Object value) throws RegistryException { List experiments = new ArrayList(); try { @@ -1830,7 +1837,6 @@ public List getExperimentList(String fieldName, Object value) throws WorkerResource resource = (WorkerResource) gatewayResource.create(ResourceType.GATEWAY_WORKER); resource.setUser((String) value); List resources = resource.getExperiments(); -// List resources = resource.getExperimentsByCaching((String)value); for (ExperimentResource experimentResource : resources) { Experiment experiment = ThriftDataModelConversion.getExperiment(experimentResource); experiments.add(experiment); @@ -1876,6 +1882,50 @@ public List getExperimentList(String fieldName, Object value) throws return experiments; } + /** + * Method to get matching experiment list with pagination and ordering + * @param fieldName + * @param value + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return + * @throws RegistryException + */ + public List getExperimentList(String fieldName, Object value, int limit, int offset, + Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + List experiments = new ArrayList(); + try { + if (fieldName.equals(Constants.FieldConstants.ExperimentConstants.USER_NAME)) { + WorkerResource resource = (WorkerResource) gatewayResource.create(ResourceType.GATEWAY_WORKER); + resource.setUser((String) value); + List resources = resource.getExperiments(limit, offset, + orderByIdentifier, resultOrderType); + for (ExperimentResource experimentResource : resources) { + Experiment experiment = ThriftDataModelConversion.getExperiment(experimentResource); + experiments.add(experiment); + } + return experiments; + } else if (fieldName.equals(Constants.FieldConstants.ExperimentConstants.PROJECT_ID)) { + ProjectResource project = workerResource.getProject((String) value); + List resources = project.getExperiments(limit, offset, + Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); + for (ExperimentResource resource : resources) { + Experiment experiment = ThriftDataModelConversion.getExperiment(resource); + experiments.add(experiment); + } + return experiments; + } + logger.error("Unsupported field name to retrieve experiment list..."); + } catch (Exception e) { + logger.error("Error while getting experiment list...", e); + throw new RegistryException(e); + } + return experiments; + } + + public List getWFNodeDetails(String fieldName, Object value) throws RegistryException { try { if (fieldName.equals(Constants.FieldConstants.WorkflowNodeConstants.EXPERIMENT_ID)) { @@ -2810,7 +2860,7 @@ public void updateQOSParams(QualityOfServiceParams params, String id, String typ * @throws RegistryException */ public List searchExperiments(Map filters) throws RegistryException { - return searchExperimentsWithPagination(filters, -1, -1, null, null); + return searchExperiments(filters, -1, -1, null, null); } @@ -2827,8 +2877,8 @@ public List searchExperiments(Map filters) th * @return * @throws RegistryException */ - public List searchExperimentsWithPagination(Map filters, int limit, - int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + public List searchExperiments(Map filters, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { Map fil = new HashMap(); if (filters != null && filters.size() != 0) { List experimentSummaries = new ArrayList(); @@ -2847,7 +2897,7 @@ public List searchExperimentsWithPagination(Map searchExperimentsWithPagination(Map experimentResources = workerResource - .searchExperimentsWithPagination(fil, limit, offset, orderByIdentifier, resultOrderType); + .searchExperiments(fil, limit, offset, orderByIdentifier, resultOrderType); if (experimentResources != null && !experimentResources.isEmpty()) { for (ExperimentResource ex : experimentResources) { experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex)); @@ -2878,10 +2928,33 @@ public List searchExperimentsWithPagination(Map searchExperimentsByStatus(ExperimentState experimentState) throws RegistryException { + /** + * To get list of experiments of specified state + * @param filters + * @return + * @throws RegistryException + */ + public List searchExperimentsByStatus(Map filters) throws RegistryException { + return searchExperimentsByStatus(filters, -1, -1, null, null); + } + + /** + * To get list of experiments of specified state with pagination and ordering + * + * @param filters + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return + * @throws RegistryException + */ + public List searchExperimentsByStatus(Map filters, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { try { List experimentSummaries = new ArrayList(); - List experimentResources = workerResource.searchExperimentsByState(experimentState.toString()); + List experimentResources = workerResource.searchExperimentsByState(filters, limit, offset, + orderByIdentifier, resultOrderType); if (experimentResources != null && !experimentResources.isEmpty()) { for (ExperimentResource ex : experimentResources) { experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex)); @@ -2895,40 +2968,37 @@ public List searchExperimentsByStatus(ExperimentState experim } } - public List searchExperimentsByApplication(Map fil) throws RegistryException { - try { - List experimentSummaries = new ArrayList(); - List experimentResources = workerResource.searchExperiments(fil); - if (experimentResources != null && !experimentResources.isEmpty()) { - for (ExperimentResource ex : experimentResources) { - String applicationId = ex.getApplicationId(); - String[] splits = applicationId.split("_"); - if (splits.length != 0) { - for (int i = 0; i < splits.length - 1; i++) { - String appId = fil.get(AbstractResource.ExperimentConstants.APPLICATION_ID); - if (!appId.equals("*")) { - if (splits[i].contains(appId)) { - experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex)); - } - } else { - experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex)); - } - } - } - } - } - return experimentSummaries; - } catch (Exception e) { - logger.error("Error while retrieving experiment summary from registry", e); - throw new RegistryException(e); - } + /** + * Search experiements based on creation time within specified time interval. + * @param fromTime + * @param toTime + * @return + * @throws RegistryException + */ + public List searchExperimentsByCreationTime(Timestamp fromTime, Timestamp toTime) throws RegistryException { + return searchExperimentsByCreationTime(fromTime, toTime, -1, -1, null, null); } - public List searchExperimentsByCreationTime(Timestamp fromTime, Timestamp toTime) throws RegistryException { + /** + * Search experiements based on creation time within specified time interval with pagination. + * @param fromTime + * @param toTime + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return + * @throws RegistryException + */ + public List searchExperimentsByCreationTime( + Timestamp fromTime, Timestamp toTime, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { try { List experimentSummaries = new ArrayList(); - List experimentResources = workerResource.searchExperimentsByCreationTime(fromTime, toTime); + List experimentResources + = workerResource.searchExperimentsByCreationTime(fromTime, toTime, limit, offset, + orderByIdentifier, resultOrderType); if (experimentResources != null && !experimentResources.isEmpty()) { for (ExperimentResource ex : experimentResources) { experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex)); diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/LoggingRegistryImpl.java b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/LoggingRegistryImpl.java index d7e9c0adda..0274518c47 100644 --- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/LoggingRegistryImpl.java +++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/LoggingRegistryImpl.java @@ -60,13 +60,18 @@ public List get(RegistryModelType dataType, String fieldName, Object val return null; } + @Override + public List get(RegistryModelType dataType, String fieldName, Object value, int limit, int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + return null; + } + @Override public List search(RegistryModelType dataType, Map filters) throws RegistryException { return null; } @Override - public List searchWithPagination(RegistryModelType dataType, Map filters, int limit, int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + public List search(RegistryModelType dataType, Map filters, int limit, int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { return null; } diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ProjectRegistry.java b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ProjectRegistry.java index 5bfcc3da4b..e0e2a461ca 100644 --- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ProjectRegistry.java +++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ProjectRegistry.java @@ -164,7 +164,30 @@ public Project getProject (String projectId) throws RegistryException{ return null; } + /** + * Get list of projects of the user + * @param fieldName + * @param value + * @return + * @throws RegistryException + */ public List getProjectList (String fieldName, Object value) throws RegistryException{ + return getProjectList(fieldName, value, -1, -1, null, null); + } + + /** + * Get projects list with pagination and result ordering + * @param fieldName + * @param value + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return + * @throws RegistryException + */ + public List getProjectList (String fieldName, Object value, int limit, int offset, + Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException{ List projects = new ArrayList(); try { if (fieldName.equals(Constants.FieldConstants.ProjectConstants.OWNER)){ @@ -179,7 +202,7 @@ public List getProjectList (String fieldName, Object value) throws Regi } }catch (Exception e){ logger.error("Error while retrieving project from registry", e); - throw new RegistryException(e); + throw new RegistryException(e); } return projects; } @@ -192,7 +215,7 @@ public List getProjectList (String fieldName, Object value) throws Regi * @throws RegistryException */ public List searchProjects (Map filters) throws RegistryException{ - return searchProjectsWithPagination(filters, -1, -1, null, null); + return searchProjects(filters, -1, -1, null, null); } /** @@ -208,8 +231,8 @@ public List searchProjects (Map filters) throws Registr * @return * @throws RegistryException */ - public List searchProjectsWithPagination(Map filters, int limit, - int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + public List searchProjects(Map filters, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { Map fil = new HashMap(); if (filters != null && filters.size() != 0){ List projects = new ArrayList(); @@ -226,7 +249,7 @@ public List searchProjectsWithPagination(Map filters, i } } List projectResources = workerResource - .searchProjectsWithPagination(fil, limit, offset, orderByIdentifier, resultOrderType); + .searchProjects(fil, limit, offset, orderByIdentifier, resultOrderType); if (projectResources != null && !projectResources.isEmpty()){ for (ProjectResource pr : projectResources){ projects.add(ThriftDataModelConversion.getProject(pr)); diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/RegistryImpl.java b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/RegistryImpl.java index a2f1e11377..953b11ec1f 100644 --- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/RegistryImpl.java +++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/RegistryImpl.java @@ -453,6 +453,51 @@ public List get(RegistryModelType dataType, String fieldName, Object val } + /** + * This method is to retrieve list of objects according to a given criteria with pagination and ordering + * + * @param dataType Data type is a predefined type which the programmer should choose according to the object he + * is going to save in to registry + * @param fieldName FieldName is the field that filtering should be done. For example, if we want to retrieve all + * the experiments for a given user, filterBy will be "userName" + * @param value value for the filtering field. In the experiment case, value for "userName" can be "admin" + * @param limit Size of the results to be returned + * @param offset Start position of the results to be retrieved + * @param orderByIdentifier Named of the column in which the ordering is based + * @param resultOrderType Type of ordering i.e ASC or DESC + * @return + * @throws RegistryException + */ + @Override + public List get(RegistryModelType dataType, String fieldName, Object value, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + try { + List result = new ArrayList(); + switch (dataType) { + case PROJECT: + List projectList = projectRegistry + .getProjectList(fieldName, value, limit, offset, orderByIdentifier, resultOrderType); + for (Project project : projectList ){ + result.add(project); + } + return result; + case EXPERIMENT: + List experimentList = experimentRegistry.getExperimentList(fieldName, value, + limit, offset, orderByIdentifier, resultOrderType); + for (Experiment experiment : experimentList) { + result.add(experiment); + } + return result; + default: + logger.error("Unsupported data type...", new UnsupportedOperationException()); + throw new UnsupportedOperationException(); + } + } catch (Exception e) { + logger.error("Error while retrieving the resource " + dataType.toString(), new RegistryException(e)); + throw new RegistryException("Error while retrieving the resource " + dataType.toString(), e); + } + } + /** * This method is to retrieve list of objects according to a given criteria * @param dataType Data type is a predefined type which the programmer should choose according to the object he @@ -462,7 +507,7 @@ public List get(RegistryModelType dataType, String fieldName, Object val */ @Override public List search(RegistryModelType dataType, Map filters) throws RegistryException { - return searchWithPagination(dataType, filters, -1, -1, null, null); + return search(dataType, filters, -1, -1, null, null); } /** @@ -478,23 +523,23 @@ public List search(RegistryModelType dataType, Map filte * @return List of objects according to the given criteria */ @Override - public List searchWithPagination(RegistryModelType dataType, Map filters, int limit, + public List search(RegistryModelType dataType, Map filters, int limit, int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { try { List result = new ArrayList(); switch (dataType) { case PROJECT: List projectList - = projectRegistry.searchProjectsWithPagination(filters, limit, offset, - orderByIdentifier, resultOrderType ); + = projectRegistry.searchProjects(filters, limit, offset, + orderByIdentifier, resultOrderType); for (Project project : projectList ){ result.add(project); } return result; case EXPERIMENT: List experimentSummaries = experimentRegistry - .searchExperimentsWithPagination(filters, limit, offset, orderByIdentifier, - resultOrderType ); + .searchExperiments(filters, limit, offset, orderByIdentifier, + resultOrderType); for (ExperimentSummary ex : experimentSummaries){ result.add(ex); } diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ProjectResource.java b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ProjectResource.java index c53b489049..4dc416081a 100644 --- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ProjectResource.java +++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ProjectResource.java @@ -20,22 +20,23 @@ */ package org.apache.airavata.persistance.registry.jpa.resources; -import java.sql.Timestamp; -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.Query; - import org.apache.airavata.persistance.registry.jpa.Resource; import org.apache.airavata.persistance.registry.jpa.ResourceType; import org.apache.airavata.persistance.registry.jpa.ResourceUtils; import org.apache.airavata.persistance.registry.jpa.model.*; import org.apache.airavata.persistance.registry.jpa.utils.QueryGenerator; import org.apache.airavata.registry.cpi.RegistryException; +import org.apache.airavata.registry.cpi.ResultOrderType; +import org.apache.airavata.registry.cpi.utils.Constants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import javax.persistence.EntityManager; +import javax.persistence.Query; +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.List; + public class ProjectResource extends AbstractResource { private final static Logger logger = LoggerFactory.getLogger(ProjectResource.class); private String name; @@ -182,6 +183,7 @@ public Resource get(ResourceType type, Object name) throws RegistryException { * @param type child resource type * @return list of child resources */ + @Override public List get(ResourceType type) throws RegistryException{ List resourceList = new ArrayList(); EntityManager em = null; @@ -238,6 +240,99 @@ public List get(ResourceType type) throws RegistryException{ return resourceList; } + /** + * Get results with pagination and ordering + * + * @param type + * @param limit + * @param offset + * @param orderByIdentifier + * @return + * @throws RegistryException + */ + public List get(ResourceType type, int limit, int offset, Object orderByIdentifier, + ResultOrderType resultOrderType) throws RegistryException{ + List resourceList = new ArrayList(); + EntityManager em = null; + try { + if (type == ResourceType.EXPERIMENT) { + em = ResourceUtils.getEntityManager(); + em.getTransaction().begin(); + QueryGenerator generator = new QueryGenerator(EXPERIMENT); + generator.setParameter(ExperimentConstants.PROJECT_ID, id); + Query q; + //ordering - supported only by CREATION_TIME + if(orderByIdentifier != null && resultOrderType != null + && orderByIdentifier.equals(Constants.FieldConstants.ExperimentConstants.CREATION_TIME)) { + q = generator.selectQuery(em, ExperimentConstants.CREATION_TIME, resultOrderType); + }else{ + q = generator.selectQuery(em); + } + + //pagination + if(limit>0 && offset>=0){ + q.setFirstResult(offset); + q.setMaxResults(limit); + } + List results = q.getResultList(); + if (results.size() != 0) { + for (Object result : results) { + Experiment experiment = (Experiment) result; + ExperimentResource experimentResource = (ExperimentResource) + Utils.getResource(ResourceType.EXPERIMENT, experiment); + resourceList.add(experimentResource); + } + } + em.getTransaction().commit(); + em.close(); + } else if (type == ResourceType.PROJECT_USER) { + em = ResourceUtils.getEntityManager(); + em.getTransaction().begin(); + QueryGenerator generator = new QueryGenerator(PROJECT_USER); + generator.setParameter(ProjectUserConstants.PROJECT_ID, id); + Query q; + //ordering - only supported only by CREATION_TIME + if(orderByIdentifier != null && resultOrderType != null + && orderByIdentifier.equals(Constants.FieldConstants.ProjectConstants.CREATION_TIME)) { + q = generator.selectQuery(em, ProjectConstants.CREATION_TIME, resultOrderType); + }else{ + q = generator.selectQuery(em); + } + + //pagination + if(limit>0 && offset>=0){ + q.setFirstResult(offset); + q.setMaxResults(limit); + } + List results = q.getResultList(); + if (results.size() != 0) { + for (Object result : results) { + ProjectUser projectUser = (ProjectUser) result; + ProjectUserResource pr = (ProjectUserResource) + Utils.getResource(ResourceType.PROJECT_USER, projectUser); + resourceList.add(pr); + } + } + em.getTransaction().commit(); + em.close(); + } else { + logger.error("Unsupported resource type for project resource.", new IllegalArgumentException()); + throw new IllegalArgumentException("Unsupported resource type for project resource."); + } + } catch (Exception e) { + logger.error(e.getMessage(), e); + throw new RegistryException(e); + } finally { + if (em != null && em.isOpen()) { + if (em.getTransaction().isActive()){ + em.getTransaction().rollback(); + } + em.close(); + } + } + return resourceList; + } + /** * save project to the database */ @@ -404,6 +499,16 @@ public List getExperiments() throws RegistryException{ return result; } + public List getExperiments(int limit, int offset, Object orderByIdentifier, + ResultOrderType resultOrderType) throws RegistryException{ + List list = get(ResourceType.EXPERIMENT, limit, offset, orderByIdentifier, resultOrderType); + List result=new ArrayList(); + for (Resource resource : list) { + result.add((ExperimentResource) resource); + } + return result; + } + /** * * @param experimentId experiment ID diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java index dfa887f64d..d3609b81cf 100644 --- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java +++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java @@ -21,12 +21,14 @@ package org.apache.airavata.persistance.registry.jpa.resources; +import org.apache.airavata.model.workspace.experiment.ExperimentState; import org.apache.airavata.persistance.registry.jpa.Resource; import org.apache.airavata.persistance.registry.jpa.ResourceType; import org.apache.airavata.persistance.registry.jpa.ResourceUtils; import org.apache.airavata.persistance.registry.jpa.model.*; import org.apache.airavata.persistance.registry.jpa.utils.QueryGenerator; import org.apache.airavata.registry.cpi.ResultOrderType; +import org.apache.airavata.registry.cpi.utils.Constants; import org.apache.airavata.registry.cpi.utils.StatusType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -220,11 +222,28 @@ public Resource get(ResourceType type, Object name) throws RegistryException{ // } /** + * Method get all results of the given child resource type * * @param type child resource type * @return list of child resources */ public List get(ResourceType type) throws RegistryException{ + return get(type, -1, -1, null, null); + } + + /** + * Method get all results of the given child resource type with paginaltion and ordering + * + * @param type child resource type + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return list of child resources + * @throws RegistryException + */ + public List get(ResourceType type, int limit, int offset, Object orderByIdentifier, + ResultOrderType resultOrderType) throws RegistryException{ List result = new ArrayList(); EntityManager em = null; try { @@ -239,9 +258,21 @@ public List get(ResourceType type) throws RegistryException{ Gateway gatewayModel = em.find(Gateway.class, gateway.getGatewayId()); generator.setParameter("users", users); generator.setParameter("gateway", gatewayModel); -// generator.setParameter(ProjectConstants.USERNAME, getUser()); -// generator.setParameter(ProjectConstants.GATEWAY_NAME, gateway.getGatewayName()); - q = generator.selectQuery(em); + + //ordering - only supported only by CREATION_TIME + if(orderByIdentifier != null && resultOrderType != null + && orderByIdentifier.equals(Constants.FieldConstants.ProjectConstants.CREATION_TIME)) { + q = generator.selectQuery(em, ProjectConstants.CREATION_TIME, resultOrderType); + }else{ + q = generator.selectQuery(em); + } + + //pagination + if(limit>0 && offset>=0){ + q.setFirstResult(offset); + q.setMaxResults(limit); + } + for (Object o : q.getResultList()) { Project project = (Project) o; ProjectResource projectResource = (ProjectResource) Utils.getResource(ResourceType.PROJECT, project); @@ -251,12 +282,26 @@ public List get(ResourceType type) throws RegistryException{ case EXPERIMENT: generator = new QueryGenerator(EXPERIMENT); generator.setParameter(ExperimentConstants.EXECUTION_USER, getUser()); - q = generator.selectQuery(em); + + //ordering - only supported only by CREATION_TIME + if(orderByIdentifier != null && resultOrderType != null + && orderByIdentifier.equals(Constants.FieldConstants.ProjectConstants.CREATION_TIME)) { + q = generator.selectQuery(em, ExperimentConstants.CREATION_TIME, resultOrderType); + }else{ + q = generator.selectQuery(em); + } + + //pagination + if(limit>0 && offset>=0){ + q.setFirstResult(offset); + q.setMaxResults(limit); + } for (Object o : q.getResultList()) { Experiment experiment = (Experiment) o; ExperimentResource experimentResource = (ExperimentResource) Utils.getResource(ResourceType.EXPERIMENT, experiment); result.add(experimentResource); } + break; default: logger.error("Unsupported resource type for worker resource.", new IllegalArgumentException()); @@ -396,18 +441,29 @@ public void removeProject(String id) throws RegistryException{ } /** - * + * Get projects list of user * @return list of projects for the user */ public List getProjects() throws RegistryException{ - List result=new ArrayList(); - List list = get(ResourceType.PROJECT); - for (Resource resource : list) { - result.add((ProjectResource) resource); - } - return result; + return getProjects(-1, -1, null, null); } + + /** + * Get projects list of user with pagination and ordering + * + * @return list of projects for the user + */ + public List getProjects(int limit, int offset, Object orderByIdentifier, + ResultOrderType resultOrderType) throws RegistryException{ + List result=new ArrayList(); + List list = get(ResourceType.PROJECT, limit, offset, orderByIdentifier, resultOrderType); + for (Resource resource : list) { + result.add((ProjectResource) resource); + } + return result; + } + /** * * @param name experiment name @@ -432,18 +488,32 @@ public ExperimentResource getExperiment(String name) throws RegistryException{ // } /** - * + * Method to get list of expeirments of user * @return list of experiments for the user */ public List getExperiments() throws RegistryException{ - List result=new ArrayList(); - List list = get(ResourceType.EXPERIMENT); - for (Resource resource : list) { - result.add((ExperimentResource) resource); - } - return result; + return getExperiments(-1, -1, null, null); } + /** + * Method to get list of experiments of user with pagination and ordering + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return + * @throws RegistryException + */ + public List getExperiments(int limit, int offset, Object orderByIdentifier, + ResultOrderType resultOrderType) throws RegistryException{ + List result=new ArrayList(); + List list = get(ResourceType.EXPERIMENT, limit, offset, orderByIdentifier, resultOrderType); + for (Resource resource : list) { + result.add((ExperimentResource) resource); + } + return result; + } + /** * * @param experimentId experiment name @@ -460,7 +530,7 @@ public void removeExperiment(String experimentId) throws RegistryException{ * @throws RegistryException */ public List searchProjects (Map filters) throws RegistryException{ - return searchProjectsWithPagination(filters, -1, -1, null, null); + return searchProjects(filters, -1, -1, null, null); } /** @@ -477,8 +547,8 @@ public List searchProjects (Map filters) throws * @return * @throws RegistryException */ - public List searchProjectsWithPagination(Map filters, int limit, - int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + public List searchProjects(Map filters, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { List result = new ArrayList(); EntityManager em = null; try { @@ -502,7 +572,7 @@ public List searchProjectsWithPagination(Map fi //ordering if( orderByIdentifier != null && resultOrderType != null - && orderByIdentifier.equals(ProjectConstants.CREATION_TIME)){ + && orderByIdentifier.equals(Constants.FieldConstants.ProjectConstants.CREATION_TIME)){ String order = (resultOrderType == ResultOrderType.ASC) ? "ASC" : "DESC"; query += " ORDER BY p." + ProjectConstants.CREATION_TIME + " " + order; } @@ -549,7 +619,7 @@ public List searchProjectsWithPagination(Map fi * @throws RegistryException */ public List searchExperiments (Map filters) throws RegistryException{ - return searchExperimentsWithPagination(filters, -1, -1, null, null); + return searchExperiments(filters, -1, -1, null, null); } /** @@ -565,8 +635,8 @@ public List searchExperiments (Map filters) * @return * @throws RegistryException */ - public List searchExperimentsWithPagination(Map filters, int limit, - int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { + public List searchExperiments(Map filters, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException { List result = new ArrayList(); EntityManager em = null; @@ -579,6 +649,8 @@ public List searchExperimentsWithPagination(Map searchExperimentsWithPagination(Map searchExperimentsWithPagination(Map searchExperimentsByState (String experimentState) throws RegistryException{ + /** + * Method to get experiments by state + * @param filters + * @return + * @throws RegistryException + */ + public List searchExperimentsByState (Map filters) throws RegistryException{ + return searchExperimentsByState(filters, -1, -1, null, null); + } + + /** + * Method to get experiments of the given state with pagination and ordering + * @param filters + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return + * @throws RegistryException + */ + public List searchExperimentsByState (Map filters, int limit, int offset, + Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException{ List result = new ArrayList(); EntityManager em = null; try { + String experimentState = ExperimentState.valueOf(filters.get(StatusConstants.STATE)).toString(); String query = "SELECT e FROM Status s " + "JOIN s.experiment e " + "WHERE s.state='" + experimentState + "' " + - "AND s.statusType='" + StatusType.EXPERIMENT + "'"; + "AND s.statusType='" + StatusType.EXPERIMENT + "' AND "; + + filters.remove(StatusConstants.STATE); + if (filters.size() != 0) { + for (String field : filters.keySet()) { + String filterVal = filters.get(field); + if (field.equals(ExperimentConstants.EXECUTION_USER)) { + query += "e." + field + "= '" + filterVal + "' AND "; + }else if (field.equals(ExperimentConstants.GATEWAY_ID)) { + query += "e." + field + "= '" + filterVal + "' AND "; + } else if (field.equals(ExperimentConstants.PROJECT_ID)) { + query += "e." + field + "= '" + filterVal + "' AND "; + } else { + if (filterVal.contains("*")){ + filterVal = filterVal.replaceAll("\\*", ""); + } + query += "e." + field + " LIKE '%" + filterVal + "%' AND "; + } + } + } + query = query.substring(0, query.length() - 5); + + //ordering + if( orderByIdentifier != null && resultOrderType != null + && orderByIdentifier.equals(Constants.FieldConstants.ExperimentConstants.CREATION_TIME)){ + String order = (resultOrderType == ResultOrderType.ASC) ? "ASC" : "DESC"; + query += " ORDER BY e." + ExperimentConstants.CREATION_TIME + " " + order; + } + em = ResourceUtils.getEntityManager(); em.getTransaction().begin(); - Query q = em.createQuery(query); + Query q; + + //pagination + if(offset>=0 && limit >=0){ + q = em.createQuery(query).setFirstResult(offset).setMaxResults(limit); + }else{ + q = em.createQuery(query); + } + List resultList = q.getResultList(); for (Object o : resultList) { Experiment experiment = (Experiment) o; @@ -663,16 +793,60 @@ public List searchExperimentsByState (String experimentState return result; } + /** + * Search experiments from creation time between interval. Returns all results + * @param fromTime + * @param toTime + * @return + * @throws RegistryException + */ public List searchExperimentsByCreationTime (Timestamp fromTime, Timestamp toTime) throws RegistryException{ + return searchExperimentsByCreationTime(fromTime, toTime, -1, -1, null, null); + } + + + /** + * Search experiments from creation time between interval. Results are ordered creation time DESC. + * Supports pagination + * + * @param fromTime + * @param toTime + * @param limit + * @param offset + * @param orderByIdentifier + * @param resultOrderType + * @return + * @throws RegistryException + */ + public List searchExperimentsByCreationTime( + Timestamp fromTime, Timestamp toTime, int limit, int offset, Object orderByIdentifier, + ResultOrderType resultOrderType) throws RegistryException{ + List result = new ArrayList(); EntityManager em = null; try { String query = "SELECT e FROM Experiment e " + "WHERE e.creationTime > '" + fromTime + "' " + "AND e.creationTime <'" + toTime + "'"; + + //ordering + if( orderByIdentifier != null && resultOrderType != null + && orderByIdentifier.equals(Constants.FieldConstants.ExperimentConstants.CREATION_TIME)){ + String order = (resultOrderType == ResultOrderType.ASC) ? "ASC" : "DESC"; + query += " ORDER BY e." + ExperimentConstants.CREATION_TIME + " " + order; + } + em = ResourceUtils.getEntityManager(); em.getTransaction().begin(); - Query q = em.createQuery(query); + Query q; + + //pagination + if(offset>=0 && limit >=0){ + q = em.createQuery(query).setFirstResult(offset).setMaxResults(limit); + }else{ + q = em.createQuery(query); + } + List resultList = q.getResultList(); for (Object o : resultList) { Experiment experiment = (Experiment) o; diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/utils/QueryGenerator.java b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/utils/QueryGenerator.java index 56594e0d83..b0ebe45736 100644 --- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/utils/QueryGenerator.java +++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/utils/QueryGenerator.java @@ -21,11 +21,12 @@ package org.apache.airavata.persistance.registry.jpa.utils; -import java.util.HashMap; -import java.util.Map; +import org.apache.airavata.registry.cpi.ResultOrderType; import javax.persistence.EntityManager; import javax.persistence.Query; +import java.util.HashMap; +import java.util.Map; public class QueryGenerator { private String tableName; @@ -58,12 +59,32 @@ public void addMatch(String colName, Object matchValue){ public void setParameter(String colName, Object matchValue){ addMatch(colName, matchValue); } - + + /** + * Select query + * @param entityManager + * @return + */ public Query selectQuery(EntityManager entityManager){ String queryString="SELECT "+ SELECT_OBJ + " FROM " +getTableName()+" "+TABLE_OBJ; return generateQueryWithParameters(entityManager, queryString); } + /** + * Select query with pagination + * @param entityManager + * @param orderByColumn + * @param resultOrderType + * @return + */ + public Query selectQuery(EntityManager entityManager, String orderByColumn, + ResultOrderType resultOrderType){ + String order = (resultOrderType == ResultOrderType.ASC) ? "ASC" : "DESC"; + String orderByClause = " ORDER BY " + SELECT_OBJ + "." + orderByColumn + " " + order; + String queryString="SELECT "+ SELECT_OBJ + " FROM " +getTableName()+" "+TABLE_OBJ; + return generateQueryWithParameters(entityManager, queryString, orderByClause); + } + // public Query countQuery(EntityManager entityManager){ // SELECT COUNT(p.host_descriptor_ID) FROM Host_Descriptor p WHERE p.gateway_name =:gate_ID and p.host_descriptor_ID =:host_desc_name") // String queryString="SELECT COUNT("+ SELECT_OBJ + " FROM " +getTableName()+" "+TABLE_OBJ; @@ -77,25 +98,31 @@ public Query deleteQuery(EntityManager entityManager){ private Query generateQueryWithParameters(EntityManager entityManager, String queryString) { - Map queryParameters=new HashMap(); - if (matches.size()>0){ - String matchString = ""; - int paramCount=0; - for (String colName : matches.keySet()) { - String paramName="param"+paramCount; - queryParameters.put(paramName, matches.get(colName)); - if (!matchString.equals("")){ - matchString+=" AND "; - } - matchString+=TABLE_OBJ+"."+colName+" =:"+paramName; - paramCount++; - } - queryString+=" WHERE "+matchString; - } - Query query = entityManager.createQuery(queryString); - for (String paramName : queryParameters.keySet()) { - query.setParameter(paramName, queryParameters.get(paramName)); - } - return query; + return generateQueryWithParameters(entityManager, queryString, ""); } + + private Query generateQueryWithParameters(EntityManager entityManager, + String queryString, String orderByClause) { + Map queryParameters=new HashMap(); + if (matches.size()>0){ + String matchString = ""; + int paramCount=0; + for (String colName : matches.keySet()) { + String paramName="param"+paramCount; + queryParameters.put(paramName, matches.get(colName)); + if (!matchString.equals("")){ + matchString+=" AND "; + } + matchString+=TABLE_OBJ+"."+colName+" =:"+paramName; + paramCount++; + } + queryString+=" WHERE "+matchString; + } + queryString += orderByClause; + Query query = entityManager.createQuery(queryString); + for (String paramName : queryParameters.keySet()) { + query.setParameter(paramName, queryParameters.get(paramName)); + } + return query; + } } diff --git a/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/RegistryUseCaseTest.java b/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/RegistryUseCaseTest.java index 17f4e71b64..1a78b1eee5 100644 --- a/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/RegistryUseCaseTest.java +++ b/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/RegistryUseCaseTest.java @@ -29,7 +29,6 @@ import org.apache.airavata.model.workspace.experiment.ExperimentSummary; import org.apache.airavata.model.workspace.experiment.UserConfigurationData; import org.apache.airavata.persistance.registry.jpa.impl.RegistryFactory; -import org.apache.airavata.persistance.registry.jpa.resources.AbstractResource; import org.apache.airavata.persistance.registry.jpa.util.Initialize; import org.apache.airavata.registry.cpi.*; import org.apache.airavata.registry.cpi.utils.Constants; @@ -89,7 +88,7 @@ public void testProject(){ Assert.assertEquals(updatedProject.getName(), retrievedProject.getName()); Assert.assertEquals(updatedProject.getDescription(), retrievedProject.getDescription()); Assert.assertNotNull(retrievedProject.getCreationTime()); - //created users should be in the shared users list + //created user should be in the shared users list Assert.assertTrue(retrievedProject.getSharedUsers().size()==1); //creating more projects for the same user @@ -149,8 +148,8 @@ public void testProject(){ //search projects with pagination filters = new HashMap(); filters.put(Constants.FieldConstants.ProjectConstants.OWNER, "TestUser"+TAG); - list = registry.searchWithPagination(RegistryModelType.PROJECT, filters, 2, 2, - AbstractResource.ProjectConstants.CREATION_TIME, ResultOrderType.DESC); + list = registry.search(RegistryModelType.PROJECT, filters, 2, 2, + Constants.FieldConstants.ProjectConstants.CREATION_TIME, ResultOrderType.DESC); Assert.assertTrue(list.size()==2); Project project1 = (Project)list.get(0); Project project2 = (Project)list.get(1); @@ -236,7 +235,7 @@ public void testExperiment(){ experiment.addToExperimentInputs(inputDataObjectType); String experimentId2 = (String)registry.add(ParentDataType.EXPERIMENT, experiment, gatewayId); - Assert.assertNotNull(experimentId1); + Assert.assertNotNull(experimentId2); experiment = new Experiment(); experiment.setProjectID(projectId1); @@ -248,7 +247,7 @@ public void testExperiment(){ experiment.addToExperimentInputs(inputDataObjectType); String experimentId3 = (String)registry.add(ParentDataType.EXPERIMENT, experiment, gatewayId); - Assert.assertNotNull(experimentId1); + Assert.assertNotNull(experimentId3); //searching experiments by name Map filters = new HashMap(); @@ -274,8 +273,8 @@ public void testExperiment(){ filters = new HashMap(); filters.put(Constants.FieldConstants.ExperimentConstants.USER_NAME, "TestUser" + TAG); filters.put(Constants.FieldConstants.ExperimentConstants.GATEWAY, gatewayId); - list = registry.searchWithPagination(RegistryModelType.EXPERIMENT, filters, 2, 1, - AbstractResource.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); + list = registry.search(RegistryModelType.EXPERIMENT, filters, 2, 1, + Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); Assert.assertTrue(list.size()==2); ExperimentSummary exp1 = (ExperimentSummary)list.get(0); ExperimentSummary exp2 = (ExperimentSummary)list.get(1); From 0a3d857b746d27a7a8cccf4f26923b163fcb9965 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Mon, 27 Apr 2015 20:46:56 +0530 Subject: [PATCH 2/5] Changing Airavata API to support paginated result retrieval of Project and Experiment data --- .../server/handler/AiravataServerHandler.java | 375 +- .../api/server/util/DatabaseCreator.java | 15 +- .../handler/AiravataServerHandlerTest.java | 324 + .../org/apache/airavata/api/Airavata.java | 21816 ++++++++++++++-- .../main/resources/lib/airavata/Airavata.cpp | 12982 ++++++--- .../main/resources/lib/airavata/Airavata.h | 2398 +- .../lib/airavata/Airavata_server.skeleton.cpp | 50 + .../resources/lib/Airavata/API/Airavata.php | 4756 +++- .../lib/apache/airavata/api/Airavata-remote | 70 + .../lib/apache/airavata/api/Airavata.py | 12786 +++++---- .../airavataAPI.thrift | 332 +- .../airavata/registry/cpi/Registry.java | 19 +- .../registry/cpi/utils/Constants.java | 1 + 13 files changed, 43430 insertions(+), 12494 deletions(-) create mode 100644 airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java index e2b402e2f4..c3039d96a5 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java @@ -21,12 +21,7 @@ package org.apache.airavata.api.server.handler; -import org.airavata.appcatalog.cpi.AppCatalog; -import org.airavata.appcatalog.cpi.AppCatalogException; -import org.airavata.appcatalog.cpi.ApplicationDeployment; -import org.airavata.appcatalog.cpi.ComputeResource; -import org.airavata.appcatalog.cpi.GwyResourceProfile; -import org.airavata.appcatalog.cpi.WorkflowCatalog; +import org.airavata.appcatalog.cpi.*; import org.apache.aiaravata.application.catalog.data.impl.AppCatalogFactory; import org.apache.aiaravata.application.catalog.data.resources.*; import org.apache.aiaravata.application.catalog.data.util.AppCatalogThriftConversion; @@ -50,38 +45,18 @@ import org.apache.airavata.model.appcatalog.computeresource.*; import org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference; import org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile; -import org.apache.airavata.model.error.AiravataClientConnectException; -import org.apache.airavata.model.error.AiravataClientException; -import org.apache.airavata.model.error.AiravataErrorType; -import org.apache.airavata.model.error.AiravataSystemException; -import org.apache.airavata.model.error.ExperimentNotFoundException; -import org.apache.airavata.model.error.InvalidRequestException; -import org.apache.airavata.model.error.ProjectNotFoundException; +import org.apache.airavata.model.error.*; import org.apache.airavata.model.messaging.event.ExperimentStatusChangeEvent; import org.apache.airavata.model.messaging.event.MessageType; import org.apache.airavata.model.workspace.Gateway; import org.apache.airavata.model.workspace.Project; -import org.apache.airavata.model.workspace.experiment.ComputationalResourceScheduling; -import org.apache.airavata.model.workspace.experiment.DataTransferDetails; -import org.apache.airavata.model.workspace.experiment.Experiment; -import org.apache.airavata.model.workspace.experiment.ExperimentState; -import org.apache.airavata.model.workspace.experiment.ExperimentStatus; -import org.apache.airavata.model.workspace.experiment.ExperimentSummary; -import org.apache.airavata.model.workspace.experiment.JobDetails; -import org.apache.airavata.model.workspace.experiment.JobStatus; -import org.apache.airavata.model.workspace.experiment.TaskDetails; -import org.apache.airavata.model.workspace.experiment.UserConfigurationData; -import org.apache.airavata.model.workspace.experiment.WorkflowNodeDetails; +import org.apache.airavata.model.workspace.experiment.*; import org.apache.airavata.orchestrator.client.OrchestratorClientFactory; import org.apache.airavata.orchestrator.cpi.OrchestratorService; import org.apache.airavata.orchestrator.cpi.OrchestratorService.Client; import org.apache.airavata.persistance.registry.jpa.ResourceUtils; import org.apache.airavata.persistance.registry.jpa.impl.RegistryFactory; -import org.apache.airavata.registry.cpi.ChildDataType; -import org.apache.airavata.registry.cpi.ParentDataType; -import org.apache.airavata.registry.cpi.Registry; -import org.apache.airavata.registry.cpi.RegistryException; -import org.apache.airavata.registry.cpi.RegistryModelType; +import org.apache.airavata.registry.cpi.*; import org.apache.airavata.registry.cpi.utils.Constants; import org.apache.thrift.TException; @@ -343,10 +318,34 @@ public Project getProject(String projectId) throws InvalidRequestException, /** * Get all Project by user * + * @param gatewayId + * The identifier for the requested gateway. * @param userName + * The identifier of the user + * @deprecated Instead use getAllUserProjectsWithPagination method */ + @Deprecated @Override public List getAllUserProjects(String gatewayId, String userName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return getAllUserProjectsWithPagination(gatewayId, userName, -1, -1); + } + + /** + * Get all Project by user with pagination. Results will be ordered based + * on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + **/ + @Override + public List getAllUserProjectsWithPagination(String gatewayId, String userName, + int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -371,7 +370,8 @@ public List getAllUserProjects(String gatewayId, String userName) throw Map filters = new HashMap(); filters.put(Constants.FieldConstants.ProjectConstants.OWNER, userName); filters.put(Constants.FieldConstants.ProjectConstants.GATEWAY_ID, gatewayId); - List list = registry.search(RegistryModelType.PROJECT,filters); + List list = registry.search(RegistryModelType.PROJECT, filters, limit, offset, + Constants.FieldConstants.ProjectConstants.CREATION_TIME, ResultOrderType.DESC); if (list != null && !list.isEmpty()){ for (Object o : list){ projects.add((Project) o); @@ -387,10 +387,43 @@ public List getAllUserProjects(String gatewayId, String userName) throw } } + /** + * Get all Project for user by project name + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param projectName + * The name of the project on which the results to be fetched + * @deprecated Instead use searchProjectsByProjectNameWithPagination + */ + @Deprecated + @Override public List searchProjectsByProjectName(String gatewayId, String userName, String projectName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return searchProjectsByProjectNameWithPagination(gatewayId, userName, projectName, -1, -1); + } + + /** + * Get all Project for user by project name with pagination. Results will be ordered based + * on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param projectName + * The name of the project on which the results to be fetched + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List searchProjectsByProjectNameWithPagination(String gatewayId, String userName, String projectName, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -416,7 +449,8 @@ public List searchProjectsByProjectName(String gatewayId, String userNa filters.put(Constants.FieldConstants.ProjectConstants.OWNER, userName); filters.put(Constants.FieldConstants.ProjectConstants.GATEWAY_ID, gatewayId); filters.put(Constants.FieldConstants.ProjectConstants.PROJECT_NAME, projectName); - List results = registry.search(RegistryModelType.PROJECT, filters); + List results = registry.search(RegistryModelType.PROJECT, filters, limit, offset, + Constants.FieldConstants.ProjectConstants.CREATION_TIME, ResultOrderType.DESC); for (Object object : results) { projects.add((Project)object); } @@ -430,10 +464,42 @@ public List searchProjectsByProjectName(String gatewayId, String userNa } } + /** + * Get all Project for user by project description + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param description + * The description to be matched + * @deprecated Instead use searchProjectsByProjectDescWithPagination + */ + @Deprecated + @Override public List searchProjectsByProjectDesc(String gatewayId, String userName, String description) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return searchProjectsByProjectDescWithPagination(gatewayId, userName, description, -1, -1); + } + + /** + * Search and get all Projects for user by project description with pagination. Results + * will be ordered based on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param description + * The description to be matched + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List searchProjectsByProjectDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -459,7 +525,8 @@ public List searchProjectsByProjectDesc(String gatewayId, String userNa filters.put(Constants.FieldConstants.ProjectConstants.OWNER, userName); filters.put(Constants.FieldConstants.ProjectConstants.GATEWAY_ID, gatewayId); filters.put(Constants.FieldConstants.ProjectConstants.DESCRIPTION, description); - List results = registry.search(RegistryModelType.PROJECT, filters); + List results = registry.search(RegistryModelType.PROJECT, filters, limit, offset, + Constants.FieldConstants.ProjectConstants.CREATION_TIME, ResultOrderType.DESC); for (Object object : results) { projects.add((Project)object); } @@ -473,10 +540,45 @@ public List searchProjectsByProjectDesc(String gatewayId, String userNa } } + /** + * Search Experiments by experiment name + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param expName + * Experiment name to be matched + * @deprecated + * Instead use searchExperimentsByNameWithPagination + * + */ + @Deprecated + @Override public List searchExperimentsByName(String gatewayId, String userName, String expName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return searchExperimentsByNameWithPagination(gatewayId, userName, expName, -1, -1); + } + + /** + * Search Experiments by experiment name with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param expName + * Experiment name to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List searchExperimentsByNameWithPagination(String gatewayId, String userName, String expName, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -502,7 +604,8 @@ public List searchExperimentsByName(String gatewayId, String filters.put(Constants.FieldConstants.ExperimentConstants.USER_NAME, userName); filters.put(Constants.FieldConstants.ExperimentConstants.GATEWAY, gatewayId); filters.put(Constants.FieldConstants.ExperimentConstants.EXPERIMENT_NAME, expName); - List results = registry.search(RegistryModelType.EXPERIMENT, filters); + List results = registry.search(RegistryModelType.EXPERIMENT, filters, limit, + offset, Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); for (Object object : results) { summaries.add((ExperimentSummary) object); } @@ -516,10 +619,44 @@ public List searchExperimentsByName(String gatewayId, String } } + /** + * Search Experiments by experiment name + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param description + * Experiment description to be matched + * @deprecated + * Instead use searchExperimentsByDescWithPagination + */ + @Deprecated + @Override public List searchExperimentsByDesc(String gatewayId, String userName, String description) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return searchExperimentsByDescWithPagination(gatewayId, userName, description, -1, -1); + } + + /** + * Search Experiments by experiment name with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param description + * Experiment description to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List searchExperimentsByDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -545,7 +682,8 @@ public List searchExperimentsByDesc(String gatewayId, String filters.put(Constants.FieldConstants.ExperimentConstants.USER_NAME, userName); filters.put(Constants.FieldConstants.ExperimentConstants.GATEWAY, gatewayId); filters.put(Constants.FieldConstants.ExperimentConstants.EXPERIMENT_DESC, description); - List results = registry.search(RegistryModelType.EXPERIMENT, filters); + List results = registry.search(RegistryModelType.EXPERIMENT, filters, limit, + offset, Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); for (Object object : results) { summaries.add((ExperimentSummary) object); } @@ -559,7 +697,41 @@ public List searchExperimentsByDesc(String gatewayId, String } } + /** + * Search Experiments by application id + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param applicationId + * Application id to be matched + * @deprecated + * Instead use searchExperimentsByApplication + */ + @Deprecated + @Override public List searchExperimentsByApplication(String gatewayId, String userName, String applicationId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return searchExperimentsByApplicationWithPagination(gatewayId, userName, applicationId, -1, -1); + } + + /** + * Search Experiments by application id with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param applicationId + * Application id to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List searchExperimentsByApplicationWithPagination(String gatewayId, String userName, String applicationId, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -585,7 +757,8 @@ public List searchExperimentsByApplication(String gatewayId, filters.put(Constants.FieldConstants.ExperimentConstants.USER_NAME, userName); filters.put(Constants.FieldConstants.ExperimentConstants.APPLICATION_ID, applicationId); filters.put(Constants.FieldConstants.ExperimentConstants.GATEWAY, gatewayId); - List results = registry.search(RegistryModelType.EXPERIMENT, filters); + List results = registry.search(RegistryModelType.EXPERIMENT, filters, limit, + offset, Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); for (Object object : results) { summaries.add((ExperimentSummary) object); } @@ -599,8 +772,41 @@ public List searchExperimentsByApplication(String gatewayId, } } + /** + * Search Experiments by experiment status + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param experimentState + * Experiment state to be matched + * @deprecated + * Instead use searchExperimentsByStatusWithPagination + */ + @Deprecated @Override public List searchExperimentsByStatus(String gatewayId, String userName, ExperimentState experimentState) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return searchExperimentsByStatusWithPagination(gatewayId, userName, experimentState, -1, -1); + } + + /** + * Search Experiments by experiment status with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param experimentState + * Experiement state to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List searchExperimentsByStatusWithPagination(String gatewayId, String userName, ExperimentState experimentState, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -626,7 +832,8 @@ public List searchExperimentsByStatus(String gatewayId, Strin filters.put(Constants.FieldConstants.ExperimentConstants.USER_NAME, userName); filters.put(Constants.FieldConstants.ExperimentConstants.EXPERIMENT_STATUS, experimentState.toString()); filters.put(Constants.FieldConstants.ExperimentConstants.GATEWAY, gatewayId); - List results = registry.search(RegistryModelType.EXPERIMENT, filters); + List results = registry.search(RegistryModelType.EXPERIMENT, filters, limit, + offset, Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); for (Object object : results) { summaries.add((ExperimentSummary) object); } @@ -640,8 +847,45 @@ public List searchExperimentsByStatus(String gatewayId, Strin } } + /** + * Search Experiments by experiment creation time + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param fromTime + * Start time of the experiments creation time + * @param toTime + * End time of the experiement creation time + * @deprecated + * Instead use searchExperimentsByCreationTime + */ + @Deprecated @Override public List searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return searchExperimentsByCreationTimeWithPagination(gatewayId, userName, fromTime, toTime, -1, -1); + } + + /** + * Search Experiments by experiment creation time with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param fromTime + * Start time of the experiments creation time + * @param toTime + * End time of the experiement creation time + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List searchExperimentsByCreationTimeWithPagination(String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -668,7 +912,8 @@ public List searchExperimentsByCreationTime(String gatewayId, filters.put(Constants.FieldConstants.ExperimentConstants.FROM_DATE, String.valueOf(fromTime)); filters.put(Constants.FieldConstants.ExperimentConstants.TO_DATE, String.valueOf(toTime)); filters.put(Constants.FieldConstants.ExperimentConstants.GATEWAY, gatewayId); - List results = registry.search(RegistryModelType.EXPERIMENT, filters); + List results = registry.search(RegistryModelType.EXPERIMENT, filters, limit, + offset, Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); for (Object object : results) { summaries.add((ExperimentSummary) object); } @@ -686,13 +931,34 @@ public List searchExperimentsByCreationTime(String gatewayId, * Get all Experiments within a Project * * @param projectId + * Identifier of the project + * @deprecated + * Instead use getAllExperimentsInProjectWithPagination */ + @Deprecated @Override public List getAllExperimentsInProject(String projectId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, ProjectNotFoundException, TException { + return getAllExperimentsInProjectWithPagination(projectId, -1, -1); + } + + /** + * Get all Experiments within project with pagination. Results will be sorted + * based on creation time DESC + * + * @param projectId + * Identifier of the project + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List getAllExperimentsInProjectWithPagination(String projectId, int limit, int offset) + throws InvalidRequestException, AiravataClientException, AiravataSystemException, ProjectNotFoundException, TException { if (!validateString(projectId)){ logger.error("Project id cannot be empty. Please provide a valid project ID..."); AiravataSystemException exception = new AiravataSystemException(); @@ -709,7 +975,9 @@ public List getAllExperimentsInProject(String projectId) throws Inva throw exception; } List experiments = new ArrayList(); - List list = registry.get(RegistryModelType.EXPERIMENT, Constants.FieldConstants.ExperimentConstants.PROJECT_ID, projectId); + List list = registry.get(RegistryModelType.EXPERIMENT, + Constants.FieldConstants.ExperimentConstants.PROJECT_ID, projectId, limit, offset, + Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); if (list != null && !list.isEmpty()) { for (Object o : list) { experiments.add((Experiment) o); @@ -728,10 +996,34 @@ public List getAllExperimentsInProject(String projectId) throws Inva /** * Get all Experiments by user * + * @param gatewayId + * Identifier of the requesting gateway * @param userName + * Username of the requested user + * @deprecated + * Instead use getAllUserExperimentsWithPagination */ + @Deprecated @Override public List getAllUserExperiments(String gatewayId, String userName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + return getAllUserExperimentsWithPagination(gatewayId, userName, -1, -1); + } + + /** + * Get all Experiments by user pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requesting gateway + * @param userName + * Username of the requested user + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + @Override + public List getAllUserExperimentsWithPagination(String gatewayId, String userName, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { if (!validateString(userName)){ logger.error("Username cannot be empty. Please provide a valid user.."); AiravataSystemException exception = new AiravataSystemException(); @@ -753,10 +1045,9 @@ public List getAllUserExperiments(String gatewayId, String userName) } List experiments = new ArrayList(); registry = RegistryFactory.getRegistry(gatewayId); - Map filters = new HashMap(); - filters.put(Constants.FieldConstants.ExperimentConstants.USER_NAME, userName); - filters.put(Constants.FieldConstants.ExperimentConstants.GATEWAY, gatewayId); - List list = registry.search(RegistryModelType.EXPERIMENT, filters); + List list = registry.get(RegistryModelType.EXPERIMENT, + Constants.FieldConstants.ExperimentConstants.USER_NAME, userName, limit, offset, + Constants.FieldConstants.ExperimentConstants.CREATION_TIME, ResultOrderType.DESC); if (list != null && !list.isEmpty()){ for (Object o : list){ experiments.add((Experiment)o); diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java index 4833f2ce43..4bc3c725d5 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java @@ -23,7 +23,10 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.io.*; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.sql.*; import java.util.StringTokenizer; @@ -33,6 +36,7 @@ * properties files. */ public class DatabaseCreator { + private final static Logger logger = LoggerFactory.getLogger(DatabaseCreator.class); public enum DatabaseType { derby("(?i).*derby.*"), mysql("(?i).*mysql.*"), other(""); @@ -257,6 +261,15 @@ private static void executeSQLScript(String dbscriptName, Connection conn) throw try { InputStream is = DatabaseCreator.class.getClassLoader().getResourceAsStream(dbscriptName); + if(is == null) { + logger.info("Script file not found at " + dbscriptName + ". Uses default database script file"); + DatabaseType databaseType = DatabaseCreator.getDatabaseType(conn); + if(databaseType.equals(DatabaseType.derby)){ + is = DatabaseCreator.class.getClassLoader().getResourceAsStream("registry-derby.sql"); + }else if(databaseType.equals(DatabaseType.derby)){ + is = DatabaseCreator.class.getClassLoader().getResourceAsStream("registry-mysql.sql"); + } + } reader = new BufferedReader(new InputStreamReader(is)); String line; while ((line = reader.readLine()) != null) { diff --git a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java new file mode 100644 index 0000000000..799f8e9016 --- /dev/null +++ b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java @@ -0,0 +1,324 @@ +/* + * + * 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.api.server.handler; + +import junit.framework.Assert; +import org.apache.airavata.api.server.util.RegistryInitUtil; +import org.apache.airavata.common.utils.AiravataUtils; +import org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType; +import org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType; +import org.apache.airavata.model.workspace.Gateway; +import org.apache.airavata.model.workspace.Project; +import org.apache.airavata.model.workspace.experiment.*; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.List; +import java.util.UUID; + +/** + * Test methods for Airavata Service Handler + */ +public class AiravataServerHandlerTest { + private final static Logger logger = LoggerFactory.getLogger(AiravataServerHandlerTest.class); + + private static AiravataServerHandler airavataServerHandler; + private static String gatewayId = "default"; + + @BeforeClass + public static void setupBeforeClass() throws Exception{ + AiravataUtils.setExecutionAsServer(); + RegistryInitUtil.initializeDB(); + airavataServerHandler = new AiravataServerHandler(); + + Gateway gateway = new Gateway(); + gateway.setGatewayId(gatewayId); + airavataServerHandler.addGateway(gateway); + } + + @AfterClass + public static void tearDown(){ + RegistryInitUtil.stopDerbyInServerMode(); + } + + /** + * Testing for project related API methods + */ + @Test + public void testProject(){ + try { + String TAG = System.currentTimeMillis() + ""; + + //testing the creation of a project + Project project = new Project(); + project.setOwner("TestUser"+TAG); + project.setName("TestProject"+TAG); + project.setDescription("This is a test project"+TAG); + String projectId1 = airavataServerHandler.createProject(gatewayId, project); + Assert.assertNotNull(projectId1); + + //testing the update of a project + Project updatedProject = new Project(); + updatedProject.setProjectID(projectId1); + updatedProject.setOwner("TestUser"+TAG); + updatedProject.setName("UpdatedTestProject"+TAG); + updatedProject.setDescription("This is an updated test project"+TAG); + airavataServerHandler.updateProject(projectId1, updatedProject); + + //testing project retrieval + Project retrievedProject = airavataServerHandler.getProject(projectId1); + Assert.assertEquals(updatedProject.getProjectID(), retrievedProject.getProjectID()); + Assert.assertEquals(updatedProject.getOwner(), retrievedProject.getOwner()); + Assert.assertEquals(updatedProject.getName(), retrievedProject.getName()); + Assert.assertEquals(updatedProject.getDescription(), retrievedProject.getDescription()); + Assert.assertNotNull(retrievedProject.getCreationTime()); + //created user should be in the shared users list + Assert.assertTrue(retrievedProject.getSharedUsers().size()==1); + + //creating more projects for the same user + project = new Project(); + project.setOwner("TestUser"+TAG); + project.setName("Project Terrible"+TAG); + project.setDescription("This is a test project_2"+TAG); + String projectId2 = airavataServerHandler.createProject(gatewayId, project); + Assert.assertNotNull(projectId2); + + project = new Project(); + project.setOwner("TestUser"+TAG); + project.setName("Project Funny"+TAG); + project.setDescription("This is a test project_3"+TAG); + String projectId3 = airavataServerHandler.createProject(gatewayId, project); + Assert.assertNotNull(projectId3); + + project = new Project(); + project.setOwner("TestUser"+TAG); + project.setName("Project Stupid"+TAG); + project.setDescription("This is a test project_4"+TAG); + String projectId4 = airavataServerHandler.createProject(gatewayId, project); + Assert.assertNotNull(projectId4); + + project = new Project(); + project.setOwner("TestUser"+TAG); + project.setName("Project Boring"+TAG); + project.setDescription("This is a test project_5"+TAG); + String projectId5 = airavataServerHandler.createProject(gatewayId, project); + Assert.assertNotNull(projectId5); + + //search project by project name + List list = airavataServerHandler.searchProjectsByProjectName(gatewayId, + "TestUser"+TAG, "Terrible"+TAG); + Assert.assertTrue(list.size()==1); + //with pagination + list = airavataServerHandler.searchProjectsByProjectNameWithPagination(gatewayId, + "TestUser" + TAG, "Project", 2, 1); + Assert.assertTrue(list.size()==2); + + //search project by project description + list = airavataServerHandler.searchProjectsByProjectDesc(gatewayId, "TestUser"+TAG, + "test project_2"+TAG); + Assert.assertTrue(list.size()==1); + //with pagination + list = airavataServerHandler.searchProjectsByProjectDescWithPagination(gatewayId, + "TestUser" + TAG, "test", 2, 1); + Assert.assertTrue(list.size()==2); + + //get all projects of user + list = airavataServerHandler.getAllUserProjects(gatewayId, "TestUser"+TAG); + Assert.assertTrue(list.size()==5); + //with pagination + list = airavataServerHandler.getAllUserProjectsWithPagination(gatewayId, "TestUser" + TAG, 2, 2); + Assert.assertTrue(list.size()==2); + Project project1 = list.get(0); + Project project2 = list.get(1); + Assert.assertTrue(project1.getCreationTime()-project2.getCreationTime() > 0); + } catch (Exception e) { + e.printStackTrace(); + Assert.fail(); + } + } + + /** + * Testing for project related API methods + */ + @Test + public void testExperiment(){ + try { + String TAG = System.currentTimeMillis() + ""; + + String applicationId = "Echo_" + UUID.randomUUID().toString(); + + //creating project + Project project = new Project(); + project.setOwner("TestUser"+TAG); + project.setName("TestProject"+TAG); + project.setDescription("This is a test project"+TAG); + String projectId1 = airavataServerHandler.createProject(gatewayId,project); + Assert.assertNotNull(projectId1); + + //creating sample echo experiment. assumes echo application is already defined + InputDataObjectType inputDataObjectType = new InputDataObjectType(); + inputDataObjectType.setName("Input_to_Echo"); + inputDataObjectType.setValue("Hello World"); + + ComputationalResourceScheduling scheduling = new ComputationalResourceScheduling(); + scheduling.setResourceHostId(UUID.randomUUID().toString()); + scheduling.setComputationalProjectAccount("TG-STA110014S"); + scheduling.setTotalCPUCount(1); + scheduling.setNodeCount(1); + scheduling.setWallTimeLimit(15); + scheduling.setQueueName("normal"); + + UserConfigurationData userConfigurationData = new UserConfigurationData(); + userConfigurationData.setAiravataAutoSchedule(false); + userConfigurationData.setOverrideManualScheduledParams(false); + userConfigurationData.setComputationalResourceScheduling(scheduling); + + Experiment experiment = new Experiment(); + experiment.setProjectID(projectId1); + experiment.setUserName("TestUser" + TAG); + experiment.setName("TestExperiment"+TAG); + experiment.setDescription("experiment"); + experiment.setApplicationId(applicationId); + experiment.setUserConfigurationData(userConfigurationData); + experiment.addToExperimentInputs(inputDataObjectType); + + String experimentId1 = airavataServerHandler.createExperiment(gatewayId, experiment); + Assert.assertNotNull(experimentId1); + + //retrieving the stored experiment + Experiment retrievedExperiment = airavataServerHandler.getExperiment(experimentId1); + Assert.assertNotNull(retrievedExperiment); + Assert.assertEquals(retrievedExperiment.getProjectID(), experiment.getProjectID()); + Assert.assertEquals(retrievedExperiment.getDescription(), experiment.getDescription()); + Assert.assertEquals(retrievedExperiment.getName(), experiment.getName()); + Assert.assertEquals(retrievedExperiment.getApplicationId(), experiment.getApplicationId()); + Assert.assertNotNull(retrievedExperiment.getUserConfigurationData()); + Assert.assertNotNull(retrievedExperiment.getExperimentInputs()); + + //updating an existing experiment + experiment.setName("NewExperimentName"+TAG); + OutputDataObjectType outputDataObjectType = new OutputDataObjectType(); + outputDataObjectType.setName("Output_to_Echo"); + outputDataObjectType.setValue("Hello World"); + experiment.addToExperimentOutputs(outputDataObjectType); + airavataServerHandler.updateExperiment(experimentId1, experiment); + + //creating more experiments + experiment = new Experiment(); + experiment.setProjectID(projectId1); + experiment.setUserName("TestUser" + TAG); + experiment.setName("TestExperiment2" + TAG); + experiment.setDescription("experiment"); + experiment.setApplicationId(applicationId); + experiment.setUserConfigurationData(userConfigurationData); + experiment.addToExperimentInputs(inputDataObjectType); + + String experimentId2 = airavataServerHandler.createExperiment(gatewayId, experiment); + Assert.assertNotNull(experimentId2); + + experiment = new Experiment(); + experiment.setProjectID(projectId1); + experiment.setUserName("TestUser" + TAG); + experiment.setName("TestExperiment3"+TAG); + experiment.setDescription("experiment"); + experiment.setApplicationId(applicationId); + experiment.setUserConfigurationData(userConfigurationData); + experiment.addToExperimentInputs(inputDataObjectType); + + String experimentId3 = airavataServerHandler.createExperiment(gatewayId, experiment); + Assert.assertNotNull(experimentId3); + + //searching experiments by name + List results = airavataServerHandler.searchExperimentsByName(gatewayId, + "TestUser" + TAG, "Experiment2"); + Assert.assertTrue(results.size()==1); + //with pagination + results = airavataServerHandler.searchExperimentsByNameWithPagination(gatewayId, + "TestUser" + TAG, "Experi", 2, 0); + Assert.assertTrue(results.size()==2); + + //searching experiments by creation time + long time = System.currentTimeMillis(); + results = airavataServerHandler.searchExperimentsByCreationTime( + gatewayId, "TestUser" + TAG, time-10000, time+1000); + Assert.assertTrue(results.size()==3); + //with pagination + results = airavataServerHandler.searchExperimentsByCreationTimeWithPagination( + gatewayId, "TestUser" + TAG, time-10000, time+1000, 2, 1); + Assert.assertTrue(results.size()==2); + + //searching based on experiment state + ExperimentState experimentState = ExperimentState.findByValue(0); + results = airavataServerHandler.searchExperimentsByStatus( + gatewayId, "TestUser" + TAG, experimentState); + Assert.assertTrue(results.size() > 0); + //with pagination + results = airavataServerHandler.searchExperimentsByStatusWithPagination( + gatewayId, "TestUser" + TAG, experimentState, 2, 0); + Assert.assertTrue(results.size()==2); + + //searching based on application + results = airavataServerHandler.searchExperimentsByApplication( + gatewayId, "TestUser" + TAG, "Ech"); + Assert.assertTrue(results.size() > 0); + //with pagination + results = airavataServerHandler.searchExperimentsByApplicationWithPagination( + gatewayId, "TestUser" + TAG, "Ech", 2, 0); + Assert.assertTrue(results.size()==2); + + //searching experiments by description + results = airavataServerHandler.searchExperimentsByDesc( + gatewayId, "TestUser" + TAG, "exp"); + Assert.assertTrue(results.size() > 0); + //with pagination + results = airavataServerHandler.searchExperimentsByDescWithPagination( + gatewayId, "TestUser" + TAG, "exp", 2, 0); + Assert.assertTrue(results.size()==2); + + + //retrieving all experiments in project + List list = airavataServerHandler.getAllExperimentsInProject(projectId1); + Assert.assertTrue(list.size()==3); + //with pagination + list = airavataServerHandler.getAllExperimentsInProjectWithPagination(projectId1, 2, 1); + Assert.assertTrue(list.size()==2); + + //getting all user experiments + list = airavataServerHandler.getAllUserExperiments(gatewayId, "TestUser" + TAG); + Assert.assertTrue(list.size() == 3); + //with pagination + list = airavataServerHandler.getAllUserExperimentsWithPagination( + gatewayId, "TestUser" + TAG, 2, 0); + //testing time ordering + Assert.assertTrue(list.size()==2); + Experiment exp1 = list.get(0); + Experiment exp2 = list.get(1); + Assert.assertTrue(exp1.getCreationTime()-exp2.getCreationTime() > 0); + + } catch (Exception e) { + e.printStackTrace(); + Assert.fail(); + } + } +} \ No newline at end of file diff --git a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java index 44f1e6095b..dd73b61de2 100644 --- a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java +++ b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java @@ -138,7 +138,7 @@ public interface Iface { * * * * @param userName * * The Project Object described in the workspaceModel - * * + * * @deprecated Instead use getAllUserProjectsWithPagination * * * * @param gatewayId @@ -146,9 +146,37 @@ public interface Iface { */ public List getAllUserProjects(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * * Get all Project by user with pagination. Results will be ordered based + * * on creation time DESC + * * + * * @param gatewayId + * * The identifier for the requested gateway. + * * @param userName + * * The identifier of the user + * * @param limit + * * The amount results to be fetched + * * @param offset + * * The starting point of the results to be fetched + * * + * + * @param gatewayId + * @param userName + * @param limit + * @param offset + */ + public List getAllUserProjectsWithPagination(String gatewayId, String userName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** * Get all Project for user by project name * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param projectName + * The name of the project on which the results to be fetched + * @deprecated Instead use searchProjectsByProjectNameWithPagination * * @param gatewayId * @param userName @@ -157,8 +185,37 @@ public interface Iface { public List searchProjectsByProjectName(String gatewayId, String userName, String projectName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; /** - * Get all Project for user by project description + * Get all Project for user by project name with pagination.Results will be ordered based + * on creation time DESC * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param projectName + * The name of the project on which the results to be fetched + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param projectName + * @param limit + * @param offset + */ + public List searchProjectsByProjectNameWithPagination(String gatewayId, String userName, String projectName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + + /** + * Get all Project for user by project description + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param description + * The description to be matched + * @deprecated Instead use searchProjectsByProjectDescWithPagination * * @param gatewayId * @param userName @@ -166,9 +223,41 @@ public interface Iface { */ public List searchProjectsByProjectDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * Search and get all Projects for user by project description with pagination. Results + * will be ordered based on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param description + * The description to be matched + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param description + * @param limit + * @param offset + */ + public List searchProjectsByProjectDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** * Search Experiments by experiment name * + * @param gatewayId + * Identifier of the requested gateway + * @param useNname + * Username of the requested user + * @param expName + * Experiment name to be matched + * @deprecated + * Instead use searchExperimentsByNameWithPagination + * * * @param gatewayId * @param userName @@ -176,9 +265,40 @@ public interface Iface { */ public List searchExperimentsByName(String gatewayId, String userName, String expName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * Search Experiments by experiment name with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param expName + * Experiment name to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param expName + * @param limit + * @param offset + */ + public List searchExperimentsByNameWithPagination(String gatewayId, String userName, String expName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** * Search Experiments by experiment name * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param description + * Experiment description to be matched + * @deprecated + * Instead use searchExperimentsByDescWithPagination * * @param gatewayId * @param userName @@ -186,9 +306,40 @@ public interface Iface { */ public List searchExperimentsByDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * Search Experiments by experiment name with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param description + * Experiment description to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param description + * @param limit + * @param offset + */ + public List searchExperimentsByDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** * Search Experiments by application id * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param applicationId + * Application id to be matched + * @deprecated + * Instead use searchExperimentsByApplicationWithPagination * * @param gatewayId * @param userName @@ -196,9 +347,40 @@ public interface Iface { */ public List searchExperimentsByApplication(String gatewayId, String userName, String applicationId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * Search Experiments by application id with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param applicationId + * Application id to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param applicationId + * @param limit + * @param offset + */ + public List searchExperimentsByApplicationWithPagination(String gatewayId, String userName, String applicationId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** * Search Experiments by experiment status * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param experimentState + * Experiement state to be matched + * @deprecated + * Instead use searchExperimentsByStatusWithPagination * * @param gatewayId * @param userName @@ -207,8 +389,41 @@ public interface Iface { public List searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; /** - * Search Experiments by experiment status + * Search Experiments by experiment status with pagination. Results will be sorted + * based on creation time DESC * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param experimentState + * Experiement state to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param experimentState + * @param limit + * @param offset + */ + public List searchExperimentsByStatusWithPagination(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + + /** + * Search Experiments by experiment creation time + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param fromTime + * Start time of the experiments creation time + * @param toTime + * End time of the experiement creation time + * @deprecated + * Instead use searchExperimentsByCreationTimeWithPagination * * @param gatewayId * @param userName @@ -217,23 +432,96 @@ public interface Iface { */ public List searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * Search Experiments by experiment creation time with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param fromTime + * Start time of the experiments creation time + * @param toTime + * End time of the experiement creation time + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param fromTime + * @param toTime + * @param limit + * @param offset + */ + public List searchExperimentsByCreationTimeWithPagination(String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** * Get all Experiments within a Project * + * @param projectId + * Identifier of the project + * @deprecated + * Instead use getAllExperimentsInProjectWithPagination * * @param projectId */ public List getAllExperimentsInProject(String projectId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException; + /** + * Get all Experiments within project with pagination. Results will be sorted + * based on creation time DESC + * + * @param projectId + * Identifier of the project + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param projectId + * @param limit + * @param offset + */ + public List getAllExperimentsInProjectWithPagination(String projectId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException; + /** * Get all Experiments by user * + * @param gatewayId + * Identifier of the requesting gateway + * @param userName + * Username of the requested user + * @deprecated + * Instead use getAllUserExperimentsWithPagination * * @param gatewayId * @param userName */ public List getAllUserExperiments(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * Get all Experiments by user pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requesting gateway + * @param userName + * Username of the requested user + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + * + * @param gatewayId + * @param userName + * @param limit + * @param offset + */ + public List getAllUserExperimentsWithPagination(String gatewayId, String userName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** * Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed * but inferred from the authentication header. This experiment is just a persistent place holder. The client @@ -1534,24 +1822,44 @@ public interface AsyncIface { public void getAllUserProjects(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllUserProjectsWithPagination(String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchProjectsByProjectName(String gatewayId, String userName, String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchProjectsByProjectNameWithPagination(String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchProjectsByProjectDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchProjectsByProjectDescWithPagination(String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByName(String gatewayId, String userName, String expName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByNameWithPagination(String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByDescWithPagination(String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByApplication(String gatewayId, String userName, String applicationId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByApplicationWithPagination(String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByStatusWithPagination(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByCreationTimeWithPagination(String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllExperimentsInProject(String projectId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllExperimentsInProjectWithPagination(String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllUserExperiments(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllUserExperimentsWithPagination(String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createExperiment(String gatewayId, org.apache.airavata.model.workspace.experiment.Experiment experiment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getExperiment(String airavataExperimentId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2244,6 +2552,41 @@ public List recv_getAllUserProjects throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserProjects failed: unknown result"); } + public List getAllUserProjectsWithPagination(String gatewayId, String userName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_getAllUserProjectsWithPagination(gatewayId, userName, limit, offset); + return recv_getAllUserProjectsWithPagination(); + } + + public void send_getAllUserProjectsWithPagination(String gatewayId, String userName, int limit, int offset) throws org.apache.thrift.TException + { + getAllUserProjectsWithPagination_args args = new getAllUserProjectsWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setLimit(limit); + args.setOffset(offset); + sendBase("getAllUserProjectsWithPagination", args); + } + + public List recv_getAllUserProjectsWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); + receiveBase(result, "getAllUserProjectsWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserProjectsWithPagination failed: unknown result"); + } + public List searchProjectsByProjectName(String gatewayId, String userName, String projectName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_searchProjectsByProjectName(gatewayId, userName, projectName); @@ -2278,6 +2621,42 @@ public List recv_searchProjectsByPr throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); } + public List searchProjectsByProjectNameWithPagination(String gatewayId, String userName, String projectName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_searchProjectsByProjectNameWithPagination(gatewayId, userName, projectName, limit, offset); + return recv_searchProjectsByProjectNameWithPagination(); + } + + public void send_searchProjectsByProjectNameWithPagination(String gatewayId, String userName, String projectName, int limit, int offset) throws org.apache.thrift.TException + { + searchProjectsByProjectNameWithPagination_args args = new searchProjectsByProjectNameWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setProjectName(projectName); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchProjectsByProjectNameWithPagination", args); + } + + public List recv_searchProjectsByProjectNameWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_result(); + receiveBase(result, "searchProjectsByProjectNameWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectNameWithPagination failed: unknown result"); + } + public List searchProjectsByProjectDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_searchProjectsByProjectDesc(gatewayId, userName, description); @@ -2312,6 +2691,42 @@ public List recv_searchProjectsByPr throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); } + public List searchProjectsByProjectDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_searchProjectsByProjectDescWithPagination(gatewayId, userName, description, limit, offset); + return recv_searchProjectsByProjectDescWithPagination(); + } + + public void send_searchProjectsByProjectDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws org.apache.thrift.TException + { + searchProjectsByProjectDescWithPagination_args args = new searchProjectsByProjectDescWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setDescription(description); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchProjectsByProjectDescWithPagination", args); + } + + public List recv_searchProjectsByProjectDescWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_result(); + receiveBase(result, "searchProjectsByProjectDescWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectDescWithPagination failed: unknown result"); + } + public List searchExperimentsByName(String gatewayId, String userName, String expName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_searchExperimentsByName(gatewayId, userName, expName); @@ -2346,6 +2761,42 @@ public List re throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByName failed: unknown result"); } + public List searchExperimentsByNameWithPagination(String gatewayId, String userName, String expName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_searchExperimentsByNameWithPagination(gatewayId, userName, expName, limit, offset); + return recv_searchExperimentsByNameWithPagination(); + } + + public void send_searchExperimentsByNameWithPagination(String gatewayId, String userName, String expName, int limit, int offset) throws org.apache.thrift.TException + { + searchExperimentsByNameWithPagination_args args = new searchExperimentsByNameWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setExpName(expName); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperimentsByNameWithPagination", args); + } + + public List recv_searchExperimentsByNameWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + searchExperimentsByNameWithPagination_result result = new searchExperimentsByNameWithPagination_result(); + receiveBase(result, "searchExperimentsByNameWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByNameWithPagination failed: unknown result"); + } + public List searchExperimentsByDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_searchExperimentsByDesc(gatewayId, userName, description); @@ -2380,6 +2831,42 @@ public List re throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); } + public List searchExperimentsByDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_searchExperimentsByDescWithPagination(gatewayId, userName, description, limit, offset); + return recv_searchExperimentsByDescWithPagination(); + } + + public void send_searchExperimentsByDescWithPagination(String gatewayId, String userName, String description, int limit, int offset) throws org.apache.thrift.TException + { + searchExperimentsByDescWithPagination_args args = new searchExperimentsByDescWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setDescription(description); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperimentsByDescWithPagination", args); + } + + public List recv_searchExperimentsByDescWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + searchExperimentsByDescWithPagination_result result = new searchExperimentsByDescWithPagination_result(); + receiveBase(result, "searchExperimentsByDescWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByDescWithPagination failed: unknown result"); + } + public List searchExperimentsByApplication(String gatewayId, String userName, String applicationId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_searchExperimentsByApplication(gatewayId, userName, applicationId); @@ -2414,6 +2901,42 @@ public List re throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); } + public List searchExperimentsByApplicationWithPagination(String gatewayId, String userName, String applicationId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_searchExperimentsByApplicationWithPagination(gatewayId, userName, applicationId, limit, offset); + return recv_searchExperimentsByApplicationWithPagination(); + } + + public void send_searchExperimentsByApplicationWithPagination(String gatewayId, String userName, String applicationId, int limit, int offset) throws org.apache.thrift.TException + { + searchExperimentsByApplicationWithPagination_args args = new searchExperimentsByApplicationWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setApplicationId(applicationId); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperimentsByApplicationWithPagination", args); + } + + public List recv_searchExperimentsByApplicationWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + searchExperimentsByApplicationWithPagination_result result = new searchExperimentsByApplicationWithPagination_result(); + receiveBase(result, "searchExperimentsByApplicationWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByApplicationWithPagination failed: unknown result"); + } + public List searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_searchExperimentsByStatus(gatewayId, userName, experimentState); @@ -2448,6 +2971,42 @@ public List re throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); } + public List searchExperimentsByStatusWithPagination(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_searchExperimentsByStatusWithPagination(gatewayId, userName, experimentState, limit, offset); + return recv_searchExperimentsByStatusWithPagination(); + } + + public void send_searchExperimentsByStatusWithPagination(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, int limit, int offset) throws org.apache.thrift.TException + { + searchExperimentsByStatusWithPagination_args args = new searchExperimentsByStatusWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setExperimentState(experimentState); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperimentsByStatusWithPagination", args); + } + + public List recv_searchExperimentsByStatusWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + searchExperimentsByStatusWithPagination_result result = new searchExperimentsByStatusWithPagination_result(); + receiveBase(result, "searchExperimentsByStatusWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByStatusWithPagination failed: unknown result"); + } + public List searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime); @@ -2483,6 +3042,43 @@ public List re throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); } + public List searchExperimentsByCreationTimeWithPagination(String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_searchExperimentsByCreationTimeWithPagination(gatewayId, userName, fromTime, toTime, limit, offset); + return recv_searchExperimentsByCreationTimeWithPagination(); + } + + public void send_searchExperimentsByCreationTimeWithPagination(String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) throws org.apache.thrift.TException + { + searchExperimentsByCreationTimeWithPagination_args args = new searchExperimentsByCreationTimeWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setFromTime(fromTime); + args.setToTime(toTime); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperimentsByCreationTimeWithPagination", args); + } + + public List recv_searchExperimentsByCreationTimeWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_result(); + receiveBase(result, "searchExperimentsByCreationTimeWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTimeWithPagination failed: unknown result"); + } + public List getAllExperimentsInProject(String projectId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException { send_getAllExperimentsInProject(projectId); @@ -2518,6 +3114,43 @@ public List recv_getA throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); } + public List getAllExperimentsInProjectWithPagination(String projectId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException + { + send_getAllExperimentsInProjectWithPagination(projectId, limit, offset); + return recv_getAllExperimentsInProjectWithPagination(); + } + + public void send_getAllExperimentsInProjectWithPagination(String projectId, int limit, int offset) throws org.apache.thrift.TException + { + getAllExperimentsInProjectWithPagination_args args = new getAllExperimentsInProjectWithPagination_args(); + args.setProjectId(projectId); + args.setLimit(limit); + args.setOffset(offset); + sendBase("getAllExperimentsInProjectWithPagination", args); + } + + public List recv_getAllExperimentsInProjectWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException + { + getAllExperimentsInProjectWithPagination_result result = new getAllExperimentsInProjectWithPagination_result(); + receiveBase(result, "getAllExperimentsInProjectWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + if (result.pnfe != null) { + throw result.pnfe; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllExperimentsInProjectWithPagination failed: unknown result"); + } + public List getAllUserExperiments(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_getAllUserExperiments(gatewayId, userName); @@ -2551,6 +3184,41 @@ public List recv_getA throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserExperiments failed: unknown result"); } + public List getAllUserExperimentsWithPagination(String gatewayId, String userName, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_getAllUserExperimentsWithPagination(gatewayId, userName, limit, offset); + return recv_getAllUserExperimentsWithPagination(); + } + + public void send_getAllUserExperimentsWithPagination(String gatewayId, String userName, int limit, int offset) throws org.apache.thrift.TException + { + getAllUserExperimentsWithPagination_args args = new getAllUserExperimentsWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setLimit(limit); + args.setOffset(offset); + sendBase("getAllUserExperimentsWithPagination", args); + } + + public List recv_getAllUserExperimentsWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + getAllUserExperimentsWithPagination_result result = new getAllUserExperimentsWithPagination_result(); + receiveBase(result, "getAllUserExperimentsWithPagination"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ire != null) { + throw result.ire; + } + if (result.ace != null) { + throw result.ace; + } + if (result.ase != null) { + throw result.ase; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserExperimentsWithPagination failed: unknown result"); + } + public String createExperiment(String gatewayId, org.apache.airavata.model.workspace.experiment.Experiment experiment) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { send_createExperiment(gatewayId, experiment); @@ -6053,6 +6721,47 @@ public List getResult() throws org. } } + public void getAllUserProjectsWithPagination(String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getAllUserProjectsWithPagination_call method_call = new getAllUserProjectsWithPagination_call(gatewayId, userName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getAllUserProjectsWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private int limit; + private int offset; + public getAllUserProjectsWithPagination_call(String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserProjectsWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getAllUserProjectsWithPagination_args args = new getAllUserProjectsWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getAllUserProjectsWithPagination(); + } + } + public void searchProjectsByProjectName(String gatewayId, String userName, String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); searchProjectsByProjectName_call method_call = new searchProjectsByProjectName_call(gatewayId, userName, projectName, resultHandler, this, ___protocolFactory, ___transport); @@ -6091,6 +6800,50 @@ public List getResult() throws org. } } + public void searchProjectsByProjectNameWithPagination(String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + searchProjectsByProjectNameWithPagination_call method_call = new searchProjectsByProjectNameWithPagination_call(gatewayId, userName, projectName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class searchProjectsByProjectNameWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private String projectName; + private int limit; + private int offset; + public searchProjectsByProjectNameWithPagination_call(String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.projectName = projectName; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectNameWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchProjectsByProjectNameWithPagination_args args = new searchProjectsByProjectNameWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setProjectName(projectName); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_searchProjectsByProjectNameWithPagination(); + } + } + public void searchProjectsByProjectDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); searchProjectsByProjectDesc_call method_call = new searchProjectsByProjectDesc_call(gatewayId, userName, description, resultHandler, this, ___protocolFactory, ___transport); @@ -6129,6 +6882,50 @@ public List getResult() throws org. } } + public void searchProjectsByProjectDescWithPagination(String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + searchProjectsByProjectDescWithPagination_call method_call = new searchProjectsByProjectDescWithPagination_call(gatewayId, userName, description, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class searchProjectsByProjectDescWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private String description; + private int limit; + private int offset; + public searchProjectsByProjectDescWithPagination_call(String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.description = description; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectDescWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchProjectsByProjectDescWithPagination_args args = new searchProjectsByProjectDescWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setDescription(description); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_searchProjectsByProjectDescWithPagination(); + } + } + public void searchExperimentsByName(String gatewayId, String userName, String expName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); searchExperimentsByName_call method_call = new searchExperimentsByName_call(gatewayId, userName, expName, resultHandler, this, ___protocolFactory, ___transport); @@ -6167,6 +6964,50 @@ public List ge } } + public void searchExperimentsByNameWithPagination(String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + searchExperimentsByNameWithPagination_call method_call = new searchExperimentsByNameWithPagination_call(gatewayId, userName, expName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class searchExperimentsByNameWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private String expName; + private int limit; + private int offset; + public searchExperimentsByNameWithPagination_call(String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.expName = expName; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByNameWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByNameWithPagination_args args = new searchExperimentsByNameWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setExpName(expName); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_searchExperimentsByNameWithPagination(); + } + } + public void searchExperimentsByDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); searchExperimentsByDesc_call method_call = new searchExperimentsByDesc_call(gatewayId, userName, description, resultHandler, this, ___protocolFactory, ___transport); @@ -6205,6 +7046,50 @@ public List ge } } + public void searchExperimentsByDescWithPagination(String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + searchExperimentsByDescWithPagination_call method_call = new searchExperimentsByDescWithPagination_call(gatewayId, userName, description, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class searchExperimentsByDescWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private String description; + private int limit; + private int offset; + public searchExperimentsByDescWithPagination_call(String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.description = description; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByDescWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByDescWithPagination_args args = new searchExperimentsByDescWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setDescription(description); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_searchExperimentsByDescWithPagination(); + } + } + public void searchExperimentsByApplication(String gatewayId, String userName, String applicationId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); searchExperimentsByApplication_call method_call = new searchExperimentsByApplication_call(gatewayId, userName, applicationId, resultHandler, this, ___protocolFactory, ___transport); @@ -6243,6 +7128,50 @@ public List ge } } + public void searchExperimentsByApplicationWithPagination(String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + searchExperimentsByApplicationWithPagination_call method_call = new searchExperimentsByApplicationWithPagination_call(gatewayId, userName, applicationId, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class searchExperimentsByApplicationWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private String applicationId; + private int limit; + private int offset; + public searchExperimentsByApplicationWithPagination_call(String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.applicationId = applicationId; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByApplicationWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByApplicationWithPagination_args args = new searchExperimentsByApplicationWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setApplicationId(applicationId); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_searchExperimentsByApplicationWithPagination(); + } + } + public void searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); searchExperimentsByStatus_call method_call = new searchExperimentsByStatus_call(gatewayId, userName, experimentState, resultHandler, this, ___protocolFactory, ___transport); @@ -6281,6 +7210,50 @@ public List ge } } + public void searchExperimentsByStatusWithPagination(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + searchExperimentsByStatusWithPagination_call method_call = new searchExperimentsByStatusWithPagination_call(gatewayId, userName, experimentState, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class searchExperimentsByStatusWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private org.apache.airavata.model.workspace.experiment.ExperimentState experimentState; + private int limit; + private int offset; + public searchExperimentsByStatusWithPagination_call(String gatewayId, String userName, org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.experimentState = experimentState; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByStatusWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByStatusWithPagination_args args = new searchExperimentsByStatusWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setExperimentState(experimentState); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_searchExperimentsByStatusWithPagination(); + } + } + public void searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); searchExperimentsByCreationTime_call method_call = new searchExperimentsByCreationTime_call(gatewayId, userName, fromTime, toTime, resultHandler, this, ___protocolFactory, ___transport); @@ -6322,6 +7295,53 @@ public List ge } } + public void searchExperimentsByCreationTimeWithPagination(String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + searchExperimentsByCreationTimeWithPagination_call method_call = new searchExperimentsByCreationTimeWithPagination_call(gatewayId, userName, fromTime, toTime, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class searchExperimentsByCreationTimeWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private long fromTime; + private long toTime; + private int limit; + private int offset; + public searchExperimentsByCreationTimeWithPagination_call(String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.fromTime = fromTime; + this.toTime = toTime; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByCreationTimeWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByCreationTimeWithPagination_args args = new searchExperimentsByCreationTimeWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setFromTime(fromTime); + args.setToTime(toTime); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_searchExperimentsByCreationTimeWithPagination(); + } + } + public void getAllExperimentsInProject(String projectId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getAllExperimentsInProject_call method_call = new getAllExperimentsInProject_call(projectId, resultHandler, this, ___protocolFactory, ___transport); @@ -6354,6 +7374,44 @@ public List getResult } } + public void getAllExperimentsInProjectWithPagination(String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getAllExperimentsInProjectWithPagination_call method_call = new getAllExperimentsInProjectWithPagination_call(projectId, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getAllExperimentsInProjectWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String projectId; + private int limit; + private int offset; + public getAllExperimentsInProjectWithPagination_call(String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.projectId = projectId; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllExperimentsInProjectWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getAllExperimentsInProjectWithPagination_args args = new getAllExperimentsInProjectWithPagination_args(); + args.setProjectId(projectId); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getAllExperimentsInProjectWithPagination(); + } + } + public void getAllUserExperiments(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getAllUserExperiments_call method_call = new getAllUserExperiments_call(gatewayId, userName, resultHandler, this, ___protocolFactory, ___transport); @@ -6389,6 +7447,47 @@ public List getResult } } + public void getAllUserExperimentsWithPagination(String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getAllUserExperimentsWithPagination_call method_call = new getAllUserExperimentsWithPagination_call(gatewayId, userName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getAllUserExperimentsWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + private String gatewayId; + private String userName; + private int limit; + private int offset; + public getAllUserExperimentsWithPagination_call(String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.gatewayId = gatewayId; + this.userName = userName; + this.limit = limit; + this.offset = offset; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserExperimentsWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getAllUserExperimentsWithPagination_args args = new getAllUserExperimentsWithPagination_args(); + args.setGatewayId(gatewayId); + args.setUserName(userName); + args.setLimit(limit); + args.setOffset(offset); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getAllUserExperimentsWithPagination(); + } + } + public void createExperiment(String gatewayId, org.apache.airavata.model.workspace.experiment.Experiment experiment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createExperiment_call method_call = new createExperiment_call(gatewayId, experiment, resultHandler, this, ___protocolFactory, ___transport); @@ -9514,15 +10613,25 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public getAllUserProjectsWithPagination() { + super("getAllUserProjectsWithPagination"); + } + + public getAllUserProjectsWithPagination_args getEmptyArgsInstance() { + return new getAllUserProjectsWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public getAllUserProjectsWithPagination_result getResult(I iface, getAllUserProjectsWithPagination_args args) throws org.apache.thrift.TException { + getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); + try { + result.success = iface.getAllUserProjectsWithPagination(args.gatewayId, args.userName, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class searchProjectsByProjectName extends org.apache.thrift.ProcessFunction { public searchProjectsByProjectName() { super("searchProjectsByProjectName"); @@ -10075,6 +11212,34 @@ public searchProjectsByProjectName_result getResult(I iface, searchProjectsByPro } } + public static class searchProjectsByProjectNameWithPagination extends org.apache.thrift.ProcessFunction { + public searchProjectsByProjectNameWithPagination() { + super("searchProjectsByProjectNameWithPagination"); + } + + public searchProjectsByProjectNameWithPagination_args getEmptyArgsInstance() { + return new searchProjectsByProjectNameWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public searchProjectsByProjectNameWithPagination_result getResult(I iface, searchProjectsByProjectNameWithPagination_args args) throws org.apache.thrift.TException { + searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_result(); + try { + result.success = iface.searchProjectsByProjectNameWithPagination(args.gatewayId, args.userName, args.projectName, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class searchProjectsByProjectDesc extends org.apache.thrift.ProcessFunction { public searchProjectsByProjectDesc() { super("searchProjectsByProjectDesc"); @@ -10103,6 +11268,34 @@ public searchProjectsByProjectDesc_result getResult(I iface, searchProjectsByPro } } + public static class searchProjectsByProjectDescWithPagination extends org.apache.thrift.ProcessFunction { + public searchProjectsByProjectDescWithPagination() { + super("searchProjectsByProjectDescWithPagination"); + } + + public searchProjectsByProjectDescWithPagination_args getEmptyArgsInstance() { + return new searchProjectsByProjectDescWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public searchProjectsByProjectDescWithPagination_result getResult(I iface, searchProjectsByProjectDescWithPagination_args args) throws org.apache.thrift.TException { + searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_result(); + try { + result.success = iface.searchProjectsByProjectDescWithPagination(args.gatewayId, args.userName, args.description, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class searchExperimentsByName extends org.apache.thrift.ProcessFunction { public searchExperimentsByName() { super("searchExperimentsByName"); @@ -10131,6 +11324,34 @@ public searchExperimentsByName_result getResult(I iface, searchExperimentsByName } } + public static class searchExperimentsByNameWithPagination extends org.apache.thrift.ProcessFunction { + public searchExperimentsByNameWithPagination() { + super("searchExperimentsByNameWithPagination"); + } + + public searchExperimentsByNameWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByNameWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public searchExperimentsByNameWithPagination_result getResult(I iface, searchExperimentsByNameWithPagination_args args) throws org.apache.thrift.TException { + searchExperimentsByNameWithPagination_result result = new searchExperimentsByNameWithPagination_result(); + try { + result.success = iface.searchExperimentsByNameWithPagination(args.gatewayId, args.userName, args.expName, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class searchExperimentsByDesc extends org.apache.thrift.ProcessFunction { public searchExperimentsByDesc() { super("searchExperimentsByDesc"); @@ -10159,6 +11380,34 @@ public searchExperimentsByDesc_result getResult(I iface, searchExperimentsByDesc } } + public static class searchExperimentsByDescWithPagination extends org.apache.thrift.ProcessFunction { + public searchExperimentsByDescWithPagination() { + super("searchExperimentsByDescWithPagination"); + } + + public searchExperimentsByDescWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByDescWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public searchExperimentsByDescWithPagination_result getResult(I iface, searchExperimentsByDescWithPagination_args args) throws org.apache.thrift.TException { + searchExperimentsByDescWithPagination_result result = new searchExperimentsByDescWithPagination_result(); + try { + result.success = iface.searchExperimentsByDescWithPagination(args.gatewayId, args.userName, args.description, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class searchExperimentsByApplication extends org.apache.thrift.ProcessFunction { public searchExperimentsByApplication() { super("searchExperimentsByApplication"); @@ -10187,6 +11436,34 @@ public searchExperimentsByApplication_result getResult(I iface, searchExperiment } } + public static class searchExperimentsByApplicationWithPagination extends org.apache.thrift.ProcessFunction { + public searchExperimentsByApplicationWithPagination() { + super("searchExperimentsByApplicationWithPagination"); + } + + public searchExperimentsByApplicationWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByApplicationWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public searchExperimentsByApplicationWithPagination_result getResult(I iface, searchExperimentsByApplicationWithPagination_args args) throws org.apache.thrift.TException { + searchExperimentsByApplicationWithPagination_result result = new searchExperimentsByApplicationWithPagination_result(); + try { + result.success = iface.searchExperimentsByApplicationWithPagination(args.gatewayId, args.userName, args.applicationId, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class searchExperimentsByStatus extends org.apache.thrift.ProcessFunction { public searchExperimentsByStatus() { super("searchExperimentsByStatus"); @@ -10215,6 +11492,34 @@ public searchExperimentsByStatus_result getResult(I iface, searchExperimentsBySt } } + public static class searchExperimentsByStatusWithPagination extends org.apache.thrift.ProcessFunction { + public searchExperimentsByStatusWithPagination() { + super("searchExperimentsByStatusWithPagination"); + } + + public searchExperimentsByStatusWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByStatusWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public searchExperimentsByStatusWithPagination_result getResult(I iface, searchExperimentsByStatusWithPagination_args args) throws org.apache.thrift.TException { + searchExperimentsByStatusWithPagination_result result = new searchExperimentsByStatusWithPagination_result(); + try { + result.success = iface.searchExperimentsByStatusWithPagination(args.gatewayId, args.userName, args.experimentState, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class searchExperimentsByCreationTime extends org.apache.thrift.ProcessFunction { public searchExperimentsByCreationTime() { super("searchExperimentsByCreationTime"); @@ -10243,6 +11548,34 @@ public searchExperimentsByCreationTime_result getResult(I iface, searchExperimen } } + public static class searchExperimentsByCreationTimeWithPagination extends org.apache.thrift.ProcessFunction { + public searchExperimentsByCreationTimeWithPagination() { + super("searchExperimentsByCreationTimeWithPagination"); + } + + public searchExperimentsByCreationTimeWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByCreationTimeWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public searchExperimentsByCreationTimeWithPagination_result getResult(I iface, searchExperimentsByCreationTimeWithPagination_args args) throws org.apache.thrift.TException { + searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_result(); + try { + result.success = iface.searchExperimentsByCreationTimeWithPagination(args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class getAllExperimentsInProject extends org.apache.thrift.ProcessFunction { public getAllExperimentsInProject() { super("getAllExperimentsInProject"); @@ -10273,6 +11606,36 @@ public getAllExperimentsInProject_result getResult(I iface, getAllExperimentsInP } } + public static class getAllExperimentsInProjectWithPagination extends org.apache.thrift.ProcessFunction { + public getAllExperimentsInProjectWithPagination() { + super("getAllExperimentsInProjectWithPagination"); + } + + public getAllExperimentsInProjectWithPagination_args getEmptyArgsInstance() { + return new getAllExperimentsInProjectWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public getAllExperimentsInProjectWithPagination_result getResult(I iface, getAllExperimentsInProjectWithPagination_args args) throws org.apache.thrift.TException { + getAllExperimentsInProjectWithPagination_result result = new getAllExperimentsInProjectWithPagination_result(); + try { + result.success = iface.getAllExperimentsInProjectWithPagination(args.projectId, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } catch (org.apache.airavata.model.error.ProjectNotFoundException pnfe) { + result.pnfe = pnfe; + } + return result; + } + } + public static class getAllUserExperiments extends org.apache.thrift.ProcessFunction { public getAllUserExperiments() { super("getAllUserExperiments"); @@ -10301,6 +11664,34 @@ public getAllUserExperiments_result getResult(I iface, getAllUserExperiments_arg } } + public static class getAllUserExperimentsWithPagination extends org.apache.thrift.ProcessFunction { + public getAllUserExperimentsWithPagination() { + super("getAllUserExperimentsWithPagination"); + } + + public getAllUserExperimentsWithPagination_args getEmptyArgsInstance() { + return new getAllUserExperimentsWithPagination_args(); + } + + protected boolean isOneway() { + return false; + } + + public getAllUserExperimentsWithPagination_result getResult(I iface, getAllUserExperimentsWithPagination_args args) throws org.apache.thrift.TException { + getAllUserExperimentsWithPagination_result result = new getAllUserExperimentsWithPagination_result(); + try { + result.success = iface.getAllUserExperimentsWithPagination(args.gatewayId, args.userName, args.limit, args.offset); + } catch (org.apache.airavata.model.error.InvalidRequestException ire) { + result.ire = ire; + } catch (org.apache.airavata.model.error.AiravataClientException ace) { + result.ace = ace; + } catch (org.apache.airavata.model.error.AiravataSystemException ase) { + result.ase = ase; + } + return result; + } + } + public static class createExperiment extends org.apache.thrift.ProcessFunction { public createExperiment() { super("createExperiment"); @@ -12947,15 +14338,25 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction> { + public getAllUserProjectsWithPagination() { + super("getAllUserProjectsWithPagination"); + } + + public getAllUserProjectsWithPagination_args getEmptyArgsInstance() { + return new getAllUserProjectsWithPagination_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getAllUserProjectsWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllUserProjectsWithPagination(args.gatewayId, args.userName, args.limit, args.offset,resultHandler); + } + } + public static class searchProjectsByProjectName extends org.apache.thrift.AsyncProcessFunction> { public searchProjectsByProjectName() { super("searchProjectsByProjectName"); @@ -14139,6 +15607,73 @@ public void start(I iface, searchProjectsByProjectName_args args, org.apache.thr } } + public static class searchProjectsByProjectNameWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public searchProjectsByProjectNameWithPagination() { + super("searchProjectsByProjectNameWithPagination"); + } + + public searchProjectsByProjectNameWithPagination_args getEmptyArgsInstance() { + return new searchProjectsByProjectNameWithPagination_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, searchProjectsByProjectNameWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchProjectsByProjectNameWithPagination(args.gatewayId, args.userName, args.projectName, args.limit, args.offset,resultHandler); + } + } + public static class searchProjectsByProjectDesc extends org.apache.thrift.AsyncProcessFunction> { public searchProjectsByProjectDesc() { super("searchProjectsByProjectDesc"); @@ -14206,6 +15741,73 @@ public void start(I iface, searchProjectsByProjectDesc_args args, org.apache.thr } } + public static class searchProjectsByProjectDescWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public searchProjectsByProjectDescWithPagination() { + super("searchProjectsByProjectDescWithPagination"); + } + + public searchProjectsByProjectDescWithPagination_args getEmptyArgsInstance() { + return new searchProjectsByProjectDescWithPagination_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, searchProjectsByProjectDescWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchProjectsByProjectDescWithPagination(args.gatewayId, args.userName, args.description, args.limit, args.offset,resultHandler); + } + } + public static class searchExperimentsByName extends org.apache.thrift.AsyncProcessFunction> { public searchExperimentsByName() { super("searchExperimentsByName"); @@ -14273,20 +15875,20 @@ public void start(I iface, searchExperimentsByName_args args, org.apache.thrift. } } - public static class searchExperimentsByDesc extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByDesc() { - super("searchExperimentsByDesc"); + public static class searchExperimentsByNameWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByNameWithPagination() { + super("searchExperimentsByNameWithPagination"); } - public searchExperimentsByDesc_args getEmptyArgsInstance() { - return new searchExperimentsByDesc_args(); + public searchExperimentsByNameWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByNameWithPagination_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByDesc_result result = new searchExperimentsByDesc_result(); + searchExperimentsByNameWithPagination_result result = new searchExperimentsByNameWithPagination_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14299,7 +15901,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByDesc(args.gatewayId, args.userName, args.description,resultHandler); + public void start(I iface, searchExperimentsByNameWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByNameWithPagination(args.gatewayId, args.userName, args.expName, args.limit, args.offset,resultHandler); } } - public static class searchExperimentsByApplication extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByApplication() { - super("searchExperimentsByApplication"); + public static class searchExperimentsByDesc extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByDesc() { + super("searchExperimentsByDesc"); } - public searchExperimentsByApplication_args getEmptyArgsInstance() { - return new searchExperimentsByApplication_args(); + public searchExperimentsByDesc_args getEmptyArgsInstance() { + return new searchExperimentsByDesc_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByApplication_result result = new searchExperimentsByApplication_result(); + searchExperimentsByDesc_result result = new searchExperimentsByDesc_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14366,7 +15968,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByApplication(args.gatewayId, args.userName, args.applicationId,resultHandler); + public void start(I iface, searchExperimentsByDesc_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByDesc(args.gatewayId, args.userName, args.description,resultHandler); } } - public static class searchExperimentsByStatus extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByStatus() { - super("searchExperimentsByStatus"); + public static class searchExperimentsByDescWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByDescWithPagination() { + super("searchExperimentsByDescWithPagination"); } - public searchExperimentsByStatus_args getEmptyArgsInstance() { - return new searchExperimentsByStatus_args(); + public searchExperimentsByDescWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByDescWithPagination_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByStatus_result result = new searchExperimentsByStatus_result(); + searchExperimentsByDescWithPagination_result result = new searchExperimentsByDescWithPagination_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14433,7 +16035,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByStatus(args.gatewayId, args.userName, args.experimentState,resultHandler); + public void start(I iface, searchExperimentsByDescWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByDescWithPagination(args.gatewayId, args.userName, args.description, args.limit, args.offset,resultHandler); } } - public static class searchExperimentsByCreationTime extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByCreationTime() { - super("searchExperimentsByCreationTime"); + public static class searchExperimentsByApplication extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByApplication() { + super("searchExperimentsByApplication"); } - public searchExperimentsByCreationTime_args getEmptyArgsInstance() { - return new searchExperimentsByCreationTime_args(); + public searchExperimentsByApplication_args getEmptyArgsInstance() { + return new searchExperimentsByApplication_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); + searchExperimentsByApplication_result result = new searchExperimentsByApplication_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14500,7 +16102,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByCreationTime(args.gatewayId, args.userName, args.fromTime, args.toTime,resultHandler); + public void start(I iface, searchExperimentsByApplication_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByApplication(args.gatewayId, args.userName, args.applicationId,resultHandler); } } - public static class getAllExperimentsInProject extends org.apache.thrift.AsyncProcessFunction> { - public getAllExperimentsInProject() { - super("getAllExperimentsInProject"); + public static class searchExperimentsByApplicationWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByApplicationWithPagination() { + super("searchExperimentsByApplicationWithPagination"); } - public getAllExperimentsInProject_args getEmptyArgsInstance() { - return new getAllExperimentsInProject_args(); + public searchExperimentsByApplicationWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByApplicationWithPagination_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllExperimentsInProject_result result = new getAllExperimentsInProject_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + searchExperimentsByApplicationWithPagination_result result = new searchExperimentsByApplicationWithPagination_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14567,7 +16169,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllExperimentsInProject(args.projectId,resultHandler); + public void start(I iface, searchExperimentsByApplicationWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByApplicationWithPagination(args.gatewayId, args.userName, args.applicationId, args.limit, args.offset,resultHandler); } } - public static class getAllUserExperiments extends org.apache.thrift.AsyncProcessFunction> { - public getAllUserExperiments() { - super("getAllUserExperiments"); + public static class searchExperimentsByStatus extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByStatus() { + super("searchExperimentsByStatus"); } - public getAllUserExperiments_args getEmptyArgsInstance() { - return new getAllUserExperiments_args(); + public searchExperimentsByStatus_args getEmptyArgsInstance() { + return new searchExperimentsByStatus_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllUserExperiments_result result = new getAllUserExperiments_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + searchExperimentsByStatus_result result = new searchExperimentsByStatus_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14639,7 +16236,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllUserExperiments(args.gatewayId, args.userName,resultHandler); + public void start(I iface, searchExperimentsByStatus_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByStatus(args.gatewayId, args.userName, args.experimentState,resultHandler); } } - public static class createExperiment extends org.apache.thrift.AsyncProcessFunction { - public createExperiment() { - super("createExperiment"); + public static class searchExperimentsByStatusWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByStatusWithPagination() { + super("searchExperimentsByStatusWithPagination"); } - public createExperiment_args getEmptyArgsInstance() { - return new createExperiment_args(); + public searchExperimentsByStatusWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByStatusWithPagination_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - createExperiment_result result = new createExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + searchExperimentsByStatusWithPagination_result result = new searchExperimentsByStatusWithPagination_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14706,7 +16303,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - createExperiment_result result = new createExperiment_result(); + searchExperimentsByStatusWithPagination_result result = new searchExperimentsByStatusWithPagination_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -14742,25 +16339,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, createExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.createExperiment(args.gatewayId, args.experiment,resultHandler); + public void start(I iface, searchExperimentsByStatusWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByStatusWithPagination(args.gatewayId, args.userName, args.experimentState, args.limit, args.offset,resultHandler); } } - public static class getExperiment extends org.apache.thrift.AsyncProcessFunction { - public getExperiment() { - super("getExperiment"); + public static class searchExperimentsByCreationTime extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByCreationTime() { + super("searchExperimentsByCreationTime"); } - public getExperiment_args getEmptyArgsInstance() { - return new getExperiment_args(); + public searchExperimentsByCreationTime_args getEmptyArgsInstance() { + return new searchExperimentsByCreationTime_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.workspace.experiment.Experiment o) { - getExperiment_result result = new getExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14773,17 +16370,12 @@ public void onComplete(org.apache.airavata.model.workspace.experiment.Experiment public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getExperiment_result result = new getExperiment_result(); + searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } - else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(true); - msg = result; - } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -14814,25 +16406,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getExperiment(args.airavataExperimentId,resultHandler); + public void start(I iface, searchExperimentsByCreationTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByCreationTime(args.gatewayId, args.userName, args.fromTime, args.toTime,resultHandler); } } - public static class updateExperiment extends org.apache.thrift.AsyncProcessFunction { - public updateExperiment() { - super("updateExperiment"); + public static class searchExperimentsByCreationTimeWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByCreationTimeWithPagination() { + super("searchExperimentsByCreationTimeWithPagination"); } - public updateExperiment_args getEmptyArgsInstance() { - return new updateExperiment_args(); + public searchExperimentsByCreationTimeWithPagination_args getEmptyArgsInstance() { + return new searchExperimentsByCreationTimeWithPagination_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateExperiment_result result = new updateExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -14844,17 +16437,12 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateExperiment_result result = new updateExperiment_result(); + searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } - else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(true); - msg = result; - } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -14885,25 +16473,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateExperiment(args.airavataExperimentId, args.experiment,resultHandler); + public void start(I iface, searchExperimentsByCreationTimeWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByCreationTimeWithPagination(args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset,resultHandler); } } - public static class updateExperimentConfiguration extends org.apache.thrift.AsyncProcessFunction { - public updateExperimentConfiguration() { - super("updateExperimentConfiguration"); + public static class getAllExperimentsInProject extends org.apache.thrift.AsyncProcessFunction> { + public getAllExperimentsInProject() { + super("getAllExperimentsInProject"); } - public updateExperimentConfiguration_args getEmptyArgsInstance() { - return new updateExperimentConfiguration_args(); + public getAllExperimentsInProject_args getEmptyArgsInstance() { + return new getAllExperimentsInProject_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateExperimentConfiguration_result result = new updateExperimentConfiguration_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllExperimentsInProject_result result = new getAllExperimentsInProject_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -14915,7 +16504,28 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateExperimentConfiguration_result result = new updateExperimentConfiguration_result(); + getAllExperimentsInProject_result result = new getAllExperimentsInProject_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.ProjectNotFoundException) { + result.pnfe = (org.apache.airavata.model.error.ProjectNotFoundException) e; + result.setPnfeIsSet(true); + msg = result; + } + else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -14935,25 +16545,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateExperimentConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateExperimentConfiguration(args.airavataExperimentId, args.userConfiguration,resultHandler); + public void start(I iface, getAllExperimentsInProject_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllExperimentsInProject(args.projectId,resultHandler); } } - public static class updateResourceScheduleing extends org.apache.thrift.AsyncProcessFunction { - public updateResourceScheduleing() { - super("updateResourceScheduleing"); + public static class getAllExperimentsInProjectWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public getAllExperimentsInProjectWithPagination() { + super("getAllExperimentsInProjectWithPagination"); } - public updateResourceScheduleing_args getEmptyArgsInstance() { - return new updateResourceScheduleing_args(); + public getAllExperimentsInProjectWithPagination_args getEmptyArgsInstance() { + return new getAllExperimentsInProjectWithPagination_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateResourceScheduleing_result result = new updateResourceScheduleing_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllExperimentsInProjectWithPagination_result result = new getAllExperimentsInProjectWithPagination_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -14965,7 +16576,28 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateResourceScheduleing_result result = new updateResourceScheduleing_result(); + getAllExperimentsInProjectWithPagination_result result = new getAllExperimentsInProjectWithPagination_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.ProjectNotFoundException) { + result.pnfe = (org.apache.airavata.model.error.ProjectNotFoundException) e; + result.setPnfeIsSet(true); + msg = result; + } + else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -14985,27 +16617,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateResourceScheduleing_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateResourceScheduleing(args.airavataExperimentId, args.resourceScheduling,resultHandler); + public void start(I iface, getAllExperimentsInProjectWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllExperimentsInProjectWithPagination(args.projectId, args.limit, args.offset,resultHandler); } } - public static class validateExperiment extends org.apache.thrift.AsyncProcessFunction { - public validateExperiment() { - super("validateExperiment"); + public static class getAllUserExperiments extends org.apache.thrift.AsyncProcessFunction> { + public getAllUserExperiments() { + super("getAllUserExperiments"); } - public validateExperiment_args getEmptyArgsInstance() { - return new validateExperiment_args(); + public getAllUserExperiments_args getEmptyArgsInstance() { + return new getAllUserExperiments_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - validateExperiment_result result = new validateExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllUserExperiments_result result = new getAllUserExperiments_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15017,17 +16648,12 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - validateExperiment_result result = new validateExperiment_result(); + getAllUserExperiments_result result = new getAllUserExperiments_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } - else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(true); - msg = result; - } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -15058,25 +16684,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, validateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.validateExperiment(args.airavataExperimentId,resultHandler); + public void start(I iface, getAllUserExperiments_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllUserExperiments(args.gatewayId, args.userName,resultHandler); } } - public static class launchExperiment extends org.apache.thrift.AsyncProcessFunction { - public launchExperiment() { - super("launchExperiment"); + public static class getAllUserExperimentsWithPagination extends org.apache.thrift.AsyncProcessFunction> { + public getAllUserExperimentsWithPagination() { + super("getAllUserExperimentsWithPagination"); } - public launchExperiment_args getEmptyArgsInstance() { - return new launchExperiment_args(); + public getAllUserExperimentsWithPagination_args getEmptyArgsInstance() { + return new getAllUserExperimentsWithPagination_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - launchExperiment_result result = new launchExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllUserExperimentsWithPagination_result result = new getAllUserExperimentsWithPagination_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15088,17 +16715,12 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - launchExperiment_result result = new launchExperiment_result(); + getAllUserExperimentsWithPagination_result result = new getAllUserExperimentsWithPagination_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } - else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(true); - msg = result; - } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -15108,11 +16730,6 @@ else if (e instanceof org.apache.airavata.model.error.AiravataSystem result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; result.setAseIsSet(true); msg = result; - } - else if (e instanceof org.apache.airavata.model.error.LaunchValidationException) { - result.lve = (org.apache.airavata.model.error.LaunchValidationException) e; - result.setLveIsSet(true); - msg = result; } else { @@ -15134,25 +16751,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, launchExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.launchExperiment(args.airavataExperimentId, args.airavataCredStoreToken,resultHandler); + public void start(I iface, getAllUserExperimentsWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllUserExperimentsWithPagination(args.gatewayId, args.userName, args.limit, args.offset,resultHandler); } } - public static class getExperimentStatus extends org.apache.thrift.AsyncProcessFunction { - public getExperimentStatus() { - super("getExperimentStatus"); + public static class createExperiment extends org.apache.thrift.AsyncProcessFunction { + public createExperiment() { + super("createExperiment"); } - public getExperimentStatus_args getEmptyArgsInstance() { - return new getExperimentStatus_args(); + public createExperiment_args getEmptyArgsInstance() { + return new createExperiment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.workspace.experiment.ExperimentStatus o) { - getExperimentStatus_result result = new getExperimentStatus_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + createExperiment_result result = new createExperiment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15165,17 +16782,12 @@ public void onComplete(org.apache.airavata.model.workspace.experiment.Experiment public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getExperimentStatus_result result = new getExperimentStatus_result(); + createExperiment_result result = new createExperiment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } - else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(true); - msg = result; - } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -15206,25 +16818,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getExperimentStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getExperimentStatus(args.airavataExperimentId,resultHandler); + public void start(I iface, createExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.createExperiment(args.gatewayId, args.experiment,resultHandler); } } - public static class getExperimentOutputs extends org.apache.thrift.AsyncProcessFunction> { - public getExperimentOutputs() { - super("getExperimentOutputs"); + public static class getExperiment extends org.apache.thrift.AsyncProcessFunction { + public getExperiment() { + super("getExperiment"); } - public getExperimentOutputs_args getEmptyArgsInstance() { - return new getExperimentOutputs_args(); + public getExperiment_args getEmptyArgsInstance() { + return new getExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getExperimentOutputs_result result = new getExperimentOutputs_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.workspace.experiment.Experiment o) { + getExperiment_result result = new getExperiment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15237,7 +16849,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getExperimentOutputs(args.airavataExperimentId,resultHandler); + public void start(I iface, getExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getExperiment(args.airavataExperimentId,resultHandler); } } - public static class getIntermediateOutputs extends org.apache.thrift.AsyncProcessFunction> { - public getIntermediateOutputs() { - super("getIntermediateOutputs"); + public static class updateExperiment extends org.apache.thrift.AsyncProcessFunction { + public updateExperiment() { + super("updateExperiment"); } - public getIntermediateOutputs_args getEmptyArgsInstance() { - return new getIntermediateOutputs_args(); + public updateExperiment_args getEmptyArgsInstance() { + return new updateExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getIntermediateOutputs_result result = new getIntermediateOutputs_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateExperiment_result result = new updateExperiment_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15309,7 +16920,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getIntermediateOutputs(args.airavataExperimentId,resultHandler); + public void start(I iface, updateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateExperiment(args.airavataExperimentId, args.experiment,resultHandler); } } - public static class getJobStatuses extends org.apache.thrift.AsyncProcessFunction> { - public getJobStatuses() { - super("getJobStatuses"); + public static class updateExperimentConfiguration extends org.apache.thrift.AsyncProcessFunction { + public updateExperimentConfiguration() { + super("updateExperimentConfiguration"); } - public getJobStatuses_args getEmptyArgsInstance() { - return new getJobStatuses_args(); + public updateExperimentConfiguration_args getEmptyArgsInstance() { + return new updateExperimentConfiguration_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getJobStatuses_result result = new getJobStatuses_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateExperimentConfiguration_result result = new updateExperimentConfiguration_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15381,28 +16991,57 @@ public void onComplete(Map resultHandler) throws TException { + iface.updateExperimentConfiguration(args.airavataExperimentId, args.userConfiguration,resultHandler); + } + } + + public static class updateResourceScheduleing extends org.apache.thrift.AsyncProcessFunction { + public updateResourceScheduleing() { + super("updateResourceScheduleing"); + } + + public updateResourceScheduleing_args getEmptyArgsInstance() { + return new updateResourceScheduleing_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateResourceScheduleing_result result = new updateResourceScheduleing_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); } - else + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + updateResourceScheduleing_result result = new updateResourceScheduleing_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -15422,26 +17061,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getJobStatuses_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getJobStatuses(args.airavataExperimentId,resultHandler); + public void start(I iface, updateResourceScheduleing_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateResourceScheduleing(args.airavataExperimentId, args.resourceScheduling,resultHandler); } } - public static class getJobDetails extends org.apache.thrift.AsyncProcessFunction> { - public getJobDetails() { - super("getJobDetails"); + public static class validateExperiment extends org.apache.thrift.AsyncProcessFunction { + public validateExperiment() { + super("validateExperiment"); } - public getJobDetails_args getEmptyArgsInstance() { - return new getJobDetails_args(); + public validateExperiment_args getEmptyArgsInstance() { + return new validateExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getJobDetails_result result = new getJobDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + validateExperiment_result result = new validateExperiment_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15453,7 +17093,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getJobDetails(args.airavataExperimentId,resultHandler); + public void start(I iface, validateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.validateExperiment(args.airavataExperimentId,resultHandler); } } - public static class getDataTransferDetails extends org.apache.thrift.AsyncProcessFunction> { - public getDataTransferDetails() { - super("getDataTransferDetails"); + public static class launchExperiment extends org.apache.thrift.AsyncProcessFunction { + public launchExperiment() { + super("launchExperiment"); } - public getDataTransferDetails_args getEmptyArgsInstance() { - return new getDataTransferDetails_args(); + public launchExperiment_args getEmptyArgsInstance() { + return new launchExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getDataTransferDetails_result result = new getDataTransferDetails_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + launchExperiment_result result = new launchExperiment_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15525,7 +17164,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getDataTransferDetails(args.airavataExperimentId,resultHandler); + public void start(I iface, launchExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.launchExperiment(args.airavataExperimentId, args.airavataCredStoreToken,resultHandler); } } - public static class cloneExperiment extends org.apache.thrift.AsyncProcessFunction { - public cloneExperiment() { - super("cloneExperiment"); + public static class getExperimentStatus extends org.apache.thrift.AsyncProcessFunction { + public getExperimentStatus() { + super("getExperimentStatus"); } - public cloneExperiment_args getEmptyArgsInstance() { - return new cloneExperiment_args(); + public getExperimentStatus_args getEmptyArgsInstance() { + return new getExperimentStatus_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - cloneExperiment_result result = new cloneExperiment_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.workspace.experiment.ExperimentStatus o) { + getExperimentStatus_result result = new getExperimentStatus_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15597,7 +17241,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - cloneExperiment_result result = new cloneExperiment_result(); + getExperimentStatus_result result = new getExperimentStatus_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -15638,25 +17282,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, cloneExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.cloneExperiment(args.existingExperimentID, args.newExperimentName,resultHandler); + public void start(I iface, getExperimentStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getExperimentStatus(args.airavataExperimentId,resultHandler); } } - public static class terminateExperiment extends org.apache.thrift.AsyncProcessFunction { - public terminateExperiment() { - super("terminateExperiment"); + public static class getExperimentOutputs extends org.apache.thrift.AsyncProcessFunction> { + public getExperimentOutputs() { + super("getExperimentOutputs"); } - public terminateExperiment_args getEmptyArgsInstance() { - return new terminateExperiment_args(); + public getExperimentOutputs_args getEmptyArgsInstance() { + return new getExperimentOutputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - terminateExperiment_result result = new terminateExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getExperimentOutputs_result result = new getExperimentOutputs_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15668,7 +17313,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - terminateExperiment_result result = new terminateExperiment_result(); + getExperimentOutputs_result result = new getExperimentOutputs_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -15709,25 +17354,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, terminateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.terminateExperiment(args.airavataExperimentId, args.tokenId,resultHandler); + public void start(I iface, getExperimentOutputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getExperimentOutputs(args.airavataExperimentId,resultHandler); } } - public static class registerApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public registerApplicationModule() { - super("registerApplicationModule"); + public static class getIntermediateOutputs extends org.apache.thrift.AsyncProcessFunction> { + public getIntermediateOutputs() { + super("getIntermediateOutputs"); } - public registerApplicationModule_args getEmptyArgsInstance() { - return new registerApplicationModule_args(); + public getIntermediateOutputs_args getEmptyArgsInstance() { + return new getIntermediateOutputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerApplicationModule_result result = new registerApplicationModule_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getIntermediateOutputs_result result = new getIntermediateOutputs_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15740,12 +17385,17 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerApplicationModule_result result = new registerApplicationModule_result(); + getIntermediateOutputs_result result = new getIntermediateOutputs_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } + else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { + result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; + result.setEnfIsSet(true); + msg = result; + } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -15776,25 +17426,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerApplicationModule(args.gatewayId, args.applicationModule,resultHandler); + public void start(I iface, getIntermediateOutputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getIntermediateOutputs(args.airavataExperimentId,resultHandler); } } - public static class getApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public getApplicationModule() { - super("getApplicationModule"); + public static class getJobStatuses extends org.apache.thrift.AsyncProcessFunction> { + public getJobStatuses() { + super("getJobStatuses"); } - public getApplicationModule_args getEmptyArgsInstance() { - return new getApplicationModule_args(); + public getJobStatuses_args getEmptyArgsInstance() { + return new getJobStatuses_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule o) { - getApplicationModule_result result = new getApplicationModule_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getJobStatuses_result result = new getJobStatuses_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15807,12 +17457,17 @@ public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.Applic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationModule_result result = new getApplicationModule_result(); + getJobStatuses_result result = new getJobStatuses_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } + else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { + result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; + result.setEnfIsSet(true); + msg = result; + } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -15843,27 +17498,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationModule(args.appModuleId,resultHandler); + public void start(I iface, getJobStatuses_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getJobStatuses(args.airavataExperimentId,resultHandler); } } - public static class updateApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public updateApplicationModule() { - super("updateApplicationModule"); + public static class getJobDetails extends org.apache.thrift.AsyncProcessFunction> { + public getJobDetails() { + super("getJobDetails"); } - public updateApplicationModule_args getEmptyArgsInstance() { - return new updateApplicationModule_args(); + public getJobDetails_args getEmptyArgsInstance() { + return new getJobDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateApplicationModule_result result = new updateApplicationModule_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getJobDetails_result result = new getJobDetails_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15875,12 +17529,17 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateApplicationModule_result result = new updateApplicationModule_result(); + getJobDetails_result result = new getJobDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } + else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { + result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; + result.setEnfIsSet(true); + msg = result; + } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -15911,25 +17570,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateApplicationModule(args.appModuleId, args.applicationModule,resultHandler); + public void start(I iface, getJobDetails_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getJobDetails(args.airavataExperimentId,resultHandler); } } - public static class getAllAppModules extends org.apache.thrift.AsyncProcessFunction> { - public getAllAppModules() { - super("getAllAppModules"); + public static class getDataTransferDetails extends org.apache.thrift.AsyncProcessFunction> { + public getDataTransferDetails() { + super("getDataTransferDetails"); } - public getAllAppModules_args getEmptyArgsInstance() { - return new getAllAppModules_args(); + public getDataTransferDetails_args getEmptyArgsInstance() { + return new getDataTransferDetails_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllAppModules_result result = new getAllAppModules_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getDataTransferDetails_result result = new getDataTransferDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15942,12 +17601,17 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllAppModules(args.gatewayId,resultHandler); + public void start(I iface, getDataTransferDetails_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getDataTransferDetails(args.airavataExperimentId,resultHandler); } } - public static class deleteApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public deleteApplicationModule() { - super("deleteApplicationModule"); + public static class cloneExperiment extends org.apache.thrift.AsyncProcessFunction { + public cloneExperiment() { + super("cloneExperiment"); } - public deleteApplicationModule_args getEmptyArgsInstance() { - return new deleteApplicationModule_args(); + public cloneExperiment_args getEmptyArgsInstance() { + return new cloneExperiment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - deleteApplicationModule_result result = new deleteApplicationModule_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + cloneExperiment_result result = new cloneExperiment_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -16010,12 +17673,17 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteApplicationModule_result result = new deleteApplicationModule_result(); + cloneExperiment_result result = new cloneExperiment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } + else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { + result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; + result.setEnfIsSet(true); + msg = result; + } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -16046,26 +17714,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteApplicationModule(args.appModuleId,resultHandler); + public void start(I iface, cloneExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.cloneExperiment(args.existingExperimentID, args.newExperimentName,resultHandler); } } - public static class registerApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public registerApplicationDeployment() { - super("registerApplicationDeployment"); + public static class terminateExperiment extends org.apache.thrift.AsyncProcessFunction { + public terminateExperiment() { + super("terminateExperiment"); } - public registerApplicationDeployment_args getEmptyArgsInstance() { - return new registerApplicationDeployment_args(); + public terminateExperiment_args getEmptyArgsInstance() { + return new terminateExperiment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerApplicationDeployment_result result = new registerApplicationDeployment_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + terminateExperiment_result result = new terminateExperiment_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -16077,12 +17744,17 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerApplicationDeployment_result result = new registerApplicationDeployment_result(); + terminateExperiment_result result = new terminateExperiment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); msg = result; } + else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { + result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; + result.setEnfIsSet(true); + msg = result; + } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { result.ace = (org.apache.airavata.model.error.AiravataClientException) e; result.setAceIsSet(true); @@ -16113,25 +17785,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerApplicationDeployment(args.gatewayId, args.applicationDeployment,resultHandler); + public void start(I iface, terminateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.terminateExperiment(args.airavataExperimentId, args.tokenId,resultHandler); } } - public static class getApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public getApplicationDeployment() { - super("getApplicationDeployment"); + public static class registerApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public registerApplicationModule() { + super("registerApplicationModule"); } - public getApplicationDeployment_args getEmptyArgsInstance() { - return new getApplicationDeployment_args(); + public registerApplicationModule_args getEmptyArgsInstance() { + return new registerApplicationModule_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription o) { - getApplicationDeployment_result result = new getApplicationDeployment_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerApplicationModule_result result = new registerApplicationModule_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16144,7 +17816,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.Applic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationDeployment_result result = new getApplicationDeployment_result(); + registerApplicationModule_result result = new registerApplicationModule_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16180,27 +17852,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationDeployment(args.appDeploymentId,resultHandler); + public void start(I iface, registerApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerApplicationModule(args.gatewayId, args.applicationModule,resultHandler); } } - public static class updateApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public updateApplicationDeployment() { - super("updateApplicationDeployment"); + public static class getApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public getApplicationModule() { + super("getApplicationModule"); } - public updateApplicationDeployment_args getEmptyArgsInstance() { - return new updateApplicationDeployment_args(); + public getApplicationModule_args getEmptyArgsInstance() { + return new getApplicationModule_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateApplicationDeployment_result result = new updateApplicationDeployment_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule o) { + getApplicationModule_result result = new getApplicationModule_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -16212,7 +17883,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateApplicationDeployment_result result = new updateApplicationDeployment_result(); + getApplicationModule_result result = new getApplicationModule_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16248,25 +17919,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateApplicationDeployment(args.appDeploymentId, args.applicationDeployment,resultHandler); + public void start(I iface, getApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationModule(args.appModuleId,resultHandler); } } - public static class deleteApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public deleteApplicationDeployment() { - super("deleteApplicationDeployment"); + public static class updateApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public updateApplicationModule() { + super("updateApplicationModule"); } - public deleteApplicationDeployment_args getEmptyArgsInstance() { - return new deleteApplicationDeployment_args(); + public updateApplicationModule_args getEmptyArgsInstance() { + return new updateApplicationModule_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); + updateApplicationModule_result result = new updateApplicationModule_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -16280,7 +17951,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); + updateApplicationModule_result result = new updateApplicationModule_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16316,25 +17987,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteApplicationDeployment(args.appDeploymentId,resultHandler); + public void start(I iface, updateApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateApplicationModule(args.appModuleId, args.applicationModule,resultHandler); } } - public static class getAllApplicationDeployments extends org.apache.thrift.AsyncProcessFunction> { - public getAllApplicationDeployments() { - super("getAllApplicationDeployments"); + public static class getAllAppModules extends org.apache.thrift.AsyncProcessFunction> { + public getAllAppModules() { + super("getAllAppModules"); } - public getAllApplicationDeployments_args getEmptyArgsInstance() { - return new getAllApplicationDeployments_args(); + public getAllAppModules_args getEmptyArgsInstance() { + return new getAllAppModules_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllApplicationDeployments_result result = new getAllApplicationDeployments_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllAppModules_result result = new getAllAppModules_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16347,7 +18018,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllApplicationDeployments(args.gatewayId,resultHandler); + public void start(I iface, getAllAppModules_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllAppModules(args.gatewayId,resultHandler); } } - public static class getAppModuleDeployedResources extends org.apache.thrift.AsyncProcessFunction> { - public getAppModuleDeployedResources() { - super("getAppModuleDeployedResources"); + public static class deleteApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public deleteApplicationModule() { + super("deleteApplicationModule"); } - public getAppModuleDeployedResources_args getEmptyArgsInstance() { - return new getAppModuleDeployedResources_args(); + public deleteApplicationModule_args getEmptyArgsInstance() { + return new deleteApplicationModule_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAppModuleDeployedResources_result result = new getAppModuleDeployedResources_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteApplicationModule_result result = new deleteApplicationModule_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -16414,7 +18086,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAppModuleDeployedResources_result result = new getAppModuleDeployedResources_result(); + deleteApplicationModule_result result = new deleteApplicationModule_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16450,25 +18122,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAppModuleDeployedResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAppModuleDeployedResources(args.appModuleId,resultHandler); + public void start(I iface, deleteApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteApplicationModule(args.appModuleId,resultHandler); } } - public static class registerApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public registerApplicationInterface() { - super("registerApplicationInterface"); + public static class registerApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public registerApplicationDeployment() { + super("registerApplicationDeployment"); } - public registerApplicationInterface_args getEmptyArgsInstance() { - return new registerApplicationInterface_args(); + public registerApplicationDeployment_args getEmptyArgsInstance() { + return new registerApplicationDeployment_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - registerApplicationInterface_result result = new registerApplicationInterface_result(); + registerApplicationDeployment_result result = new registerApplicationDeployment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16481,7 +18153,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerApplicationInterface_result result = new registerApplicationInterface_result(); + registerApplicationDeployment_result result = new registerApplicationDeployment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16517,25 +18189,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerApplicationInterface(args.gatewayId, args.applicationInterface,resultHandler); + public void start(I iface, registerApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerApplicationDeployment(args.gatewayId, args.applicationDeployment,resultHandler); } } - public static class getApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public getApplicationInterface() { - super("getApplicationInterface"); + public static class getApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public getApplicationDeployment() { + super("getApplicationDeployment"); } - public getApplicationInterface_args getEmptyArgsInstance() { - return new getApplicationInterface_args(); + public getApplicationDeployment_args getEmptyArgsInstance() { + return new getApplicationDeployment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription o) { - getApplicationInterface_result result = new getApplicationInterface_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription o) { + getApplicationDeployment_result result = new getApplicationDeployment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16548,7 +18220,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.appinterface.Applica public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationInterface_result result = new getApplicationInterface_result(); + getApplicationDeployment_result result = new getApplicationDeployment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16584,25 +18256,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationInterface(args.appInterfaceId,resultHandler); + public void start(I iface, getApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationDeployment(args.appDeploymentId,resultHandler); } } - public static class updateApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public updateApplicationInterface() { - super("updateApplicationInterface"); + public static class updateApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public updateApplicationDeployment() { + super("updateApplicationDeployment"); } - public updateApplicationInterface_args getEmptyArgsInstance() { - return new updateApplicationInterface_args(); + public updateApplicationDeployment_args getEmptyArgsInstance() { + return new updateApplicationDeployment_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - updateApplicationInterface_result result = new updateApplicationInterface_result(); + updateApplicationDeployment_result result = new updateApplicationDeployment_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -16616,7 +18288,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateApplicationInterface_result result = new updateApplicationInterface_result(); + updateApplicationDeployment_result result = new updateApplicationDeployment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16652,25 +18324,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateApplicationInterface(args.appInterfaceId, args.applicationInterface,resultHandler); + public void start(I iface, updateApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateApplicationDeployment(args.appDeploymentId, args.applicationDeployment,resultHandler); } } - public static class deleteApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public deleteApplicationInterface() { - super("deleteApplicationInterface"); + public static class deleteApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public deleteApplicationDeployment() { + super("deleteApplicationDeployment"); } - public deleteApplicationInterface_args getEmptyArgsInstance() { - return new deleteApplicationInterface_args(); + public deleteApplicationDeployment_args getEmptyArgsInstance() { + return new deleteApplicationDeployment_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteApplicationInterface_result result = new deleteApplicationInterface_result(); + deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -16684,7 +18356,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteApplicationInterface_result result = new deleteApplicationInterface_result(); + deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16720,25 +18392,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteApplicationInterface(args.appInterfaceId,resultHandler); + public void start(I iface, deleteApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteApplicationDeployment(args.appDeploymentId,resultHandler); } } - public static class getAllApplicationInterfaceNames extends org.apache.thrift.AsyncProcessFunction> { - public getAllApplicationInterfaceNames() { - super("getAllApplicationInterfaceNames"); + public static class getAllApplicationDeployments extends org.apache.thrift.AsyncProcessFunction> { + public getAllApplicationDeployments() { + super("getAllApplicationDeployments"); } - public getAllApplicationInterfaceNames_args getEmptyArgsInstance() { - return new getAllApplicationInterfaceNames_args(); + public getAllApplicationDeployments_args getEmptyArgsInstance() { + return new getAllApplicationDeployments_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllApplicationDeployments_result result = new getAllApplicationDeployments_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16751,7 +18423,7 @@ public void onComplete(Map o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); + getAllApplicationDeployments_result result = new getAllApplicationDeployments_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16787,25 +18459,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAllApplicationInterfaceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllApplicationInterfaceNames(args.gatewayId,resultHandler); + public void start(I iface, getAllApplicationDeployments_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllApplicationDeployments(args.gatewayId,resultHandler); } } - public static class getAllApplicationInterfaces extends org.apache.thrift.AsyncProcessFunction> { - public getAllApplicationInterfaces() { - super("getAllApplicationInterfaces"); + public static class getAppModuleDeployedResources extends org.apache.thrift.AsyncProcessFunction> { + public getAppModuleDeployedResources() { + super("getAppModuleDeployedResources"); } - public getAllApplicationInterfaces_args getEmptyArgsInstance() { - return new getAllApplicationInterfaces_args(); + public getAppModuleDeployedResources_args getEmptyArgsInstance() { + return new getAppModuleDeployedResources_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllApplicationInterfaces_result result = new getAllApplicationInterfaces_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAppModuleDeployedResources_result result = new getAppModuleDeployedResources_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16818,7 +18490,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllApplicationInterfaces(args.gatewayId,resultHandler); + public void start(I iface, getAppModuleDeployedResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAppModuleDeployedResources(args.appModuleId,resultHandler); } } - public static class getApplicationInputs extends org.apache.thrift.AsyncProcessFunction> { - public getApplicationInputs() { - super("getApplicationInputs"); + public static class registerApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public registerApplicationInterface() { + super("registerApplicationInterface"); } - public getApplicationInputs_args getEmptyArgsInstance() { - return new getApplicationInputs_args(); + public registerApplicationInterface_args getEmptyArgsInstance() { + return new registerApplicationInterface_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getApplicationInputs_result result = new getApplicationInputs_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerApplicationInterface_result result = new registerApplicationInterface_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16885,7 +18557,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getApplicationInputs(args.appInterfaceId,resultHandler); + public void start(I iface, registerApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerApplicationInterface(args.gatewayId, args.applicationInterface,resultHandler); } } - public static class getApplicationOutputs extends org.apache.thrift.AsyncProcessFunction> { - public getApplicationOutputs() { - super("getApplicationOutputs"); + public static class getApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public getApplicationInterface() { + super("getApplicationInterface"); } - public getApplicationOutputs_args getEmptyArgsInstance() { - return new getApplicationOutputs_args(); + public getApplicationInterface_args getEmptyArgsInstance() { + return new getApplicationInterface_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getApplicationOutputs_result result = new getApplicationOutputs_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription o) { + getApplicationInterface_result result = new getApplicationInterface_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16952,7 +18624,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getApplicationOutputs(args.appInterfaceId,resultHandler); + public void start(I iface, getApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationInterface(args.appInterfaceId,resultHandler); } } - public static class getAvailableAppInterfaceComputeResources extends org.apache.thrift.AsyncProcessFunction> { - public getAvailableAppInterfaceComputeResources() { - super("getAvailableAppInterfaceComputeResources"); + public static class updateApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public updateApplicationInterface() { + super("updateApplicationInterface"); } - public getAvailableAppInterfaceComputeResources_args getEmptyArgsInstance() { - return new getAvailableAppInterfaceComputeResources_args(); + public updateApplicationInterface_args getEmptyArgsInstance() { + return new updateApplicationInterface_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateApplicationInterface_result result = new updateApplicationInterface_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17019,7 +18692,7 @@ public void onComplete(Map o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); + updateApplicationInterface_result result = new updateApplicationInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17055,26 +18728,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAvailableAppInterfaceComputeResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAvailableAppInterfaceComputeResources(args.appInterfaceId,resultHandler); + public void start(I iface, updateApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateApplicationInterface(args.appInterfaceId, args.applicationInterface,resultHandler); } } - public static class registerComputeResource extends org.apache.thrift.AsyncProcessFunction { - public registerComputeResource() { - super("registerComputeResource"); + public static class deleteApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public deleteApplicationInterface() { + super("deleteApplicationInterface"); } - public registerComputeResource_args getEmptyArgsInstance() { - return new registerComputeResource_args(); + public deleteApplicationInterface_args getEmptyArgsInstance() { + return new deleteApplicationInterface_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerComputeResource_result result = new registerComputeResource_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteApplicationInterface_result result = new deleteApplicationInterface_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17086,7 +18760,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerComputeResource_result result = new registerComputeResource_result(); + deleteApplicationInterface_result result = new deleteApplicationInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17122,25 +18796,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerComputeResource(args.computeResourceDescription,resultHandler); + public void start(I iface, deleteApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteApplicationInterface(args.appInterfaceId,resultHandler); } } - public static class getComputeResource extends org.apache.thrift.AsyncProcessFunction { - public getComputeResource() { - super("getComputeResource"); + public static class getAllApplicationInterfaceNames extends org.apache.thrift.AsyncProcessFunction> { + public getAllApplicationInterfaceNames() { + super("getAllApplicationInterfaceNames"); } - public getComputeResource_args getEmptyArgsInstance() { - return new getComputeResource_args(); + public getAllApplicationInterfaceNames_args getEmptyArgsInstance() { + return new getAllApplicationInterfaceNames_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription o) { - getComputeResource_result result = new getComputeResource_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17153,7 +18827,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Comp public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getComputeResource_result result = new getComputeResource_result(); + getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17189,25 +18863,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getComputeResource(args.computeResourceId,resultHandler); + public void start(I iface, getAllApplicationInterfaceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllApplicationInterfaceNames(args.gatewayId,resultHandler); } } - public static class getAllComputeResourceNames extends org.apache.thrift.AsyncProcessFunction> { - public getAllComputeResourceNames() { - super("getAllComputeResourceNames"); + public static class getAllApplicationInterfaces extends org.apache.thrift.AsyncProcessFunction> { + public getAllApplicationInterfaces() { + super("getAllApplicationInterfaces"); } - public getAllComputeResourceNames_args getEmptyArgsInstance() { - return new getAllComputeResourceNames_args(); + public getAllApplicationInterfaces_args getEmptyArgsInstance() { + return new getAllApplicationInterfaces_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getAllComputeResourceNames_result result = new getAllComputeResourceNames_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllApplicationInterfaces_result result = new getAllApplicationInterfaces_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17220,7 +18894,7 @@ public void onComplete(Map o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAllComputeResourceNames_result result = new getAllComputeResourceNames_result(); + getAllApplicationInterfaces_result result = new getAllApplicationInterfaces_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17256,27 +18930,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAllComputeResourceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllComputeResourceNames(resultHandler); + public void start(I iface, getAllApplicationInterfaces_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllApplicationInterfaces(args.gatewayId,resultHandler); } } - public static class updateComputeResource extends org.apache.thrift.AsyncProcessFunction { - public updateComputeResource() { - super("updateComputeResource"); + public static class getApplicationInputs extends org.apache.thrift.AsyncProcessFunction> { + public getApplicationInputs() { + super("getApplicationInputs"); } - public updateComputeResource_args getEmptyArgsInstance() { - return new updateComputeResource_args(); + public getApplicationInputs_args getEmptyArgsInstance() { + return new getApplicationInputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateComputeResource_result result = new updateComputeResource_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getApplicationInputs_result result = new getApplicationInputs_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17288,7 +18961,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateComputeResource_result result = new updateComputeResource_result(); + getApplicationInputs_result result = new getApplicationInputs_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17324,27 +18997,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateComputeResource(args.computeResourceId, args.computeResourceDescription,resultHandler); + public void start(I iface, getApplicationInputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getApplicationInputs(args.appInterfaceId,resultHandler); } } - public static class deleteComputeResource extends org.apache.thrift.AsyncProcessFunction { - public deleteComputeResource() { - super("deleteComputeResource"); + public static class getApplicationOutputs extends org.apache.thrift.AsyncProcessFunction> { + public getApplicationOutputs() { + super("getApplicationOutputs"); } - public deleteComputeResource_args getEmptyArgsInstance() { - return new deleteComputeResource_args(); + public getApplicationOutputs_args getEmptyArgsInstance() { + return new getApplicationOutputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - deleteComputeResource_result result = new deleteComputeResource_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getApplicationOutputs_result result = new getApplicationOutputs_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17356,7 +19028,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteComputeResource_result result = new deleteComputeResource_result(); + getApplicationOutputs_result result = new getApplicationOutputs_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17392,25 +19064,92 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteComputeResource(args.computeResourceId,resultHandler); + public void start(I iface, getApplicationOutputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getApplicationOutputs(args.appInterfaceId,resultHandler); } } - public static class addLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addLocalSubmissionDetails() { - super("addLocalSubmissionDetails"); + public static class getAvailableAppInterfaceComputeResources extends org.apache.thrift.AsyncProcessFunction> { + public getAvailableAppInterfaceComputeResources() { + super("getAvailableAppInterfaceComputeResources"); } - public addLocalSubmissionDetails_args getEmptyArgsInstance() { - return new addLocalSubmissionDetails_args(); + public getAvailableAppInterfaceComputeResources_args getEmptyArgsInstance() { + return new getAvailableAppInterfaceComputeResources_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getAvailableAppInterfaceComputeResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAvailableAppInterfaceComputeResources(args.appInterfaceId,resultHandler); + } + } + + public static class registerComputeResource extends org.apache.thrift.AsyncProcessFunction { + public registerComputeResource() { + super("registerComputeResource"); + } + + public registerComputeResource_args getEmptyArgsInstance() { + return new registerComputeResource_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); + registerComputeResource_result result = new registerComputeResource_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17423,7 +19162,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); + registerComputeResource_result result = new registerComputeResource_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17459,27 +19198,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, addLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addLocalSubmissionDetails(args.computeResourceId, args.priorityOrder, args.localSubmission,resultHandler); + public void start(I iface, registerComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerComputeResource(args.computeResourceDescription,resultHandler); } } - public static class updateLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateLocalSubmissionDetails() { - super("updateLocalSubmissionDetails"); + public static class getComputeResource extends org.apache.thrift.AsyncProcessFunction { + public getComputeResource() { + super("getComputeResource"); } - public updateLocalSubmissionDetails_args getEmptyArgsInstance() { - return new updateLocalSubmissionDetails_args(); + public getComputeResource_args getEmptyArgsInstance() { + return new getComputeResource_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription o) { + getComputeResource_result result = new getComputeResource_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17491,7 +19229,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); + getComputeResource_result result = new getComputeResource_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17527,25 +19265,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateLocalSubmissionDetails(args.jobSubmissionInterfaceId, args.localSubmission,resultHandler); + public void start(I iface, getComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getComputeResource(args.computeResourceId,resultHandler); } } - public static class getLocalJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getLocalJobSubmission() { - super("getLocalJobSubmission"); + public static class getAllComputeResourceNames extends org.apache.thrift.AsyncProcessFunction> { + public getAllComputeResourceNames() { + super("getAllComputeResourceNames"); } - public getLocalJobSubmission_args getEmptyArgsInstance() { - return new getLocalJobSubmission_args(); + public getAllComputeResourceNames_args getEmptyArgsInstance() { + return new getAllComputeResourceNames_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALSubmission o) { - getLocalJobSubmission_result result = new getLocalJobSubmission_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getAllComputeResourceNames_result result = new getAllComputeResourceNames_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17558,7 +19296,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCA public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLocalJobSubmission_result result = new getLocalJobSubmission_result(); + getAllComputeResourceNames_result result = new getAllComputeResourceNames_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17594,26 +19332,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getLocalJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLocalJobSubmission(args.jobSubmissionId,resultHandler); + public void start(I iface, getAllComputeResourceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllComputeResourceNames(resultHandler); } } - public static class addSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addSSHJobSubmissionDetails() { - super("addSSHJobSubmissionDetails"); + public static class updateComputeResource extends org.apache.thrift.AsyncProcessFunction { + public updateComputeResource() { + super("updateComputeResource"); } - public addSSHJobSubmissionDetails_args getEmptyArgsInstance() { - return new addSSHJobSubmissionDetails_args(); + public updateComputeResource_args getEmptyArgsInstance() { + return new updateComputeResource_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateComputeResource_result result = new updateComputeResource_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17625,7 +19364,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); + updateComputeResource_result result = new updateComputeResource_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17661,26 +19400,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, addSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addSSHJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.sshJobSubmission,resultHandler); + public void start(I iface, updateComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateComputeResource(args.computeResourceId, args.computeResourceDescription,resultHandler); } } - public static class getSSHJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getSSHJobSubmission() { - super("getSSHJobSubmission"); + public static class deleteComputeResource extends org.apache.thrift.AsyncProcessFunction { + public deleteComputeResource() { + super("deleteComputeResource"); } - public getSSHJobSubmission_args getEmptyArgsInstance() { - return new getSSHJobSubmission_args(); + public deleteComputeResource_args getEmptyArgsInstance() { + return new deleteComputeResource_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SSHJobSubmission o) { - getSSHJobSubmission_result result = new getSSHJobSubmission_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteComputeResource_result result = new deleteComputeResource_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17692,7 +19432,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SSHJ public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getSSHJobSubmission_result result = new getSSHJobSubmission_result(); + deleteComputeResource_result result = new deleteComputeResource_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17728,25 +19468,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getSSHJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getSSHJobSubmission(args.jobSubmissionId,resultHandler); + public void start(I iface, deleteComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteComputeResource(args.computeResourceId,resultHandler); } } - public static class addUNICOREJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addUNICOREJobSubmissionDetails() { - super("addUNICOREJobSubmissionDetails"); + public static class addLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addLocalSubmissionDetails() { + super("addLocalSubmissionDetails"); } - public addUNICOREJobSubmissionDetails_args getEmptyArgsInstance() { - return new addUNICOREJobSubmissionDetails_args(); + public addLocalSubmissionDetails_args getEmptyArgsInstance() { + return new addLocalSubmissionDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); + addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17759,7 +19499,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); + addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17795,26 +19535,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, addUNICOREJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addUNICOREJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.unicoreJobSubmission,resultHandler); + public void start(I iface, addLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addLocalSubmissionDetails(args.computeResourceId, args.priorityOrder, args.localSubmission,resultHandler); } } - public static class getUnicoreJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getUnicoreJobSubmission() { - super("getUnicoreJobSubmission"); + public static class updateLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateLocalSubmissionDetails() { + super("updateLocalSubmissionDetails"); } - public getUnicoreJobSubmission_args getEmptyArgsInstance() { - return new getUnicoreJobSubmission_args(); + public updateLocalSubmissionDetails_args getEmptyArgsInstance() { + return new updateLocalSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreJobSubmission o) { - getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -17826,7 +19567,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Unic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); + updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17862,25 +19603,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getUnicoreJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUnicoreJobSubmission(args.jobSubmissionId,resultHandler); + public void start(I iface, updateLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateLocalSubmissionDetails(args.jobSubmissionInterfaceId, args.localSubmission,resultHandler); } } - public static class addCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addCloudJobSubmissionDetails() { - super("addCloudJobSubmissionDetails"); + public static class getLocalJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getLocalJobSubmission() { + super("getLocalJobSubmission"); } - public addCloudJobSubmissionDetails_args getEmptyArgsInstance() { - return new addCloudJobSubmissionDetails_args(); + public getLocalJobSubmission_args getEmptyArgsInstance() { + return new getLocalJobSubmission_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALSubmission o) { + getLocalJobSubmission_result result = new getLocalJobSubmission_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17893,7 +19634,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); + getLocalJobSubmission_result result = new getLocalJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17929,25 +19670,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, addCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addCloudJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.cloudSubmission,resultHandler); + public void start(I iface, getLocalJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLocalJobSubmission(args.jobSubmissionId,resultHandler); } } - public static class getCloudJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getCloudJobSubmission() { - super("getCloudJobSubmission"); + public static class addSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addSSHJobSubmissionDetails() { + super("addSSHJobSubmissionDetails"); } - public getCloudJobSubmission_args getEmptyArgsInstance() { - return new getCloudJobSubmission_args(); + public addSSHJobSubmissionDetails_args getEmptyArgsInstance() { + return new addSSHJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.CloudJobSubmission o) { - getCloudJobSubmission_result result = new getCloudJobSubmission_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17960,7 +19701,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Clou public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getCloudJobSubmission_result result = new getCloudJobSubmission_result(); + addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17996,27 +19737,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getCloudJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getCloudJobSubmission(args.jobSubmissionId,resultHandler); + public void start(I iface, addSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addSSHJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.sshJobSubmission,resultHandler); } } - public static class updateSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateSSHJobSubmissionDetails() { - super("updateSSHJobSubmissionDetails"); + public static class getSSHJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getSSHJobSubmission() { + super("getSSHJobSubmission"); } - public updateSSHJobSubmissionDetails_args getEmptyArgsInstance() { - return new updateSSHJobSubmissionDetails_args(); + public getSSHJobSubmission_args getEmptyArgsInstance() { + return new getSSHJobSubmission_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SSHJobSubmission o) { + getSSHJobSubmission_result result = new getSSHJobSubmission_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18028,7 +19768,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); + getSSHJobSubmission_result result = new getSSHJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18064,27 +19804,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateSSHJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); + public void start(I iface, getSSHJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getSSHJobSubmission(args.jobSubmissionId,resultHandler); } } - public static class updateCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateCloudJobSubmissionDetails() { - super("updateCloudJobSubmissionDetails"); + public static class addUNICOREJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addUNICOREJobSubmissionDetails() { + super("addUNICOREJobSubmissionDetails"); } - public updateCloudJobSubmissionDetails_args getEmptyArgsInstance() { - return new updateCloudJobSubmissionDetails_args(); + public addUNICOREJobSubmissionDetails_args getEmptyArgsInstance() { + return new addUNICOREJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18096,7 +19835,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); + addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18132,27 +19871,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateCloudJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); + public void start(I iface, addUNICOREJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addUNICOREJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.unicoreJobSubmission,resultHandler); } } - public static class updateUnicoreJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateUnicoreJobSubmissionDetails() { - super("updateUnicoreJobSubmissionDetails"); + public static class getUnicoreJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getUnicoreJobSubmission() { + super("getUnicoreJobSubmission"); } - public updateUnicoreJobSubmissionDetails_args getEmptyArgsInstance() { - return new updateUnicoreJobSubmissionDetails_args(); + public getUnicoreJobSubmission_args getEmptyArgsInstance() { + return new getUnicoreJobSubmission_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreJobSubmission o) { + getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18164,7 +19902,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); + getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18200,25 +19938,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateUnicoreJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateUnicoreJobSubmissionDetails(args.jobSubmissionInterfaceId, args.unicoreJobSubmission,resultHandler); + public void start(I iface, getUnicoreJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUnicoreJobSubmission(args.jobSubmissionId,resultHandler); } } - public static class addLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addLocalDataMovementDetails() { - super("addLocalDataMovementDetails"); + public static class addCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addCloudJobSubmissionDetails() { + super("addCloudJobSubmissionDetails"); } - public addLocalDataMovementDetails_args getEmptyArgsInstance() { - return new addLocalDataMovementDetails_args(); + public addCloudJobSubmissionDetails_args getEmptyArgsInstance() { + return new addCloudJobSubmissionDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); + addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18231,7 +19969,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); + addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18267,27 +20005,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, addLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addLocalDataMovementDetails(args.computeResourceId, args.priorityOrder, args.localDataMovement,resultHandler); + public void start(I iface, addCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addCloudJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.cloudSubmission,resultHandler); } } - public static class updateLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateLocalDataMovementDetails() { - super("updateLocalDataMovementDetails"); + public static class getCloudJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getCloudJobSubmission() { + super("getCloudJobSubmission"); } - public updateLocalDataMovementDetails_args getEmptyArgsInstance() { - return new updateLocalDataMovementDetails_args(); + public getCloudJobSubmission_args getEmptyArgsInstance() { + return new getCloudJobSubmission_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.CloudJobSubmission o) { + getCloudJobSubmission_result result = new getCloudJobSubmission_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18299,7 +20036,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); + getCloudJobSubmission_result result = new getCloudJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18335,26 +20072,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateLocalDataMovementDetails(args.dataMovementInterfaceId, args.localDataMovement,resultHandler); + public void start(I iface, getCloudJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getCloudJobSubmission(args.jobSubmissionId,resultHandler); } } - public static class getLocalDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getLocalDataMovement() { - super("getLocalDataMovement"); + public static class updateSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateSSHJobSubmissionDetails() { + super("updateSSHJobSubmissionDetails"); } - public getLocalDataMovement_args getEmptyArgsInstance() { - return new getLocalDataMovement_args(); + public updateSSHJobSubmissionDetails_args getEmptyArgsInstance() { + return new updateSSHJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALDataMovement o) { - getLocalDataMovement_result result = new getLocalDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18366,7 +20104,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCA public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLocalDataMovement_result result = new getLocalDataMovement_result(); + updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18402,26 +20140,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getLocalDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLocalDataMovement(args.dataMovementId,resultHandler); + public void start(I iface, updateSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateSSHJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); } } - public static class addSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addSCPDataMovementDetails() { - super("addSCPDataMovementDetails"); + public static class updateCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateCloudJobSubmissionDetails() { + super("updateCloudJobSubmissionDetails"); } - public addSCPDataMovementDetails_args getEmptyArgsInstance() { - return new addSCPDataMovementDetails_args(); + public updateCloudJobSubmissionDetails_args getEmptyArgsInstance() { + return new updateCloudJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18433,7 +20172,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); + updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18469,25 +20208,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, addSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addSCPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.scpDataMovement,resultHandler); + public void start(I iface, updateCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateCloudJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); } } - public static class updateSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateSCPDataMovementDetails() { - super("updateSCPDataMovementDetails"); + public static class updateUnicoreJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateUnicoreJobSubmissionDetails() { + super("updateUnicoreJobSubmissionDetails"); } - public updateSCPDataMovementDetails_args getEmptyArgsInstance() { - return new updateSCPDataMovementDetails_args(); + public updateUnicoreJobSubmissionDetails_args getEmptyArgsInstance() { + return new updateUnicoreJobSubmissionDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); + updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -18501,7 +20240,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); + updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18537,25 +20276,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateSCPDataMovementDetails(args.dataMovementInterfaceId, args.scpDataMovement,resultHandler); + public void start(I iface, updateUnicoreJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateUnicoreJobSubmissionDetails(args.jobSubmissionInterfaceId, args.unicoreJobSubmission,resultHandler); } } - public static class getSCPDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getSCPDataMovement() { - super("getSCPDataMovement"); + public static class addLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addLocalDataMovementDetails() { + super("addLocalDataMovementDetails"); } - public getSCPDataMovement_args getEmptyArgsInstance() { - return new getSCPDataMovement_args(); + public addLocalDataMovementDetails_args getEmptyArgsInstance() { + return new addLocalDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SCPDataMovement o) { - getSCPDataMovement_result result = new getSCPDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18568,7 +20307,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SCPD public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getSCPDataMovement_result result = new getSCPDataMovement_result(); + addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18604,26 +20343,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getSCPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getSCPDataMovement(args.dataMovementId,resultHandler); + public void start(I iface, addLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addLocalDataMovementDetails(args.computeResourceId, args.priorityOrder, args.localDataMovement,resultHandler); } } - public static class addUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addUnicoreDataMovementDetails() { - super("addUnicoreDataMovementDetails"); + public static class updateLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateLocalDataMovementDetails() { + super("updateLocalDataMovementDetails"); } - public addUnicoreDataMovementDetails_args getEmptyArgsInstance() { - return new addUnicoreDataMovementDetails_args(); + public updateLocalDataMovementDetails_args getEmptyArgsInstance() { + return new updateLocalDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18635,7 +20375,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); + updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18671,27 +20411,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, addUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addUnicoreDataMovementDetails(args.computeResourceId, args.priorityOrder, args.unicoreDataMovement,resultHandler); + public void start(I iface, updateLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateLocalDataMovementDetails(args.dataMovementInterfaceId, args.localDataMovement,resultHandler); } } - public static class updateUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateUnicoreDataMovementDetails() { - super("updateUnicoreDataMovementDetails"); + public static class getLocalDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getLocalDataMovement() { + super("getLocalDataMovement"); } - public updateUnicoreDataMovementDetails_args getEmptyArgsInstance() { - return new updateUnicoreDataMovementDetails_args(); + public getLocalDataMovement_args getEmptyArgsInstance() { + return new getLocalDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALDataMovement o) { + getLocalDataMovement_result result = new getLocalDataMovement_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18703,7 +20442,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); + getLocalDataMovement_result result = new getLocalDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18739,25 +20478,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateUnicoreDataMovementDetails(args.dataMovementInterfaceId, args.unicoreDataMovement,resultHandler); + public void start(I iface, getLocalDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLocalDataMovement(args.dataMovementId,resultHandler); } } - public static class getUnicoreDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getUnicoreDataMovement() { - super("getUnicoreDataMovement"); + public static class addSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addSCPDataMovementDetails() { + super("addSCPDataMovementDetails"); } - public getUnicoreDataMovement_args getEmptyArgsInstance() { - return new getUnicoreDataMovement_args(); + public addSCPDataMovementDetails_args getEmptyArgsInstance() { + return new addSCPDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreDataMovement o) { - getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18770,7 +20509,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Unic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); + addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18806,26 +20545,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getUnicoreDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUnicoreDataMovement(args.dataMovementId,resultHandler); + public void start(I iface, addSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addSCPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.scpDataMovement,resultHandler); } } - public static class addGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addGridFTPDataMovementDetails() { - super("addGridFTPDataMovementDetails"); + public static class updateSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateSCPDataMovementDetails() { + super("updateSCPDataMovementDetails"); } - public addGridFTPDataMovementDetails_args getEmptyArgsInstance() { - return new addGridFTPDataMovementDetails_args(); + public updateSCPDataMovementDetails_args getEmptyArgsInstance() { + return new updateSCPDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18837,7 +20577,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); + updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18873,27 +20613,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, addGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addGridFTPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.gridFTPDataMovement,resultHandler); + public void start(I iface, updateSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateSCPDataMovementDetails(args.dataMovementInterfaceId, args.scpDataMovement,resultHandler); } } - public static class updateGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateGridFTPDataMovementDetails() { - super("updateGridFTPDataMovementDetails"); + public static class getSCPDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getSCPDataMovement() { + super("getSCPDataMovement"); } - public updateGridFTPDataMovementDetails_args getEmptyArgsInstance() { - return new updateGridFTPDataMovementDetails_args(); + public getSCPDataMovement_args getEmptyArgsInstance() { + return new getSCPDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SCPDataMovement o) { + getSCPDataMovement_result result = new getSCPDataMovement_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18905,7 +20644,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); + getSCPDataMovement_result result = new getSCPDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18941,25 +20680,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateGridFTPDataMovementDetails(args.dataMovementInterfaceId, args.gridFTPDataMovement,resultHandler); + public void start(I iface, getSCPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getSCPDataMovement(args.dataMovementId,resultHandler); } } - public static class getGridFTPDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getGridFTPDataMovement() { - super("getGridFTPDataMovement"); + public static class addUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addUnicoreDataMovementDetails() { + super("addUnicoreDataMovementDetails"); } - public getGridFTPDataMovement_args getEmptyArgsInstance() { - return new getGridFTPDataMovement_args(); + public addUnicoreDataMovementDetails_args getEmptyArgsInstance() { + return new addUnicoreDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.GridFTPDataMovement o) { - getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18972,7 +20711,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Grid public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); + addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19008,25 +20747,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getGridFTPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getGridFTPDataMovement(args.dataMovementId,resultHandler); + public void start(I iface, addUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addUnicoreDataMovementDetails(args.computeResourceId, args.priorityOrder, args.unicoreDataMovement,resultHandler); } } - public static class changeJobSubmissionPriority extends org.apache.thrift.AsyncProcessFunction { - public changeJobSubmissionPriority() { - super("changeJobSubmissionPriority"); + public static class updateUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateUnicoreDataMovementDetails() { + super("updateUnicoreDataMovementDetails"); } - public changeJobSubmissionPriority_args getEmptyArgsInstance() { - return new changeJobSubmissionPriority_args(); + public updateUnicoreDataMovementDetails_args getEmptyArgsInstance() { + return new updateUnicoreDataMovementDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); + updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19040,7 +20779,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); + updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19076,27 +20815,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeJobSubmissionPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeJobSubmissionPriority(args.jobSubmissionInterfaceId, args.newPriorityOrder,resultHandler); + public void start(I iface, updateUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateUnicoreDataMovementDetails(args.dataMovementInterfaceId, args.unicoreDataMovement,resultHandler); } } - public static class changeDataMovementPriority extends org.apache.thrift.AsyncProcessFunction { - public changeDataMovementPriority() { - super("changeDataMovementPriority"); + public static class getUnicoreDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getUnicoreDataMovement() { + super("getUnicoreDataMovement"); } - public changeDataMovementPriority_args getEmptyArgsInstance() { - return new changeDataMovementPriority_args(); + public getUnicoreDataMovement_args getEmptyArgsInstance() { + return new getUnicoreDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - changeDataMovementPriority_result result = new changeDataMovementPriority_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreDataMovement o) { + getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19108,7 +20846,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeDataMovementPriority_result result = new changeDataMovementPriority_result(); + getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19144,27 +20882,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeDataMovementPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeDataMovementPriority(args.dataMovementInterfaceId, args.newPriorityOrder,resultHandler); + public void start(I iface, getUnicoreDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUnicoreDataMovement(args.dataMovementId,resultHandler); } } - public static class changeJobSubmissionPriorities extends org.apache.thrift.AsyncProcessFunction { - public changeJobSubmissionPriorities() { - super("changeJobSubmissionPriorities"); + public static class addGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addGridFTPDataMovementDetails() { + super("addGridFTPDataMovementDetails"); } - public changeJobSubmissionPriorities_args getEmptyArgsInstance() { - return new changeJobSubmissionPriorities_args(); + public addGridFTPDataMovementDetails_args getEmptyArgsInstance() { + return new addGridFTPDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19176,7 +20913,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); + addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19212,25 +20949,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeJobSubmissionPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeJobSubmissionPriorities(args.jobSubmissionPriorityMap,resultHandler); + public void start(I iface, addGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addGridFTPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.gridFTPDataMovement,resultHandler); } } - public static class changeDataMovementPriorities extends org.apache.thrift.AsyncProcessFunction { - public changeDataMovementPriorities() { - super("changeDataMovementPriorities"); + public static class updateGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateGridFTPDataMovementDetails() { + super("updateGridFTPDataMovementDetails"); } - public changeDataMovementPriorities_args getEmptyArgsInstance() { - return new changeDataMovementPriorities_args(); + public updateGridFTPDataMovementDetails_args getEmptyArgsInstance() { + return new updateGridFTPDataMovementDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); + updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19244,7 +20981,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); + updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19280,27 +21017,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeDataMovementPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeDataMovementPriorities(args.dataMovementPriorityMap,resultHandler); + public void start(I iface, updateGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateGridFTPDataMovementDetails(args.dataMovementInterfaceId, args.gridFTPDataMovement,resultHandler); } } - public static class deleteJobSubmissionInterface extends org.apache.thrift.AsyncProcessFunction { - public deleteJobSubmissionInterface() { - super("deleteJobSubmissionInterface"); + public static class getGridFTPDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getGridFTPDataMovement() { + super("getGridFTPDataMovement"); } - public deleteJobSubmissionInterface_args getEmptyArgsInstance() { - return new deleteJobSubmissionInterface_args(); + public getGridFTPDataMovement_args getEmptyArgsInstance() { + return new getGridFTPDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.GridFTPDataMovement o) { + getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19312,7 +21048,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); + getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19348,25 +21084,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteJobSubmissionInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteJobSubmissionInterface(args.computeResourceId, args.jobSubmissionInterfaceId,resultHandler); + public void start(I iface, getGridFTPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getGridFTPDataMovement(args.dataMovementId,resultHandler); } } - public static class deleteDataMovementInterface extends org.apache.thrift.AsyncProcessFunction { - public deleteDataMovementInterface() { - super("deleteDataMovementInterface"); + public static class changeJobSubmissionPriority extends org.apache.thrift.AsyncProcessFunction { + public changeJobSubmissionPriority() { + super("changeJobSubmissionPriority"); } - public deleteDataMovementInterface_args getEmptyArgsInstance() { - return new deleteDataMovementInterface_args(); + public changeJobSubmissionPriority_args getEmptyArgsInstance() { + return new changeJobSubmissionPriority_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); + changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19380,7 +21116,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); + changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19416,26 +21152,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteDataMovementInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteDataMovementInterface(args.computeResourceId, args.dataMovementInterfaceId,resultHandler); + public void start(I iface, changeJobSubmissionPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeJobSubmissionPriority(args.jobSubmissionInterfaceId, args.newPriorityOrder,resultHandler); } } - public static class registerResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public registerResourceJobManager() { - super("registerResourceJobManager"); + public static class changeDataMovementPriority extends org.apache.thrift.AsyncProcessFunction { + public changeDataMovementPriority() { + super("changeDataMovementPriority"); } - public registerResourceJobManager_args getEmptyArgsInstance() { - return new registerResourceJobManager_args(); + public changeDataMovementPriority_args getEmptyArgsInstance() { + return new changeDataMovementPriority_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerResourceJobManager_result result = new registerResourceJobManager_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + changeDataMovementPriority_result result = new changeDataMovementPriority_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19447,7 +21184,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerResourceJobManager_result result = new registerResourceJobManager_result(); + changeDataMovementPriority_result result = new changeDataMovementPriority_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19483,25 +21220,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerResourceJobManager(args.resourceJobManager,resultHandler); + public void start(I iface, changeDataMovementPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeDataMovementPriority(args.dataMovementInterfaceId, args.newPriorityOrder,resultHandler); } } - public static class updateResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public updateResourceJobManager() { - super("updateResourceJobManager"); + public static class changeJobSubmissionPriorities extends org.apache.thrift.AsyncProcessFunction { + public changeJobSubmissionPriorities() { + super("changeJobSubmissionPriorities"); } - public updateResourceJobManager_args getEmptyArgsInstance() { - return new updateResourceJobManager_args(); + public changeJobSubmissionPriorities_args getEmptyArgsInstance() { + return new changeJobSubmissionPriorities_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - updateResourceJobManager_result result = new updateResourceJobManager_result(); + changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19515,7 +21252,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateResourceJobManager_result result = new updateResourceJobManager_result(); + changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19551,26 +21288,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateResourceJobManager(args.resourceJobManagerId, args.updatedResourceJobManager,resultHandler); + public void start(I iface, changeJobSubmissionPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeJobSubmissionPriorities(args.jobSubmissionPriorityMap,resultHandler); } } - public static class getResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public getResourceJobManager() { - super("getResourceJobManager"); + public static class changeDataMovementPriorities extends org.apache.thrift.AsyncProcessFunction { + public changeDataMovementPriorities() { + super("changeDataMovementPriorities"); } - public getResourceJobManager_args getEmptyArgsInstance() { - return new getResourceJobManager_args(); + public changeDataMovementPriorities_args getEmptyArgsInstance() { + return new changeDataMovementPriorities_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager o) { - getResourceJobManager_result result = new getResourceJobManager_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19582,7 +21320,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Reso public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getResourceJobManager_result result = new getResourceJobManager_result(); + changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19618,25 +21356,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getResourceJobManager(args.resourceJobManagerId,resultHandler); + public void start(I iface, changeDataMovementPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeDataMovementPriorities(args.dataMovementPriorityMap,resultHandler); } } - public static class deleteResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public deleteResourceJobManager() { - super("deleteResourceJobManager"); + public static class deleteJobSubmissionInterface extends org.apache.thrift.AsyncProcessFunction { + public deleteJobSubmissionInterface() { + super("deleteJobSubmissionInterface"); } - public deleteResourceJobManager_args getEmptyArgsInstance() { - return new deleteResourceJobManager_args(); + public deleteJobSubmissionInterface_args getEmptyArgsInstance() { + return new deleteJobSubmissionInterface_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteResourceJobManager_result result = new deleteResourceJobManager_result(); + deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19650,7 +21388,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteResourceJobManager_result result = new deleteResourceJobManager_result(); + deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19686,25 +21424,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteResourceJobManager(args.resourceJobManagerId,resultHandler); + public void start(I iface, deleteJobSubmissionInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteJobSubmissionInterface(args.computeResourceId, args.jobSubmissionInterfaceId,resultHandler); } } - public static class deleteBatchQueue extends org.apache.thrift.AsyncProcessFunction { - public deleteBatchQueue() { - super("deleteBatchQueue"); + public static class deleteDataMovementInterface extends org.apache.thrift.AsyncProcessFunction { + public deleteDataMovementInterface() { + super("deleteDataMovementInterface"); } - public deleteBatchQueue_args getEmptyArgsInstance() { - return new deleteBatchQueue_args(); + public deleteDataMovementInterface_args getEmptyArgsInstance() { + return new deleteDataMovementInterface_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteBatchQueue_result result = new deleteBatchQueue_result(); + deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19718,7 +21456,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteBatchQueue_result result = new deleteBatchQueue_result(); + deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19754,25 +21492,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteBatchQueue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteBatchQueue(args.computeResourceId, args.queueName,resultHandler); + public void start(I iface, deleteDataMovementInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteDataMovementInterface(args.computeResourceId, args.dataMovementInterfaceId,resultHandler); } } - public static class registerGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public registerGatewayResourceProfile() { - super("registerGatewayResourceProfile"); + public static class registerResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public registerResourceJobManager() { + super("registerResourceJobManager"); } - public registerGatewayResourceProfile_args getEmptyArgsInstance() { - return new registerGatewayResourceProfile_args(); + public registerResourceJobManager_args getEmptyArgsInstance() { + return new registerResourceJobManager_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); + registerResourceJobManager_result result = new registerResourceJobManager_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -19785,7 +21523,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); + registerResourceJobManager_result result = new registerResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19821,26 +21559,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerGatewayResourceProfile(args.gatewayResourceProfile,resultHandler); + public void start(I iface, registerResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerResourceJobManager(args.resourceJobManager,resultHandler); } } - public static class getGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public getGatewayResourceProfile() { - super("getGatewayResourceProfile"); + public static class updateResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public updateResourceJobManager() { + super("updateResourceJobManager"); } - public getGatewayResourceProfile_args getEmptyArgsInstance() { - return new getGatewayResourceProfile_args(); + public updateResourceJobManager_args getEmptyArgsInstance() { + return new updateResourceJobManager_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile o) { - getGatewayResourceProfile_result result = new getGatewayResourceProfile_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateResourceJobManager_result result = new updateResourceJobManager_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19852,7 +21591,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.Gatew public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getGatewayResourceProfile_result result = new getGatewayResourceProfile_result(); + updateResourceJobManager_result result = new updateResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19888,27 +21627,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getGatewayResourceProfile(args.gatewayID,resultHandler); + public void start(I iface, updateResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateResourceJobManager(args.resourceJobManagerId, args.updatedResourceJobManager,resultHandler); } } - public static class updateGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public updateGatewayResourceProfile() { - super("updateGatewayResourceProfile"); + public static class getResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public getResourceJobManager() { + super("getResourceJobManager"); } - public updateGatewayResourceProfile_args getEmptyArgsInstance() { - return new updateGatewayResourceProfile_args(); + public getResourceJobManager_args getEmptyArgsInstance() { + return new getResourceJobManager_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateGatewayResourceProfile_result result = new updateGatewayResourceProfile_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager o) { + getResourceJobManager_result result = new getResourceJobManager_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19920,7 +21658,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateGatewayResourceProfile_result result = new updateGatewayResourceProfile_result(); + getResourceJobManager_result result = new getResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19956,25 +21694,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateGatewayResourceProfile(args.gatewayID, args.gatewayResourceProfile,resultHandler); + public void start(I iface, getResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getResourceJobManager(args.resourceJobManagerId,resultHandler); } } - public static class deleteGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public deleteGatewayResourceProfile() { - super("deleteGatewayResourceProfile"); + public static class deleteResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public deleteResourceJobManager() { + super("deleteResourceJobManager"); } - public deleteGatewayResourceProfile_args getEmptyArgsInstance() { - return new deleteGatewayResourceProfile_args(); + public deleteResourceJobManager_args getEmptyArgsInstance() { + return new deleteResourceJobManager_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); + deleteResourceJobManager_result result = new deleteResourceJobManager_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19988,7 +21726,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); + deleteResourceJobManager_result result = new deleteResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20024,25 +21762,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteGatewayResourceProfile(args.gatewayID,resultHandler); + public void start(I iface, deleteResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteResourceJobManager(args.resourceJobManagerId,resultHandler); } } - public static class addGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public addGatewayComputeResourcePreference() { - super("addGatewayComputeResourcePreference"); + public static class deleteBatchQueue extends org.apache.thrift.AsyncProcessFunction { + public deleteBatchQueue() { + super("deleteBatchQueue"); } - public addGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new addGatewayComputeResourcePreference_args(); + public deleteBatchQueue_args getEmptyArgsInstance() { + return new deleteBatchQueue_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); + deleteBatchQueue_result result = new deleteBatchQueue_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -20056,7 +21794,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); + deleteBatchQueue_result result = new deleteBatchQueue_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20092,25 +21830,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, addGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); + public void start(I iface, deleteBatchQueue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteBatchQueue(args.computeResourceId, args.queueName,resultHandler); } } - public static class getGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public getGatewayComputeResourcePreference() { - super("getGatewayComputeResourcePreference"); + public static class registerGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public registerGatewayResourceProfile() { + super("registerGatewayResourceProfile"); } - public getGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new getGatewayComputeResourcePreference_args(); + public registerGatewayResourceProfile_args getEmptyArgsInstance() { + return new registerGatewayResourceProfile_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference o) { - getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20123,7 +21861,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.Compu public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); + registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20159,25 +21897,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId,resultHandler); + public void start(I iface, registerGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerGatewayResourceProfile(args.gatewayResourceProfile,resultHandler); } } - public static class getAllGatewayComputeResourcePreferences extends org.apache.thrift.AsyncProcessFunction> { - public getAllGatewayComputeResourcePreferences() { - super("getAllGatewayComputeResourcePreferences"); + public static class getGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public getGatewayResourceProfile() { + super("getGatewayResourceProfile"); } - public getAllGatewayComputeResourcePreferences_args getEmptyArgsInstance() { - return new getAllGatewayComputeResourcePreferences_args(); + public getGatewayResourceProfile_args getEmptyArgsInstance() { + return new getGatewayResourceProfile_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllGatewayComputeResourcePreferences_result result = new getAllGatewayComputeResourcePreferences_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile o) { + getGatewayResourceProfile_result result = new getGatewayResourceProfile_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20190,7 +21928,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllGatewayComputeResourcePreferences(args.gatewayID,resultHandler); + public void start(I iface, getGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getGatewayResourceProfile(args.gatewayID,resultHandler); } } - public static class getAllGatewayComputeResources extends org.apache.thrift.AsyncProcessFunction> { - public getAllGatewayComputeResources() { - super("getAllGatewayComputeResources"); + public static class updateGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public updateGatewayResourceProfile() { + super("updateGatewayResourceProfile"); } - public getAllGatewayComputeResources_args getEmptyArgsInstance() { - return new getAllGatewayComputeResources_args(); + public updateGatewayResourceProfile_args getEmptyArgsInstance() { + return new updateGatewayResourceProfile_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllGatewayComputeResources_result result = new getAllGatewayComputeResources_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateGatewayResourceProfile_result result = new updateGatewayResourceProfile_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20257,7 +21996,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllGatewayComputeResources(resultHandler); + public void start(I iface, updateGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateGatewayResourceProfile(args.gatewayID, args.gatewayResourceProfile,resultHandler); } } - public static class updateGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public updateGatewayComputeResourcePreference() { - super("updateGatewayComputeResourcePreference"); + public static class deleteGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public deleteGatewayResourceProfile() { + super("deleteGatewayResourceProfile"); } - public updateGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new updateGatewayComputeResourcePreference_args(); + public deleteGatewayResourceProfile_args getEmptyArgsInstance() { + return new deleteGatewayResourceProfile_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); + deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -20325,7 +22064,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); + deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20361,25 +22100,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); + public void start(I iface, deleteGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteGatewayResourceProfile(args.gatewayID,resultHandler); } } - public static class deleteGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public deleteGatewayComputeResourcePreference() { - super("deleteGatewayComputeResourcePreference"); + public static class addGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public addGatewayComputeResourcePreference() { + super("addGatewayComputeResourcePreference"); } - public deleteGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new deleteGatewayComputeResourcePreference_args(); + public addGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new addGatewayComputeResourcePreference_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); + addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -20393,7 +22132,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); + addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20429,25 +22168,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId,resultHandler); + public void start(I iface, addGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); } } - public static class getAllWorkflows extends org.apache.thrift.AsyncProcessFunction> { - public getAllWorkflows() { - super("getAllWorkflows"); + public static class getGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public getGatewayComputeResourcePreference() { + super("getGatewayComputeResourcePreference"); } - public getAllWorkflows_args getEmptyArgsInstance() { - return new getAllWorkflows_args(); + public getGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new getGatewayComputeResourcePreference_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllWorkflows_result result = new getAllWorkflows_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference o) { + getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20460,7 +22199,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAllWorkflows_result result = new getAllWorkflows_result(); + getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20496,25 +22235,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAllWorkflows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllWorkflows(args.gatewayId,resultHandler); + public void start(I iface, getGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId,resultHandler); } } - public static class getWorkflow extends org.apache.thrift.AsyncProcessFunction { - public getWorkflow() { - super("getWorkflow"); + public static class getAllGatewayComputeResourcePreferences extends org.apache.thrift.AsyncProcessFunction> { + public getAllGatewayComputeResourcePreferences() { + super("getAllGatewayComputeResourcePreferences"); } - public getWorkflow_args getEmptyArgsInstance() { - return new getWorkflow_args(); + public getAllGatewayComputeResourcePreferences_args getEmptyArgsInstance() { + return new getAllGatewayComputeResourcePreferences_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.Workflow o) { - getWorkflow_result result = new getWorkflow_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllGatewayComputeResourcePreferences_result result = new getAllGatewayComputeResourcePreferences_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20527,7 +22266,7 @@ public void onComplete(org.apache.airavata.model.Workflow o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getWorkflow_result result = new getWorkflow_result(); + getAllGatewayComputeResourcePreferences_result result = new getAllGatewayComputeResourcePreferences_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20563,25 +22302,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getWorkflow(args.workflowTemplateId,resultHandler); + public void start(I iface, getAllGatewayComputeResourcePreferences_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllGatewayComputeResourcePreferences(args.gatewayID,resultHandler); } } - public static class deleteWorkflow extends org.apache.thrift.AsyncProcessFunction { - public deleteWorkflow() { - super("deleteWorkflow"); + public static class getAllGatewayComputeResources extends org.apache.thrift.AsyncProcessFunction> { + public getAllGatewayComputeResources() { + super("getAllGatewayComputeResources"); } - public deleteWorkflow_args getEmptyArgsInstance() { - return new deleteWorkflow_args(); + public getAllGatewayComputeResources_args getEmptyArgsInstance() { + return new getAllGatewayComputeResources_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteWorkflow_result result = new deleteWorkflow_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllGatewayComputeResources_result result = new getAllGatewayComputeResources_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20593,7 +22333,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteWorkflow_result result = new deleteWorkflow_result(); + getAllGatewayComputeResources_result result = new getAllGatewayComputeResources_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20629,26 +22369,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteWorkflow(args.workflowTemplateId,resultHandler); + public void start(I iface, getAllGatewayComputeResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllGatewayComputeResources(resultHandler); } } - public static class registerWorkflow extends org.apache.thrift.AsyncProcessFunction { - public registerWorkflow() { - super("registerWorkflow"); + public static class updateGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public updateGatewayComputeResourcePreference() { + super("updateGatewayComputeResourcePreference"); } - public registerWorkflow_args getEmptyArgsInstance() { - return new registerWorkflow_args(); + public updateGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new updateGatewayComputeResourcePreference_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerWorkflow_result result = new registerWorkflow_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20660,7 +22401,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerWorkflow_result result = new registerWorkflow_result(); + updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20696,25 +22437,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerWorkflow(args.gatewayId, args.workflow,resultHandler); + public void start(I iface, updateGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); } } - public static class updateWorkflow extends org.apache.thrift.AsyncProcessFunction { - public updateWorkflow() { - super("updateWorkflow"); + public static class deleteGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public deleteGatewayComputeResourcePreference() { + super("deleteGatewayComputeResourcePreference"); } - public updateWorkflow_args getEmptyArgsInstance() { - return new updateWorkflow_args(); + public deleteGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new deleteGatewayComputeResourcePreference_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateWorkflow_result result = new updateWorkflow_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); + result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20726,7 +22469,340 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateWorkflow_result result = new updateWorkflow_result(); + deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId,resultHandler); + } + } + + public static class getAllWorkflows extends org.apache.thrift.AsyncProcessFunction> { + public getAllWorkflows() { + super("getAllWorkflows"); + } + + public getAllWorkflows_args getEmptyArgsInstance() { + return new getAllWorkflows_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllWorkflows_result result = new getAllWorkflows_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getAllWorkflows_result result = new getAllWorkflows_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getAllWorkflows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllWorkflows(args.gatewayId,resultHandler); + } + } + + public static class getWorkflow extends org.apache.thrift.AsyncProcessFunction { + public getWorkflow() { + super("getWorkflow"); + } + + public getWorkflow_args getEmptyArgsInstance() { + return new getWorkflow_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.Workflow o) { + getWorkflow_result result = new getWorkflow_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getWorkflow_result result = new getWorkflow_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getWorkflow(args.workflowTemplateId,resultHandler); + } + } + + public static class deleteWorkflow extends org.apache.thrift.AsyncProcessFunction { + public deleteWorkflow() { + super("deleteWorkflow"); + } + + public deleteWorkflow_args getEmptyArgsInstance() { + return new deleteWorkflow_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteWorkflow_result result = new deleteWorkflow_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteWorkflow_result result = new deleteWorkflow_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteWorkflow(args.workflowTemplateId,resultHandler); + } + } + + public static class registerWorkflow extends org.apache.thrift.AsyncProcessFunction { + public registerWorkflow() { + super("registerWorkflow"); + } + + public registerWorkflow_args getEmptyArgsInstance() { + return new registerWorkflow_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerWorkflow_result result = new registerWorkflow_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + registerWorkflow_result result = new registerWorkflow_result(); + if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { + result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; + } + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, registerWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerWorkflow(args.gatewayId, args.workflow,resultHandler); + } + } + + public static class updateWorkflow extends org.apache.thrift.AsyncProcessFunction { + public updateWorkflow() { + super("updateWorkflow"); + } + + public updateWorkflow_args getEmptyArgsInstance() { + return new updateWorkflow_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateWorkflow_result result = new updateWorkflow_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + updateWorkflow_result result = new updateWorkflow_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -36583,28 +38659,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_r } - public static class searchProjectsByProjectName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_args"); + public static class getAllUserProjectsWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserProjectsWithPagination_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectName_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectName_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUserProjectsWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUserProjectsWithPagination_argsTupleSchemeFactory()); } public String gatewayId; // required public String userName; // required - public String projectName; // required + public int limit; // required + public int offset; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { GATEWAY_ID((short)1, "gatewayId"), USER_NAME((short)2, "userName"), - PROJECT_NAME((short)3, "projectName"); + LIMIT((short)3, "limit"), + OFFSET((short)4, "offset"); private static final Map byName = new HashMap(); @@ -36623,8 +38702,10 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 2: // USER_NAME return USER_NAME; - case 3: // PROJECT_NAME - return PROJECT_NAME; + case 3: // LIMIT + return LIMIT; + case 4: // OFFSET + return OFFSET; default: return null; } @@ -36665,6 +38746,9 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -36672,57 +38756,66 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserProjectsWithPagination_args.class, metaDataMap); } - public searchProjectsByProjectName_args() { + public getAllUserProjectsWithPagination_args() { } - public searchProjectsByProjectName_args( + public getAllUserProjectsWithPagination_args( String gatewayId, String userName, - String projectName) + int limit, + int offset) { this(); this.gatewayId = gatewayId; this.userName = userName; - this.projectName = projectName; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchProjectsByProjectName_args(searchProjectsByProjectName_args other) { + public getAllUserProjectsWithPagination_args(getAllUserProjectsWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetProjectName()) { - this.projectName = other.projectName; - } + this.limit = other.limit; + this.offset = other.offset; } - public searchProjectsByProjectName_args deepCopy() { - return new searchProjectsByProjectName_args(this); + public getAllUserProjectsWithPagination_args deepCopy() { + return new getAllUserProjectsWithPagination_args(this); } @Override public void clear() { this.gatewayId = null; this.userName = null; - this.projectName = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; } public String getGatewayId() { return this.gatewayId; } - public searchProjectsByProjectName_args setGatewayId(String gatewayId) { + public getAllUserProjectsWithPagination_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -36746,7 +38839,7 @@ public String getUserName() { return this.userName; } - public searchProjectsByProjectName_args setUserName(String userName) { + public getAllUserProjectsWithPagination_args setUserName(String userName) { this.userName = userName; return this; } @@ -36766,28 +38859,50 @@ public void setUserNameIsSet(boolean value) { } } - public String getProjectName() { - return this.projectName; + public int getLimit() { + return this.limit; } - public searchProjectsByProjectName_args setProjectName(String projectName) { - this.projectName = projectName; + public getAllUserProjectsWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); return this; } - public void unsetProjectName() { - this.projectName = null; + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); } - /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ - public boolean isSetProjectName() { - return this.projectName != null; + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); } - public void setProjectNameIsSet(boolean value) { - if (!value) { - this.projectName = null; - } + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public getAllUserProjectsWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -36808,11 +38923,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PROJECT_NAME: + case LIMIT: if (value == null) { - unsetProjectName(); + unsetLimit(); } else { - setProjectName((String)value); + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -36827,8 +38950,11 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case PROJECT_NAME: - return getProjectName(); + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -36845,8 +38971,10 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case PROJECT_NAME: - return isSetProjectName(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -36855,12 +38983,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectName_args) - return this.equals((searchProjectsByProjectName_args)that); + if (that instanceof getAllUserProjectsWithPagination_args) + return this.equals((getAllUserProjectsWithPagination_args)that); return false; } - public boolean equals(searchProjectsByProjectName_args that) { + public boolean equals(getAllUserProjectsWithPagination_args that) { if (that == null) return false; @@ -36882,12 +39010,21 @@ public boolean equals(searchProjectsByProjectName_args that) { return false; } - boolean this_present_projectName = true && this.isSetProjectName(); - boolean that_present_projectName = true && that.isSetProjectName(); - if (this_present_projectName || that_present_projectName) { - if (!(this_present_projectName && that_present_projectName)) + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) return false; - if (!this.projectName.equals(that.projectName)) + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -36900,7 +39037,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectName_args other) { + public int compareTo(getAllUserProjectsWithPagination_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -36927,12 +39064,22 @@ public int compareTo(searchProjectsByProjectName_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); if (lastComparison != 0) { return lastComparison; } - if (isSetProjectName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -36954,7 +39101,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectName_args("); + StringBuilder sb = new StringBuilder("getAllUserProjectsWithPagination_args("); boolean first = true; sb.append("gatewayId:"); @@ -36973,12 +39120,12 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("projectName:"); - if (this.projectName == null) { - sb.append("null"); - } else { - sb.append(this.projectName); - } + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); first = false; sb.append(")"); return sb.toString(); @@ -36992,9 +39139,8 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (projectName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectName' was not present! Struct: " + toString()); - } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity } @@ -37008,21 +39154,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class searchProjectsByProjectName_argsStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_argsStandardScheme getScheme() { - return new searchProjectsByProjectName_argsStandardScheme(); + private static class getAllUserProjectsWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public getAllUserProjectsWithPagination_argsStandardScheme getScheme() { + return new getAllUserProjectsWithPagination_argsStandardScheme(); } } - private static class searchProjectsByProjectName_argsStandardScheme extends StandardScheme { + private static class getAllUserProjectsWithPagination_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37048,10 +39196,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PROJECT_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.projectName = iprot.readString(); - struct.setProjectNameIsSet(true); + case 3: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -37064,10 +39220,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37081,49 +39243,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.projectName != null) { - oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); - oprot.writeString(struct.projectName); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class searchProjectsByProjectName_argsTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_argsTupleScheme getScheme() { - return new searchProjectsByProjectName_argsTupleScheme(); + private static class getAllUserProjectsWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public getAllUserProjectsWithPagination_argsTupleScheme getScheme() { + return new getAllUserProjectsWithPagination_argsTupleScheme(); } } - private static class searchProjectsByProjectName_argsTupleScheme extends TupleScheme { + private static class getAllUserProjectsWithPagination_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.projectName); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.projectName = iprot.readString(); - struct.setProjectNameIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class searchProjectsByProjectName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_result"); + public static class getAllUserProjectsWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserProjectsWithPagination_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -37132,8 +39298,8 @@ public static class searchProjectsByProjectName_result implements org.apache.thr private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectName_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectName_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUserProjectsWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUserProjectsWithPagination_resultTupleSchemeFactory()); } public List success; // required @@ -37222,13 +39388,13 @@ public String getFieldName() { tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserProjectsWithPagination_result.class, metaDataMap); } - public searchProjectsByProjectName_result() { + public getAllUserProjectsWithPagination_result() { } - public searchProjectsByProjectName_result( + public getAllUserProjectsWithPagination_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, @@ -37244,7 +39410,7 @@ public searchProjectsByProjectName_result( /** * Performs a deep copy on other. */ - public searchProjectsByProjectName_result(searchProjectsByProjectName_result other) { + public getAllUserProjectsWithPagination_result(getAllUserProjectsWithPagination_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.Project other_element : other.success) { @@ -37263,8 +39429,8 @@ public searchProjectsByProjectName_result(searchProjectsByProjectName_result oth } } - public searchProjectsByProjectName_result deepCopy() { - return new searchProjectsByProjectName_result(this); + public getAllUserProjectsWithPagination_result deepCopy() { + return new getAllUserProjectsWithPagination_result(this); } @Override @@ -37294,7 +39460,7 @@ public List getSuccess() { return this.success; } - public searchProjectsByProjectName_result setSuccess(List success) { + public getAllUserProjectsWithPagination_result setSuccess(List success) { this.success = success; return this; } @@ -37318,7 +39484,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchProjectsByProjectName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getAllUserProjectsWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -37342,7 +39508,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchProjectsByProjectName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getAllUserProjectsWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -37366,7 +39532,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchProjectsByProjectName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getAllUserProjectsWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -37464,12 +39630,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectName_result) - return this.equals((searchProjectsByProjectName_result)that); + if (that instanceof getAllUserProjectsWithPagination_result) + return this.equals((getAllUserProjectsWithPagination_result)that); return false; } - public boolean equals(searchProjectsByProjectName_result that) { + public boolean equals(getAllUserProjectsWithPagination_result that) { if (that == null) return false; @@ -37518,7 +39684,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectName_result other) { + public int compareTo(getAllUserProjectsWithPagination_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -37582,7 +39748,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectName_result("); + StringBuilder sb = new StringBuilder("getAllUserProjectsWithPagination_result("); boolean first = true; sb.append("success:"); @@ -37641,15 +39807,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectName_resultStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_resultStandardScheme getScheme() { - return new searchProjectsByProjectName_resultStandardScheme(); + private static class getAllUserProjectsWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public getAllUserProjectsWithPagination_resultStandardScheme getScheme() { + return new getAllUserProjectsWithPagination_resultStandardScheme(); } } - private static class searchProjectsByProjectName_resultStandardScheme extends StandardScheme { + private static class getAllUserProjectsWithPagination_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37716,7 +39882,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37753,16 +39919,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr } - private static class searchProjectsByProjectName_resultTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_resultTupleScheme getScheme() { - return new searchProjectsByProjectName_resultTupleScheme(); + private static class getAllUserProjectsWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public getAllUserProjectsWithPagination_resultTupleScheme getScheme() { + return new getAllUserProjectsWithPagination_resultTupleScheme(); } } - private static class searchProjectsByProjectName_resultTupleScheme extends TupleScheme { + private static class getAllUserProjectsWithPagination_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -37799,7 +39965,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -37836,28 +40002,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj } - public static class searchProjectsByProjectDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_args"); + public static class searchProjectsByProjectName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectName_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectName_argsTupleSchemeFactory()); } public String gatewayId; // required public String userName; // required - public String description; // required + public String projectName; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { GATEWAY_ID((short)1, "gatewayId"), USER_NAME((short)2, "userName"), - DESCRIPTION((short)3, "description"); + PROJECT_NAME((short)3, "projectName"); private static final Map byName = new HashMap(); @@ -37876,8 +40042,8 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 2: // USER_NAME return USER_NAME; - case 3: // DESCRIPTION - return DESCRIPTION; + case 3: // PROJECT_NAME + return PROJECT_NAME; default: return null; } @@ -37925,57 +40091,57 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, + tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_args.class, metaDataMap); } - public searchProjectsByProjectDesc_args() { + public searchProjectsByProjectName_args() { } - public searchProjectsByProjectDesc_args( + public searchProjectsByProjectName_args( String gatewayId, String userName, - String description) + String projectName) { this(); this.gatewayId = gatewayId; this.userName = userName; - this.description = description; + this.projectName = projectName; } /** * Performs a deep copy on other. */ - public searchProjectsByProjectDesc_args(searchProjectsByProjectDesc_args other) { + public searchProjectsByProjectName_args(searchProjectsByProjectName_args other) { if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetDescription()) { - this.description = other.description; + if (other.isSetProjectName()) { + this.projectName = other.projectName; } } - public searchProjectsByProjectDesc_args deepCopy() { - return new searchProjectsByProjectDesc_args(this); + public searchProjectsByProjectName_args deepCopy() { + return new searchProjectsByProjectName_args(this); } @Override public void clear() { this.gatewayId = null; this.userName = null; - this.description = null; + this.projectName = null; } public String getGatewayId() { return this.gatewayId; } - public searchProjectsByProjectDesc_args setGatewayId(String gatewayId) { + public searchProjectsByProjectName_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -37999,7 +40165,7 @@ public String getUserName() { return this.userName; } - public searchProjectsByProjectDesc_args setUserName(String userName) { + public searchProjectsByProjectName_args setUserName(String userName) { this.userName = userName; return this; } @@ -38019,27 +40185,27 @@ public void setUserNameIsSet(boolean value) { } } - public String getDescription() { - return this.description; + public String getProjectName() { + return this.projectName; } - public searchProjectsByProjectDesc_args setDescription(String description) { - this.description = description; + public searchProjectsByProjectName_args setProjectName(String projectName) { + this.projectName = projectName; return this; } - public void unsetDescription() { - this.description = null; + public void unsetProjectName() { + this.projectName = null; } - /** Returns true if field description is set (has been assigned a value) and false otherwise */ - public boolean isSetDescription() { - return this.description != null; + /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ + public boolean isSetProjectName() { + return this.projectName != null; } - public void setDescriptionIsSet(boolean value) { + public void setProjectNameIsSet(boolean value) { if (!value) { - this.description = null; + this.projectName = null; } } @@ -38061,11 +40227,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case DESCRIPTION: + case PROJECT_NAME: if (value == null) { - unsetDescription(); + unsetProjectName(); } else { - setDescription((String)value); + setProjectName((String)value); } break; @@ -38080,8 +40246,8 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case DESCRIPTION: - return getDescription(); + case PROJECT_NAME: + return getProjectName(); } throw new IllegalStateException(); @@ -38098,8 +40264,8 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case DESCRIPTION: - return isSetDescription(); + case PROJECT_NAME: + return isSetProjectName(); } throw new IllegalStateException(); } @@ -38108,12 +40274,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectDesc_args) - return this.equals((searchProjectsByProjectDesc_args)that); + if (that instanceof searchProjectsByProjectName_args) + return this.equals((searchProjectsByProjectName_args)that); return false; } - public boolean equals(searchProjectsByProjectDesc_args that) { + public boolean equals(searchProjectsByProjectName_args that) { if (that == null) return false; @@ -38135,12 +40301,12 @@ public boolean equals(searchProjectsByProjectDesc_args that) { return false; } - boolean this_present_description = true && this.isSetDescription(); - boolean that_present_description = true && that.isSetDescription(); - if (this_present_description || that_present_description) { - if (!(this_present_description && that_present_description)) + boolean this_present_projectName = true && this.isSetProjectName(); + boolean that_present_projectName = true && that.isSetProjectName(); + if (this_present_projectName || that_present_projectName) { + if (!(this_present_projectName && that_present_projectName)) return false; - if (!this.description.equals(that.description)) + if (!this.projectName.equals(that.projectName)) return false; } @@ -38153,7 +40319,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectDesc_args other) { + public int compareTo(searchProjectsByProjectName_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -38180,12 +40346,12 @@ public int compareTo(searchProjectsByProjectDesc_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } - if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + if (isSetProjectName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } @@ -38207,7 +40373,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_args("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectName_args("); boolean first = true; sb.append("gatewayId:"); @@ -38226,11 +40392,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("description:"); - if (this.description == null) { + sb.append("projectName:"); + if (this.projectName == null) { sb.append("null"); } else { - sb.append(this.description); + sb.append(this.projectName); } first = false; sb.append(")"); @@ -38245,8 +40411,8 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (description == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); + if (projectName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectName' was not present! Struct: " + toString()); } // check for sub-struct validity } @@ -38267,15 +40433,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectDesc_argsStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_argsStandardScheme getScheme() { - return new searchProjectsByProjectDesc_argsStandardScheme(); + private static class searchProjectsByProjectName_argsStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_argsStandardScheme getScheme() { + return new searchProjectsByProjectName_argsStandardScheme(); } } - private static class searchProjectsByProjectDesc_argsStandardScheme extends StandardScheme { + private static class searchProjectsByProjectName_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -38301,10 +40467,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // DESCRIPTION + case 3: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + struct.projectName = iprot.readString(); + struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -38320,7 +40486,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38334,9 +40500,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.description != null) { - oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); - oprot.writeString(struct.description); + if (struct.projectName != null) { + oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); + oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -38345,38 +40511,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr } - private static class searchProjectsByProjectDesc_argsTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_argsTupleScheme getScheme() { - return new searchProjectsByProjectDesc_argsTupleScheme(); + private static class searchProjectsByProjectName_argsTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_argsTupleScheme getScheme() { + return new searchProjectsByProjectName_argsTupleScheme(); } } - private static class searchProjectsByProjectDesc_argsTupleScheme extends TupleScheme { + private static class searchProjectsByProjectName_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.description); + oprot.writeString(struct.projectName); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + struct.projectName = iprot.readString(); + struct.setProjectNameIsSet(true); } } } - public static class searchProjectsByProjectDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_result"); + public static class searchProjectsByProjectName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -38385,8 +40551,8 @@ public static class searchProjectsByProjectDesc_result implements org.apache.thr private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectName_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectName_resultTupleSchemeFactory()); } public List success; // required @@ -38475,13 +40641,13 @@ public String getFieldName() { tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_result.class, metaDataMap); } - public searchProjectsByProjectDesc_result() { + public searchProjectsByProjectName_result() { } - public searchProjectsByProjectDesc_result( + public searchProjectsByProjectName_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, @@ -38497,7 +40663,7 @@ public searchProjectsByProjectDesc_result( /** * Performs a deep copy on other. */ - public searchProjectsByProjectDesc_result(searchProjectsByProjectDesc_result other) { + public searchProjectsByProjectName_result(searchProjectsByProjectName_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.Project other_element : other.success) { @@ -38516,8 +40682,8 @@ public searchProjectsByProjectDesc_result(searchProjectsByProjectDesc_result oth } } - public searchProjectsByProjectDesc_result deepCopy() { - return new searchProjectsByProjectDesc_result(this); + public searchProjectsByProjectName_result deepCopy() { + return new searchProjectsByProjectName_result(this); } @Override @@ -38547,7 +40713,7 @@ public List getSuccess() { return this.success; } - public searchProjectsByProjectDesc_result setSuccess(List success) { + public searchProjectsByProjectName_result setSuccess(List success) { this.success = success; return this; } @@ -38571,7 +40737,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchProjectsByProjectDesc_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchProjectsByProjectName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -38595,7 +40761,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchProjectsByProjectDesc_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchProjectsByProjectName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -38619,7 +40785,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchProjectsByProjectDesc_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchProjectsByProjectName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -38717,12 +40883,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectDesc_result) - return this.equals((searchProjectsByProjectDesc_result)that); + if (that instanceof searchProjectsByProjectName_result) + return this.equals((searchProjectsByProjectName_result)that); return false; } - public boolean equals(searchProjectsByProjectDesc_result that) { + public boolean equals(searchProjectsByProjectName_result that) { if (that == null) return false; @@ -38771,7 +40937,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectDesc_result other) { + public int compareTo(searchProjectsByProjectName_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -38835,7 +41001,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_result("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectName_result("); boolean first = true; sb.append("success:"); @@ -38894,15 +41060,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectDesc_resultStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_resultStandardScheme getScheme() { - return new searchProjectsByProjectDesc_resultStandardScheme(); + private static class searchProjectsByProjectName_resultStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_resultStandardScheme getScheme() { + return new searchProjectsByProjectName_resultStandardScheme(); } } - private static class searchProjectsByProjectDesc_resultStandardScheme extends StandardScheme { + private static class searchProjectsByProjectName_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -38969,7 +41135,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -39006,16 +41172,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr } - private static class searchProjectsByProjectDesc_resultTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_resultTupleScheme getScheme() { - return new searchProjectsByProjectDesc_resultTupleScheme(); + private static class searchProjectsByProjectName_resultTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_resultTupleScheme getScheme() { + return new searchProjectsByProjectName_resultTupleScheme(); } } - private static class searchProjectsByProjectDesc_resultTupleScheme extends TupleScheme { + private static class searchProjectsByProjectName_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -39052,7 +41218,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -39089,28 +41255,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj } - public static class searchExperimentsByName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_args"); + public static class searchProjectsByProjectNameWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectNameWithPagination_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField EXP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("expName", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByName_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByName_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectNameWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectNameWithPagination_argsTupleSchemeFactory()); } public String gatewayId; // required public String userName; // required - public String expName; // required + public String projectName; // required + public int limit; // required + public int offset; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { GATEWAY_ID((short)1, "gatewayId"), USER_NAME((short)2, "userName"), - EXP_NAME((short)3, "expName"); + PROJECT_NAME((short)3, "projectName"), + LIMIT((short)4, "limit"), + OFFSET((short)5, "offset"); private static final Map byName = new HashMap(); @@ -39129,8 +41301,12 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 2: // USER_NAME return USER_NAME; - case 3: // EXP_NAME - return EXP_NAME; + case 3: // PROJECT_NAME + return PROJECT_NAME; + case 4: // LIMIT + return LIMIT; + case 5: // OFFSET + return OFFSET; default: return null; } @@ -39171,6 +41347,9 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -39178,57 +41357,74 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.EXP_NAME, new org.apache.thrift.meta_data.FieldMetaData("expName", org.apache.thrift.TFieldRequirementType.REQUIRED, + tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectNameWithPagination_args.class, metaDataMap); } - public searchExperimentsByName_args() { + public searchProjectsByProjectNameWithPagination_args() { } - public searchExperimentsByName_args( + public searchProjectsByProjectNameWithPagination_args( String gatewayId, String userName, - String expName) + String projectName, + int limit, + int offset) { this(); this.gatewayId = gatewayId; this.userName = userName; - this.expName = expName; + this.projectName = projectName; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchExperimentsByName_args(searchExperimentsByName_args other) { + public searchProjectsByProjectNameWithPagination_args(searchProjectsByProjectNameWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetExpName()) { - this.expName = other.expName; + if (other.isSetProjectName()) { + this.projectName = other.projectName; } + this.limit = other.limit; + this.offset = other.offset; } - public searchExperimentsByName_args deepCopy() { - return new searchExperimentsByName_args(this); + public searchProjectsByProjectNameWithPagination_args deepCopy() { + return new searchProjectsByProjectNameWithPagination_args(this); } @Override public void clear() { this.gatewayId = null; this.userName = null; - this.expName = null; + this.projectName = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; } public String getGatewayId() { return this.gatewayId; } - public searchExperimentsByName_args setGatewayId(String gatewayId) { + public searchProjectsByProjectNameWithPagination_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -39252,7 +41448,7 @@ public String getUserName() { return this.userName; } - public searchExperimentsByName_args setUserName(String userName) { + public searchProjectsByProjectNameWithPagination_args setUserName(String userName) { this.userName = userName; return this; } @@ -39272,30 +41468,76 @@ public void setUserNameIsSet(boolean value) { } } - public String getExpName() { - return this.expName; + public String getProjectName() { + return this.projectName; } - public searchExperimentsByName_args setExpName(String expName) { - this.expName = expName; + public searchProjectsByProjectNameWithPagination_args setProjectName(String projectName) { + this.projectName = projectName; return this; } - public void unsetExpName() { - this.expName = null; + public void unsetProjectName() { + this.projectName = null; } - /** Returns true if field expName is set (has been assigned a value) and false otherwise */ - public boolean isSetExpName() { - return this.expName != null; + /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ + public boolean isSetProjectName() { + return this.projectName != null; } - public void setExpNameIsSet(boolean value) { + public void setProjectNameIsSet(boolean value) { if (!value) { - this.expName = null; + this.projectName = null; } } + public int getLimit() { + return this.limit; + } + + public searchProjectsByProjectNameWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchProjectsByProjectNameWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case GATEWAY_ID: @@ -39314,11 +41556,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case EXP_NAME: + case PROJECT_NAME: if (value == null) { - unsetExpName(); + unsetProjectName(); } else { - setExpName((String)value); + setProjectName((String)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -39333,8 +41591,14 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case EXP_NAME: - return getExpName(); + case PROJECT_NAME: + return getProjectName(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -39351,8 +41615,12 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case EXP_NAME: - return isSetExpName(); + case PROJECT_NAME: + return isSetProjectName(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -39361,12 +41629,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByName_args) - return this.equals((searchExperimentsByName_args)that); + if (that instanceof searchProjectsByProjectNameWithPagination_args) + return this.equals((searchProjectsByProjectNameWithPagination_args)that); return false; } - public boolean equals(searchExperimentsByName_args that) { + public boolean equals(searchProjectsByProjectNameWithPagination_args that) { if (that == null) return false; @@ -39388,12 +41656,30 @@ public boolean equals(searchExperimentsByName_args that) { return false; } - boolean this_present_expName = true && this.isSetExpName(); - boolean that_present_expName = true && that.isSetExpName(); - if (this_present_expName || that_present_expName) { - if (!(this_present_expName && that_present_expName)) + boolean this_present_projectName = true && this.isSetProjectName(); + boolean that_present_projectName = true && that.isSetProjectName(); + if (this_present_projectName || that_present_projectName) { + if (!(this_present_projectName && that_present_projectName)) return false; - if (!this.expName.equals(that.expName)) + if (!this.projectName.equals(that.projectName)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -39406,7 +41692,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByName_args other) { + public int compareTo(searchProjectsByProjectNameWithPagination_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -39433,12 +41719,32 @@ public int compareTo(searchExperimentsByName_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpName()).compareTo(other.isSetExpName()); + lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } - if (isSetExpName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expName, other.expName); + if (isSetProjectName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -39460,7 +41766,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByName_args("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectNameWithPagination_args("); boolean first = true; sb.append("gatewayId:"); @@ -39479,13 +41785,21 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("expName:"); - if (this.expName == null) { + sb.append("projectName:"); + if (this.projectName == null) { sb.append("null"); } else { - sb.append(this.expName); + sb.append(this.projectName); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; sb.append(")"); return sb.toString(); } @@ -39498,9 +41812,11 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (expName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'expName' was not present! Struct: " + toString()); + if (projectName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectName' was not present! Struct: " + toString()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity } @@ -39514,21 +41830,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class searchExperimentsByName_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByName_argsStandardScheme getScheme() { - return new searchExperimentsByName_argsStandardScheme(); + private static class searchProjectsByProjectNameWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectNameWithPagination_argsStandardScheme getScheme() { + return new searchProjectsByProjectNameWithPagination_argsStandardScheme(); } } - private static class searchExperimentsByName_argsStandardScheme extends StandardScheme { + private static class searchProjectsByProjectNameWithPagination_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -39554,10 +41872,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // EXP_NAME + case 3: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.expName = iprot.readString(); - struct.setExpNameIsSet(true); + struct.projectName = iprot.readString(); + struct.setProjectNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -39570,10 +41904,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -39587,49 +41927,61 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.expName != null) { - oprot.writeFieldBegin(EXP_NAME_FIELD_DESC); - oprot.writeString(struct.expName); + if (struct.projectName != null) { + oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); + oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class searchExperimentsByName_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByName_argsTupleScheme getScheme() { - return new searchExperimentsByName_argsTupleScheme(); + private static class searchProjectsByProjectNameWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectNameWithPagination_argsTupleScheme getScheme() { + return new searchProjectsByProjectNameWithPagination_argsTupleScheme(); } } - private static class searchExperimentsByName_argsTupleScheme extends TupleScheme { + private static class searchProjectsByProjectNameWithPagination_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.expName); + oprot.writeString(struct.projectName); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.expName = iprot.readString(); - struct.setExpNameIsSet(true); + struct.projectName = iprot.readString(); + struct.setProjectNameIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class searchExperimentsByName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_result"); + public static class searchProjectsByProjectNameWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectNameWithPagination_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -39638,11 +41990,11 @@ public static class searchExperimentsByName_result implements org.apache.thrift. private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByName_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByName_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectNameWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectNameWithPagination_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required public org.apache.airavata.model.error.InvalidRequestException ire; // required public org.apache.airavata.model.error.AiravataClientException ace; // required public org.apache.airavata.model.error.AiravataSystemException ase; // required @@ -39720,7 +42072,7 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Project.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -39728,14 +42080,14 @@ public String getFieldName() { tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectNameWithPagination_result.class, metaDataMap); } - public searchExperimentsByName_result() { + public searchProjectsByProjectNameWithPagination_result() { } - public searchExperimentsByName_result( - List success, + public searchProjectsByProjectNameWithPagination_result( + List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, org.apache.airavata.model.error.AiravataSystemException ase) @@ -39750,11 +42102,11 @@ public searchExperimentsByName_result( /** * Performs a deep copy on other. */ - public searchExperimentsByName_result(searchExperimentsByName_result other) { + public searchProjectsByProjectNameWithPagination_result(searchProjectsByProjectNameWithPagination_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { - __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.Project other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.Project(other_element)); } this.success = __this__success; } @@ -39769,8 +42121,8 @@ public searchExperimentsByName_result(searchExperimentsByName_result other) { } } - public searchExperimentsByName_result deepCopy() { - return new searchExperimentsByName_result(this); + public searchProjectsByProjectNameWithPagination_result deepCopy() { + return new searchProjectsByProjectNameWithPagination_result(this); } @Override @@ -39785,22 +42137,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + public void addToSuccess(org.apache.airavata.model.workspace.Project elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public searchExperimentsByName_result setSuccess(List success) { + public searchProjectsByProjectNameWithPagination_result setSuccess(List success) { this.success = success; return this; } @@ -39824,7 +42176,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchExperimentsByName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchProjectsByProjectNameWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -39848,7 +42200,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchExperimentsByName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchProjectsByProjectNameWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -39872,7 +42224,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchExperimentsByName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchProjectsByProjectNameWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -39898,7 +42250,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -39970,12 +42322,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByName_result) - return this.equals((searchExperimentsByName_result)that); + if (that instanceof searchProjectsByProjectNameWithPagination_result) + return this.equals((searchProjectsByProjectNameWithPagination_result)that); return false; } - public boolean equals(searchExperimentsByName_result that) { + public boolean equals(searchProjectsByProjectNameWithPagination_result that) { if (that == null) return false; @@ -40024,7 +42376,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByName_result other) { + public int compareTo(searchProjectsByProjectNameWithPagination_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -40088,7 +42440,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByName_result("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectNameWithPagination_result("); boolean first = true; sb.append("success:"); @@ -40147,15 +42499,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByName_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByName_resultStandardScheme getScheme() { - return new searchExperimentsByName_resultStandardScheme(); + private static class searchProjectsByProjectNameWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectNameWithPagination_resultStandardScheme getScheme() { + return new searchProjectsByProjectNameWithPagination_resultStandardScheme(); } } - private static class searchExperimentsByName_resultStandardScheme extends StandardScheme { + private static class searchProjectsByProjectNameWithPagination_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40169,11 +42521,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list42 = iprot.readListBegin(); - struct.success = new ArrayList(_list42.size); + struct.success = new ArrayList(_list42.size); for (int _i43 = 0; _i43 < _list42.size; ++_i43) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem44; - _elem44 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + org.apache.airavata.model.workspace.Project _elem44; + _elem44 = new org.apache.airavata.model.workspace.Project(); _elem44.read(iprot); struct.success.add(_elem44); } @@ -40222,7 +42574,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -40230,7 +42582,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter45 : struct.success) + for (org.apache.airavata.model.workspace.Project _iter45 : struct.success) { _iter45.write(oprot); } @@ -40259,16 +42611,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByName_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByName_resultTupleScheme getScheme() { - return new searchExperimentsByName_resultTupleScheme(); + private static class searchProjectsByProjectNameWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectNameWithPagination_resultTupleScheme getScheme() { + return new searchProjectsByProjectNameWithPagination_resultTupleScheme(); } } - private static class searchExperimentsByName_resultTupleScheme extends TupleScheme { + private static class searchProjectsByProjectNameWithPagination_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -40287,7 +42639,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter46 : struct.success) + for (org.apache.airavata.model.workspace.Project _iter46 : struct.success) { _iter46.write(oprot); } @@ -40305,17 +42657,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list47 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list47.size); + struct.success = new ArrayList(_list47.size); for (int _i48 = 0; _i48 < _list47.size; ++_i48) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem49; - _elem49 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + org.apache.airavata.model.workspace.Project _elem49; + _elem49 = new org.apache.airavata.model.workspace.Project(); _elem49.read(iprot); struct.success.add(_elem49); } @@ -40342,8 +42694,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByN } - public static class searchExperimentsByDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_args"); + public static class searchProjectsByProjectDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); @@ -40351,8 +42703,8 @@ public static class searchExperimentsByDesc_args implements org.apache.thrift.TB private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByDesc_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByDesc_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_argsTupleSchemeFactory()); } public String gatewayId; // required @@ -40434,13 +42786,13 @@ public String getFieldName() { tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_args.class, metaDataMap); } - public searchExperimentsByDesc_args() { + public searchProjectsByProjectDesc_args() { } - public searchExperimentsByDesc_args( + public searchProjectsByProjectDesc_args( String gatewayId, String userName, String description) @@ -40454,7 +42806,7 @@ public searchExperimentsByDesc_args( /** * Performs a deep copy on other. */ - public searchExperimentsByDesc_args(searchExperimentsByDesc_args other) { + public searchProjectsByProjectDesc_args(searchProjectsByProjectDesc_args other) { if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } @@ -40466,8 +42818,8 @@ public searchExperimentsByDesc_args(searchExperimentsByDesc_args other) { } } - public searchExperimentsByDesc_args deepCopy() { - return new searchExperimentsByDesc_args(this); + public searchProjectsByProjectDesc_args deepCopy() { + return new searchProjectsByProjectDesc_args(this); } @Override @@ -40481,7 +42833,7 @@ public String getGatewayId() { return this.gatewayId; } - public searchExperimentsByDesc_args setGatewayId(String gatewayId) { + public searchProjectsByProjectDesc_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -40505,7 +42857,7 @@ public String getUserName() { return this.userName; } - public searchExperimentsByDesc_args setUserName(String userName) { + public searchProjectsByProjectDesc_args setUserName(String userName) { this.userName = userName; return this; } @@ -40529,7 +42881,7 @@ public String getDescription() { return this.description; } - public searchExperimentsByDesc_args setDescription(String description) { + public searchProjectsByProjectDesc_args setDescription(String description) { this.description = description; return this; } @@ -40614,12 +42966,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByDesc_args) - return this.equals((searchExperimentsByDesc_args)that); + if (that instanceof searchProjectsByProjectDesc_args) + return this.equals((searchProjectsByProjectDesc_args)that); return false; } - public boolean equals(searchExperimentsByDesc_args that) { + public boolean equals(searchProjectsByProjectDesc_args that) { if (that == null) return false; @@ -40659,7 +43011,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByDesc_args other) { + public int compareTo(searchProjectsByProjectDesc_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -40713,7 +43065,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByDesc_args("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_args("); boolean first = true; sb.append("gatewayId:"); @@ -40773,15 +43125,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByDesc_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_argsStandardScheme getScheme() { - return new searchExperimentsByDesc_argsStandardScheme(); + private static class searchProjectsByProjectDesc_argsStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_argsStandardScheme getScheme() { + return new searchProjectsByProjectDesc_argsStandardScheme(); } } - private static class searchExperimentsByDesc_argsStandardScheme extends StandardScheme { + private static class searchProjectsByProjectDesc_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40826,7 +43178,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -40851,16 +43203,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByDesc_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_argsTupleScheme getScheme() { - return new searchExperimentsByDesc_argsTupleScheme(); + private static class searchProjectsByProjectDesc_argsTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_argsTupleScheme getScheme() { + return new searchProjectsByProjectDesc_argsTupleScheme(); } } - private static class searchExperimentsByDesc_argsTupleScheme extends TupleScheme { + private static class searchProjectsByProjectDesc_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); @@ -40868,7 +43220,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); @@ -40881,8 +43233,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByD } - public static class searchExperimentsByDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_result"); + public static class searchProjectsByProjectDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -40891,11 +43243,11 @@ public static class searchExperimentsByDesc_result implements org.apache.thrift. private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByDesc_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByDesc_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required public org.apache.airavata.model.error.InvalidRequestException ire; // required public org.apache.airavata.model.error.AiravataClientException ace; // required public org.apache.airavata.model.error.AiravataSystemException ase; // required @@ -40973,7 +43325,7 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Project.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -40981,14 +43333,14 @@ public String getFieldName() { tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_result.class, metaDataMap); } - public searchExperimentsByDesc_result() { + public searchProjectsByProjectDesc_result() { } - public searchExperimentsByDesc_result( - List success, + public searchProjectsByProjectDesc_result( + List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, org.apache.airavata.model.error.AiravataSystemException ase) @@ -41003,11 +43355,11 @@ public searchExperimentsByDesc_result( /** * Performs a deep copy on other. */ - public searchExperimentsByDesc_result(searchExperimentsByDesc_result other) { + public searchProjectsByProjectDesc_result(searchProjectsByProjectDesc_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { - __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.Project other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.Project(other_element)); } this.success = __this__success; } @@ -41022,8 +43374,8 @@ public searchExperimentsByDesc_result(searchExperimentsByDesc_result other) { } } - public searchExperimentsByDesc_result deepCopy() { - return new searchExperimentsByDesc_result(this); + public searchProjectsByProjectDesc_result deepCopy() { + return new searchProjectsByProjectDesc_result(this); } @Override @@ -41038,22 +43390,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + public void addToSuccess(org.apache.airavata.model.workspace.Project elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public searchExperimentsByDesc_result setSuccess(List success) { + public searchProjectsByProjectDesc_result setSuccess(List success) { this.success = success; return this; } @@ -41077,7 +43429,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchExperimentsByDesc_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchProjectsByProjectDesc_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -41101,7 +43453,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchExperimentsByDesc_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchProjectsByProjectDesc_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -41125,7 +43477,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchExperimentsByDesc_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchProjectsByProjectDesc_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -41151,7 +43503,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -41223,12 +43575,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByDesc_result) - return this.equals((searchExperimentsByDesc_result)that); + if (that instanceof searchProjectsByProjectDesc_result) + return this.equals((searchProjectsByProjectDesc_result)that); return false; } - public boolean equals(searchExperimentsByDesc_result that) { + public boolean equals(searchProjectsByProjectDesc_result that) { if (that == null) return false; @@ -41277,7 +43629,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByDesc_result other) { + public int compareTo(searchProjectsByProjectDesc_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41341,7 +43693,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByDesc_result("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_result("); boolean first = true; sb.append("success:"); @@ -41400,15 +43752,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByDesc_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_resultStandardScheme getScheme() { - return new searchExperimentsByDesc_resultStandardScheme(); + private static class searchProjectsByProjectDesc_resultStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_resultStandardScheme getScheme() { + return new searchProjectsByProjectDesc_resultStandardScheme(); } } - private static class searchExperimentsByDesc_resultStandardScheme extends StandardScheme { + private static class searchProjectsByProjectDesc_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41422,11 +43774,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list50 = iprot.readListBegin(); - struct.success = new ArrayList(_list50.size); + struct.success = new ArrayList(_list50.size); for (int _i51 = 0; _i51 < _list50.size; ++_i51) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem52; - _elem52 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + org.apache.airavata.model.workspace.Project _elem52; + _elem52 = new org.apache.airavata.model.workspace.Project(); _elem52.read(iprot); struct.success.add(_elem52); } @@ -41475,7 +43827,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41483,7 +43835,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter53 : struct.success) + for (org.apache.airavata.model.workspace.Project _iter53 : struct.success) { _iter53.write(oprot); } @@ -41512,16 +43864,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByDesc_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_resultTupleScheme getScheme() { - return new searchExperimentsByDesc_resultTupleScheme(); + private static class searchProjectsByProjectDesc_resultTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_resultTupleScheme getScheme() { + return new searchProjectsByProjectDesc_resultTupleScheme(); } } - private static class searchExperimentsByDesc_resultTupleScheme extends TupleScheme { + private static class searchProjectsByProjectDesc_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -41540,7 +43892,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter54 : struct.success) + for (org.apache.airavata.model.workspace.Project _iter54 : struct.success) { _iter54.write(oprot); } @@ -41558,17 +43910,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list55 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list55.size); + struct.success = new ArrayList(_list55.size); for (int _i56 = 0; _i56 < _list55.size; ++_i56) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem57; - _elem57 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + org.apache.airavata.model.workspace.Project _elem57; + _elem57 = new org.apache.airavata.model.workspace.Project(); _elem57.read(iprot); struct.success.add(_elem57); } @@ -41595,28 +43947,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByD } - public static class searchExperimentsByApplication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_args"); + public static class searchProjectsByProjectDescWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDescWithPagination_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField APPLICATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationId", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByApplication_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByApplication_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectDescWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectDescWithPagination_argsTupleSchemeFactory()); } public String gatewayId; // required public String userName; // required - public String applicationId; // required + public String description; // required + public int limit; // required + public int offset; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { GATEWAY_ID((short)1, "gatewayId"), USER_NAME((short)2, "userName"), - APPLICATION_ID((short)3, "applicationId"); + DESCRIPTION((short)3, "description"), + LIMIT((short)4, "limit"), + OFFSET((short)5, "offset"); private static final Map byName = new HashMap(); @@ -41635,8 +43993,12 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 2: // USER_NAME return USER_NAME; - case 3: // APPLICATION_ID - return APPLICATION_ID; + case 3: // DESCRIPTION + return DESCRIPTION; + case 4: // LIMIT + return LIMIT; + case 5: // OFFSET + return OFFSET; default: return null; } @@ -41677,6 +44039,9 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -41684,57 +44049,74 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.APPLICATION_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationId", org.apache.thrift.TFieldRequirementType.REQUIRED, + tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDescWithPagination_args.class, metaDataMap); } - public searchExperimentsByApplication_args() { + public searchProjectsByProjectDescWithPagination_args() { } - public searchExperimentsByApplication_args( + public searchProjectsByProjectDescWithPagination_args( String gatewayId, String userName, - String applicationId) + String description, + int limit, + int offset) { this(); this.gatewayId = gatewayId; this.userName = userName; - this.applicationId = applicationId; + this.description = description; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchExperimentsByApplication_args(searchExperimentsByApplication_args other) { + public searchProjectsByProjectDescWithPagination_args(searchProjectsByProjectDescWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetApplicationId()) { - this.applicationId = other.applicationId; + if (other.isSetDescription()) { + this.description = other.description; } + this.limit = other.limit; + this.offset = other.offset; } - public searchExperimentsByApplication_args deepCopy() { - return new searchExperimentsByApplication_args(this); + public searchProjectsByProjectDescWithPagination_args deepCopy() { + return new searchProjectsByProjectDescWithPagination_args(this); } @Override public void clear() { this.gatewayId = null; this.userName = null; - this.applicationId = null; + this.description = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; } public String getGatewayId() { return this.gatewayId; } - public searchExperimentsByApplication_args setGatewayId(String gatewayId) { + public searchProjectsByProjectDescWithPagination_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -41758,7 +44140,7 @@ public String getUserName() { return this.userName; } - public searchExperimentsByApplication_args setUserName(String userName) { + public searchProjectsByProjectDescWithPagination_args setUserName(String userName) { this.userName = userName; return this; } @@ -41778,30 +44160,76 @@ public void setUserNameIsSet(boolean value) { } } - public String getApplicationId() { - return this.applicationId; + public String getDescription() { + return this.description; } - public searchExperimentsByApplication_args setApplicationId(String applicationId) { - this.applicationId = applicationId; + public searchProjectsByProjectDescWithPagination_args setDescription(String description) { + this.description = description; return this; } - public void unsetApplicationId() { - this.applicationId = null; + public void unsetDescription() { + this.description = null; } - /** Returns true if field applicationId is set (has been assigned a value) and false otherwise */ - public boolean isSetApplicationId() { - return this.applicationId != null; + /** Returns true if field description is set (has been assigned a value) and false otherwise */ + public boolean isSetDescription() { + return this.description != null; } - public void setApplicationIdIsSet(boolean value) { + public void setDescriptionIsSet(boolean value) { if (!value) { - this.applicationId = null; + this.description = null; } } + public int getLimit() { + return this.limit; + } + + public searchProjectsByProjectDescWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchProjectsByProjectDescWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case GATEWAY_ID: @@ -41820,11 +44248,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case APPLICATION_ID: + case DESCRIPTION: if (value == null) { - unsetApplicationId(); + unsetDescription(); } else { - setApplicationId((String)value); + setDescription((String)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -41839,8 +44283,14 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case APPLICATION_ID: - return getApplicationId(); + case DESCRIPTION: + return getDescription(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -41857,8 +44307,12 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case APPLICATION_ID: - return isSetApplicationId(); + case DESCRIPTION: + return isSetDescription(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -41867,12 +44321,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByApplication_args) - return this.equals((searchExperimentsByApplication_args)that); + if (that instanceof searchProjectsByProjectDescWithPagination_args) + return this.equals((searchProjectsByProjectDescWithPagination_args)that); return false; } - public boolean equals(searchExperimentsByApplication_args that) { + public boolean equals(searchProjectsByProjectDescWithPagination_args that) { if (that == null) return false; @@ -41894,12 +44348,30 @@ public boolean equals(searchExperimentsByApplication_args that) { return false; } - boolean this_present_applicationId = true && this.isSetApplicationId(); - boolean that_present_applicationId = true && that.isSetApplicationId(); - if (this_present_applicationId || that_present_applicationId) { - if (!(this_present_applicationId && that_present_applicationId)) + boolean this_present_description = true && this.isSetDescription(); + boolean that_present_description = true && that.isSetDescription(); + if (this_present_description || that_present_description) { + if (!(this_present_description && that_present_description)) return false; - if (!this.applicationId.equals(that.applicationId)) + if (!this.description.equals(that.description)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -41912,7 +44384,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByApplication_args other) { + public int compareTo(searchProjectsByProjectDescWithPagination_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41939,12 +44411,32 @@ public int compareTo(searchExperimentsByApplication_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetApplicationId()).compareTo(other.isSetApplicationId()); + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); if (lastComparison != 0) { return lastComparison; } - if (isSetApplicationId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationId, other.applicationId); + if (isSetDescription()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -41966,7 +44458,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByApplication_args("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectDescWithPagination_args("); boolean first = true; sb.append("gatewayId:"); @@ -41985,13 +44477,21 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("applicationId:"); - if (this.applicationId == null) { + sb.append("description:"); + if (this.description == null) { sb.append("null"); } else { - sb.append(this.applicationId); + sb.append(this.description); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; sb.append(")"); return sb.toString(); } @@ -42004,9 +44504,11 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (applicationId == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationId' was not present! Struct: " + toString()); + if (description == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity } @@ -42020,21 +44522,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class searchExperimentsByApplication_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_argsStandardScheme getScheme() { - return new searchExperimentsByApplication_argsStandardScheme(); + private static class searchProjectsByProjectDescWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDescWithPagination_argsStandardScheme getScheme() { + return new searchProjectsByProjectDescWithPagination_argsStandardScheme(); } } - private static class searchExperimentsByApplication_argsStandardScheme extends StandardScheme { + private static class searchProjectsByProjectDescWithPagination_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42060,10 +44564,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // APPLICATION_ID + case 3: // DESCRIPTION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.applicationId = iprot.readString(); - struct.setApplicationIdIsSet(true); + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42076,10 +44596,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -42093,49 +44619,61 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.applicationId != null) { - oprot.writeFieldBegin(APPLICATION_ID_FIELD_DESC); - oprot.writeString(struct.applicationId); + if (struct.description != null) { + oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); + oprot.writeString(struct.description); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class searchExperimentsByApplication_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_argsTupleScheme getScheme() { - return new searchExperimentsByApplication_argsTupleScheme(); + private static class searchProjectsByProjectDescWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDescWithPagination_argsTupleScheme getScheme() { + return new searchProjectsByProjectDescWithPagination_argsTupleScheme(); } } - private static class searchExperimentsByApplication_argsTupleScheme extends TupleScheme { + private static class searchProjectsByProjectDescWithPagination_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.applicationId); + oprot.writeString(struct.description); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.applicationId = iprot.readString(); - struct.setApplicationIdIsSet(true); + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class searchExperimentsByApplication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_result"); + public static class searchProjectsByProjectDescWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDescWithPagination_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -42144,11 +44682,11 @@ public static class searchExperimentsByApplication_result implements org.apache. private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByApplication_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByApplication_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectDescWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectDescWithPagination_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required public org.apache.airavata.model.error.InvalidRequestException ire; // required public org.apache.airavata.model.error.AiravataClientException ace; // required public org.apache.airavata.model.error.AiravataSystemException ase; // required @@ -42226,7 +44764,7 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Project.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -42234,14 +44772,14 @@ public String getFieldName() { tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDescWithPagination_result.class, metaDataMap); } - public searchExperimentsByApplication_result() { + public searchProjectsByProjectDescWithPagination_result() { } - public searchExperimentsByApplication_result( - List success, + public searchProjectsByProjectDescWithPagination_result( + List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, org.apache.airavata.model.error.AiravataSystemException ase) @@ -42256,11 +44794,11 @@ public searchExperimentsByApplication_result( /** * Performs a deep copy on other. */ - public searchExperimentsByApplication_result(searchExperimentsByApplication_result other) { + public searchProjectsByProjectDescWithPagination_result(searchProjectsByProjectDescWithPagination_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { - __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.Project other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.Project(other_element)); } this.success = __this__success; } @@ -42275,8 +44813,8 @@ public searchExperimentsByApplication_result(searchExperimentsByApplication_resu } } - public searchExperimentsByApplication_result deepCopy() { - return new searchExperimentsByApplication_result(this); + public searchProjectsByProjectDescWithPagination_result deepCopy() { + return new searchProjectsByProjectDescWithPagination_result(this); } @Override @@ -42291,22 +44829,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + public void addToSuccess(org.apache.airavata.model.workspace.Project elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public searchExperimentsByApplication_result setSuccess(List success) { + public searchProjectsByProjectDescWithPagination_result setSuccess(List success) { this.success = success; return this; } @@ -42330,7 +44868,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchExperimentsByApplication_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchProjectsByProjectDescWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -42354,7 +44892,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchExperimentsByApplication_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchProjectsByProjectDescWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -42378,7 +44916,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchExperimentsByApplication_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchProjectsByProjectDescWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -42404,7 +44942,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -42476,12 +45014,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByApplication_result) - return this.equals((searchExperimentsByApplication_result)that); + if (that instanceof searchProjectsByProjectDescWithPagination_result) + return this.equals((searchProjectsByProjectDescWithPagination_result)that); return false; } - public boolean equals(searchExperimentsByApplication_result that) { + public boolean equals(searchProjectsByProjectDescWithPagination_result that) { if (that == null) return false; @@ -42530,7 +45068,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByApplication_result other) { + public int compareTo(searchProjectsByProjectDescWithPagination_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -42594,7 +45132,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByApplication_result("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectDescWithPagination_result("); boolean first = true; sb.append("success:"); @@ -42653,15 +45191,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByApplication_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_resultStandardScheme getScheme() { - return new searchExperimentsByApplication_resultStandardScheme(); + private static class searchProjectsByProjectDescWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDescWithPagination_resultStandardScheme getScheme() { + return new searchProjectsByProjectDescWithPagination_resultStandardScheme(); } } - private static class searchExperimentsByApplication_resultStandardScheme extends StandardScheme { + private static class searchProjectsByProjectDescWithPagination_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42675,11 +45213,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list58 = iprot.readListBegin(); - struct.success = new ArrayList(_list58.size); + struct.success = new ArrayList(_list58.size); for (int _i59 = 0; _i59 < _list58.size; ++_i59) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem60; - _elem60 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + org.apache.airavata.model.workspace.Project _elem60; + _elem60 = new org.apache.airavata.model.workspace.Project(); _elem60.read(iprot); struct.success.add(_elem60); } @@ -42728,7 +45266,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -42736,7 +45274,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter61 : struct.success) + for (org.apache.airavata.model.workspace.Project _iter61 : struct.success) { _iter61.write(oprot); } @@ -42765,16 +45303,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByApplication_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_resultTupleScheme getScheme() { - return new searchExperimentsByApplication_resultTupleScheme(); + private static class searchProjectsByProjectDescWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDescWithPagination_resultTupleScheme getScheme() { + return new searchProjectsByProjectDescWithPagination_resultTupleScheme(); } } - private static class searchExperimentsByApplication_resultTupleScheme extends TupleScheme { + private static class searchProjectsByProjectDescWithPagination_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -42793,7 +45331,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter62 : struct.success) + for (org.apache.airavata.model.workspace.Project _iter62 : struct.success) { _iter62.write(oprot); } @@ -42811,17 +45349,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list63.size); + struct.success = new ArrayList(_list63.size); for (int _i64 = 0; _i64 < _list63.size; ++_i64) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem65; - _elem65 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + org.apache.airavata.model.workspace.Project _elem65; + _elem65 = new org.apache.airavata.model.workspace.Project(); _elem65.read(iprot); struct.success.add(_elem65); } @@ -42848,36 +45386,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByA } - public static class searchExperimentsByStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_args"); + public static class searchExperimentsByName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField EXPERIMENT_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentState", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField EXP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("expName", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByStatus_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByName_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByName_argsTupleSchemeFactory()); } public String gatewayId; // required public String userName; // required - /** - * - * @see org.apache.airavata.model.workspace.experiment.ExperimentState - */ - public org.apache.airavata.model.workspace.experiment.ExperimentState experimentState; // required + public String expName; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { GATEWAY_ID((short)1, "gatewayId"), USER_NAME((short)2, "userName"), - /** - * - * @see org.apache.airavata.model.workspace.experiment.ExperimentState - */ - EXPERIMENT_STATE((short)3, "experimentState"); + EXP_NAME((short)3, "expName"); private static final Map byName = new HashMap(); @@ -42896,8 +45426,8 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 2: // USER_NAME return USER_NAME; - case 3: // EXPERIMENT_STATE - return EXPERIMENT_STATE; + case 3: // EXP_NAME + return EXP_NAME; default: return null; } @@ -42945,57 +45475,57 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.EXPERIMENT_STATE, new org.apache.thrift.meta_data.FieldMetaData("experimentState", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.workspace.experiment.ExperimentState.class))); + tmpMap.put(_Fields.EXP_NAME, new org.apache.thrift.meta_data.FieldMetaData("expName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_args.class, metaDataMap); } - public searchExperimentsByStatus_args() { + public searchExperimentsByName_args() { } - public searchExperimentsByStatus_args( + public searchExperimentsByName_args( String gatewayId, String userName, - org.apache.airavata.model.workspace.experiment.ExperimentState experimentState) + String expName) { this(); this.gatewayId = gatewayId; this.userName = userName; - this.experimentState = experimentState; + this.expName = expName; } /** * Performs a deep copy on other. */ - public searchExperimentsByStatus_args(searchExperimentsByStatus_args other) { + public searchExperimentsByName_args(searchExperimentsByName_args other) { if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetExperimentState()) { - this.experimentState = other.experimentState; + if (other.isSetExpName()) { + this.expName = other.expName; } } - public searchExperimentsByStatus_args deepCopy() { - return new searchExperimentsByStatus_args(this); + public searchExperimentsByName_args deepCopy() { + return new searchExperimentsByName_args(this); } @Override public void clear() { this.gatewayId = null; this.userName = null; - this.experimentState = null; + this.expName = null; } public String getGatewayId() { return this.gatewayId; } - public searchExperimentsByStatus_args setGatewayId(String gatewayId) { + public searchExperimentsByName_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -43019,7 +45549,7 @@ public String getUserName() { return this.userName; } - public searchExperimentsByStatus_args setUserName(String userName) { + public searchExperimentsByName_args setUserName(String userName) { this.userName = userName; return this; } @@ -43039,35 +45569,27 @@ public void setUserNameIsSet(boolean value) { } } - /** - * - * @see org.apache.airavata.model.workspace.experiment.ExperimentState - */ - public org.apache.airavata.model.workspace.experiment.ExperimentState getExperimentState() { - return this.experimentState; + public String getExpName() { + return this.expName; } - /** - * - * @see org.apache.airavata.model.workspace.experiment.ExperimentState - */ - public searchExperimentsByStatus_args setExperimentState(org.apache.airavata.model.workspace.experiment.ExperimentState experimentState) { - this.experimentState = experimentState; + public searchExperimentsByName_args setExpName(String expName) { + this.expName = expName; return this; } - public void unsetExperimentState() { - this.experimentState = null; + public void unsetExpName() { + this.expName = null; } - /** Returns true if field experimentState is set (has been assigned a value) and false otherwise */ - public boolean isSetExperimentState() { - return this.experimentState != null; + /** Returns true if field expName is set (has been assigned a value) and false otherwise */ + public boolean isSetExpName() { + return this.expName != null; } - public void setExperimentStateIsSet(boolean value) { + public void setExpNameIsSet(boolean value) { if (!value) { - this.experimentState = null; + this.expName = null; } } @@ -43089,11 +45611,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case EXPERIMENT_STATE: + case EXP_NAME: if (value == null) { - unsetExperimentState(); + unsetExpName(); } else { - setExperimentState((org.apache.airavata.model.workspace.experiment.ExperimentState)value); + setExpName((String)value); } break; @@ -43108,8 +45630,8 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case EXPERIMENT_STATE: - return getExperimentState(); + case EXP_NAME: + return getExpName(); } throw new IllegalStateException(); @@ -43126,8 +45648,8 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case EXPERIMENT_STATE: - return isSetExperimentState(); + case EXP_NAME: + return isSetExpName(); } throw new IllegalStateException(); } @@ -43136,12 +45658,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByStatus_args) - return this.equals((searchExperimentsByStatus_args)that); + if (that instanceof searchExperimentsByName_args) + return this.equals((searchExperimentsByName_args)that); return false; } - public boolean equals(searchExperimentsByStatus_args that) { + public boolean equals(searchExperimentsByName_args that) { if (that == null) return false; @@ -43163,12 +45685,12 @@ public boolean equals(searchExperimentsByStatus_args that) { return false; } - boolean this_present_experimentState = true && this.isSetExperimentState(); - boolean that_present_experimentState = true && that.isSetExperimentState(); - if (this_present_experimentState || that_present_experimentState) { - if (!(this_present_experimentState && that_present_experimentState)) + boolean this_present_expName = true && this.isSetExpName(); + boolean that_present_expName = true && that.isSetExpName(); + if (this_present_expName || that_present_expName) { + if (!(this_present_expName && that_present_expName)) return false; - if (!this.experimentState.equals(that.experimentState)) + if (!this.expName.equals(that.expName)) return false; } @@ -43181,7 +45703,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByStatus_args other) { + public int compareTo(searchExperimentsByName_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -43208,12 +45730,12 @@ public int compareTo(searchExperimentsByStatus_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExperimentState()).compareTo(other.isSetExperimentState()); + lastComparison = Boolean.valueOf(isSetExpName()).compareTo(other.isSetExpName()); if (lastComparison != 0) { return lastComparison; } - if (isSetExperimentState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentState, other.experimentState); + if (isSetExpName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expName, other.expName); if (lastComparison != 0) { return lastComparison; } @@ -43235,7 +45757,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByStatus_args("); + StringBuilder sb = new StringBuilder("searchExperimentsByName_args("); boolean first = true; sb.append("gatewayId:"); @@ -43254,11 +45776,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("experimentState:"); - if (this.experimentState == null) { + sb.append("expName:"); + if (this.expName == null) { sb.append("null"); } else { - sb.append(this.experimentState); + sb.append(this.expName); } first = false; sb.append(")"); @@ -43273,8 +45795,8 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (experimentState == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentState' was not present! Struct: " + toString()); + if (expName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'expName' was not present! Struct: " + toString()); } // check for sub-struct validity } @@ -43295,15 +45817,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByStatus_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_argsStandardScheme getScheme() { - return new searchExperimentsByStatus_argsStandardScheme(); + private static class searchExperimentsByName_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByName_argsStandardScheme getScheme() { + return new searchExperimentsByName_argsStandardScheme(); } } - private static class searchExperimentsByStatus_argsStandardScheme extends StandardScheme { + private static class searchExperimentsByName_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43329,10 +45851,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // EXPERIMENT_STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.experimentState = org.apache.airavata.model.workspace.experiment.ExperimentState.findByValue(iprot.readI32()); - struct.setExperimentStateIsSet(true); + case 3: // EXP_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.expName = iprot.readString(); + struct.setExpNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -43348,7 +45870,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43362,9 +45884,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.experimentState != null) { - oprot.writeFieldBegin(EXPERIMENT_STATE_FIELD_DESC); - oprot.writeI32(struct.experimentState.getValue()); + if (struct.expName != null) { + oprot.writeFieldBegin(EXP_NAME_FIELD_DESC); + oprot.writeString(struct.expName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -43373,38 +45895,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByStatus_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_argsTupleScheme getScheme() { - return new searchExperimentsByStatus_argsTupleScheme(); + private static class searchExperimentsByName_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByName_argsTupleScheme getScheme() { + return new searchExperimentsByName_argsTupleScheme(); } } - private static class searchExperimentsByStatus_argsTupleScheme extends TupleScheme { + private static class searchExperimentsByName_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeI32(struct.experimentState.getValue()); + oprot.writeString(struct.expName); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.experimentState = org.apache.airavata.model.workspace.experiment.ExperimentState.findByValue(iprot.readI32()); - struct.setExperimentStateIsSet(true); + struct.expName = iprot.readString(); + struct.setExpNameIsSet(true); } } } - public static class searchExperimentsByStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_result"); + public static class searchExperimentsByName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -43413,8 +45935,8 @@ public static class searchExperimentsByStatus_result implements org.apache.thrif private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByStatus_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByName_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByName_resultTupleSchemeFactory()); } public List success; // required @@ -43503,13 +46025,13 @@ public String getFieldName() { tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_result.class, metaDataMap); } - public searchExperimentsByStatus_result() { + public searchExperimentsByName_result() { } - public searchExperimentsByStatus_result( + public searchExperimentsByName_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, @@ -43525,7 +46047,7 @@ public searchExperimentsByStatus_result( /** * Performs a deep copy on other. */ - public searchExperimentsByStatus_result(searchExperimentsByStatus_result other) { + public searchExperimentsByName_result(searchExperimentsByName_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { @@ -43544,8 +46066,8 @@ public searchExperimentsByStatus_result(searchExperimentsByStatus_result other) } } - public searchExperimentsByStatus_result deepCopy() { - return new searchExperimentsByStatus_result(this); + public searchExperimentsByName_result deepCopy() { + return new searchExperimentsByName_result(this); } @Override @@ -43575,7 +46097,7 @@ public List ge return this.success; } - public searchExperimentsByStatus_result setSuccess(List success) { + public searchExperimentsByName_result setSuccess(List success) { this.success = success; return this; } @@ -43599,7 +46121,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchExperimentsByStatus_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchExperimentsByName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -43623,7 +46145,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchExperimentsByStatus_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchExperimentsByName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -43647,7 +46169,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchExperimentsByStatus_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchExperimentsByName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -43745,12 +46267,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByStatus_result) - return this.equals((searchExperimentsByStatus_result)that); + if (that instanceof searchExperimentsByName_result) + return this.equals((searchExperimentsByName_result)that); return false; } - public boolean equals(searchExperimentsByStatus_result that) { + public boolean equals(searchExperimentsByName_result that) { if (that == null) return false; @@ -43799,7 +46321,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByStatus_result other) { + public int compareTo(searchExperimentsByName_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -43863,7 +46385,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByStatus_result("); + StringBuilder sb = new StringBuilder("searchExperimentsByName_result("); boolean first = true; sb.append("success:"); @@ -43922,15 +46444,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByStatus_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_resultStandardScheme getScheme() { - return new searchExperimentsByStatus_resultStandardScheme(); + private static class searchExperimentsByName_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByName_resultStandardScheme getScheme() { + return new searchExperimentsByName_resultStandardScheme(); } } - private static class searchExperimentsByStatus_resultStandardScheme extends StandardScheme { + private static class searchExperimentsByName_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43997,7 +46519,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44034,16 +46556,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByStatus_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_resultTupleScheme getScheme() { - return new searchExperimentsByStatus_resultTupleScheme(); + private static class searchExperimentsByName_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByName_resultTupleScheme getScheme() { + return new searchExperimentsByName_resultTupleScheme(); } } - private static class searchExperimentsByStatus_resultTupleScheme extends TupleScheme { + private static class searchExperimentsByName_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -44080,7 +46602,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -44117,31 +46639,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByS } - public static class searchExperimentsByCreationTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_args"); + public static class searchExperimentsByNameWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByNameWithPagination_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)3); - private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField EXP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("expName", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByNameWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByNameWithPagination_argsTupleSchemeFactory()); } public String gatewayId; // required public String userName; // required - public long fromTime; // required - public long toTime; // required + public String expName; // required + public int limit; // required + public int offset; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { GATEWAY_ID((short)1, "gatewayId"), USER_NAME((short)2, "userName"), - FROM_TIME((short)3, "fromTime"), - TO_TIME((short)4, "toTime"); + EXP_NAME((short)3, "expName"), + LIMIT((short)4, "limit"), + OFFSET((short)5, "offset"); private static final Map byName = new HashMap(); @@ -44160,10 +46685,12 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 2: // USER_NAME return USER_NAME; - case 3: // FROM_TIME - return FROM_TIME; - case 4: // TO_TIME - return TO_TIME; + case 3: // EXP_NAME + return EXP_NAME; + case 4: // LIMIT + return LIMIT; + case 5: // OFFSET + return OFFSET; default: return null; } @@ -44204,8 +46731,8 @@ public String getFieldName() { } // isset id assignments - private static final int __FROMTIME_ISSET_ID = 0; - private static final int __TOTIME_ISSET_ID = 1; + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { @@ -44214,36 +46741,40 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.EXP_NAME, new org.apache.thrift.meta_data.FieldMetaData("expName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByNameWithPagination_args.class, metaDataMap); } - public searchExperimentsByCreationTime_args() { + public searchExperimentsByNameWithPagination_args() { } - public searchExperimentsByCreationTime_args( + public searchExperimentsByNameWithPagination_args( String gatewayId, String userName, - long fromTime, - long toTime) + String expName, + int limit, + int offset) { this(); this.gatewayId = gatewayId; this.userName = userName; - this.fromTime = fromTime; - setFromTimeIsSet(true); - this.toTime = toTime; - setToTimeIsSet(true); + this.expName = expName; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchExperimentsByCreationTime_args(searchExperimentsByCreationTime_args other) { + public searchExperimentsByNameWithPagination_args(searchExperimentsByNameWithPagination_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; @@ -44251,29 +46782,33 @@ public searchExperimentsByCreationTime_args(searchExperimentsByCreationTime_args if (other.isSetUserName()) { this.userName = other.userName; } - this.fromTime = other.fromTime; - this.toTime = other.toTime; + if (other.isSetExpName()) { + this.expName = other.expName; + } + this.limit = other.limit; + this.offset = other.offset; } - public searchExperimentsByCreationTime_args deepCopy() { - return new searchExperimentsByCreationTime_args(this); + public searchExperimentsByNameWithPagination_args deepCopy() { + return new searchExperimentsByNameWithPagination_args(this); } @Override public void clear() { this.gatewayId = null; this.userName = null; - setFromTimeIsSet(false); - this.fromTime = 0; - setToTimeIsSet(false); - this.toTime = 0; + this.expName = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; } public String getGatewayId() { return this.gatewayId; } - public searchExperimentsByCreationTime_args setGatewayId(String gatewayId) { + public searchExperimentsByNameWithPagination_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -44297,7 +46832,7 @@ public String getUserName() { return this.userName; } - public searchExperimentsByCreationTime_args setUserName(String userName) { + public searchExperimentsByNameWithPagination_args setUserName(String userName) { this.userName = userName; return this; } @@ -44317,50 +46852,74 @@ public void setUserNameIsSet(boolean value) { } } - public long getFromTime() { - return this.fromTime; + public String getExpName() { + return this.expName; } - public searchExperimentsByCreationTime_args setFromTime(long fromTime) { - this.fromTime = fromTime; - setFromTimeIsSet(true); + public searchExperimentsByNameWithPagination_args setExpName(String expName) { + this.expName = expName; return this; } - public void unsetFromTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); + public void unsetExpName() { + this.expName = null; } - /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ - public boolean isSetFromTime() { - return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); + /** Returns true if field expName is set (has been assigned a value) and false otherwise */ + public boolean isSetExpName() { + return this.expName != null; } - public void setFromTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); + public void setExpNameIsSet(boolean value) { + if (!value) { + this.expName = null; + } } - public long getToTime() { - return this.toTime; + public int getLimit() { + return this.limit; } - public searchExperimentsByCreationTime_args setToTime(long toTime) { - this.toTime = toTime; - setToTimeIsSet(true); + public searchExperimentsByNameWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); return this; } - public void unsetToTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); } - /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ - public boolean isSetToTime() { - return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); } - public void setToTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchExperimentsByNameWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -44381,19 +46940,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case FROM_TIME: + case EXP_NAME: if (value == null) { - unsetFromTime(); + unsetExpName(); } else { - setFromTime((Long)value); + setExpName((String)value); } break; - case TO_TIME: + case LIMIT: if (value == null) { - unsetToTime(); + unsetLimit(); } else { - setToTime((Long)value); + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -44408,11 +46975,14 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case FROM_TIME: - return Long.valueOf(getFromTime()); + case EXP_NAME: + return getExpName(); - case TO_TIME: - return Long.valueOf(getToTime()); + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -44429,10 +46999,12 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case FROM_TIME: - return isSetFromTime(); - case TO_TIME: - return isSetToTime(); + case EXP_NAME: + return isSetExpName(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -44441,12 +47013,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByCreationTime_args) - return this.equals((searchExperimentsByCreationTime_args)that); + if (that instanceof searchExperimentsByNameWithPagination_args) + return this.equals((searchExperimentsByNameWithPagination_args)that); return false; } - public boolean equals(searchExperimentsByCreationTime_args that) { + public boolean equals(searchExperimentsByNameWithPagination_args that) { if (that == null) return false; @@ -44468,21 +47040,30 @@ public boolean equals(searchExperimentsByCreationTime_args that) { return false; } - boolean this_present_fromTime = true; - boolean that_present_fromTime = true; - if (this_present_fromTime || that_present_fromTime) { - if (!(this_present_fromTime && that_present_fromTime)) + boolean this_present_expName = true && this.isSetExpName(); + boolean that_present_expName = true && that.isSetExpName(); + if (this_present_expName || that_present_expName) { + if (!(this_present_expName && that_present_expName)) return false; - if (this.fromTime != that.fromTime) + if (!this.expName.equals(that.expName)) return false; } - boolean this_present_toTime = true; - boolean that_present_toTime = true; - if (this_present_toTime || that_present_toTime) { - if (!(this_present_toTime && that_present_toTime)) + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) return false; - if (this.toTime != that.toTime) + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -44495,7 +47076,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByCreationTime_args other) { + public int compareTo(searchExperimentsByNameWithPagination_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -44522,22 +47103,32 @@ public int compareTo(searchExperimentsByCreationTime_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); + lastComparison = Boolean.valueOf(isSetExpName()).compareTo(other.isSetExpName()); if (lastComparison != 0) { return lastComparison; } - if (isSetFromTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); + if (isSetExpName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expName, other.expName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); if (lastComparison != 0) { return lastComparison; } - if (isSetToTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -44559,7 +47150,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_args("); + StringBuilder sb = new StringBuilder("searchExperimentsByNameWithPagination_args("); boolean first = true; sb.append("gatewayId:"); @@ -44578,12 +47169,20 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("fromTime:"); - sb.append(this.fromTime); + sb.append("expName:"); + if (this.expName == null) { + sb.append("null"); + } else { + sb.append(this.expName); + } first = false; if (!first) sb.append(", "); - sb.append("toTime:"); - sb.append(this.toTime); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); first = false; sb.append(")"); return sb.toString(); @@ -44597,8 +47196,13429 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. + if (expName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'expName' was not present! Struct: " + toString()); + } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByNameWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByNameWithPagination_argsStandardScheme getScheme() { + return new searchExperimentsByNameWithPagination_argsStandardScheme(); + } + } + + private static class searchExperimentsByNameWithPagination_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EXP_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.expName = iprot.readString(); + struct.setExpNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + if (struct.expName != null) { + oprot.writeFieldBegin(EXP_NAME_FIELD_DESC); + oprot.writeString(struct.expName); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByNameWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByNameWithPagination_argsTupleScheme getScheme() { + return new searchExperimentsByNameWithPagination_argsTupleScheme(); + } + } + + private static class searchExperimentsByNameWithPagination_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeString(struct.expName); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.expName = iprot.readString(); + struct.setExpNameIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } + } + + } + + public static class searchExperimentsByNameWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByNameWithPagination_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByNameWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByNameWithPagination_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByNameWithPagination_result.class, metaDataMap); + } + + public searchExperimentsByNameWithPagination_result() { + } + + public searchExperimentsByNameWithPagination_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByNameWithPagination_result(searchExperimentsByNameWithPagination_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByNameWithPagination_result deepCopy() { + return new searchExperimentsByNameWithPagination_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByNameWithPagination_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByNameWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByNameWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByNameWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByNameWithPagination_result) + return this.equals((searchExperimentsByNameWithPagination_result)that); + return false; + } + + public boolean equals(searchExperimentsByNameWithPagination_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByNameWithPagination_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByNameWithPagination_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByNameWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByNameWithPagination_resultStandardScheme getScheme() { + return new searchExperimentsByNameWithPagination_resultStandardScheme(); + } + } + + private static class searchExperimentsByNameWithPagination_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list74 = iprot.readListBegin(); + struct.success = new ArrayList(_list74.size); + for (int _i75 = 0; _i75 < _list74.size; ++_i75) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem76; + _elem76 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem76.read(iprot); + struct.success.add(_elem76); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter77 : struct.success) + { + _iter77.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByNameWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByNameWithPagination_resultTupleScheme getScheme() { + return new searchExperimentsByNameWithPagination_resultTupleScheme(); + } + } + + private static class searchExperimentsByNameWithPagination_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter78 : struct.success) + { + _iter78.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list79 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list79.size); + for (int _i80 = 0; _i80 < _list79.size; ++_i80) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem81; + _elem81 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem81.read(iprot); + struct.success.add(_elem81); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByDesc_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByDesc_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + public String description; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + DESCRIPTION((short)3, "description"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // DESCRIPTION + return DESCRIPTION; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_args.class, metaDataMap); + } + + public searchExperimentsByDesc_args() { + } + + public searchExperimentsByDesc_args( + String gatewayId, + String userName, + String description) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.description = description; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByDesc_args(searchExperimentsByDesc_args other) { + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + if (other.isSetDescription()) { + this.description = other.description; + } + } + + public searchExperimentsByDesc_args deepCopy() { + return new searchExperimentsByDesc_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + this.description = null; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByDesc_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByDesc_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + public String getDescription() { + return this.description; + } + + public searchExperimentsByDesc_args setDescription(String description) { + this.description = description; + return this; + } + + public void unsetDescription() { + this.description = null; + } + + /** Returns true if field description is set (has been assigned a value) and false otherwise */ + public boolean isSetDescription() { + return this.description != null; + } + + public void setDescriptionIsSet(boolean value) { + if (!value) { + this.description = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case DESCRIPTION: + if (value == null) { + unsetDescription(); + } else { + setDescription((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case DESCRIPTION: + return getDescription(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case DESCRIPTION: + return isSetDescription(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByDesc_args) + return this.equals((searchExperimentsByDesc_args)that); + return false; + } + + public boolean equals(searchExperimentsByDesc_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_description = true && this.isSetDescription(); + boolean that_present_description = true && that.isSetDescription(); + if (this_present_description || that_present_description) { + if (!(this_present_description && that_present_description)) + return false; + if (!this.description.equals(that.description)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByDesc_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDescription()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByDesc_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("description:"); + if (this.description == null) { + sb.append("null"); + } else { + sb.append(this.description); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + if (description == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); + } + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByDesc_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_argsStandardScheme getScheme() { + return new searchExperimentsByDesc_argsStandardScheme(); + } + } + + private static class searchExperimentsByDesc_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + if (struct.description != null) { + oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); + oprot.writeString(struct.description); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByDesc_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_argsTupleScheme getScheme() { + return new searchExperimentsByDesc_argsTupleScheme(); + } + } + + private static class searchExperimentsByDesc_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeString(struct.description); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } + } + + } + + public static class searchExperimentsByDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByDesc_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByDesc_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_result.class, metaDataMap); + } + + public searchExperimentsByDesc_result() { + } + + public searchExperimentsByDesc_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByDesc_result(searchExperimentsByDesc_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByDesc_result deepCopy() { + return new searchExperimentsByDesc_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByDesc_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByDesc_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByDesc_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByDesc_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByDesc_result) + return this.equals((searchExperimentsByDesc_result)that); + return false; + } + + public boolean equals(searchExperimentsByDesc_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByDesc_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByDesc_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByDesc_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_resultStandardScheme getScheme() { + return new searchExperimentsByDesc_resultStandardScheme(); + } + } + + private static class searchExperimentsByDesc_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list82 = iprot.readListBegin(); + struct.success = new ArrayList(_list82.size); + for (int _i83 = 0; _i83 < _list82.size; ++_i83) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem84; + _elem84 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem84.read(iprot); + struct.success.add(_elem84); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter85 : struct.success) + { + _iter85.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByDesc_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_resultTupleScheme getScheme() { + return new searchExperimentsByDesc_resultTupleScheme(); + } + } + + private static class searchExperimentsByDesc_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter86 : struct.success) + { + _iter86.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list87 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list87.size); + for (int _i88 = 0; _i88 < _list87.size; ++_i88) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem89; + _elem89 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem89.read(iprot); + struct.success.add(_elem89); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByDescWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDescWithPagination_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByDescWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByDescWithPagination_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + public String description; // required + public int limit; // required + public int offset; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + DESCRIPTION((short)3, "description"), + LIMIT((short)4, "limit"), + OFFSET((short)5, "offset"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // DESCRIPTION + return DESCRIPTION; + case 4: // LIMIT + return LIMIT; + case 5: // OFFSET + return OFFSET; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDescWithPagination_args.class, metaDataMap); + } + + public searchExperimentsByDescWithPagination_args() { + } + + public searchExperimentsByDescWithPagination_args( + String gatewayId, + String userName, + String description, + int limit, + int offset) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.description = description; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByDescWithPagination_args(searchExperimentsByDescWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + if (other.isSetDescription()) { + this.description = other.description; + } + this.limit = other.limit; + this.offset = other.offset; + } + + public searchExperimentsByDescWithPagination_args deepCopy() { + return new searchExperimentsByDescWithPagination_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + this.description = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByDescWithPagination_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByDescWithPagination_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + public String getDescription() { + return this.description; + } + + public searchExperimentsByDescWithPagination_args setDescription(String description) { + this.description = description; + return this; + } + + public void unsetDescription() { + this.description = null; + } + + /** Returns true if field description is set (has been assigned a value) and false otherwise */ + public boolean isSetDescription() { + return this.description != null; + } + + public void setDescriptionIsSet(boolean value) { + if (!value) { + this.description = null; + } + } + + public int getLimit() { + return this.limit; + } + + public searchExperimentsByDescWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchExperimentsByDescWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case DESCRIPTION: + if (value == null) { + unsetDescription(); + } else { + setDescription((String)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case DESCRIPTION: + return getDescription(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case DESCRIPTION: + return isSetDescription(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByDescWithPagination_args) + return this.equals((searchExperimentsByDescWithPagination_args)that); + return false; + } + + public boolean equals(searchExperimentsByDescWithPagination_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_description = true && this.isSetDescription(); + boolean that_present_description = true && that.isSetDescription(); + if (this_present_description || that_present_description) { + if (!(this_present_description && that_present_description)) + return false; + if (!this.description.equals(that.description)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByDescWithPagination_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDescription()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByDescWithPagination_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("description:"); + if (this.description == null) { + sb.append("null"); + } else { + sb.append(this.description); + } + first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + if (description == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); + } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByDescWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByDescWithPagination_argsStandardScheme getScheme() { + return new searchExperimentsByDescWithPagination_argsStandardScheme(); + } + } + + private static class searchExperimentsByDescWithPagination_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDescWithPagination_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDescWithPagination_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + if (struct.description != null) { + oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); + oprot.writeString(struct.description); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByDescWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByDescWithPagination_argsTupleScheme getScheme() { + return new searchExperimentsByDescWithPagination_argsTupleScheme(); + } + } + + private static class searchExperimentsByDescWithPagination_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDescWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeString(struct.description); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDescWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } + } + + } + + public static class searchExperimentsByDescWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDescWithPagination_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByDescWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByDescWithPagination_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDescWithPagination_result.class, metaDataMap); + } + + public searchExperimentsByDescWithPagination_result() { + } + + public searchExperimentsByDescWithPagination_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByDescWithPagination_result(searchExperimentsByDescWithPagination_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByDescWithPagination_result deepCopy() { + return new searchExperimentsByDescWithPagination_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByDescWithPagination_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByDescWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByDescWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByDescWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByDescWithPagination_result) + return this.equals((searchExperimentsByDescWithPagination_result)that); + return false; + } + + public boolean equals(searchExperimentsByDescWithPagination_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByDescWithPagination_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByDescWithPagination_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByDescWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByDescWithPagination_resultStandardScheme getScheme() { + return new searchExperimentsByDescWithPagination_resultStandardScheme(); + } + } + + private static class searchExperimentsByDescWithPagination_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDescWithPagination_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list90 = iprot.readListBegin(); + struct.success = new ArrayList(_list90.size); + for (int _i91 = 0; _i91 < _list90.size; ++_i91) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem92; + _elem92 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem92.read(iprot); + struct.success.add(_elem92); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDescWithPagination_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter93 : struct.success) + { + _iter93.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByDescWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByDescWithPagination_resultTupleScheme getScheme() { + return new searchExperimentsByDescWithPagination_resultTupleScheme(); + } + } + + private static class searchExperimentsByDescWithPagination_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDescWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter94 : struct.success) + { + _iter94.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDescWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list95 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list95.size); + for (int _i96 = 0; _i96 < _list95.size; ++_i96) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem97; + _elem97 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem97.read(iprot); + struct.success.add(_elem97); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByApplication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField APPLICATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationId", org.apache.thrift.protocol.TType.STRING, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByApplication_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByApplication_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + public String applicationId; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + APPLICATION_ID((short)3, "applicationId"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // APPLICATION_ID + return APPLICATION_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.APPLICATION_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_args.class, metaDataMap); + } + + public searchExperimentsByApplication_args() { + } + + public searchExperimentsByApplication_args( + String gatewayId, + String userName, + String applicationId) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.applicationId = applicationId; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByApplication_args(searchExperimentsByApplication_args other) { + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + if (other.isSetApplicationId()) { + this.applicationId = other.applicationId; + } + } + + public searchExperimentsByApplication_args deepCopy() { + return new searchExperimentsByApplication_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + this.applicationId = null; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByApplication_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByApplication_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + public String getApplicationId() { + return this.applicationId; + } + + public searchExperimentsByApplication_args setApplicationId(String applicationId) { + this.applicationId = applicationId; + return this; + } + + public void unsetApplicationId() { + this.applicationId = null; + } + + /** Returns true if field applicationId is set (has been assigned a value) and false otherwise */ + public boolean isSetApplicationId() { + return this.applicationId != null; + } + + public void setApplicationIdIsSet(boolean value) { + if (!value) { + this.applicationId = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case APPLICATION_ID: + if (value == null) { + unsetApplicationId(); + } else { + setApplicationId((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case APPLICATION_ID: + return getApplicationId(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case APPLICATION_ID: + return isSetApplicationId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByApplication_args) + return this.equals((searchExperimentsByApplication_args)that); + return false; + } + + public boolean equals(searchExperimentsByApplication_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_applicationId = true && this.isSetApplicationId(); + boolean that_present_applicationId = true && that.isSetApplicationId(); + if (this_present_applicationId || that_present_applicationId) { + if (!(this_present_applicationId && that_present_applicationId)) + return false; + if (!this.applicationId.equals(that.applicationId)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByApplication_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetApplicationId()).compareTo(other.isSetApplicationId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetApplicationId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationId, other.applicationId); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByApplication_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("applicationId:"); + if (this.applicationId == null) { + sb.append("null"); + } else { + sb.append(this.applicationId); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + if (applicationId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationId' was not present! Struct: " + toString()); + } + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByApplication_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_argsStandardScheme getScheme() { + return new searchExperimentsByApplication_argsStandardScheme(); + } + } + + private static class searchExperimentsByApplication_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // APPLICATION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.applicationId = iprot.readString(); + struct.setApplicationIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + if (struct.applicationId != null) { + oprot.writeFieldBegin(APPLICATION_ID_FIELD_DESC); + oprot.writeString(struct.applicationId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByApplication_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_argsTupleScheme getScheme() { + return new searchExperimentsByApplication_argsTupleScheme(); + } + } + + private static class searchExperimentsByApplication_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeString(struct.applicationId); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.applicationId = iprot.readString(); + struct.setApplicationIdIsSet(true); + } + } + + } + + public static class searchExperimentsByApplication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByApplication_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByApplication_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_result.class, metaDataMap); + } + + public searchExperimentsByApplication_result() { + } + + public searchExperimentsByApplication_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByApplication_result(searchExperimentsByApplication_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByApplication_result deepCopy() { + return new searchExperimentsByApplication_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByApplication_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByApplication_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByApplication_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByApplication_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByApplication_result) + return this.equals((searchExperimentsByApplication_result)that); + return false; + } + + public boolean equals(searchExperimentsByApplication_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByApplication_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByApplication_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByApplication_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_resultStandardScheme getScheme() { + return new searchExperimentsByApplication_resultStandardScheme(); + } + } + + private static class searchExperimentsByApplication_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list98 = iprot.readListBegin(); + struct.success = new ArrayList(_list98.size); + for (int _i99 = 0; _i99 < _list98.size; ++_i99) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem100; + _elem100 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem100.read(iprot); + struct.success.add(_elem100); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter101 : struct.success) + { + _iter101.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByApplication_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_resultTupleScheme getScheme() { + return new searchExperimentsByApplication_resultTupleScheme(); + } + } + + private static class searchExperimentsByApplication_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter102 : struct.success) + { + _iter102.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list103.size); + for (int _i104 = 0; _i104 < _list103.size; ++_i104) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem105; + _elem105 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem105.read(iprot); + struct.success.add(_elem105); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByApplicationWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplicationWithPagination_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField APPLICATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationId", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByApplicationWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByApplicationWithPagination_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + public String applicationId; // required + public int limit; // required + public int offset; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + APPLICATION_ID((short)3, "applicationId"), + LIMIT((short)4, "limit"), + OFFSET((short)5, "offset"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // APPLICATION_ID + return APPLICATION_ID; + case 4: // LIMIT + return LIMIT; + case 5: // OFFSET + return OFFSET; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.APPLICATION_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplicationWithPagination_args.class, metaDataMap); + } + + public searchExperimentsByApplicationWithPagination_args() { + } + + public searchExperimentsByApplicationWithPagination_args( + String gatewayId, + String userName, + String applicationId, + int limit, + int offset) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.applicationId = applicationId; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByApplicationWithPagination_args(searchExperimentsByApplicationWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + if (other.isSetApplicationId()) { + this.applicationId = other.applicationId; + } + this.limit = other.limit; + this.offset = other.offset; + } + + public searchExperimentsByApplicationWithPagination_args deepCopy() { + return new searchExperimentsByApplicationWithPagination_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + this.applicationId = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByApplicationWithPagination_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByApplicationWithPagination_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + public String getApplicationId() { + return this.applicationId; + } + + public searchExperimentsByApplicationWithPagination_args setApplicationId(String applicationId) { + this.applicationId = applicationId; + return this; + } + + public void unsetApplicationId() { + this.applicationId = null; + } + + /** Returns true if field applicationId is set (has been assigned a value) and false otherwise */ + public boolean isSetApplicationId() { + return this.applicationId != null; + } + + public void setApplicationIdIsSet(boolean value) { + if (!value) { + this.applicationId = null; + } + } + + public int getLimit() { + return this.limit; + } + + public searchExperimentsByApplicationWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchExperimentsByApplicationWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case APPLICATION_ID: + if (value == null) { + unsetApplicationId(); + } else { + setApplicationId((String)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case APPLICATION_ID: + return getApplicationId(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case APPLICATION_ID: + return isSetApplicationId(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByApplicationWithPagination_args) + return this.equals((searchExperimentsByApplicationWithPagination_args)that); + return false; + } + + public boolean equals(searchExperimentsByApplicationWithPagination_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_applicationId = true && this.isSetApplicationId(); + boolean that_present_applicationId = true && that.isSetApplicationId(); + if (this_present_applicationId || that_present_applicationId) { + if (!(this_present_applicationId && that_present_applicationId)) + return false; + if (!this.applicationId.equals(that.applicationId)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByApplicationWithPagination_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetApplicationId()).compareTo(other.isSetApplicationId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetApplicationId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationId, other.applicationId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByApplicationWithPagination_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("applicationId:"); + if (this.applicationId == null) { + sb.append("null"); + } else { + sb.append(this.applicationId); + } + first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + if (applicationId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationId' was not present! Struct: " + toString()); + } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByApplicationWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByApplicationWithPagination_argsStandardScheme getScheme() { + return new searchExperimentsByApplicationWithPagination_argsStandardScheme(); + } + } + + private static class searchExperimentsByApplicationWithPagination_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplicationWithPagination_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // APPLICATION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.applicationId = iprot.readString(); + struct.setApplicationIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplicationWithPagination_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + if (struct.applicationId != null) { + oprot.writeFieldBegin(APPLICATION_ID_FIELD_DESC); + oprot.writeString(struct.applicationId); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByApplicationWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByApplicationWithPagination_argsTupleScheme getScheme() { + return new searchExperimentsByApplicationWithPagination_argsTupleScheme(); + } + } + + private static class searchExperimentsByApplicationWithPagination_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplicationWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeString(struct.applicationId); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplicationWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.applicationId = iprot.readString(); + struct.setApplicationIdIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } + } + + } + + public static class searchExperimentsByApplicationWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplicationWithPagination_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByApplicationWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByApplicationWithPagination_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplicationWithPagination_result.class, metaDataMap); + } + + public searchExperimentsByApplicationWithPagination_result() { + } + + public searchExperimentsByApplicationWithPagination_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByApplicationWithPagination_result(searchExperimentsByApplicationWithPagination_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByApplicationWithPagination_result deepCopy() { + return new searchExperimentsByApplicationWithPagination_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByApplicationWithPagination_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByApplicationWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByApplicationWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByApplicationWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByApplicationWithPagination_result) + return this.equals((searchExperimentsByApplicationWithPagination_result)that); + return false; + } + + public boolean equals(searchExperimentsByApplicationWithPagination_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByApplicationWithPagination_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByApplicationWithPagination_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByApplicationWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByApplicationWithPagination_resultStandardScheme getScheme() { + return new searchExperimentsByApplicationWithPagination_resultStandardScheme(); + } + } + + private static class searchExperimentsByApplicationWithPagination_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplicationWithPagination_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); + struct.success = new ArrayList(_list106.size); + for (int _i107 = 0; _i107 < _list106.size; ++_i107) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem108; + _elem108 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem108.read(iprot); + struct.success.add(_elem108); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplicationWithPagination_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter109 : struct.success) + { + _iter109.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByApplicationWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByApplicationWithPagination_resultTupleScheme getScheme() { + return new searchExperimentsByApplicationWithPagination_resultTupleScheme(); + } + } + + private static class searchExperimentsByApplicationWithPagination_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplicationWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter110 : struct.success) + { + _iter110.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplicationWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list111.size); + for (int _i112 = 0; _i112 < _list111.size; ++_i112) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem113; + _elem113 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem113.read(iprot); + struct.success.add(_elem113); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField EXPERIMENT_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentState", org.apache.thrift.protocol.TType.I32, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByStatus_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByStatus_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + public org.apache.airavata.model.workspace.experiment.ExperimentState experimentState; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + EXPERIMENT_STATE((short)3, "experimentState"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // EXPERIMENT_STATE + return EXPERIMENT_STATE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.EXPERIMENT_STATE, new org.apache.thrift.meta_data.FieldMetaData("experimentState", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.workspace.experiment.ExperimentState.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_args.class, metaDataMap); + } + + public searchExperimentsByStatus_args() { + } + + public searchExperimentsByStatus_args( + String gatewayId, + String userName, + org.apache.airavata.model.workspace.experiment.ExperimentState experimentState) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.experimentState = experimentState; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByStatus_args(searchExperimentsByStatus_args other) { + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + if (other.isSetExperimentState()) { + this.experimentState = other.experimentState; + } + } + + public searchExperimentsByStatus_args deepCopy() { + return new searchExperimentsByStatus_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + this.experimentState = null; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByStatus_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByStatus_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + public org.apache.airavata.model.workspace.experiment.ExperimentState getExperimentState() { + return this.experimentState; + } + + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + public searchExperimentsByStatus_args setExperimentState(org.apache.airavata.model.workspace.experiment.ExperimentState experimentState) { + this.experimentState = experimentState; + return this; + } + + public void unsetExperimentState() { + this.experimentState = null; + } + + /** Returns true if field experimentState is set (has been assigned a value) and false otherwise */ + public boolean isSetExperimentState() { + return this.experimentState != null; + } + + public void setExperimentStateIsSet(boolean value) { + if (!value) { + this.experimentState = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case EXPERIMENT_STATE: + if (value == null) { + unsetExperimentState(); + } else { + setExperimentState((org.apache.airavata.model.workspace.experiment.ExperimentState)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case EXPERIMENT_STATE: + return getExperimentState(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case EXPERIMENT_STATE: + return isSetExperimentState(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByStatus_args) + return this.equals((searchExperimentsByStatus_args)that); + return false; + } + + public boolean equals(searchExperimentsByStatus_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_experimentState = true && this.isSetExperimentState(); + boolean that_present_experimentState = true && that.isSetExperimentState(); + if (this_present_experimentState || that_present_experimentState) { + if (!(this_present_experimentState && that_present_experimentState)) + return false; + if (!this.experimentState.equals(that.experimentState)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByStatus_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetExperimentState()).compareTo(other.isSetExperimentState()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetExperimentState()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentState, other.experimentState); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByStatus_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("experimentState:"); + if (this.experimentState == null) { + sb.append("null"); + } else { + sb.append(this.experimentState); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + if (experimentState == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentState' was not present! Struct: " + toString()); + } + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByStatus_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_argsStandardScheme getScheme() { + return new searchExperimentsByStatus_argsStandardScheme(); + } + } + + private static class searchExperimentsByStatus_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EXPERIMENT_STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.experimentState = org.apache.airavata.model.workspace.experiment.ExperimentState.findByValue(iprot.readI32()); + struct.setExperimentStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + if (struct.experimentState != null) { + oprot.writeFieldBegin(EXPERIMENT_STATE_FIELD_DESC); + oprot.writeI32(struct.experimentState.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByStatus_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_argsTupleScheme getScheme() { + return new searchExperimentsByStatus_argsTupleScheme(); + } + } + + private static class searchExperimentsByStatus_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeI32(struct.experimentState.getValue()); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.experimentState = org.apache.airavata.model.workspace.experiment.ExperimentState.findByValue(iprot.readI32()); + struct.setExperimentStateIsSet(true); + } + } + + } + + public static class searchExperimentsByStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByStatus_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByStatus_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_result.class, metaDataMap); + } + + public searchExperimentsByStatus_result() { + } + + public searchExperimentsByStatus_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByStatus_result(searchExperimentsByStatus_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByStatus_result deepCopy() { + return new searchExperimentsByStatus_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByStatus_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByStatus_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByStatus_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByStatus_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByStatus_result) + return this.equals((searchExperimentsByStatus_result)that); + return false; + } + + public boolean equals(searchExperimentsByStatus_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByStatus_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByStatus_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByStatus_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_resultStandardScheme getScheme() { + return new searchExperimentsByStatus_resultStandardScheme(); + } + } + + private static class searchExperimentsByStatus_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); + struct.success = new ArrayList(_list114.size); + for (int _i115 = 0; _i115 < _list114.size; ++_i115) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem116; + _elem116 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem116.read(iprot); + struct.success.add(_elem116); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter117 : struct.success) + { + _iter117.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByStatus_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_resultTupleScheme getScheme() { + return new searchExperimentsByStatus_resultTupleScheme(); + } + } + + private static class searchExperimentsByStatus_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter118 : struct.success) + { + _iter118.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list119.size); + for (int _i120 = 0; _i120 < _list119.size; ++_i120) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem121; + _elem121 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem121.read(iprot); + struct.success.add(_elem121); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByStatusWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatusWithPagination_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField EXPERIMENT_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentState", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByStatusWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByStatusWithPagination_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + public org.apache.airavata.model.workspace.experiment.ExperimentState experimentState; // required + public int limit; // required + public int offset; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + EXPERIMENT_STATE((short)3, "experimentState"), + LIMIT((short)4, "limit"), + OFFSET((short)5, "offset"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // EXPERIMENT_STATE + return EXPERIMENT_STATE; + case 4: // LIMIT + return LIMIT; + case 5: // OFFSET + return OFFSET; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.EXPERIMENT_STATE, new org.apache.thrift.meta_data.FieldMetaData("experimentState", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.workspace.experiment.ExperimentState.class))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatusWithPagination_args.class, metaDataMap); + } + + public searchExperimentsByStatusWithPagination_args() { + } + + public searchExperimentsByStatusWithPagination_args( + String gatewayId, + String userName, + org.apache.airavata.model.workspace.experiment.ExperimentState experimentState, + int limit, + int offset) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.experimentState = experimentState; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByStatusWithPagination_args(searchExperimentsByStatusWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + if (other.isSetExperimentState()) { + this.experimentState = other.experimentState; + } + this.limit = other.limit; + this.offset = other.offset; + } + + public searchExperimentsByStatusWithPagination_args deepCopy() { + return new searchExperimentsByStatusWithPagination_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + this.experimentState = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByStatusWithPagination_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByStatusWithPagination_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + public org.apache.airavata.model.workspace.experiment.ExperimentState getExperimentState() { + return this.experimentState; + } + + /** + * + * @see org.apache.airavata.model.workspace.experiment.ExperimentState + */ + public searchExperimentsByStatusWithPagination_args setExperimentState(org.apache.airavata.model.workspace.experiment.ExperimentState experimentState) { + this.experimentState = experimentState; + return this; + } + + public void unsetExperimentState() { + this.experimentState = null; + } + + /** Returns true if field experimentState is set (has been assigned a value) and false otherwise */ + public boolean isSetExperimentState() { + return this.experimentState != null; + } + + public void setExperimentStateIsSet(boolean value) { + if (!value) { + this.experimentState = null; + } + } + + public int getLimit() { + return this.limit; + } + + public searchExperimentsByStatusWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchExperimentsByStatusWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case EXPERIMENT_STATE: + if (value == null) { + unsetExperimentState(); + } else { + setExperimentState((org.apache.airavata.model.workspace.experiment.ExperimentState)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case EXPERIMENT_STATE: + return getExperimentState(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case EXPERIMENT_STATE: + return isSetExperimentState(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByStatusWithPagination_args) + return this.equals((searchExperimentsByStatusWithPagination_args)that); + return false; + } + + public boolean equals(searchExperimentsByStatusWithPagination_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_experimentState = true && this.isSetExperimentState(); + boolean that_present_experimentState = true && that.isSetExperimentState(); + if (this_present_experimentState || that_present_experimentState) { + if (!(this_present_experimentState && that_present_experimentState)) + return false; + if (!this.experimentState.equals(that.experimentState)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByStatusWithPagination_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetExperimentState()).compareTo(other.isSetExperimentState()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetExperimentState()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentState, other.experimentState); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByStatusWithPagination_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("experimentState:"); + if (this.experimentState == null) { + sb.append("null"); + } else { + sb.append(this.experimentState); + } + first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + if (experimentState == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentState' was not present! Struct: " + toString()); + } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByStatusWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByStatusWithPagination_argsStandardScheme getScheme() { + return new searchExperimentsByStatusWithPagination_argsStandardScheme(); + } + } + + private static class searchExperimentsByStatusWithPagination_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatusWithPagination_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EXPERIMENT_STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.experimentState = org.apache.airavata.model.workspace.experiment.ExperimentState.findByValue(iprot.readI32()); + struct.setExperimentStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatusWithPagination_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + if (struct.experimentState != null) { + oprot.writeFieldBegin(EXPERIMENT_STATE_FIELD_DESC); + oprot.writeI32(struct.experimentState.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByStatusWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByStatusWithPagination_argsTupleScheme getScheme() { + return new searchExperimentsByStatusWithPagination_argsTupleScheme(); + } + } + + private static class searchExperimentsByStatusWithPagination_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatusWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeI32(struct.experimentState.getValue()); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatusWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.experimentState = org.apache.airavata.model.workspace.experiment.ExperimentState.findByValue(iprot.readI32()); + struct.setExperimentStateIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } + } + + } + + public static class searchExperimentsByStatusWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatusWithPagination_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByStatusWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByStatusWithPagination_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatusWithPagination_result.class, metaDataMap); + } + + public searchExperimentsByStatusWithPagination_result() { + } + + public searchExperimentsByStatusWithPagination_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByStatusWithPagination_result(searchExperimentsByStatusWithPagination_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByStatusWithPagination_result deepCopy() { + return new searchExperimentsByStatusWithPagination_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByStatusWithPagination_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByStatusWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByStatusWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByStatusWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByStatusWithPagination_result) + return this.equals((searchExperimentsByStatusWithPagination_result)that); + return false; + } + + public boolean equals(searchExperimentsByStatusWithPagination_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByStatusWithPagination_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByStatusWithPagination_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByStatusWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByStatusWithPagination_resultStandardScheme getScheme() { + return new searchExperimentsByStatusWithPagination_resultStandardScheme(); + } + } + + private static class searchExperimentsByStatusWithPagination_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatusWithPagination_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); + struct.success = new ArrayList(_list122.size); + for (int _i123 = 0; _i123 < _list122.size; ++_i123) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem124; + _elem124 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem124.read(iprot); + struct.success.add(_elem124); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatusWithPagination_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter125 : struct.success) + { + _iter125.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByStatusWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByStatusWithPagination_resultTupleScheme getScheme() { + return new searchExperimentsByStatusWithPagination_resultTupleScheme(); + } + } + + private static class searchExperimentsByStatusWithPagination_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatusWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter126 : struct.success) + { + _iter126.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatusWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list127.size); + for (int _i128 = 0; _i128 < _list127.size; ++_i128) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem129; + _elem129 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem129.read(iprot); + struct.success.add(_elem129); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByCreationTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + public long fromTime; // required + public long toTime; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + FROM_TIME((short)3, "fromTime"), + TO_TIME((short)4, "toTime"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // FROM_TIME + return FROM_TIME; + case 4: // TO_TIME + return TO_TIME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __FROMTIME_ISSET_ID = 0; + private static final int __TOTIME_ISSET_ID = 1; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_args.class, metaDataMap); + } + + public searchExperimentsByCreationTime_args() { + } + + public searchExperimentsByCreationTime_args( + String gatewayId, + String userName, + long fromTime, + long toTime) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.fromTime = fromTime; + setFromTimeIsSet(true); + this.toTime = toTime; + setToTimeIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByCreationTime_args(searchExperimentsByCreationTime_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + this.fromTime = other.fromTime; + this.toTime = other.toTime; + } + + public searchExperimentsByCreationTime_args deepCopy() { + return new searchExperimentsByCreationTime_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + setFromTimeIsSet(false); + this.fromTime = 0; + setToTimeIsSet(false); + this.toTime = 0; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByCreationTime_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByCreationTime_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + public long getFromTime() { + return this.fromTime; + } + + public searchExperimentsByCreationTime_args setFromTime(long fromTime) { + this.fromTime = fromTime; + setFromTimeIsSet(true); + return this; + } + + public void unsetFromTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); + } + + /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ + public boolean isSetFromTime() { + return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); + } + + public void setFromTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); + } + + public long getToTime() { + return this.toTime; + } + + public searchExperimentsByCreationTime_args setToTime(long toTime) { + this.toTime = toTime; + setToTimeIsSet(true); + return this; + } + + public void unsetToTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); + } + + /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ + public boolean isSetToTime() { + return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); + } + + public void setToTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case FROM_TIME: + if (value == null) { + unsetFromTime(); + } else { + setFromTime((Long)value); + } + break; + + case TO_TIME: + if (value == null) { + unsetToTime(); + } else { + setToTime((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case FROM_TIME: + return Long.valueOf(getFromTime()); + + case TO_TIME: + return Long.valueOf(getToTime()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case FROM_TIME: + return isSetFromTime(); + case TO_TIME: + return isSetToTime(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByCreationTime_args) + return this.equals((searchExperimentsByCreationTime_args)that); + return false; + } + + public boolean equals(searchExperimentsByCreationTime_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_fromTime = true; + boolean that_present_fromTime = true; + if (this_present_fromTime || that_present_fromTime) { + if (!(this_present_fromTime && that_present_fromTime)) + return false; + if (this.fromTime != that.fromTime) + return false; + } + + boolean this_present_toTime = true; + boolean that_present_toTime = true; + if (this_present_toTime || that_present_toTime) { + if (!(this_present_toTime && that_present_toTime)) + return false; + if (this.toTime != that.toTime) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByCreationTime_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFromTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("fromTime:"); + sb.append(this.fromTime); + first = false; + if (!first) sb.append(", "); + sb.append("toTime:"); + sb.append(this.toTime); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByCreationTime_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_argsStandardScheme getScheme() { + return new searchExperimentsByCreationTime_argsStandardScheme(); + } + } + + private static class searchExperimentsByCreationTime_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FROM_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TO_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetFromTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetToTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); + } + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(FROM_TIME_FIELD_DESC); + oprot.writeI64(struct.fromTime); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(TO_TIME_FIELD_DESC); + oprot.writeI64(struct.toTime); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByCreationTime_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_argsTupleScheme getScheme() { + return new searchExperimentsByCreationTime_argsTupleScheme(); + } + } + + private static class searchExperimentsByCreationTime_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeI64(struct.fromTime); + oprot.writeI64(struct.toTime); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); + } + } + + } + + public static class searchExperimentsByCreationTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_result.class, metaDataMap); + } + + public searchExperimentsByCreationTime_result() { + } + + public searchExperimentsByCreationTime_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByCreationTime_result(searchExperimentsByCreationTime_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByCreationTime_result deepCopy() { + return new searchExperimentsByCreationTime_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByCreationTime_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByCreationTime_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByCreationTime_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByCreationTime_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByCreationTime_result) + return this.equals((searchExperimentsByCreationTime_result)that); + return false; + } + + public boolean equals(searchExperimentsByCreationTime_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByCreationTime_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByCreationTime_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_resultStandardScheme getScheme() { + return new searchExperimentsByCreationTime_resultStandardScheme(); + } + } + + private static class searchExperimentsByCreationTime_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); + struct.success = new ArrayList(_list130.size); + for (int _i131 = 0; _i131 < _list130.size; ++_i131) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem132; + _elem132 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem132.read(iprot); + struct.success.add(_elem132); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter133 : struct.success) + { + _iter133.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByCreationTime_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_resultTupleScheme getScheme() { + return new searchExperimentsByCreationTime_resultTupleScheme(); + } + } + + private static class searchExperimentsByCreationTime_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter134 : struct.success) + { + _iter134.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list135.size); + for (int _i136 = 0; _i136 < _list135.size; ++_i136) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem137; + _elem137 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem137.read(iprot); + struct.success.add(_elem137); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class searchExperimentsByCreationTimeWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTimeWithPagination_args"); + + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByCreationTimeWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByCreationTimeWithPagination_argsTupleSchemeFactory()); + } + + public String gatewayId; // required + public String userName; // required + public long fromTime; // required + public long toTime; // required + public int limit; // required + public int offset; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"), + FROM_TIME((short)3, "fromTime"), + TO_TIME((short)4, "toTime"), + LIMIT((short)5, "limit"), + OFFSET((short)6, "offset"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; + case 3: // FROM_TIME + return FROM_TIME; + case 4: // TO_TIME + return TO_TIME; + case 5: // LIMIT + return LIMIT; + case 6: // OFFSET + return OFFSET; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __FROMTIME_ISSET_ID = 0; + private static final int __TOTIME_ISSET_ID = 1; + private static final int __LIMIT_ISSET_ID = 2; + private static final int __OFFSET_ISSET_ID = 3; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTimeWithPagination_args.class, metaDataMap); + } + + public searchExperimentsByCreationTimeWithPagination_args() { + } + + public searchExperimentsByCreationTimeWithPagination_args( + String gatewayId, + String userName, + long fromTime, + long toTime, + int limit, + int offset) + { + this(); + this.gatewayId = gatewayId; + this.userName = userName; + this.fromTime = fromTime; + setFromTimeIsSet(true); + this.toTime = toTime; + setToTimeIsSet(true); + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByCreationTimeWithPagination_args(searchExperimentsByCreationTimeWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; + } + this.fromTime = other.fromTime; + this.toTime = other.toTime; + this.limit = other.limit; + this.offset = other.offset; + } + + public searchExperimentsByCreationTimeWithPagination_args deepCopy() { + return new searchExperimentsByCreationTimeWithPagination_args(this); + } + + @Override + public void clear() { + this.gatewayId = null; + this.userName = null; + setFromTimeIsSet(false); + this.fromTime = 0; + setToTimeIsSet(false); + this.toTime = 0; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public searchExperimentsByCreationTimeWithPagination_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + return this; + } + + public void unsetGatewayId() { + this.gatewayId = null; + } + + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; + } + + public void setGatewayIdIsSet(boolean value) { + if (!value) { + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public searchExperimentsByCreationTimeWithPagination_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; + } + } + + public long getFromTime() { + return this.fromTime; + } + + public searchExperimentsByCreationTimeWithPagination_args setFromTime(long fromTime) { + this.fromTime = fromTime; + setFromTimeIsSet(true); + return this; + } + + public void unsetFromTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); + } + + /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ + public boolean isSetFromTime() { + return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); + } + + public void setFromTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); + } + + public long getToTime() { + return this.toTime; + } + + public searchExperimentsByCreationTimeWithPagination_args setToTime(long toTime) { + this.toTime = toTime; + setToTimeIsSet(true); + return this; + } + + public void unsetToTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); + } + + /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ + public boolean isSetToTime() { + return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); + } + + public void setToTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); + } + + public int getLimit() { + return this.limit; + } + + public searchExperimentsByCreationTimeWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchExperimentsByCreationTimeWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case GATEWAY_ID: + if (value == null) { + unsetGatewayId(); + } else { + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); + } + break; + + case FROM_TIME: + if (value == null) { + unsetFromTime(); + } else { + setFromTime((Long)value); + } + break; + + case TO_TIME: + if (value == null) { + unsetToTime(); + } else { + setToTime((Long)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); + + case FROM_TIME: + return Long.valueOf(getFromTime()); + + case TO_TIME: + return Long.valueOf(getToTime()); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case FROM_TIME: + return isSetFromTime(); + case TO_TIME: + return isSetToTime(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByCreationTimeWithPagination_args) + return this.equals((searchExperimentsByCreationTimeWithPagination_args)that); + return false; + } + + public boolean equals(searchExperimentsByCreationTimeWithPagination_args that) { + if (that == null) + return false; + + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) + return false; + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) + return false; + } + + boolean this_present_fromTime = true; + boolean that_present_fromTime = true; + if (this_present_fromTime || that_present_fromTime) { + if (!(this_present_fromTime && that_present_fromTime)) + return false; + if (this.fromTime != that.fromTime) + return false; + } + + boolean this_present_toTime = true; + boolean that_present_toTime = true; + if (this_present_toTime || that_present_toTime) { + if (!(this_present_toTime && that_present_toTime)) + return false; + if (this.toTime != that.toTime) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByCreationTimeWithPagination_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFromTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByCreationTimeWithPagination_args("); + boolean first = true; + + sb.append("gatewayId:"); + if (this.gatewayId == null) { + sb.append("null"); + } else { + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); + } + first = false; + if (!first) sb.append(", "); + sb.append("fromTime:"); + sb.append(this.fromTime); + first = false; + if (!first) sb.append(", "); + sb.append("toTime:"); + sb.append(this.toTime); + first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + } + // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByCreationTimeWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTimeWithPagination_argsStandardScheme getScheme() { + return new searchExperimentsByCreationTimeWithPagination_argsStandardScheme(); + } + } + + private static class searchExperimentsByCreationTimeWithPagination_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTimeWithPagination_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // GATEWAY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FROM_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TO_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetFromTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetToTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTimeWithPagination_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(FROM_TIME_FIELD_DESC); + oprot.writeI64(struct.fromTime); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(TO_TIME_FIELD_DESC); + oprot.writeI64(struct.toTime); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByCreationTimeWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTimeWithPagination_argsTupleScheme getScheme() { + return new searchExperimentsByCreationTimeWithPagination_argsTupleScheme(); + } + } + + private static class searchExperimentsByCreationTimeWithPagination_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTimeWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeI64(struct.fromTime); + oprot.writeI64(struct.toTime); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTimeWithPagination_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } + } + + } + + public static class searchExperimentsByCreationTimeWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTimeWithPagination_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new searchExperimentsByCreationTimeWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByCreationTimeWithPagination_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTimeWithPagination_result.class, metaDataMap); + } + + public searchExperimentsByCreationTimeWithPagination_result() { + } + + public searchExperimentsByCreationTimeWithPagination_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + } + + /** + * Performs a deep copy on other. + */ + public searchExperimentsByCreationTimeWithPagination_result(searchExperimentsByCreationTimeWithPagination_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + } + + public searchExperimentsByCreationTimeWithPagination_result deepCopy() { + return new searchExperimentsByCreationTimeWithPagination_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public searchExperimentsByCreationTimeWithPagination_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public searchExperimentsByCreationTimeWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public searchExperimentsByCreationTimeWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public searchExperimentsByCreationTimeWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof searchExperimentsByCreationTimeWithPagination_result) + return this.equals((searchExperimentsByCreationTimeWithPagination_result)that); + return false; + } + + public boolean equals(searchExperimentsByCreationTimeWithPagination_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(searchExperimentsByCreationTimeWithPagination_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("searchExperimentsByCreationTimeWithPagination_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class searchExperimentsByCreationTimeWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTimeWithPagination_resultStandardScheme getScheme() { + return new searchExperimentsByCreationTimeWithPagination_resultStandardScheme(); + } + } + + private static class searchExperimentsByCreationTimeWithPagination_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTimeWithPagination_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); + struct.success = new ArrayList(_list138.size); + for (int _i139 = 0; _i139 < _list138.size; ++_i139) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem140; + _elem140 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem140.read(iprot); + struct.success.add(_elem140); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTimeWithPagination_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter141 : struct.success) + { + _iter141.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class searchExperimentsByCreationTimeWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTimeWithPagination_resultTupleScheme getScheme() { + return new searchExperimentsByCreationTimeWithPagination_resultTupleScheme(); + } + } + + private static class searchExperimentsByCreationTimeWithPagination_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTimeWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter142 : struct.success) + { + _iter142.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTimeWithPagination_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list143.size); + for (int _i144 = 0; _i144 < _list143.size; ++_i144) + { + org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem145; + _elem145 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); + _elem145.read(iprot); + struct.success.add(_elem145); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + } + } + + } + + public static class getAllExperimentsInProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProject_args"); + + private static final org.apache.thrift.protocol.TField PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAllExperimentsInProject_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllExperimentsInProject_argsTupleSchemeFactory()); + } + + public String projectId; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + PROJECT_ID((short)1, "projectId"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // PROJECT_ID + return PROJECT_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProject_args.class, metaDataMap); + } + + public getAllExperimentsInProject_args() { + } + + public getAllExperimentsInProject_args( + String projectId) + { + this(); + this.projectId = projectId; + } + + /** + * Performs a deep copy on other. + */ + public getAllExperimentsInProject_args(getAllExperimentsInProject_args other) { + if (other.isSetProjectId()) { + this.projectId = other.projectId; + } + } + + public getAllExperimentsInProject_args deepCopy() { + return new getAllExperimentsInProject_args(this); + } + + @Override + public void clear() { + this.projectId = null; + } + + public String getProjectId() { + return this.projectId; + } + + public getAllExperimentsInProject_args setProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + public void unsetProjectId() { + this.projectId = null; + } + + /** Returns true if field projectId is set (has been assigned a value) and false otherwise */ + public boolean isSetProjectId() { + return this.projectId != null; + } + + public void setProjectIdIsSet(boolean value) { + if (!value) { + this.projectId = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PROJECT_ID: + if (value == null) { + unsetProjectId(); + } else { + setProjectId((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PROJECT_ID: + return getProjectId(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case PROJECT_ID: + return isSetProjectId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getAllExperimentsInProject_args) + return this.equals((getAllExperimentsInProject_args)that); + return false; + } + + public boolean equals(getAllExperimentsInProject_args that) { + if (that == null) + return false; + + boolean this_present_projectId = true && this.isSetProjectId(); + boolean that_present_projectId = true && that.isSetProjectId(); + if (this_present_projectId || that_present_projectId) { + if (!(this_present_projectId && that_present_projectId)) + return false; + if (!this.projectId.equals(that.projectId)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getAllExperimentsInProject_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProjectId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectId, other.projectId); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getAllExperimentsInProject_args("); + boolean first = true; + + sb.append("projectId:"); + if (this.projectId == null) { + sb.append("null"); + } else { + sb.append(this.projectId); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (projectId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectId' was not present! Struct: " + toString()); + } + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getAllExperimentsInProject_argsStandardSchemeFactory implements SchemeFactory { + public getAllExperimentsInProject_argsStandardScheme getScheme() { + return new getAllExperimentsInProject_argsStandardScheme(); + } + } + + private static class getAllExperimentsInProject_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // PROJECT_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.projectId = iprot.readString(); + struct.setProjectIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.projectId != null) { + oprot.writeFieldBegin(PROJECT_ID_FIELD_DESC); + oprot.writeString(struct.projectId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getAllExperimentsInProject_argsTupleSchemeFactory implements SchemeFactory { + public getAllExperimentsInProject_argsTupleScheme getScheme() { + return new getAllExperimentsInProject_argsTupleScheme(); + } + } + + private static class getAllExperimentsInProject_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.projectId); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.projectId = iprot.readString(); + struct.setProjectIdIsSet(true); + } + } + + } + + public static class getAllExperimentsInProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProject_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField PNFE_FIELD_DESC = new org.apache.thrift.protocol.TField("pnfe", org.apache.thrift.protocol.TType.STRUCT, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAllExperimentsInProject_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllExperimentsInProject_resultTupleSchemeFactory()); + } + + public List success; // required + public org.apache.airavata.model.error.InvalidRequestException ire; // required + public org.apache.airavata.model.error.AiravataClientException ace; // required + public org.apache.airavata.model.error.AiravataSystemException ase; // required + public org.apache.airavata.model.error.ProjectNotFoundException pnfe; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + IRE((short)1, "ire"), + ACE((short)2, "ace"), + ASE((short)3, "ase"), + PNFE((short)4, "pnfe"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // IRE + return IRE; + case 2: // ACE + return ACE; + case 3: // ASE + return ASE; + case 4: // PNFE + return PNFE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.Experiment.class)))); + tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.PNFE, new org.apache.thrift.meta_data.FieldMetaData("pnfe", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProject_result.class, metaDataMap); + } + + public getAllExperimentsInProject_result() { + } + + public getAllExperimentsInProject_result( + List success, + org.apache.airavata.model.error.InvalidRequestException ire, + org.apache.airavata.model.error.AiravataClientException ace, + org.apache.airavata.model.error.AiravataSystemException ase, + org.apache.airavata.model.error.ProjectNotFoundException pnfe) + { + this(); + this.success = success; + this.ire = ire; + this.ace = ace; + this.ase = ase; + this.pnfe = pnfe; + } + + /** + * Performs a deep copy on other. + */ + public getAllExperimentsInProject_result(getAllExperimentsInProject_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.Experiment other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.Experiment(other_element)); + } + this.success = __this__success; + } + if (other.isSetIre()) { + this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); + } + if (other.isSetAce()) { + this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace); + } + if (other.isSetAse()) { + this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); + } + if (other.isSetPnfe()) { + this.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(other.pnfe); + } + } + + public getAllExperimentsInProject_result deepCopy() { + return new getAllExperimentsInProject_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + this.pnfe = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(org.apache.airavata.model.workspace.experiment.Experiment elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public getAllExperimentsInProject_result setSuccess(List success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public org.apache.airavata.model.error.InvalidRequestException getIre() { + return this.ire; + } + + public getAllExperimentsInProject_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + this.ire = ire; + return this; + } + + public void unsetIre() { + this.ire = null; + } + + /** Returns true if field ire is set (has been assigned a value) and false otherwise */ + public boolean isSetIre() { + return this.ire != null; + } + + public void setIreIsSet(boolean value) { + if (!value) { + this.ire = null; + } + } + + public org.apache.airavata.model.error.AiravataClientException getAce() { + return this.ace; + } + + public getAllExperimentsInProject_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + this.ace = ace; + return this; + } + + public void unsetAce() { + this.ace = null; + } + + /** Returns true if field ace is set (has been assigned a value) and false otherwise */ + public boolean isSetAce() { + return this.ace != null; + } + + public void setAceIsSet(boolean value) { + if (!value) { + this.ace = null; + } + } + + public org.apache.airavata.model.error.AiravataSystemException getAse() { + return this.ase; + } + + public getAllExperimentsInProject_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + this.ase = ase; + return this; + } + + public void unsetAse() { + this.ase = null; + } + + /** Returns true if field ase is set (has been assigned a value) and false otherwise */ + public boolean isSetAse() { + return this.ase != null; + } + + public void setAseIsSet(boolean value) { + if (!value) { + this.ase = null; + } + } + + public org.apache.airavata.model.error.ProjectNotFoundException getPnfe() { + return this.pnfe; + } + + public getAllExperimentsInProject_result setPnfe(org.apache.airavata.model.error.ProjectNotFoundException pnfe) { + this.pnfe = pnfe; + return this; + } + + public void unsetPnfe() { + this.pnfe = null; + } + + /** Returns true if field pnfe is set (has been assigned a value) and false otherwise */ + public boolean isSetPnfe() { + return this.pnfe != null; + } + + public void setPnfeIsSet(boolean value) { + if (!value) { + this.pnfe = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case IRE: + if (value == null) { + unsetIre(); + } else { + setIre((org.apache.airavata.model.error.InvalidRequestException)value); + } + break; + + case ACE: + if (value == null) { + unsetAce(); + } else { + setAce((org.apache.airavata.model.error.AiravataClientException)value); + } + break; + + case ASE: + if (value == null) { + unsetAse(); + } else { + setAse((org.apache.airavata.model.error.AiravataSystemException)value); + } + break; + + case PNFE: + if (value == null) { + unsetPnfe(); + } else { + setPnfe((org.apache.airavata.model.error.ProjectNotFoundException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case IRE: + return getIre(); + + case ACE: + return getAce(); + + case ASE: + return getAse(); + + case PNFE: + return getPnfe(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case IRE: + return isSetIre(); + case ACE: + return isSetAce(); + case ASE: + return isSetAse(); + case PNFE: + return isSetPnfe(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getAllExperimentsInProject_result) + return this.equals((getAllExperimentsInProject_result)that); + return false; + } + + public boolean equals(getAllExperimentsInProject_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ire = true && this.isSetIre(); + boolean that_present_ire = true && that.isSetIre(); + if (this_present_ire || that_present_ire) { + if (!(this_present_ire && that_present_ire)) + return false; + if (!this.ire.equals(that.ire)) + return false; + } + + boolean this_present_ace = true && this.isSetAce(); + boolean that_present_ace = true && that.isSetAce(); + if (this_present_ace || that_present_ace) { + if (!(this_present_ace && that_present_ace)) + return false; + if (!this.ace.equals(that.ace)) + return false; + } + + boolean this_present_ase = true && this.isSetAse(); + boolean that_present_ase = true && that.isSetAse(); + if (this_present_ase || that_present_ase) { + if (!(this_present_ase && that_present_ase)) + return false; + if (!this.ase.equals(that.ase)) + return false; + } + + boolean this_present_pnfe = true && this.isSetPnfe(); + boolean that_present_pnfe = true && that.isSetPnfe(); + if (this_present_pnfe || that_present_pnfe) { + if (!(this_present_pnfe && that_present_pnfe)) + return false; + if (!this.pnfe.equals(that.pnfe)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getAllExperimentsInProject_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIre()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAce()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAse()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPnfe()).compareTo(other.isSetPnfe()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPnfe()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pnfe, other.pnfe); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getAllExperimentsInProject_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("ire:"); + if (this.ire == null) { + sb.append("null"); + } else { + sb.append(this.ire); + } + first = false; + if (!first) sb.append(", "); + sb.append("ace:"); + if (this.ace == null) { + sb.append("null"); + } else { + sb.append(this.ace); + } + first = false; + if (!first) sb.append(", "); + sb.append("ase:"); + if (this.ase == null) { + sb.append("null"); + } else { + sb.append(this.ase); + } + first = false; + if (!first) sb.append(", "); + sb.append("pnfe:"); + if (this.pnfe == null) { + sb.append("null"); + } else { + sb.append(this.pnfe); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getAllExperimentsInProject_resultStandardSchemeFactory implements SchemeFactory { + public getAllExperimentsInProject_resultStandardScheme getScheme() { + return new getAllExperimentsInProject_resultStandardScheme(); + } + } + + private static class getAllExperimentsInProject_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); + struct.success = new ArrayList(_list146.size); + for (int _i147 = 0; _i147 < _list146.size; ++_i147) + { + org.apache.airavata.model.workspace.experiment.Experiment _elem148; + _elem148 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem148.read(iprot); + struct.success.add(_elem148); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // IRE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PNFE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); + struct.pnfe.read(iprot); + struct.setPnfeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (org.apache.airavata.model.workspace.experiment.Experiment _iter149 : struct.success) + { + _iter149.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.ire != null) { + oprot.writeFieldBegin(IRE_FIELD_DESC); + struct.ire.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ace != null) { + oprot.writeFieldBegin(ACE_FIELD_DESC); + struct.ace.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ase != null) { + oprot.writeFieldBegin(ASE_FIELD_DESC); + struct.ase.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.pnfe != null) { + oprot.writeFieldBegin(PNFE_FIELD_DESC); + struct.pnfe.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getAllExperimentsInProject_resultTupleSchemeFactory implements SchemeFactory { + public getAllExperimentsInProject_resultTupleScheme getScheme() { + return new getAllExperimentsInProject_resultTupleScheme(); + } + } + + private static class getAllExperimentsInProject_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetIre()) { + optionals.set(1); + } + if (struct.isSetAce()) { + optionals.set(2); + } + if (struct.isSetAse()) { + optionals.set(3); + } + if (struct.isSetPnfe()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (org.apache.airavata.model.workspace.experiment.Experiment _iter150 : struct.success) + { + _iter150.write(oprot); + } + } + } + if (struct.isSetIre()) { + struct.ire.write(oprot); + } + if (struct.isSetAce()) { + struct.ace.write(oprot); + } + if (struct.isSetAse()) { + struct.ase.write(oprot); + } + if (struct.isSetPnfe()) { + struct.pnfe.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list151.size); + for (int _i152 = 0; _i152 < _list151.size; ++_i152) + { + org.apache.airavata.model.workspace.experiment.Experiment _elem153; + _elem153 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem153.read(iprot); + struct.success.add(_elem153); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ire = new org.apache.airavata.model.error.InvalidRequestException(); + struct.ire.read(iprot); + struct.setIreIsSet(true); + } + if (incoming.get(2)) { + struct.ace = new org.apache.airavata.model.error.AiravataClientException(); + struct.ace.read(iprot); + struct.setAceIsSet(true); + } + if (incoming.get(3)) { + struct.ase = new org.apache.airavata.model.error.AiravataSystemException(); + struct.ase.read(iprot); + struct.setAseIsSet(true); + } + if (incoming.get(4)) { + struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); + struct.pnfe.read(iprot); + struct.setPnfeIsSet(true); + } + } + } + + } + + public static class getAllExperimentsInProjectWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProjectWithPagination_args"); + + private static final org.apache.thrift.protocol.TField PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAllExperimentsInProjectWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllExperimentsInProjectWithPagination_argsTupleSchemeFactory()); + } + + public String projectId; // required + public int limit; // required + public int offset; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { + PROJECT_ID((short)1, "projectId"), + LIMIT((short)2, "limit"), + OFFSET((short)3, "offset"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // PROJECT_ID + return PROJECT_ID; + case 2: // LIMIT + return LIMIT; + case 3: // OFFSET + return OFFSET; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProjectWithPagination_args.class, metaDataMap); + } + + public getAllExperimentsInProjectWithPagination_args() { + } + + public getAllExperimentsInProjectWithPagination_args( + String projectId, + int limit, + int offset) + { + this(); + this.projectId = projectId; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public getAllExperimentsInProjectWithPagination_args(getAllExperimentsInProjectWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetProjectId()) { + this.projectId = other.projectId; + } + this.limit = other.limit; + this.offset = other.offset; + } + + public getAllExperimentsInProjectWithPagination_args deepCopy() { + return new getAllExperimentsInProjectWithPagination_args(this); + } + + @Override + public void clear() { + this.projectId = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public String getProjectId() { + return this.projectId; + } + + public getAllExperimentsInProjectWithPagination_args setProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + public void unsetProjectId() { + this.projectId = null; + } + + /** Returns true if field projectId is set (has been assigned a value) and false otherwise */ + public boolean isSetProjectId() { + return this.projectId != null; + } + + public void setProjectIdIsSet(boolean value) { + if (!value) { + this.projectId = null; + } + } + + public int getLimit() { + return this.limit; + } + + public getAllExperimentsInProjectWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public getAllExperimentsInProjectWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PROJECT_ID: + if (value == null) { + unsetProjectId(); + } else { + setProjectId((String)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PROJECT_ID: + return getProjectId(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case PROJECT_ID: + return isSetProjectId(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getAllExperimentsInProjectWithPagination_args) + return this.equals((getAllExperimentsInProjectWithPagination_args)that); + return false; + } + + public boolean equals(getAllExperimentsInProjectWithPagination_args that) { + if (that == null) + return false; + + boolean this_present_projectId = true && this.isSetProjectId(); + boolean that_present_projectId = true && that.isSetProjectId(); + if (this_present_projectId || that_present_projectId) { + if (!(this_present_projectId && that_present_projectId)) + return false; + if (!this.projectId.equals(that.projectId)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getAllExperimentsInProjectWithPagination_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProjectId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectId, other.projectId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getAllExperimentsInProjectWithPagination_args("); + boolean first = true; + + sb.append("projectId:"); + if (this.projectId == null) { + sb.append("null"); + } else { + sb.append(this.projectId); + } + first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (projectId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectId' was not present! Struct: " + toString()); + } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity } @@ -44620,15 +60640,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByCreationTime_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_argsStandardScheme getScheme() { - return new searchExperimentsByCreationTime_argsStandardScheme(); + private static class getAllExperimentsInProjectWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public getAllExperimentsInProjectWithPagination_argsStandardScheme getScheme() { + return new getAllExperimentsInProjectWithPagination_argsStandardScheme(); } } - private static class searchExperimentsByCreationTime_argsStandardScheme extends StandardScheme { + private static class getAllExperimentsInProjectWithPagination_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44638,34 +60658,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy break; } switch (schemeField.id) { - case 1: // GATEWAY_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // USER_NAME + case 1: // PROJECT_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); + struct.projectId = iprot.readString(); + struct.setProjectIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // FROM_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); + case 2: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // TO_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(true); + case 3: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -44678,34 +60690,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method - if (!struct.isSetFromTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); } - if (!struct.isSetToTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.gatewayId != null) { - oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); - oprot.writeString(struct.gatewayId); - oprot.writeFieldEnd(); - } - if (struct.userName != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.userName); + if (struct.projectId != null) { + oprot.writeFieldBegin(PROJECT_ID_FIELD_DESC); + oprot.writeString(struct.projectId); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(FROM_TIME_FIELD_DESC); - oprot.writeI64(struct.fromTime); + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); oprot.writeFieldEnd(); - oprot.writeFieldBegin(TO_TIME_FIELD_DESC); - oprot.writeI64(struct.toTime); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -44713,64 +60720,64 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByCreationTime_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_argsTupleScheme getScheme() { - return new searchExperimentsByCreationTime_argsTupleScheme(); + private static class getAllExperimentsInProjectWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public getAllExperimentsInProjectWithPagination_argsTupleScheme getScheme() { + return new getAllExperimentsInProjectWithPagination_argsTupleScheme(); } } - private static class searchExperimentsByCreationTime_argsTupleScheme extends TupleScheme { + private static class getAllExperimentsInProjectWithPagination_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeI64(struct.fromTime); - oprot.writeI64(struct.toTime); + oprot.writeString(struct.projectId); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); - struct.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(true); + struct.projectId = iprot.readString(); + struct.setProjectIdIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class searchExperimentsByCreationTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_result"); + public static class getAllExperimentsInProjectWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProjectWithPagination_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField PNFE_FIELD_DESC = new org.apache.thrift.protocol.TField("pnfe", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllExperimentsInProjectWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllExperimentsInProjectWithPagination_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required public org.apache.airavata.model.error.InvalidRequestException ire; // required public org.apache.airavata.model.error.AiravataClientException ace; // required public org.apache.airavata.model.error.AiravataSystemException ase; // required + public org.apache.airavata.model.error.ProjectNotFoundException pnfe; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IRE((short)1, "ire"), ACE((short)2, "ace"), - ASE((short)3, "ase"); + ASE((short)3, "ase"), + PNFE((short)4, "pnfe"); private static final Map byName = new HashMap(); @@ -44793,6 +60800,8 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; + case 4: // PNFE + return PNFE; default: return null; } @@ -44838,41 +60847,45 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.ExperimentSummary.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.experiment.Experiment.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.PNFE, new org.apache.thrift.meta_data.FieldMetaData("pnfe", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProjectWithPagination_result.class, metaDataMap); } - public searchExperimentsByCreationTime_result() { + public getAllExperimentsInProjectWithPagination_result() { } - public searchExperimentsByCreationTime_result( - List success, + public getAllExperimentsInProjectWithPagination_result( + List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, - org.apache.airavata.model.error.AiravataSystemException ase) + org.apache.airavata.model.error.AiravataSystemException ase, + org.apache.airavata.model.error.ProjectNotFoundException pnfe) { this(); this.success = success; this.ire = ire; this.ace = ace; this.ase = ase; + this.pnfe = pnfe; } /** * Performs a deep copy on other. */ - public searchExperimentsByCreationTime_result(searchExperimentsByCreationTime_result other) { + public getAllExperimentsInProjectWithPagination_result(getAllExperimentsInProjectWithPagination_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary other_element : other.success) { - __this__success.add(new org.apache.airavata.model.workspace.experiment.ExperimentSummary(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.workspace.experiment.Experiment other_element : other.success) { + __this__success.add(new org.apache.airavata.model.workspace.experiment.Experiment(other_element)); } this.success = __this__success; } @@ -44885,10 +60898,13 @@ public searchExperimentsByCreationTime_result(searchExperimentsByCreationTime_re if (other.isSetAse()) { this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); } + if (other.isSetPnfe()) { + this.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(other.pnfe); + } } - public searchExperimentsByCreationTime_result deepCopy() { - return new searchExperimentsByCreationTime_result(this); + public getAllExperimentsInProjectWithPagination_result deepCopy() { + return new getAllExperimentsInProjectWithPagination_result(this); } @Override @@ -44897,28 +60913,29 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; + this.pnfe = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.workspace.experiment.ExperimentSummary elem) { + public void addToSuccess(org.apache.airavata.model.workspace.experiment.Experiment elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public searchExperimentsByCreationTime_result setSuccess(List success) { + public getAllExperimentsInProjectWithPagination_result setSuccess(List success) { this.success = success; return this; } @@ -44942,7 +60959,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchExperimentsByCreationTime_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getAllExperimentsInProjectWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -44966,7 +60983,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchExperimentsByCreationTime_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getAllExperimentsInProjectWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -44990,7 +61007,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchExperimentsByCreationTime_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getAllExperimentsInProjectWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -45010,13 +61027,37 @@ public void setAseIsSet(boolean value) { } } + public org.apache.airavata.model.error.ProjectNotFoundException getPnfe() { + return this.pnfe; + } + + public getAllExperimentsInProjectWithPagination_result setPnfe(org.apache.airavata.model.error.ProjectNotFoundException pnfe) { + this.pnfe = pnfe; + return this; + } + + public void unsetPnfe() { + this.pnfe = null; + } + + /** Returns true if field pnfe is set (has been assigned a value) and false otherwise */ + public boolean isSetPnfe() { + return this.pnfe != null; + } + + public void setPnfeIsSet(boolean value) { + if (!value) { + this.pnfe = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -45044,6 +61085,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PNFE: + if (value == null) { + unsetPnfe(); + } else { + setPnfe((org.apache.airavata.model.error.ProjectNotFoundException)value); + } + break; + } } @@ -45061,6 +61110,9 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); + case PNFE: + return getPnfe(); + } throw new IllegalStateException(); } @@ -45080,6 +61132,8 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); + case PNFE: + return isSetPnfe(); } throw new IllegalStateException(); } @@ -45088,12 +61142,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByCreationTime_result) - return this.equals((searchExperimentsByCreationTime_result)that); + if (that instanceof getAllExperimentsInProjectWithPagination_result) + return this.equals((getAllExperimentsInProjectWithPagination_result)that); return false; } - public boolean equals(searchExperimentsByCreationTime_result that) { + public boolean equals(getAllExperimentsInProjectWithPagination_result that) { if (that == null) return false; @@ -45133,6 +61187,15 @@ public boolean equals(searchExperimentsByCreationTime_result that) { return false; } + boolean this_present_pnfe = true && this.isSetPnfe(); + boolean that_present_pnfe = true && that.isSetPnfe(); + if (this_present_pnfe || that_present_pnfe) { + if (!(this_present_pnfe && that_present_pnfe)) + return false; + if (!this.pnfe.equals(that.pnfe)) + return false; + } + return true; } @@ -45142,7 +61205,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByCreationTime_result other) { + public int compareTo(getAllExperimentsInProjectWithPagination_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -45189,6 +61252,16 @@ public int compareTo(searchExperimentsByCreationTime_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPnfe()).compareTo(other.isSetPnfe()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPnfe()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pnfe, other.pnfe); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -45206,7 +61279,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_result("); + StringBuilder sb = new StringBuilder("getAllExperimentsInProjectWithPagination_result("); boolean first = true; sb.append("success:"); @@ -45240,6 +61313,14 @@ public String toString() { sb.append(this.ase); } first = false; + if (!first) sb.append(", "); + sb.append("pnfe:"); + if (this.pnfe == null) { + sb.append("null"); + } else { + sb.append(this.pnfe); + } + first = false; sb.append(")"); return sb.toString(); } @@ -45265,15 +61346,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByCreationTime_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_resultStandardScheme getScheme() { - return new searchExperimentsByCreationTime_resultStandardScheme(); + private static class getAllExperimentsInProjectWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public getAllExperimentsInProjectWithPagination_resultStandardScheme getScheme() { + return new getAllExperimentsInProjectWithPagination_resultStandardScheme(); } } - private static class searchExperimentsByCreationTime_resultStandardScheme extends StandardScheme { + private static class getAllExperimentsInProjectWithPagination_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45286,14 +61367,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list74 = iprot.readListBegin(); - struct.success = new ArrayList(_list74.size); - for (int _i75 = 0; _i75 < _list74.size; ++_i75) + org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); + struct.success = new ArrayList(_list154.size); + for (int _i155 = 0; _i155 < _list154.size; ++_i155) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem76; - _elem76 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); - _elem76.read(iprot); - struct.success.add(_elem76); + org.apache.airavata.model.workspace.experiment.Experiment _elem156; + _elem156 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem156.read(iprot); + struct.success.add(_elem156); } iprot.readListEnd(); } @@ -45329,6 +61410,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // PNFE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); + struct.pnfe.read(iprot); + struct.setPnfeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -45340,7 +61430,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -45348,9 +61438,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter77 : struct.success) + for (org.apache.airavata.model.workspace.experiment.Experiment _iter157 : struct.success) { - _iter77.write(oprot); + _iter157.write(oprot); } oprot.writeListEnd(); } @@ -45371,22 +61461,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB struct.ase.write(oprot); oprot.writeFieldEnd(); } + if (struct.pnfe != null) { + oprot.writeFieldBegin(PNFE_FIELD_DESC); + struct.pnfe.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class searchExperimentsByCreationTime_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_resultTupleScheme getScheme() { - return new searchExperimentsByCreationTime_resultTupleScheme(); + private static class getAllExperimentsInProjectWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public getAllExperimentsInProjectWithPagination_resultTupleScheme getScheme() { + return new getAllExperimentsInProjectWithPagination_resultTupleScheme(); } } - private static class searchExperimentsByCreationTime_resultTupleScheme extends TupleScheme { + private static class getAllExperimentsInProjectWithPagination_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -45401,13 +61496,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy if (struct.isSetAse()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetPnfe()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.ExperimentSummary _iter78 : struct.success) + for (org.apache.airavata.model.workspace.experiment.Experiment _iter158 : struct.success) { - _iter78.write(oprot); + _iter158.write(oprot); } } } @@ -45420,22 +61518,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy if (struct.isSetAse()) { struct.ase.write(oprot); } + if (struct.isSetPnfe()) { + struct.pnfe.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list79 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list79.size); - for (int _i80 = 0; _i80 < _list79.size; ++_i80) + org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list159.size); + for (int _i160 = 0; _i160 < _list159.size; ++_i160) { - org.apache.airavata.model.workspace.experiment.ExperimentSummary _elem81; - _elem81 = new org.apache.airavata.model.workspace.experiment.ExperimentSummary(); - _elem81.read(iprot); - struct.success.add(_elem81); + org.apache.airavata.model.workspace.experiment.Experiment _elem161; + _elem161 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem161.read(iprot); + struct.success.add(_elem161); } } struct.setSuccessIsSet(true); @@ -45455,27 +61556,35 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByC struct.ase.read(iprot); struct.setAseIsSet(true); } + if (incoming.get(4)) { + struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); + struct.pnfe.read(iprot); + struct.setPnfeIsSet(true); + } } } } - public static class getAllExperimentsInProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProject_args"); + public static class getAllUserExperiments_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperiments_args"); - private static final org.apache.thrift.protocol.TField PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllExperimentsInProject_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllExperimentsInProject_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUserExperiments_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUserExperiments_argsTupleSchemeFactory()); } - public String projectId; // required + public String gatewayId; // required + public String userName; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { - PROJECT_ID((short)1, "projectId"); + GATEWAY_ID((short)1, "gatewayId"), + USER_NAME((short)2, "userName"); private static final Map byName = new HashMap(); @@ -45490,8 +61599,10 @@ public static class getAllExperimentsInProject_args implements org.apache.thrift */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PROJECT_ID - return PROJECT_ID; + case 1: // GATEWAY_ID + return GATEWAY_ID; + case 2: // USER_NAME + return USER_NAME; default: return null; } @@ -45535,71 +61646,111 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED, + tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProject_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperiments_args.class, metaDataMap); } - public getAllExperimentsInProject_args() { + public getAllUserExperiments_args() { } - public getAllExperimentsInProject_args( - String projectId) + public getAllUserExperiments_args( + String gatewayId, + String userName) { this(); - this.projectId = projectId; + this.gatewayId = gatewayId; + this.userName = userName; } /** * Performs a deep copy on other. */ - public getAllExperimentsInProject_args(getAllExperimentsInProject_args other) { - if (other.isSetProjectId()) { - this.projectId = other.projectId; + public getAllUserExperiments_args(getAllUserExperiments_args other) { + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; + } + if (other.isSetUserName()) { + this.userName = other.userName; } } - public getAllExperimentsInProject_args deepCopy() { - return new getAllExperimentsInProject_args(this); + public getAllUserExperiments_args deepCopy() { + return new getAllUserExperiments_args(this); } @Override public void clear() { - this.projectId = null; + this.gatewayId = null; + this.userName = null; } - public String getProjectId() { - return this.projectId; + public String getGatewayId() { + return this.gatewayId; } - public getAllExperimentsInProject_args setProjectId(String projectId) { - this.projectId = projectId; + public getAllUserExperiments_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; return this; } - public void unsetProjectId() { - this.projectId = null; + public void unsetGatewayId() { + this.gatewayId = null; } - /** Returns true if field projectId is set (has been assigned a value) and false otherwise */ - public boolean isSetProjectId() { - return this.projectId != null; + /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ + public boolean isSetGatewayId() { + return this.gatewayId != null; } - public void setProjectIdIsSet(boolean value) { + public void setGatewayIdIsSet(boolean value) { if (!value) { - this.projectId = null; + this.gatewayId = null; + } + } + + public String getUserName() { + return this.userName; + } + + public getAllUserExperiments_args setUserName(String userName) { + this.userName = userName; + return this; + } + + public void unsetUserName() { + this.userName = null; + } + + /** Returns true if field userName is set (has been assigned a value) and false otherwise */ + public boolean isSetUserName() { + return this.userName != null; + } + + public void setUserNameIsSet(boolean value) { + if (!value) { + this.userName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PROJECT_ID: + case GATEWAY_ID: if (value == null) { - unsetProjectId(); + unsetGatewayId(); } else { - setProjectId((String)value); + setGatewayId((String)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUserName(); + } else { + setUserName((String)value); } break; @@ -45608,8 +61759,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PROJECT_ID: - return getProjectId(); + case GATEWAY_ID: + return getGatewayId(); + + case USER_NAME: + return getUserName(); } throw new IllegalStateException(); @@ -45622,8 +61776,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case PROJECT_ID: - return isSetProjectId(); + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); } throw new IllegalStateException(); } @@ -45632,21 +61788,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllExperimentsInProject_args) - return this.equals((getAllExperimentsInProject_args)that); + if (that instanceof getAllUserExperiments_args) + return this.equals((getAllUserExperiments_args)that); return false; } - public boolean equals(getAllExperimentsInProject_args that) { + public boolean equals(getAllUserExperiments_args that) { if (that == null) return false; - boolean this_present_projectId = true && this.isSetProjectId(); - boolean that_present_projectId = true && that.isSetProjectId(); - if (this_present_projectId || that_present_projectId) { - if (!(this_present_projectId && that_present_projectId)) + boolean this_present_gatewayId = true && this.isSetGatewayId(); + boolean that_present_gatewayId = true && that.isSetGatewayId(); + if (this_present_gatewayId || that_present_gatewayId) { + if (!(this_present_gatewayId && that_present_gatewayId)) return false; - if (!this.projectId.equals(that.projectId)) + if (!this.gatewayId.equals(that.gatewayId)) + return false; + } + + boolean this_present_userName = true && this.isSetUserName(); + boolean that_present_userName = true && that.isSetUserName(); + if (this_present_userName || that_present_userName) { + if (!(this_present_userName && that_present_userName)) + return false; + if (!this.userName.equals(that.userName)) return false; } @@ -45659,19 +61824,29 @@ public int hashCode() { } @Override - public int compareTo(getAllExperimentsInProject_args other) { + public int compareTo(getAllUserExperiments_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; } - if (isSetProjectId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectId, other.projectId); + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); if (lastComparison != 0) { return lastComparison; } @@ -45693,14 +61868,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllExperimentsInProject_args("); + StringBuilder sb = new StringBuilder("getAllUserExperiments_args("); boolean first = true; - sb.append("projectId:"); - if (this.projectId == null) { + sb.append("gatewayId:"); + if (this.gatewayId == null) { sb.append("null"); } else { - sb.append(this.projectId); + sb.append(this.gatewayId); + } + first = false; + if (!first) sb.append(", "); + sb.append("userName:"); + if (this.userName == null) { + sb.append("null"); + } else { + sb.append(this.userName); } first = false; sb.append(")"); @@ -45709,8 +61892,11 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields - if (projectId == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectId' was not present! Struct: " + toString()); + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + } + if (userName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } // check for sub-struct validity } @@ -45731,15 +61917,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllExperimentsInProject_argsStandardSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_argsStandardScheme getScheme() { - return new getAllExperimentsInProject_argsStandardScheme(); + private static class getAllUserExperiments_argsStandardSchemeFactory implements SchemeFactory { + public getAllUserExperiments_argsStandardScheme getScheme() { + return new getAllUserExperiments_argsStandardScheme(); } } - private static class getAllExperimentsInProject_argsStandardScheme extends StandardScheme { + private static class getAllUserExperiments_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45749,10 +61935,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn break; } switch (schemeField.id) { - case 1: // PROJECT_ID + case 1: // GATEWAY_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.projectId = iprot.readString(); - struct.setProjectIdIsSet(true); + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -45768,13 +61962,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.projectId != null) { - oprot.writeFieldBegin(PROJECT_ID_FIELD_DESC); - oprot.writeString(struct.projectId); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); + oprot.writeFieldEnd(); + } + if (struct.userName != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.userName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -45783,58 +61982,58 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI } - private static class getAllExperimentsInProject_argsTupleSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_argsTupleScheme getScheme() { - return new getAllExperimentsInProject_argsTupleScheme(); + private static class getAllUserExperiments_argsTupleSchemeFactory implements SchemeFactory { + public getAllUserExperiments_argsTupleScheme getScheme() { + return new getAllUserExperiments_argsTupleScheme(); } } - private static class getAllExperimentsInProject_argsTupleScheme extends TupleScheme { + private static class getAllUserExperiments_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.projectId); + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.projectId = iprot.readString(); - struct.setProjectIdIsSet(true); + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.userName = iprot.readString(); + struct.setUserNameIsSet(true); } } } - public static class getAllExperimentsInProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProject_result"); + public static class getAllUserExperiments_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperiments_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField PNFE_FIELD_DESC = new org.apache.thrift.protocol.TField("pnfe", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllExperimentsInProject_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllExperimentsInProject_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUserExperiments_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUserExperiments_resultTupleSchemeFactory()); } public List success; // required public org.apache.airavata.model.error.InvalidRequestException ire; // required public org.apache.airavata.model.error.AiravataClientException ace; // required public org.apache.airavata.model.error.AiravataSystemException ase; // required - public org.apache.airavata.model.error.ProjectNotFoundException pnfe; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), IRE((short)1, "ire"), ACE((short)2, "ace"), - ASE((short)3, "ase"), - PNFE((short)4, "pnfe"); + ASE((short)3, "ase"); private static final Map byName = new HashMap(); @@ -45857,8 +62056,6 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; - case 4: // PNFE - return PNFE; default: return null; } @@ -45911,34 +62108,30 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.PNFE, new org.apache.thrift.meta_data.FieldMetaData("pnfe", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProject_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperiments_result.class, metaDataMap); } - public getAllExperimentsInProject_result() { + public getAllUserExperiments_result() { } - public getAllExperimentsInProject_result( + public getAllUserExperiments_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, - org.apache.airavata.model.error.AiravataSystemException ase, - org.apache.airavata.model.error.ProjectNotFoundException pnfe) + org.apache.airavata.model.error.AiravataSystemException ase) { this(); this.success = success; this.ire = ire; this.ace = ace; this.ase = ase; - this.pnfe = pnfe; } /** * Performs a deep copy on other. */ - public getAllExperimentsInProject_result(getAllExperimentsInProject_result other) { + public getAllUserExperiments_result(getAllUserExperiments_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.experiment.Experiment other_element : other.success) { @@ -45955,13 +62148,10 @@ public getAllExperimentsInProject_result(getAllExperimentsInProject_result other if (other.isSetAse()) { this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); } - if (other.isSetPnfe()) { - this.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(other.pnfe); - } } - public getAllExperimentsInProject_result deepCopy() { - return new getAllExperimentsInProject_result(this); + public getAllUserExperiments_result deepCopy() { + return new getAllUserExperiments_result(this); } @Override @@ -45970,7 +62160,6 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; - this.pnfe = null; } public int getSuccessSize() { @@ -45992,7 +62181,7 @@ public List getSucces return this.success; } - public getAllExperimentsInProject_result setSuccess(List success) { + public getAllUserExperiments_result setSuccess(List success) { this.success = success; return this; } @@ -46016,7 +62205,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllExperimentsInProject_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getAllUserExperiments_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -46040,7 +62229,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllExperimentsInProject_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getAllUserExperiments_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -46064,7 +62253,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllExperimentsInProject_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getAllUserExperiments_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -46084,30 +62273,6 @@ public void setAseIsSet(boolean value) { } } - public org.apache.airavata.model.error.ProjectNotFoundException getPnfe() { - return this.pnfe; - } - - public getAllExperimentsInProject_result setPnfe(org.apache.airavata.model.error.ProjectNotFoundException pnfe) { - this.pnfe = pnfe; - return this; - } - - public void unsetPnfe() { - this.pnfe = null; - } - - /** Returns true if field pnfe is set (has been assigned a value) and false otherwise */ - public boolean isSetPnfe() { - return this.pnfe != null; - } - - public void setPnfeIsSet(boolean value) { - if (!value) { - this.pnfe = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -46142,14 +62307,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PNFE: - if (value == null) { - unsetPnfe(); - } else { - setPnfe((org.apache.airavata.model.error.ProjectNotFoundException)value); - } - break; - } } @@ -46167,9 +62324,6 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); - case PNFE: - return getPnfe(); - } throw new IllegalStateException(); } @@ -46189,8 +62343,6 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); - case PNFE: - return isSetPnfe(); } throw new IllegalStateException(); } @@ -46199,12 +62351,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllExperimentsInProject_result) - return this.equals((getAllExperimentsInProject_result)that); + if (that instanceof getAllUserExperiments_result) + return this.equals((getAllUserExperiments_result)that); return false; } - public boolean equals(getAllExperimentsInProject_result that) { + public boolean equals(getAllUserExperiments_result that) { if (that == null) return false; @@ -46244,15 +62396,6 @@ public boolean equals(getAllExperimentsInProject_result that) { return false; } - boolean this_present_pnfe = true && this.isSetPnfe(); - boolean that_present_pnfe = true && that.isSetPnfe(); - if (this_present_pnfe || that_present_pnfe) { - if (!(this_present_pnfe && that_present_pnfe)) - return false; - if (!this.pnfe.equals(that.pnfe)) - return false; - } - return true; } @@ -46262,7 +62405,7 @@ public int hashCode() { } @Override - public int compareTo(getAllExperimentsInProject_result other) { + public int compareTo(getAllUserExperiments_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -46309,16 +62452,6 @@ public int compareTo(getAllExperimentsInProject_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPnfe()).compareTo(other.isSetPnfe()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPnfe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pnfe, other.pnfe); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -46336,7 +62469,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllExperimentsInProject_result("); + StringBuilder sb = new StringBuilder("getAllUserExperiments_result("); boolean first = true; sb.append("success:"); @@ -46370,14 +62503,6 @@ public String toString() { sb.append(this.ase); } first = false; - if (!first) sb.append(", "); - sb.append("pnfe:"); - if (this.pnfe == null) { - sb.append("null"); - } else { - sb.append(this.pnfe); - } - first = false; sb.append(")"); return sb.toString(); } @@ -46403,15 +62528,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllExperimentsInProject_resultStandardSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_resultStandardScheme getScheme() { - return new getAllExperimentsInProject_resultStandardScheme(); + private static class getAllUserExperiments_resultStandardSchemeFactory implements SchemeFactory { + public getAllUserExperiments_resultStandardScheme getScheme() { + return new getAllUserExperiments_resultStandardScheme(); } } - private static class getAllExperimentsInProject_resultStandardScheme extends StandardScheme { + private static class getAllUserExperiments_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46424,14 +62549,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list82 = iprot.readListBegin(); - struct.success = new ArrayList(_list82.size); - for (int _i83 = 0; _i83 < _list82.size; ++_i83) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.success = new ArrayList(_list162.size); + for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - org.apache.airavata.model.workspace.experiment.Experiment _elem84; - _elem84 = new org.apache.airavata.model.workspace.experiment.Experiment(); - _elem84.read(iprot); - struct.success.add(_elem84); + org.apache.airavata.model.workspace.experiment.Experiment _elem164; + _elem164 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem164.read(iprot); + struct.success.add(_elem164); } iprot.readListEnd(); } @@ -46467,15 +62592,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // PNFE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); - struct.pnfe.read(iprot); - struct.setPnfeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -46487,7 +62603,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46495,9 +62611,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.Experiment _iter85 : struct.success) + for (org.apache.airavata.model.workspace.experiment.Experiment _iter165 : struct.success) { - _iter85.write(oprot); + _iter165.write(oprot); } oprot.writeListEnd(); } @@ -46518,27 +62634,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI struct.ase.write(oprot); oprot.writeFieldEnd(); } - if (struct.pnfe != null) { - oprot.writeFieldBegin(PNFE_FIELD_DESC); - struct.pnfe.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllExperimentsInProject_resultTupleSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_resultTupleScheme getScheme() { - return new getAllExperimentsInProject_resultTupleScheme(); + private static class getAllUserExperiments_resultTupleSchemeFactory implements SchemeFactory { + public getAllUserExperiments_resultTupleScheme getScheme() { + return new getAllUserExperiments_resultTupleScheme(); } } - private static class getAllExperimentsInProject_resultTupleScheme extends TupleScheme { + private static class getAllUserExperiments_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -46553,16 +62664,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsIn if (struct.isSetAse()) { optionals.set(3); } - if (struct.isSetPnfe()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.Experiment _iter86 : struct.success) + for (org.apache.airavata.model.workspace.experiment.Experiment _iter166 : struct.success) { - _iter86.write(oprot); + _iter166.write(oprot); } } } @@ -46575,25 +62683,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsIn if (struct.isSetAse()) { struct.ase.write(oprot); } - if (struct.isSetPnfe()) { - struct.pnfe.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list87 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list87.size); - for (int _i88 = 0; _i88 < _list87.size; ++_i88) + org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list167.size); + for (int _i168 = 0; _i168 < _list167.size; ++_i168) { - org.apache.airavata.model.workspace.experiment.Experiment _elem89; - _elem89 = new org.apache.airavata.model.workspace.experiment.Experiment(); - _elem89.read(iprot); - struct.success.add(_elem89); + org.apache.airavata.model.workspace.experiment.Experiment _elem169; + _elem169 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem169.read(iprot); + struct.success.add(_elem169); } } struct.setSuccessIsSet(true); @@ -46613,35 +62718,36 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInP struct.ase.read(iprot); struct.setAseIsSet(true); } - if (incoming.get(4)) { - struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); - struct.pnfe.read(iprot); - struct.setPnfeIsSet(true); - } } } } - public static class getAllUserExperiments_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperiments_args"); + public static class getAllUserExperimentsWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperimentsWithPagination_args"); private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserExperiments_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserExperiments_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUserExperimentsWithPagination_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUserExperimentsWithPagination_argsTupleSchemeFactory()); } public String gatewayId; // required public String userName; // required + public int limit; // required + public int offset; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"); + USER_NAME((short)2, "userName"), + LIMIT((short)3, "limit"), + OFFSET((short)4, "offset"); private static final Map byName = new HashMap(); @@ -46660,6 +62766,10 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 2: // USER_NAME return USER_NAME; + case 3: // LIMIT + return LIMIT; + case 4: // OFFSET + return OFFSET; default: return null; } @@ -46700,6 +62810,9 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -46707,49 +62820,66 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperiments_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperimentsWithPagination_args.class, metaDataMap); } - public getAllUserExperiments_args() { + public getAllUserExperimentsWithPagination_args() { } - public getAllUserExperiments_args( + public getAllUserExperimentsWithPagination_args( String gatewayId, - String userName) + String userName, + int limit, + int offset) { this(); this.gatewayId = gatewayId; this.userName = userName; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public getAllUserExperiments_args(getAllUserExperiments_args other) { + public getAllUserExperimentsWithPagination_args(getAllUserExperimentsWithPagination_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } if (other.isSetUserName()) { this.userName = other.userName; } + this.limit = other.limit; + this.offset = other.offset; } - public getAllUserExperiments_args deepCopy() { - return new getAllUserExperiments_args(this); + public getAllUserExperimentsWithPagination_args deepCopy() { + return new getAllUserExperimentsWithPagination_args(this); } @Override public void clear() { this.gatewayId = null; this.userName = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; } public String getGatewayId() { return this.gatewayId; } - public getAllUserExperiments_args setGatewayId(String gatewayId) { + public getAllUserExperimentsWithPagination_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -46773,7 +62903,7 @@ public String getUserName() { return this.userName; } - public getAllUserExperiments_args setUserName(String userName) { + public getAllUserExperimentsWithPagination_args setUserName(String userName) { this.userName = userName; return this; } @@ -46793,6 +62923,52 @@ public void setUserNameIsSet(boolean value) { } } + public int getLimit() { + return this.limit; + } + + public getAllUserExperimentsWithPagination_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public getAllUserExperimentsWithPagination_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case GATEWAY_ID: @@ -46811,6 +62987,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + } } @@ -46822,6 +63014,12 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + } throw new IllegalStateException(); } @@ -46837,6 +63035,10 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -46845,12 +63047,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserExperiments_args) - return this.equals((getAllUserExperiments_args)that); + if (that instanceof getAllUserExperimentsWithPagination_args) + return this.equals((getAllUserExperimentsWithPagination_args)that); return false; } - public boolean equals(getAllUserExperiments_args that) { + public boolean equals(getAllUserExperimentsWithPagination_args that) { if (that == null) return false; @@ -46872,6 +63074,24 @@ public boolean equals(getAllUserExperiments_args that) { return false; } + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + return true; } @@ -46881,7 +63101,7 @@ public int hashCode() { } @Override - public int compareTo(getAllUserExperiments_args other) { + public int compareTo(getAllUserExperimentsWithPagination_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -46908,6 +63128,26 @@ public int compareTo(getAllUserExperiments_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -46925,7 +63165,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserExperiments_args("); + StringBuilder sb = new StringBuilder("getAllUserExperimentsWithPagination_args("); boolean first = true; sb.append("gatewayId:"); @@ -46943,6 +63183,14 @@ public String toString() { sb.append(this.userName); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; sb.append(")"); return sb.toString(); } @@ -46955,6 +63203,8 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity } @@ -46968,21 +63218,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getAllUserExperiments_argsStandardSchemeFactory implements SchemeFactory { - public getAllUserExperiments_argsStandardScheme getScheme() { - return new getAllUserExperiments_argsStandardScheme(); + private static class getAllUserExperimentsWithPagination_argsStandardSchemeFactory implements SchemeFactory { + public getAllUserExperimentsWithPagination_argsStandardScheme getScheme() { + return new getAllUserExperimentsWithPagination_argsStandardScheme(); } } - private static class getAllUserExperiments_argsStandardScheme extends StandardScheme { + private static class getAllUserExperimentsWithPagination_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47008,6 +63260,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47016,10 +63284,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47033,41 +63307,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime oprot.writeString(struct.userName); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllUserExperiments_argsTupleSchemeFactory implements SchemeFactory { - public getAllUserExperiments_argsTupleScheme getScheme() { - return new getAllUserExperiments_argsTupleScheme(); + private static class getAllUserExperimentsWithPagination_argsTupleSchemeFactory implements SchemeFactory { + public getAllUserExperimentsWithPagination_argsTupleScheme getScheme() { + return new getAllUserExperimentsWithPagination_argsTupleScheme(); } } - private static class getAllUserExperiments_argsTupleScheme extends TupleScheme { + private static class getAllUserExperimentsWithPagination_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class getAllUserExperiments_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperiments_result"); + public static class getAllUserExperimentsWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperimentsWithPagination_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -47076,8 +63362,8 @@ public static class getAllUserExperiments_result implements org.apache.thrift.TB private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserExperiments_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserExperiments_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUserExperimentsWithPagination_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUserExperimentsWithPagination_resultTupleSchemeFactory()); } public List success; // required @@ -47166,13 +63452,13 @@ public String getFieldName() { tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperiments_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperimentsWithPagination_result.class, metaDataMap); } - public getAllUserExperiments_result() { + public getAllUserExperimentsWithPagination_result() { } - public getAllUserExperiments_result( + public getAllUserExperimentsWithPagination_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, @@ -47188,7 +63474,7 @@ public getAllUserExperiments_result( /** * Performs a deep copy on other. */ - public getAllUserExperiments_result(getAllUserExperiments_result other) { + public getAllUserExperimentsWithPagination_result(getAllUserExperimentsWithPagination_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.experiment.Experiment other_element : other.success) { @@ -47207,8 +63493,8 @@ public getAllUserExperiments_result(getAllUserExperiments_result other) { } } - public getAllUserExperiments_result deepCopy() { - return new getAllUserExperiments_result(this); + public getAllUserExperimentsWithPagination_result deepCopy() { + return new getAllUserExperimentsWithPagination_result(this); } @Override @@ -47238,7 +63524,7 @@ public List getSucces return this.success; } - public getAllUserExperiments_result setSuccess(List success) { + public getAllUserExperimentsWithPagination_result setSuccess(List success) { this.success = success; return this; } @@ -47262,7 +63548,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllUserExperiments_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getAllUserExperimentsWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -47286,7 +63572,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllUserExperiments_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getAllUserExperimentsWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -47310,7 +63596,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllUserExperiments_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getAllUserExperimentsWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -47408,12 +63694,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserExperiments_result) - return this.equals((getAllUserExperiments_result)that); + if (that instanceof getAllUserExperimentsWithPagination_result) + return this.equals((getAllUserExperimentsWithPagination_result)that); return false; } - public boolean equals(getAllUserExperiments_result that) { + public boolean equals(getAllUserExperimentsWithPagination_result that) { if (that == null) return false; @@ -47462,7 +63748,7 @@ public int hashCode() { } @Override - public int compareTo(getAllUserExperiments_result other) { + public int compareTo(getAllUserExperimentsWithPagination_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -47526,7 +63812,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserExperiments_result("); + StringBuilder sb = new StringBuilder("getAllUserExperimentsWithPagination_result("); boolean first = true; sb.append("success:"); @@ -47585,15 +63871,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllUserExperiments_resultStandardSchemeFactory implements SchemeFactory { - public getAllUserExperiments_resultStandardScheme getScheme() { - return new getAllUserExperiments_resultStandardScheme(); + private static class getAllUserExperimentsWithPagination_resultStandardSchemeFactory implements SchemeFactory { + public getAllUserExperimentsWithPagination_resultStandardScheme getScheme() { + return new getAllUserExperimentsWithPagination_resultStandardScheme(); } } - private static class getAllUserExperiments_resultStandardScheme extends StandardScheme { + private static class getAllUserExperimentsWithPagination_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47606,14 +63892,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list90 = iprot.readListBegin(); - struct.success = new ArrayList(_list90.size); - for (int _i91 = 0; _i91 < _list90.size; ++_i91) + org.apache.thrift.protocol.TList _list170 = iprot.readListBegin(); + struct.success = new ArrayList(_list170.size); + for (int _i171 = 0; _i171 < _list170.size; ++_i171) { - org.apache.airavata.model.workspace.experiment.Experiment _elem92; - _elem92 = new org.apache.airavata.model.workspace.experiment.Experiment(); - _elem92.read(iprot); - struct.success.add(_elem92); + org.apache.airavata.model.workspace.experiment.Experiment _elem172; + _elem172 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem172.read(iprot); + struct.success.add(_elem172); } iprot.readListEnd(); } @@ -47660,7 +63946,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47668,9 +63954,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.Experiment _iter93 : struct.success) + for (org.apache.airavata.model.workspace.experiment.Experiment _iter173 : struct.success) { - _iter93.write(oprot); + _iter173.write(oprot); } oprot.writeListEnd(); } @@ -47697,16 +63983,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime } - private static class getAllUserExperiments_resultTupleSchemeFactory implements SchemeFactory { - public getAllUserExperiments_resultTupleScheme getScheme() { - return new getAllUserExperiments_resultTupleScheme(); + private static class getAllUserExperimentsWithPagination_resultTupleSchemeFactory implements SchemeFactory { + public getAllUserExperimentsWithPagination_resultTupleScheme getScheme() { + return new getAllUserExperimentsWithPagination_resultTupleScheme(); } } - private static class getAllUserExperiments_resultTupleScheme extends TupleScheme { + private static class getAllUserExperimentsWithPagination_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -47725,9 +64011,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimen if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.Experiment _iter94 : struct.success) + for (org.apache.airavata.model.workspace.experiment.Experiment _iter174 : struct.success) { - _iter94.write(oprot); + _iter174.write(oprot); } } } @@ -47743,19 +64029,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimen } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list95 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list95.size); - for (int _i96 = 0; _i96 < _list95.size; ++_i96) + org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list175.size); + for (int _i176 = 0; _i176 < _list175.size; ++_i176) { - org.apache.airavata.model.workspace.experiment.Experiment _elem97; - _elem97 = new org.apache.airavata.model.workspace.experiment.Experiment(); - _elem97.read(iprot); - struct.success.add(_elem97); + org.apache.airavata.model.workspace.experiment.Experiment _elem177; + _elem177 = new org.apache.airavata.model.workspace.experiment.Experiment(); + _elem177.read(iprot); + struct.success.add(_elem177); } } struct.setSuccessIsSet(true); @@ -56894,14 +73180,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentOutput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list98 = iprot.readListBegin(); - struct.success = new ArrayList(_list98.size); - for (int _i99 = 0; _i99 < _list98.size; ++_i99) + org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); + struct.success = new ArrayList(_list178.size); + for (int _i179 = 0; _i179 < _list178.size; ++_i179) { - org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem100; - _elem100 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); - _elem100.read(iprot); - struct.success.add(_elem100); + org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem180; + _elem180 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); + _elem180.read(iprot); + struct.success.add(_elem180); } iprot.readListEnd(); } @@ -56965,9 +73251,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getExperimentOutpu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter101 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter181 : struct.success) { - _iter101.write(oprot); + _iter181.write(oprot); } oprot.writeListEnd(); } @@ -57030,9 +73316,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentOutput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter102 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter182 : struct.success) { - _iter102.write(oprot); + _iter182.write(oprot); } } } @@ -57056,14 +73342,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getExperimentOutputs BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list103.size); - for (int _i104 = 0; _i104 < _list103.size; ++_i104) + org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list183.size); + for (int _i184 = 0; _i184 < _list183.size; ++_i184) { - org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem105; - _elem105 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); - _elem105.read(iprot); - struct.success.add(_elem105); + org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem185; + _elem185 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); + _elem185.read(iprot); + struct.success.add(_elem185); } } struct.setSuccessIsSet(true); @@ -58057,14 +74343,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getIntermediateOutp case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); - struct.success = new ArrayList(_list106.size); - for (int _i107 = 0; _i107 < _list106.size; ++_i107) + org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(); + struct.success = new ArrayList(_list186.size); + for (int _i187 = 0; _i187 < _list186.size; ++_i187) { - org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem108; - _elem108 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); - _elem108.read(iprot); - struct.success.add(_elem108); + org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem188; + _elem188 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); + _elem188.read(iprot); + struct.success.add(_elem188); } iprot.readListEnd(); } @@ -58128,9 +74414,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getIntermediateOut oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter109 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter189 : struct.success) { - _iter109.write(oprot); + _iter189.write(oprot); } oprot.writeListEnd(); } @@ -58193,9 +74479,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getIntermediateOutp if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter110 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter190 : struct.success) { - _iter110.write(oprot); + _iter190.write(oprot); } } } @@ -58219,14 +74505,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getIntermediateOutpu BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list111.size); - for (int _i112 = 0; _i112 < _list111.size; ++_i112) + org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list191.size); + for (int _i192 = 0; _i192 < _list191.size; ++_i192) { - org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem113; - _elem113 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); - _elem113.read(iprot); - struct.success.add(_elem113); + org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem193; + _elem193 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); + _elem193.read(iprot); + struct.success.add(_elem193); } } struct.setSuccessIsSet(true); @@ -59225,16 +75511,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getJobStatuses_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map114 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map114.size); - for (int _i115 = 0; _i115 < _map114.size; ++_i115) + org.apache.thrift.protocol.TMap _map194 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map194.size); + for (int _i195 = 0; _i195 < _map194.size; ++_i195) { - String _key116; - org.apache.airavata.model.workspace.experiment.JobStatus _val117; - _key116 = iprot.readString(); - _val117 = new org.apache.airavata.model.workspace.experiment.JobStatus(); - _val117.read(iprot); - struct.success.put(_key116, _val117); + String _key196; + org.apache.airavata.model.workspace.experiment.JobStatus _val197; + _key196 = iprot.readString(); + _val197 = new org.apache.airavata.model.workspace.experiment.JobStatus(); + _val197.read(iprot); + struct.success.put(_key196, _val197); } iprot.readMapEnd(); } @@ -59298,10 +75584,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getJobStatuses_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter118 : struct.success.entrySet()) + for (Map.Entry _iter198 : struct.success.entrySet()) { - oprot.writeString(_iter118.getKey()); - _iter118.getValue().write(oprot); + oprot.writeString(_iter198.getKey()); + _iter198.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -59364,10 +75650,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getJobStatuses_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter119 : struct.success.entrySet()) + for (Map.Entry _iter199 : struct.success.entrySet()) { - oprot.writeString(_iter119.getKey()); - _iter119.getValue().write(oprot); + oprot.writeString(_iter199.getKey()); + _iter199.getValue().write(oprot); } } } @@ -59391,16 +75677,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getJobStatuses_resul BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map120 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map120.size); - for (int _i121 = 0; _i121 < _map120.size; ++_i121) + org.apache.thrift.protocol.TMap _map200 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map200.size); + for (int _i201 = 0; _i201 < _map200.size; ++_i201) { - String _key122; - org.apache.airavata.model.workspace.experiment.JobStatus _val123; - _key122 = iprot.readString(); - _val123 = new org.apache.airavata.model.workspace.experiment.JobStatus(); - _val123.read(iprot); - struct.success.put(_key122, _val123); + String _key202; + org.apache.airavata.model.workspace.experiment.JobStatus _val203; + _key202 = iprot.readString(); + _val203 = new org.apache.airavata.model.workspace.experiment.JobStatus(); + _val203.read(iprot); + struct.success.put(_key202, _val203); } } struct.setSuccessIsSet(true); @@ -60394,14 +76680,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getJobDetails_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list124 = iprot.readListBegin(); - struct.success = new ArrayList(_list124.size); - for (int _i125 = 0; _i125 < _list124.size; ++_i125) + org.apache.thrift.protocol.TList _list204 = iprot.readListBegin(); + struct.success = new ArrayList(_list204.size); + for (int _i205 = 0; _i205 < _list204.size; ++_i205) { - org.apache.airavata.model.workspace.experiment.JobDetails _elem126; - _elem126 = new org.apache.airavata.model.workspace.experiment.JobDetails(); - _elem126.read(iprot); - struct.success.add(_elem126); + org.apache.airavata.model.workspace.experiment.JobDetails _elem206; + _elem206 = new org.apache.airavata.model.workspace.experiment.JobDetails(); + _elem206.read(iprot); + struct.success.add(_elem206); } iprot.readListEnd(); } @@ -60465,9 +76751,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getJobDetails_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.JobDetails _iter127 : struct.success) + for (org.apache.airavata.model.workspace.experiment.JobDetails _iter207 : struct.success) { - _iter127.write(oprot); + _iter207.write(oprot); } oprot.writeListEnd(); } @@ -60530,9 +76816,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getJobDetails_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.JobDetails _iter128 : struct.success) + for (org.apache.airavata.model.workspace.experiment.JobDetails _iter208 : struct.success) { - _iter128.write(oprot); + _iter208.write(oprot); } } } @@ -60556,14 +76842,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getJobDetails_result BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list129.size); - for (int _i130 = 0; _i130 < _list129.size; ++_i130) + org.apache.thrift.protocol.TList _list209 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list209.size); + for (int _i210 = 0; _i210 < _list209.size; ++_i210) { - org.apache.airavata.model.workspace.experiment.JobDetails _elem131; - _elem131 = new org.apache.airavata.model.workspace.experiment.JobDetails(); - _elem131.read(iprot); - struct.success.add(_elem131); + org.apache.airavata.model.workspace.experiment.JobDetails _elem211; + _elem211 = new org.apache.airavata.model.workspace.experiment.JobDetails(); + _elem211.read(iprot); + struct.success.add(_elem211); } } struct.setSuccessIsSet(true); @@ -61557,14 +77843,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getDataTransferDeta case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list132 = iprot.readListBegin(); - struct.success = new ArrayList(_list132.size); - for (int _i133 = 0; _i133 < _list132.size; ++_i133) + org.apache.thrift.protocol.TList _list212 = iprot.readListBegin(); + struct.success = new ArrayList(_list212.size); + for (int _i213 = 0; _i213 < _list212.size; ++_i213) { - org.apache.airavata.model.workspace.experiment.DataTransferDetails _elem134; - _elem134 = new org.apache.airavata.model.workspace.experiment.DataTransferDetails(); - _elem134.read(iprot); - struct.success.add(_elem134); + org.apache.airavata.model.workspace.experiment.DataTransferDetails _elem214; + _elem214 = new org.apache.airavata.model.workspace.experiment.DataTransferDetails(); + _elem214.read(iprot); + struct.success.add(_elem214); } iprot.readListEnd(); } @@ -61628,9 +77914,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getDataTransferDet oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.experiment.DataTransferDetails _iter135 : struct.success) + for (org.apache.airavata.model.workspace.experiment.DataTransferDetails _iter215 : struct.success) { - _iter135.write(oprot); + _iter215.write(oprot); } oprot.writeListEnd(); } @@ -61693,9 +77979,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getDataTransferDeta if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.experiment.DataTransferDetails _iter136 : struct.success) + for (org.apache.airavata.model.workspace.experiment.DataTransferDetails _iter216 : struct.success) { - _iter136.write(oprot); + _iter216.write(oprot); } } } @@ -61719,14 +78005,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getDataTransferDetai BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list137.size); - for (int _i138 = 0; _i138 < _list137.size; ++_i138) + org.apache.thrift.protocol.TList _list217 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list217.size); + for (int _i218 = 0; _i218 < _list217.size; ++_i218) { - org.apache.airavata.model.workspace.experiment.DataTransferDetails _elem139; - _elem139 = new org.apache.airavata.model.workspace.experiment.DataTransferDetails(); - _elem139.read(iprot); - struct.success.add(_elem139); + org.apache.airavata.model.workspace.experiment.DataTransferDetails _elem219; + _elem219 = new org.apache.airavata.model.workspace.experiment.DataTransferDetails(); + _elem219.read(iprot); + struct.success.add(_elem219); } } struct.setSuccessIsSet(true); @@ -68203,14 +84489,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllAppModules_re case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list140 = iprot.readListBegin(); - struct.success = new ArrayList(_list140.size); - for (int _i141 = 0; _i141 < _list140.size; ++_i141) + org.apache.thrift.protocol.TList _list220 = iprot.readListBegin(); + struct.success = new ArrayList(_list220.size); + for (int _i221 = 0; _i221 < _list220.size; ++_i221) { - org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem142; - _elem142 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); - _elem142.read(iprot); - struct.success.add(_elem142); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem222; + _elem222 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); + _elem222.read(iprot); + struct.success.add(_elem222); } iprot.readListEnd(); } @@ -68265,9 +84551,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllAppModules_r oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter143 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter223 : struct.success) { - _iter143.write(oprot); + _iter223.write(oprot); } oprot.writeListEnd(); } @@ -68322,9 +84608,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllAppModules_re if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter144 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter224 : struct.success) { - _iter144.write(oprot); + _iter224.write(oprot); } } } @@ -68345,14 +84631,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllAppModules_res BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list145.size); - for (int _i146 = 0; _i146 < _list145.size; ++_i146) + org.apache.thrift.protocol.TList _list225 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list225.size); + for (int _i226 = 0; _i226 < _list225.size; ++_i226) { - org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem147; - _elem147 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); - _elem147.read(iprot); - struct.success.add(_elem147); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem227; + _elem227 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); + _elem227.read(iprot); + struct.success.add(_elem227); } } struct.setSuccessIsSet(true); @@ -74506,14 +90792,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllApplicationDe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); - struct.success = new ArrayList(_list148.size); - for (int _i149 = 0; _i149 < _list148.size; ++_i149) + org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); + struct.success = new ArrayList(_list228.size); + for (int _i229 = 0; _i229 < _list228.size; ++_i229) { - org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem150; - _elem150 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); - _elem150.read(iprot); - struct.success.add(_elem150); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem230; + _elem230 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); + _elem230.read(iprot); + struct.success.add(_elem230); } iprot.readListEnd(); } @@ -74568,9 +90854,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllApplicationD oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter151 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter231 : struct.success) { - _iter151.write(oprot); + _iter231.write(oprot); } oprot.writeListEnd(); } @@ -74625,9 +90911,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllApplicationDe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter152 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter232 : struct.success) { - _iter152.write(oprot); + _iter232.write(oprot); } } } @@ -74648,14 +90934,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllApplicationDep BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list153.size); - for (int _i154 = 0; _i154 < _list153.size; ++_i154) + org.apache.thrift.protocol.TList _list233 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list233.size); + for (int _i234 = 0; _i234 < _list233.size; ++_i234) { - org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem155; - _elem155 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); - _elem155.read(iprot); - struct.success.add(_elem155); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem235; + _elem235 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); + _elem235.read(iprot); + struct.success.add(_elem235); } } struct.setSuccessIsSet(true); @@ -75564,13 +91850,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAppModuleDeploye case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); - struct.success = new ArrayList(_list156.size); - for (int _i157 = 0; _i157 < _list156.size; ++_i157) + org.apache.thrift.protocol.TList _list236 = iprot.readListBegin(); + struct.success = new ArrayList(_list236.size); + for (int _i237 = 0; _i237 < _list236.size; ++_i237) { - String _elem158; - _elem158 = iprot.readString(); - struct.success.add(_elem158); + String _elem238; + _elem238 = iprot.readString(); + struct.success.add(_elem238); } iprot.readListEnd(); } @@ -75625,9 +91911,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAppModuleDeploy oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter159 : struct.success) + for (String _iter239 : struct.success) { - oprot.writeString(_iter159); + oprot.writeString(_iter239); } oprot.writeListEnd(); } @@ -75682,9 +91968,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAppModuleDeploye if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter160 : struct.success) + for (String _iter240 : struct.success) { - oprot.writeString(_iter160); + oprot.writeString(_iter240); } } } @@ -75705,13 +91991,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAppModuleDeployed BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list161.size); - for (int _i162 = 0; _i162 < _list161.size; ++_i162) + org.apache.thrift.protocol.TList _list241 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list241.size); + for (int _i242 = 0; _i242 < _list241.size; ++_i242) { - String _elem163; - _elem163 = iprot.readString(); - struct.success.add(_elem163); + String _elem243; + _elem243 = iprot.readString(); + struct.success.add(_elem243); } } struct.setSuccessIsSet(true); @@ -80852,15 +97138,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllApplicationIn case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map164 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map164.size); - for (int _i165 = 0; _i165 < _map164.size; ++_i165) + org.apache.thrift.protocol.TMap _map244 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map244.size); + for (int _i245 = 0; _i245 < _map244.size; ++_i245) { - String _key166; - String _val167; - _key166 = iprot.readString(); - _val167 = iprot.readString(); - struct.success.put(_key166, _val167); + String _key246; + String _val247; + _key246 = iprot.readString(); + _val247 = iprot.readString(); + struct.success.put(_key246, _val247); } iprot.readMapEnd(); } @@ -80915,10 +97201,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllApplicationI oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter168 : struct.success.entrySet()) + for (Map.Entry _iter248 : struct.success.entrySet()) { - oprot.writeString(_iter168.getKey()); - oprot.writeString(_iter168.getValue()); + oprot.writeString(_iter248.getKey()); + oprot.writeString(_iter248.getValue()); } oprot.writeMapEnd(); } @@ -80973,10 +97259,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllApplicationIn if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter169 : struct.success.entrySet()) + for (Map.Entry _iter249 : struct.success.entrySet()) { - oprot.writeString(_iter169.getKey()); - oprot.writeString(_iter169.getValue()); + oprot.writeString(_iter249.getKey()); + oprot.writeString(_iter249.getValue()); } } } @@ -80997,15 +97283,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllApplicationInt BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map170 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map170.size); - for (int _i171 = 0; _i171 < _map170.size; ++_i171) + org.apache.thrift.protocol.TMap _map250 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map250.size); + for (int _i251 = 0; _i251 < _map250.size; ++_i251) { - String _key172; - String _val173; - _key172 = iprot.readString(); - _val173 = iprot.readString(); - struct.success.put(_key172, _val173); + String _key252; + String _val253; + _key252 = iprot.readString(); + _val253 = iprot.readString(); + struct.success.put(_key252, _val253); } } struct.setSuccessIsSet(true); @@ -81917,14 +98203,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllApplicationIn case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list174 = iprot.readListBegin(); - struct.success = new ArrayList(_list174.size); - for (int _i175 = 0; _i175 < _list174.size; ++_i175) + org.apache.thrift.protocol.TList _list254 = iprot.readListBegin(); + struct.success = new ArrayList(_list254.size); + for (int _i255 = 0; _i255 < _list254.size; ++_i255) { - org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem176; - _elem176 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); - _elem176.read(iprot); - struct.success.add(_elem176); + org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem256; + _elem256 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); + _elem256.read(iprot); + struct.success.add(_elem256); } iprot.readListEnd(); } @@ -81979,9 +98265,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllApplicationI oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter177 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter257 : struct.success) { - _iter177.write(oprot); + _iter257.write(oprot); } oprot.writeListEnd(); } @@ -82036,9 +98322,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllApplicationIn if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter178 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter258 : struct.success) { - _iter178.write(oprot); + _iter258.write(oprot); } } } @@ -82059,14 +98345,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllApplicationInt BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list179.size); - for (int _i180 = 0; _i180 < _list179.size; ++_i180) + org.apache.thrift.protocol.TList _list259 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list259.size); + for (int _i260 = 0; _i260 < _list259.size; ++_i260) { - org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem181; - _elem181 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); - _elem181.read(iprot); - struct.success.add(_elem181); + org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem261; + _elem261 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); + _elem261.read(iprot); + struct.success.add(_elem261); } } struct.setSuccessIsSet(true); @@ -82978,14 +99264,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getApplicationInput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list182 = iprot.readListBegin(); - struct.success = new ArrayList(_list182.size); - for (int _i183 = 0; _i183 < _list182.size; ++_i183) + org.apache.thrift.protocol.TList _list262 = iprot.readListBegin(); + struct.success = new ArrayList(_list262.size); + for (int _i263 = 0; _i263 < _list262.size; ++_i263) { - org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _elem184; - _elem184 = new org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType(); - _elem184.read(iprot); - struct.success.add(_elem184); + org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _elem264; + _elem264 = new org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType(); + _elem264.read(iprot); + struct.success.add(_elem264); } iprot.readListEnd(); } @@ -83040,9 +99326,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getApplicationInpu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _iter185 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _iter265 : struct.success) { - _iter185.write(oprot); + _iter265.write(oprot); } oprot.writeListEnd(); } @@ -83097,9 +99383,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getApplicationInput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _iter186 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _iter266 : struct.success) { - _iter186.write(oprot); + _iter266.write(oprot); } } } @@ -83120,14 +99406,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getApplicationInputs BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list187.size); - for (int _i188 = 0; _i188 < _list187.size; ++_i188) + org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list267.size); + for (int _i268 = 0; _i268 < _list267.size; ++_i268) { - org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _elem189; - _elem189 = new org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType(); - _elem189.read(iprot); - struct.success.add(_elem189); + org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType _elem269; + _elem269 = new org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType(); + _elem269.read(iprot); + struct.success.add(_elem269); } } struct.setSuccessIsSet(true); @@ -84039,14 +100325,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getApplicationOutpu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); - struct.success = new ArrayList(_list190.size); - for (int _i191 = 0; _i191 < _list190.size; ++_i191) + org.apache.thrift.protocol.TList _list270 = iprot.readListBegin(); + struct.success = new ArrayList(_list270.size); + for (int _i271 = 0; _i271 < _list270.size; ++_i271) { - org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem192; - _elem192 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); - _elem192.read(iprot); - struct.success.add(_elem192); + org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem272; + _elem272 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); + _elem272.read(iprot); + struct.success.add(_elem272); } iprot.readListEnd(); } @@ -84101,9 +100387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getApplicationOutp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter193 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter273 : struct.success) { - _iter193.write(oprot); + _iter273.write(oprot); } oprot.writeListEnd(); } @@ -84158,9 +100444,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getApplicationOutpu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter194 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _iter274 : struct.success) { - _iter194.write(oprot); + _iter274.write(oprot); } } } @@ -84181,14 +100467,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getApplicationOutput BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list195.size); - for (int _i196 = 0; _i196 < _list195.size; ++_i196) + org.apache.thrift.protocol.TList _list275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list275.size); + for (int _i276 = 0; _i276 < _list275.size; ++_i276) { - org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem197; - _elem197 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); - _elem197.read(iprot); - struct.success.add(_elem197); + org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType _elem277; + _elem277 = new org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType(); + _elem277.read(iprot); + struct.success.add(_elem277); } } struct.setSuccessIsSet(true); @@ -85094,15 +101380,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAvailableAppInte case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map198 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map198.size); - for (int _i199 = 0; _i199 < _map198.size; ++_i199) + org.apache.thrift.protocol.TMap _map278 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map278.size); + for (int _i279 = 0; _i279 < _map278.size; ++_i279) { - String _key200; - String _val201; - _key200 = iprot.readString(); - _val201 = iprot.readString(); - struct.success.put(_key200, _val201); + String _key280; + String _val281; + _key280 = iprot.readString(); + _val281 = iprot.readString(); + struct.success.put(_key280, _val281); } iprot.readMapEnd(); } @@ -85157,10 +101443,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAvailableAppInt oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter202 : struct.success.entrySet()) + for (Map.Entry _iter282 : struct.success.entrySet()) { - oprot.writeString(_iter202.getKey()); - oprot.writeString(_iter202.getValue()); + oprot.writeString(_iter282.getKey()); + oprot.writeString(_iter282.getValue()); } oprot.writeMapEnd(); } @@ -85215,10 +101501,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAvailableAppInte if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter203 : struct.success.entrySet()) + for (Map.Entry _iter283 : struct.success.entrySet()) { - oprot.writeString(_iter203.getKey()); - oprot.writeString(_iter203.getValue()); + oprot.writeString(_iter283.getKey()); + oprot.writeString(_iter283.getValue()); } } } @@ -85239,15 +101525,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAvailableAppInter BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map204 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map204.size); - for (int _i205 = 0; _i205 < _map204.size; ++_i205) + org.apache.thrift.protocol.TMap _map284 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map284.size); + for (int _i285 = 0; _i285 < _map284.size; ++_i285) { - String _key206; - String _val207; - _key206 = iprot.readString(); - _val207 = iprot.readString(); - struct.success.put(_key206, _val207); + String _key286; + String _val287; + _key286 = iprot.readString(); + _val287 = iprot.readString(); + struct.success.put(_key286, _val287); } } struct.setSuccessIsSet(true); @@ -88076,15 +104362,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllComputeResour case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map208 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map208.size); - for (int _i209 = 0; _i209 < _map208.size; ++_i209) + org.apache.thrift.protocol.TMap _map288 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map288.size); + for (int _i289 = 0; _i289 < _map288.size; ++_i289) { - String _key210; - String _val211; - _key210 = iprot.readString(); - _val211 = iprot.readString(); - struct.success.put(_key210, _val211); + String _key290; + String _val291; + _key290 = iprot.readString(); + _val291 = iprot.readString(); + struct.success.put(_key290, _val291); } iprot.readMapEnd(); } @@ -88139,10 +104425,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllComputeResou oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter212 : struct.success.entrySet()) + for (Map.Entry _iter292 : struct.success.entrySet()) { - oprot.writeString(_iter212.getKey()); - oprot.writeString(_iter212.getValue()); + oprot.writeString(_iter292.getKey()); + oprot.writeString(_iter292.getValue()); } oprot.writeMapEnd(); } @@ -88197,10 +104483,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllComputeResour if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter213 : struct.success.entrySet()) + for (Map.Entry _iter293 : struct.success.entrySet()) { - oprot.writeString(_iter213.getKey()); - oprot.writeString(_iter213.getValue()); + oprot.writeString(_iter293.getKey()); + oprot.writeString(_iter293.getValue()); } } } @@ -88221,15 +104507,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllComputeResourc BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map214.size); - for (int _i215 = 0; _i215 < _map214.size; ++_i215) + org.apache.thrift.protocol.TMap _map294 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map294.size); + for (int _i295 = 0; _i295 < _map294.size; ++_i295) { - String _key216; - String _val217; - _key216 = iprot.readString(); - _val217 = iprot.readString(); - struct.success.put(_key216, _val217); + String _key296; + String _val297; + _key296 = iprot.readString(); + _val297 = iprot.readString(); + struct.success.put(_key296, _val297); } } struct.setSuccessIsSet(true); @@ -119463,15 +135749,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, changeJobSubmission case 1: // JOB_SUBMISSION_PRIORITY_MAP if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin(); - struct.jobSubmissionPriorityMap = new HashMap(2*_map218.size); - for (int _i219 = 0; _i219 < _map218.size; ++_i219) + org.apache.thrift.protocol.TMap _map298 = iprot.readMapBegin(); + struct.jobSubmissionPriorityMap = new HashMap(2*_map298.size); + for (int _i299 = 0; _i299 < _map298.size; ++_i299) { - String _key220; - int _val221; - _key220 = iprot.readString(); - _val221 = iprot.readI32(); - struct.jobSubmissionPriorityMap.put(_key220, _val221); + String _key300; + int _val301; + _key300 = iprot.readString(); + _val301 = iprot.readI32(); + struct.jobSubmissionPriorityMap.put(_key300, _val301); } iprot.readMapEnd(); } @@ -119499,10 +135785,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, changeJobSubmissio oprot.writeFieldBegin(JOB_SUBMISSION_PRIORITY_MAP_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.jobSubmissionPriorityMap.size())); - for (Map.Entry _iter222 : struct.jobSubmissionPriorityMap.entrySet()) + for (Map.Entry _iter302 : struct.jobSubmissionPriorityMap.entrySet()) { - oprot.writeString(_iter222.getKey()); - oprot.writeI32(_iter222.getValue()); + oprot.writeString(_iter302.getKey()); + oprot.writeI32(_iter302.getValue()); } oprot.writeMapEnd(); } @@ -119527,10 +135813,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeJobSubmission TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.jobSubmissionPriorityMap.size()); - for (Map.Entry _iter223 : struct.jobSubmissionPriorityMap.entrySet()) + for (Map.Entry _iter303 : struct.jobSubmissionPriorityMap.entrySet()) { - oprot.writeString(_iter223.getKey()); - oprot.writeI32(_iter223.getValue()); + oprot.writeString(_iter303.getKey()); + oprot.writeI32(_iter303.getValue()); } } } @@ -119539,15 +135825,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeJobSubmission public void read(org.apache.thrift.protocol.TProtocol prot, changeJobSubmissionPriorities_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map224 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.jobSubmissionPriorityMap = new HashMap(2*_map224.size); - for (int _i225 = 0; _i225 < _map224.size; ++_i225) + org.apache.thrift.protocol.TMap _map304 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.jobSubmissionPriorityMap = new HashMap(2*_map304.size); + for (int _i305 = 0; _i305 < _map304.size; ++_i305) { - String _key226; - int _val227; - _key226 = iprot.readString(); - _val227 = iprot.readI32(); - struct.jobSubmissionPriorityMap.put(_key226, _val227); + String _key306; + int _val307; + _key306 = iprot.readString(); + _val307 = iprot.readI32(); + struct.jobSubmissionPriorityMap.put(_key306, _val307); } } struct.setJobSubmissionPriorityMapIsSet(true); @@ -120522,15 +136808,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, changeDataMovementP case 1: // DATA_MOVEMENT_PRIORITY_MAP if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map228 = iprot.readMapBegin(); - struct.dataMovementPriorityMap = new HashMap(2*_map228.size); - for (int _i229 = 0; _i229 < _map228.size; ++_i229) + org.apache.thrift.protocol.TMap _map308 = iprot.readMapBegin(); + struct.dataMovementPriorityMap = new HashMap(2*_map308.size); + for (int _i309 = 0; _i309 < _map308.size; ++_i309) { - String _key230; - int _val231; - _key230 = iprot.readString(); - _val231 = iprot.readI32(); - struct.dataMovementPriorityMap.put(_key230, _val231); + String _key310; + int _val311; + _key310 = iprot.readString(); + _val311 = iprot.readI32(); + struct.dataMovementPriorityMap.put(_key310, _val311); } iprot.readMapEnd(); } @@ -120558,10 +136844,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, changeDataMovement oprot.writeFieldBegin(DATA_MOVEMENT_PRIORITY_MAP_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.dataMovementPriorityMap.size())); - for (Map.Entry _iter232 : struct.dataMovementPriorityMap.entrySet()) + for (Map.Entry _iter312 : struct.dataMovementPriorityMap.entrySet()) { - oprot.writeString(_iter232.getKey()); - oprot.writeI32(_iter232.getValue()); + oprot.writeString(_iter312.getKey()); + oprot.writeI32(_iter312.getValue()); } oprot.writeMapEnd(); } @@ -120586,10 +136872,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeDataMovementP TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.dataMovementPriorityMap.size()); - for (Map.Entry _iter233 : struct.dataMovementPriorityMap.entrySet()) + for (Map.Entry _iter313 : struct.dataMovementPriorityMap.entrySet()) { - oprot.writeString(_iter233.getKey()); - oprot.writeI32(_iter233.getValue()); + oprot.writeString(_iter313.getKey()); + oprot.writeI32(_iter313.getValue()); } } } @@ -120598,15 +136884,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeDataMovementP public void read(org.apache.thrift.protocol.TProtocol prot, changeDataMovementPriorities_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map234 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.dataMovementPriorityMap = new HashMap(2*_map234.size); - for (int _i235 = 0; _i235 < _map234.size; ++_i235) + org.apache.thrift.protocol.TMap _map314 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.dataMovementPriorityMap = new HashMap(2*_map314.size); + for (int _i315 = 0; _i315 < _map314.size; ++_i315) { - String _key236; - int _val237; - _key236 = iprot.readString(); - _val237 = iprot.readI32(); - struct.dataMovementPriorityMap.put(_key236, _val237); + String _key316; + int _val317; + _key316 = iprot.readString(); + _val317 = iprot.readI32(); + struct.dataMovementPriorityMap.put(_key316, _val317); } } struct.setDataMovementPriorityMapIsSet(true); @@ -136061,14 +152347,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllGatewayComput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list238 = iprot.readListBegin(); - struct.success = new ArrayList(_list238.size); - for (int _i239 = 0; _i239 < _list238.size; ++_i239) + org.apache.thrift.protocol.TList _list318 = iprot.readListBegin(); + struct.success = new ArrayList(_list318.size); + for (int _i319 = 0; _i319 < _list318.size; ++_i319) { - org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem240; - _elem240 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); - _elem240.read(iprot); - struct.success.add(_elem240); + org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem320; + _elem320 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); + _elem320.read(iprot); + struct.success.add(_elem320); } iprot.readListEnd(); } @@ -136123,9 +152409,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllGatewayCompu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter241 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter321 : struct.success) { - _iter241.write(oprot); + _iter321.write(oprot); } oprot.writeListEnd(); } @@ -136180,9 +152466,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllGatewayComput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter242 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter322 : struct.success) { - _iter242.write(oprot); + _iter322.write(oprot); } } } @@ -136203,14 +152489,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllGatewayCompute BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list243.size); - for (int _i244 = 0; _i244 < _list243.size; ++_i244) + org.apache.thrift.protocol.TList _list323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list323.size); + for (int _i324 = 0; _i324 < _list323.size; ++_i324) { - org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem245; - _elem245 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); - _elem245.read(iprot); - struct.success.add(_elem245); + org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem325; + _elem325 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); + _elem325.read(iprot); + struct.success.add(_elem325); } } struct.setSuccessIsSet(true); @@ -137021,14 +153307,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllGatewayComput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list246 = iprot.readListBegin(); - struct.success = new ArrayList(_list246.size); - for (int _i247 = 0; _i247 < _list246.size; ++_i247) + org.apache.thrift.protocol.TList _list326 = iprot.readListBegin(); + struct.success = new ArrayList(_list326.size); + for (int _i327 = 0; _i327 < _list326.size; ++_i327) { - org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem248; - _elem248 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); - _elem248.read(iprot); - struct.success.add(_elem248); + org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem328; + _elem328 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); + _elem328.read(iprot); + struct.success.add(_elem328); } iprot.readListEnd(); } @@ -137083,9 +153369,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllGatewayCompu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter249 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter329 : struct.success) { - _iter249.write(oprot); + _iter329.write(oprot); } oprot.writeListEnd(); } @@ -137140,9 +153426,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllGatewayComput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter250 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter330 : struct.success) { - _iter250.write(oprot); + _iter330.write(oprot); } } } @@ -137163,14 +153449,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllGatewayCompute BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list251 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list251.size); - for (int _i252 = 0; _i252 < _list251.size; ++_i252) + org.apache.thrift.protocol.TList _list331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list331.size); + for (int _i332 = 0; _i332 < _list331.size; ++_i332) { - org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem253; - _elem253 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); - _elem253.read(iprot); - struct.success.add(_elem253); + org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem333; + _elem333 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); + _elem333.read(iprot); + struct.success.add(_elem333); } } struct.setSuccessIsSet(true); @@ -140386,13 +156672,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllWorkflows_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list254 = iprot.readListBegin(); - struct.success = new ArrayList(_list254.size); - for (int _i255 = 0; _i255 < _list254.size; ++_i255) + org.apache.thrift.protocol.TList _list334 = iprot.readListBegin(); + struct.success = new ArrayList(_list334.size); + for (int _i335 = 0; _i335 < _list334.size; ++_i335) { - String _elem256; - _elem256 = iprot.readString(); - struct.success.add(_elem256); + String _elem336; + _elem336 = iprot.readString(); + struct.success.add(_elem336); } iprot.readListEnd(); } @@ -140447,9 +156733,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllWorkflows_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter257 : struct.success) + for (String _iter337 : struct.success) { - oprot.writeString(_iter257); + oprot.writeString(_iter337); } oprot.writeListEnd(); } @@ -140504,9 +156790,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllWorkflows_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter258 : struct.success) + for (String _iter338 : struct.success) { - oprot.writeString(_iter258); + oprot.writeString(_iter338); } } } @@ -140527,13 +156813,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllWorkflows_resu BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list259 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list259.size); - for (int _i260 = 0; _i260 < _list259.size; ++_i260) + org.apache.thrift.protocol.TList _list339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list339.size); + for (int _i340 = 0; _i340 < _list339.size; ++_i340) { - String _elem261; - _elem261 = iprot.readString(); - struct.success.add(_elem261); + String _elem341; + _elem341 = iprot.readString(); + struct.success.add(_elem341); } } struct.setSuccessIsSet(true); diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp index ac590e310a..8c7d1ee5bd 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp @@ -3570,7 +3570,7 @@ uint32_t Airavata_getAllUserProjects_presult::read(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserProjectsWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -3583,7 +3583,8 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto bool isset_gatewayId = false; bool isset_userName = false; - bool isset_projectName = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -3610,9 +3611,17 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto } break; case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->projectName); - isset_projectName = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -3630,14 +3639,16 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_projectName) + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchProjectsByProjectName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserProjectsWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_args"); + xfer += oprot->writeStructBegin("Airavata_getAllUserProjectsWithPagination_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -3647,8 +3658,12 @@ uint32_t Airavata_searchProjectsByProjectName_args::write(::apache::thrift::prot xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->projectName); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -3656,9 +3671,9 @@ uint32_t Airavata_searchProjectsByProjectName_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_searchProjectsByProjectName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserProjectsWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAllUserProjectsWithPagination_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -3668,8 +3683,12 @@ uint32_t Airavata_searchProjectsByProjectName_pargs::write(::apache::thrift::pro xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->projectName))); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -3677,7 +3696,7 @@ uint32_t Airavata_searchProjectsByProjectName_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_searchProjectsByProjectName_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserProjectsWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -3753,11 +3772,11 @@ uint32_t Airavata_searchProjectsByProjectName_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_searchProjectsByProjectName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserProjectsWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_result"); + xfer += oprot->writeStructBegin("Airavata_getAllUserProjectsWithPagination_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); @@ -3789,7 +3808,7 @@ uint32_t Airavata_searchProjectsByProjectName_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_searchProjectsByProjectName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserProjectsWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -3865,7 +3884,7 @@ uint32_t Airavata_searchProjectsByProjectName_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -3878,7 +3897,7 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto bool isset_gatewayId = false; bool isset_userName = false; - bool isset_description = false; + bool isset_projectName = false; while (true) { @@ -3906,8 +3925,8 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto break; case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->description); - isset_description = true; + xfer += iprot->readString(this->projectName); + isset_projectName = true; } else { xfer += iprot->skip(ftype); } @@ -3925,14 +3944,14 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_description) + if (!isset_projectName) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_args"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -3942,8 +3961,8 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::write(::apache::thrift::prot xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->description); + xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->projectName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -3951,9 +3970,9 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -3963,8 +3982,8 @@ uint32_t Airavata_searchProjectsByProjectDesc_pargs::write(::apache::thrift::pro xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->description))); + xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->projectName))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -3972,7 +3991,7 @@ uint32_t Airavata_searchProjectsByProjectDesc_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectName_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4048,11 +4067,11 @@ uint32_t Airavata_searchProjectsByProjectDesc_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_result"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); @@ -4084,7 +4103,7 @@ uint32_t Airavata_searchProjectsByProjectDesc_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4160,7 +4179,7 @@ uint32_t Airavata_searchProjectsByProjectDesc_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4173,7 +4192,9 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: bool isset_gatewayId = false; bool isset_userName = false; - bool isset_expName = false; + bool isset_projectName = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -4201,8 +4222,24 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: break; case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->expName); - isset_expName = true; + xfer += iprot->readString(this->projectName); + isset_projectName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -4220,14 +4257,18 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_expName) + if (!isset_projectName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_args"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectNameWithPagination_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -4237,8 +4278,16 @@ uint32_t Airavata_searchExperimentsByName_args::write(::apache::thrift::protocol xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->expName); + xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->projectName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -4246,9 +4295,9 @@ uint32_t Airavata_searchExperimentsByName_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_searchExperimentsByName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectNameWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectNameWithPagination_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -4258,8 +4307,16 @@ uint32_t Airavata_searchExperimentsByName_pargs::write(::apache::thrift::protoco xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->expName))); + xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->projectName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -4267,7 +4324,7 @@ uint32_t Airavata_searchExperimentsByName_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectNameWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4343,17 +4400,17 @@ uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_searchExperimentsByName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectNameWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_result"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectNameWithPagination_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter64; + std::vector< ::apache::airavata::model::workspace::Project> ::const_iterator _iter64; for (_iter64 = this->success.begin(); _iter64 != this->success.end(); ++_iter64) { xfer += (*_iter64).write(oprot); @@ -4379,7 +4436,7 @@ uint32_t Airavata_searchExperimentsByName_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectNameWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4455,7 +4512,7 @@ uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4520,9 +4577,9 @@ uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_searchExperimentsByDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_args"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -4541,9 +4598,9 @@ uint32_t Airavata_searchExperimentsByDesc_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_searchExperimentsByDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -4562,7 +4619,7 @@ uint32_t Airavata_searchExperimentsByDesc_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_searchExperimentsByDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4638,17 +4695,17 @@ uint32_t Airavata_searchExperimentsByDesc_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_searchExperimentsByDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_result"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter75; + std::vector< ::apache::airavata::model::workspace::Project> ::const_iterator _iter75; for (_iter75 = this->success.begin(); _iter75 != this->success.end(); ++_iter75) { xfer += (*_iter75).write(oprot); @@ -4674,7 +4731,7 @@ uint32_t Airavata_searchExperimentsByDesc_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4750,7 +4807,7 @@ uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4763,7 +4820,9 @@ uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::pr bool isset_gatewayId = false; bool isset_userName = false; - bool isset_applicationId = false; + bool isset_description = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -4791,8 +4850,24 @@ uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::pr break; case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationId); - isset_applicationId = true; + xfer += iprot->readString(this->description); + isset_description = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -4810,14 +4885,18 @@ uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::pr throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationId) + if (!isset_description) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByApplication_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_args"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDescWithPagination_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -4827,8 +4906,16 @@ uint32_t Airavata_searchExperimentsByApplication_args::write(::apache::thrift::p xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->applicationId); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->description); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -4836,9 +4923,9 @@ uint32_t Airavata_searchExperimentsByApplication_args::write(::apache::thrift::p return xfer; } -uint32_t Airavata_searchExperimentsByApplication_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDescWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDescWithPagination_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -4848,8 +4935,16 @@ uint32_t Airavata_searchExperimentsByApplication_pargs::write(::apache::thrift:: xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->applicationId))); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->description))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -4857,7 +4952,7 @@ uint32_t Airavata_searchExperimentsByApplication_pargs::write(::apache::thrift:: return xfer; } -uint32_t Airavata_searchExperimentsByApplication_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDescWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4933,17 +5028,17 @@ uint32_t Airavata_searchExperimentsByApplication_result::read(::apache::thrift:: return xfer; } -uint32_t Airavata_searchExperimentsByApplication_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDescWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_result"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDescWithPagination_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter86; + std::vector< ::apache::airavata::model::workspace::Project> ::const_iterator _iter86; for (_iter86 = this->success.begin(); _iter86 != this->success.end(); ++_iter86) { xfer += (*_iter86).write(oprot); @@ -4969,7 +5064,7 @@ uint32_t Airavata_searchExperimentsByApplication_result::write(::apache::thrift: return xfer; } -uint32_t Airavata_searchExperimentsByApplication_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDescWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5045,7 +5140,7 @@ uint32_t Airavata_searchExperimentsByApplication_presult::read(::apache::thrift: return xfer; } -uint32_t Airavata_searchExperimentsByStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5058,7 +5153,7 @@ uint32_t Airavata_searchExperimentsByStatus_args::read(::apache::thrift::protoco bool isset_gatewayId = false; bool isset_userName = false; - bool isset_experimentState = false; + bool isset_expName = false; while (true) { @@ -5085,11 +5180,9 @@ uint32_t Airavata_searchExperimentsByStatus_args::read(::apache::thrift::protoco } break; case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast92; - xfer += iprot->readI32(ecast92); - this->experimentState = ( ::apache::airavata::model::workspace::experiment::ExperimentState::type)ecast92; - isset_experimentState = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->expName); + isset_expName = true; } else { xfer += iprot->skip(ftype); } @@ -5107,14 +5200,14 @@ uint32_t Airavata_searchExperimentsByStatus_args::read(::apache::thrift::protoco throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_experimentState) + if (!isset_expName) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -5124,8 +5217,8 @@ uint32_t Airavata_searchExperimentsByStatus_args::write(::apache::thrift::protoc xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->experimentState); + xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->expName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5133,9 +5226,9 @@ uint32_t Airavata_searchExperimentsByStatus_args::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_searchExperimentsByStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -5145,8 +5238,8 @@ uint32_t Airavata_searchExperimentsByStatus_pargs::write(::apache::thrift::proto xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)(*(this->experimentState))); + xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->expName))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5154,7 +5247,7 @@ uint32_t Airavata_searchExperimentsByStatus_pargs::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_searchExperimentsByStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5178,14 +5271,14 @@ uint32_t Airavata_searchExperimentsByStatus_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _etype96; - xfer += iprot->readListBegin(_etype96, _size93); - this->success.resize(_size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size92; + ::apache::thrift::protocol::TType _etype95; + xfer += iprot->readListBegin(_etype95, _size92); + this->success.resize(_size92); + uint32_t _i96; + for (_i96 = 0; _i96 < _size92; ++_i96) { - xfer += this->success[_i97].read(iprot); + xfer += this->success[_i96].read(iprot); } xfer += iprot->readListEnd(); } @@ -5230,20 +5323,20 @@ uint32_t Airavata_searchExperimentsByStatus_result::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_searchExperimentsByStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter98; - for (_iter98 = this->success.begin(); _iter98 != this->success.end(); ++_iter98) + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter97; + for (_iter97 = this->success.begin(); _iter97 != this->success.end(); ++_iter97) { - xfer += (*_iter98).write(oprot); + xfer += (*_iter97).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5266,7 +5359,7 @@ uint32_t Airavata_searchExperimentsByStatus_result::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_searchExperimentsByStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5290,14 +5383,14 @@ uint32_t Airavata_searchExperimentsByStatus_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size99; - ::apache::thrift::protocol::TType _etype102; - xfer += iprot->readListBegin(_etype102, _size99); - (*(this->success)).resize(_size99); - uint32_t _i103; - for (_i103 = 0; _i103 < _size99; ++_i103) + uint32_t _size98; + ::apache::thrift::protocol::TType _etype101; + xfer += iprot->readListBegin(_etype101, _size98); + (*(this->success)).resize(_size98); + uint32_t _i102; + for (_i102 = 0; _i102 < _size98; ++_i102) { - xfer += (*(this->success))[_i103].read(iprot); + xfer += (*(this->success))[_i102].read(iprot); } xfer += iprot->readListEnd(); } @@ -5342,7 +5435,7 @@ uint32_t Airavata_searchExperimentsByStatus_presult::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_searchExperimentsByCreationTime_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByNameWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5355,8 +5448,9 @@ uint32_t Airavata_searchExperimentsByCreationTime_args::read(::apache::thrift::p bool isset_gatewayId = false; bool isset_userName = false; - bool isset_fromTime = false; - bool isset_toTime = false; + bool isset_expName = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -5383,17 +5477,25 @@ uint32_t Airavata_searchExperimentsByCreationTime_args::read(::apache::thrift::p } break; case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->fromTime); - isset_fromTime = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->expName); + isset_expName = true; } else { xfer += iprot->skip(ftype); } break; case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->toTime); - isset_toTime = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -5411,16 +5513,18 @@ uint32_t Airavata_searchExperimentsByCreationTime_args::read(::apache::thrift::p throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_fromTime) + if (!isset_expName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_toTime) + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByCreationTime_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByNameWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByNameWithPagination_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -5430,12 +5534,16 @@ uint32_t Airavata_searchExperimentsByCreationTime_args::write(::apache::thrift:: xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->fromTime); + xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->expName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->toTime); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5443,9 +5551,9 @@ uint32_t Airavata_searchExperimentsByCreationTime_args::write(::apache::thrift:: return xfer; } -uint32_t Airavata_searchExperimentsByCreationTime_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByNameWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByNameWithPagination_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -5455,12 +5563,16 @@ uint32_t Airavata_searchExperimentsByCreationTime_pargs::write(::apache::thrift: xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64((*(this->fromTime))); + xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->expName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64((*(this->toTime))); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5468,7 +5580,7 @@ uint32_t Airavata_searchExperimentsByCreationTime_pargs::write(::apache::thrift: return xfer; } -uint32_t Airavata_searchExperimentsByCreationTime_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByNameWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5492,14 +5604,14 @@ uint32_t Airavata_searchExperimentsByCreationTime_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size104; - ::apache::thrift::protocol::TType _etype107; - xfer += iprot->readListBegin(_etype107, _size104); - this->success.resize(_size104); - uint32_t _i108; - for (_i108 = 0; _i108 < _size104; ++_i108) + uint32_t _size103; + ::apache::thrift::protocol::TType _etype106; + xfer += iprot->readListBegin(_etype106, _size103); + this->success.resize(_size103); + uint32_t _i107; + for (_i107 = 0; _i107 < _size103; ++_i107) { - xfer += this->success[_i108].read(iprot); + xfer += this->success[_i107].read(iprot); } xfer += iprot->readListEnd(); } @@ -5544,20 +5656,20 @@ uint32_t Airavata_searchExperimentsByCreationTime_result::read(::apache::thrift: return xfer; } -uint32_t Airavata_searchExperimentsByCreationTime_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByNameWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByNameWithPagination_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter109; - for (_iter109 = this->success.begin(); _iter109 != this->success.end(); ++_iter109) + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter108; + for (_iter108 = this->success.begin(); _iter108 != this->success.end(); ++_iter108) { - xfer += (*_iter109).write(oprot); + xfer += (*_iter108).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5580,7 +5692,7 @@ uint32_t Airavata_searchExperimentsByCreationTime_result::write(::apache::thrift return xfer; } -uint32_t Airavata_searchExperimentsByCreationTime_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByNameWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5604,14 +5716,14 @@ uint32_t Airavata_searchExperimentsByCreationTime_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size110; - ::apache::thrift::protocol::TType _etype113; - xfer += iprot->readListBegin(_etype113, _size110); - (*(this->success)).resize(_size110); - uint32_t _i114; - for (_i114 = 0; _i114 < _size110; ++_i114) + uint32_t _size109; + ::apache::thrift::protocol::TType _etype112; + xfer += iprot->readListBegin(_etype112, _size109); + (*(this->success)).resize(_size109); + uint32_t _i113; + for (_i113 = 0; _i113 < _size109; ++_i113) { - xfer += (*(this->success))[_i114].read(iprot); + xfer += (*(this->success))[_i113].read(iprot); } xfer += iprot->readListEnd(); } @@ -5656,7 +5768,7 @@ uint32_t Airavata_searchExperimentsByCreationTime_presult::read(::apache::thrift return xfer; } -uint32_t Airavata_getAllExperimentsInProject_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5667,7 +5779,9 @@ uint32_t Airavata_getAllExperimentsInProject_args::read(::apache::thrift::protoc using ::apache::thrift::protocol::TProtocolException; - bool isset_projectId = false; + bool isset_gatewayId = false; + bool isset_userName = false; + bool isset_description = false; while (true) { @@ -5679,8 +5793,24 @@ uint32_t Airavata_getAllExperimentsInProject_args::read(::apache::thrift::protoc { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->projectId); - isset_projectId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->description); + isset_description = true; } else { xfer += iprot->skip(ftype); } @@ -5694,17 +5824,29 @@ uint32_t Airavata_getAllExperimentsInProject_args::read(::apache::thrift::protoc xfer += iprot->readStructEnd(); - if (!isset_projectId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_description) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllExperimentsInProject_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_args"); - xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->projectId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->description); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5712,12 +5854,20 @@ uint32_t Airavata_getAllExperimentsInProject_args::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_getAllExperimentsInProject_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_pargs"); - xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->projectId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->description))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5725,7 +5875,7 @@ uint32_t Airavata_getAllExperimentsInProject_pargs::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_getAllExperimentsInProject_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5749,14 +5899,14 @@ uint32_t Airavata_getAllExperimentsInProject_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size115; - ::apache::thrift::protocol::TType _etype118; - xfer += iprot->readListBegin(_etype118, _size115); - this->success.resize(_size115); - uint32_t _i119; - for (_i119 = 0; _i119 < _size115; ++_i119) + uint32_t _size114; + ::apache::thrift::protocol::TType _etype117; + xfer += iprot->readListBegin(_etype117, _size114); + this->success.resize(_size114); + uint32_t _i118; + for (_i118 = 0; _i118 < _size114; ++_i118) { - xfer += this->success[_i119].read(iprot); + xfer += this->success[_i118].read(iprot); } xfer += iprot->readListEnd(); } @@ -5789,14 +5939,6 @@ uint32_t Airavata_getAllExperimentsInProject_result::read(::apache::thrift::prot xfer += iprot->skip(ftype); } break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pnfe.read(iprot); - this->__isset.pnfe = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -5809,20 +5951,20 @@ uint32_t Airavata_getAllExperimentsInProject_result::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_getAllExperimentsInProject_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::Experiment> ::const_iterator _iter120; - for (_iter120 = this->success.begin(); _iter120 != this->success.end(); ++_iter120) + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter119; + for (_iter119 = this->success.begin(); _iter119 != this->success.end(); ++_iter119) { - xfer += (*_iter120).write(oprot); + xfer += (*_iter119).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5839,17 +5981,13 @@ uint32_t Airavata_getAllExperimentsInProject_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.pnfe) { - xfer += oprot->writeFieldBegin("pnfe", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->pnfe.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAllExperimentsInProject_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5873,14 +6011,14 @@ uint32_t Airavata_getAllExperimentsInProject_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size121; - ::apache::thrift::protocol::TType _etype124; - xfer += iprot->readListBegin(_etype124, _size121); - (*(this->success)).resize(_size121); - uint32_t _i125; - for (_i125 = 0; _i125 < _size121; ++_i125) + uint32_t _size120; + ::apache::thrift::protocol::TType _etype123; + xfer += iprot->readListBegin(_etype123, _size120); + (*(this->success)).resize(_size120); + uint32_t _i124; + for (_i124 = 0; _i124 < _size120; ++_i124) { - xfer += (*(this->success))[_i125].read(iprot); + xfer += (*(this->success))[_i124].read(iprot); } xfer += iprot->readListEnd(); } @@ -5913,14 +6051,6 @@ uint32_t Airavata_getAllExperimentsInProject_presult::read(::apache::thrift::pro xfer += iprot->skip(ftype); } break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pnfe.read(iprot); - this->__isset.pnfe = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -5933,7 +6063,7 @@ uint32_t Airavata_getAllExperimentsInProject_presult::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_getAllUserExperiments_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDescWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5946,6 +6076,9 @@ uint32_t Airavata_getAllUserExperiments_args::read(::apache::thrift::protocol::T bool isset_gatewayId = false; bool isset_userName = false; + bool isset_description = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -5971,6 +6104,30 @@ uint32_t Airavata_getAllUserExperiments_args::read(::apache::thrift::protocol::T xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->description); + isset_description = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5984,12 +6141,18 @@ uint32_t Airavata_getAllUserExperiments_args::read(::apache::thrift::protocol::T throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_description) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllUserExperiments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDescWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDescWithPagination_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); @@ -5999,14 +6162,26 @@ uint32_t Airavata_getAllUserExperiments_args::write(::apache::thrift::protocol:: xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->description); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->offset); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAllUserExperiments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDescWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDescWithPagination_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); @@ -6016,12 +6191,24 @@ uint32_t Airavata_getAllUserExperiments_pargs::write(::apache::thrift::protocol: xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->description))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->offset))); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAllUserExperiments_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDescWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6045,14 +6232,14 @@ uint32_t Airavata_getAllUserExperiments_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size126; - ::apache::thrift::protocol::TType _etype129; - xfer += iprot->readListBegin(_etype129, _size126); - this->success.resize(_size126); - uint32_t _i130; - for (_i130 = 0; _i130 < _size126; ++_i130) + uint32_t _size125; + ::apache::thrift::protocol::TType _etype128; + xfer += iprot->readListBegin(_etype128, _size125); + this->success.resize(_size125); + uint32_t _i129; + for (_i129 = 0; _i129 < _size125; ++_i129) { - xfer += this->success[_i130].read(iprot); + xfer += this->success[_i129].read(iprot); } xfer += iprot->readListEnd(); } @@ -6097,20 +6284,20 @@ uint32_t Airavata_getAllUserExperiments_result::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getAllUserExperiments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDescWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDescWithPagination_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::Experiment> ::const_iterator _iter131; - for (_iter131 = this->success.begin(); _iter131 != this->success.end(); ++_iter131) + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter130; + for (_iter130 = this->success.begin(); _iter130 != this->success.end(); ++_iter130) { - xfer += (*_iter131).write(oprot); + xfer += (*_iter130).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6133,7 +6320,7 @@ uint32_t Airavata_getAllUserExperiments_result::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getAllUserExperiments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDescWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6157,14 +6344,14 @@ uint32_t Airavata_getAllUserExperiments_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size132; - ::apache::thrift::protocol::TType _etype135; - xfer += iprot->readListBegin(_etype135, _size132); - (*(this->success)).resize(_size132); - uint32_t _i136; - for (_i136 = 0; _i136 < _size132; ++_i136) + uint32_t _size131; + ::apache::thrift::protocol::TType _etype134; + xfer += iprot->readListBegin(_etype134, _size131); + (*(this->success)).resize(_size131); + uint32_t _i135; + for (_i135 = 0; _i135 < _size131; ++_i135) { - xfer += (*(this->success))[_i136].read(iprot); + xfer += (*(this->success))[_i135].read(iprot); } xfer += iprot->readListEnd(); } @@ -6209,7 +6396,7 @@ uint32_t Airavata_getAllUserExperiments_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_createExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6221,7 +6408,8 @@ uint32_t Airavata_createExperiment_args::read(::apache::thrift::protocol::TProto using ::apache::thrift::protocol::TProtocolException; bool isset_gatewayId = false; - bool isset_experiment = false; + bool isset_userName = false; + bool isset_applicationId = false; while (true) { @@ -6240,9 +6428,17 @@ uint32_t Airavata_createExperiment_args::read(::apache::thrift::protocol::TProto } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->experiment.read(iprot); - isset_experiment = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->applicationId); + isset_applicationId = true; } else { xfer += iprot->skip(ftype); } @@ -6258,21 +6454,27 @@ uint32_t Airavata_createExperiment_args::read(::apache::thrift::protocol::TProto if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_experiment) + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_applicationId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_createExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplication_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_createExperiment_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->experiment.write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->applicationId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6280,116 +6482,28 @@ uint32_t Airavata_createExperiment_args::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_createExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplication_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_createExperiment_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->experiment)).write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -uint32_t Airavata_createExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_createExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_createExperiment_result"); + xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->applicationId))); + xfer += oprot->writeFieldEnd(); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_createExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplication_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6410,8 +6524,20 @@ uint32_t Airavata_createExperiment_presult::read(::apache::thrift::protocol::TPr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size136; + ::apache::thrift::protocol::TType _etype139; + xfer += iprot->readListBegin(_etype139, _size136); + this->success.resize(_size136); + uint32_t _i140; + for (_i140 = 0; _i140 < _size136; ++_i140) + { + xfer += this->success[_i140].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -6453,7 +6579,43 @@ uint32_t Airavata_createExperiment_presult::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_getExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplication_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter141; + for (_iter141 = this->success.begin(); _iter141 != this->success.end(); ++_iter141) + { + xfer += (*_iter141).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_searchExperimentsByApplication_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6464,7 +6626,87 @@ uint32_t Airavata_getExperiment_args::read(::apache::thrift::protocol::TProtocol using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size142; + ::apache::thrift::protocol::TType _etype145; + xfer += iprot->readListBegin(_etype145, _size142); + (*(this->success)).resize(_size142); + uint32_t _i146; + for (_i146 = 0; _i146 < _size142; ++_i146) + { + xfer += (*(this->success))[_i146].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_searchExperimentsByApplicationWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_gatewayId = false; + bool isset_userName = false; + bool isset_applicationId = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -6476,8 +6718,40 @@ uint32_t Airavata_getExperiment_args::read(::apache::thrift::protocol::TProtocol { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->applicationId); + isset_applicationId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -6491,17 +6765,41 @@ uint32_t Airavata_getExperiment_args::read(::apache::thrift::protocol::TProtocol xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_applicationId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplicationWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperiment_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplicationWithPagination_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->applicationId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6509,12 +6807,28 @@ uint32_t Airavata_getExperiment_args::write(::apache::thrift::protocol::TProtoco return xfer; } -uint32_t Airavata_getExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplicationWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperiment_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplicationWithPagination_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->applicationId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6522,7 +6836,7 @@ uint32_t Airavata_getExperiment_pargs::write(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t Airavata_getExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplicationWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6543,8 +6857,20 @@ uint32_t Airavata_getExperiment_result::read(::apache::thrift::protocol::TProtoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size147; + ::apache::thrift::protocol::TType _etype150; + xfer += iprot->readListBegin(_etype150, _size147); + this->success.resize(_size147); + uint32_t _i151; + for (_i151 = 0; _i151 < _size147; ++_i151) + { + xfer += this->success[_i151].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -6559,14 +6885,6 @@ uint32_t Airavata_getExperiment_result::read(::apache::thrift::protocol::TProtoc } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -6574,7 +6892,7 @@ uint32_t Airavata_getExperiment_result::read(::apache::thrift::protocol::TProtoc xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -6594,30 +6912,34 @@ uint32_t Airavata_getExperiment_result::read(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t Airavata_getExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplicationWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperiment_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplicationWithPagination_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter152; + for (_iter152 = this->success.begin(); _iter152 != this->success.end(); ++_iter152) + { + xfer += (*_iter152).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); - xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -6626,7 +6948,7 @@ uint32_t Airavata_getExperiment_result::write(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_getExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplicationWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6647,8 +6969,20 @@ uint32_t Airavata_getExperiment_presult::read(::apache::thrift::protocol::TProto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size153; + ::apache::thrift::protocol::TType _etype156; + xfer += iprot->readListBegin(_etype156, _size153); + (*(this->success)).resize(_size153); + uint32_t _i157; + for (_i157 = 0; _i157 < _size153; ++_i157) + { + xfer += (*(this->success))[_i157].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -6663,14 +6997,6 @@ uint32_t Airavata_getExperiment_presult::read(::apache::thrift::protocol::TProto } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -6678,7 +7004,7 @@ uint32_t Airavata_getExperiment_presult::read(::apache::thrift::protocol::TProto xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -6698,7 +7024,7 @@ uint32_t Airavata_getExperiment_presult::read(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_updateExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6709,8 +7035,9 @@ uint32_t Airavata_updateExperiment_args::read(::apache::thrift::protocol::TProto using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; - bool isset_experiment = false; + bool isset_gatewayId = false; + bool isset_userName = false; + bool isset_experimentState = false; while (true) { @@ -6722,16 +7049,26 @@ uint32_t Airavata_updateExperiment_args::read(::apache::thrift::protocol::TProto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->experiment.read(iprot); - isset_experiment = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast158; + xfer += iprot->readI32(ecast158); + this->experimentState = ( ::apache::airavata::model::workspace::experiment::ExperimentState::type)ecast158; + isset_experimentState = true; } else { xfer += iprot->skip(ftype); } @@ -6745,23 +7082,29 @@ uint32_t Airavata_updateExperiment_args::read(::apache::thrift::protocol::TProto xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_experiment) + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_experimentState) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateExperiment_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->experiment.write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->experimentState); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6769,16 +7112,20 @@ uint32_t Airavata_updateExperiment_args::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_updateExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateExperiment_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->experiment)).write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)(*(this->experimentState))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6786,7 +7133,7 @@ uint32_t Airavata_updateExperiment_pargs::write(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_updateExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6806,23 +7153,35 @@ uint32_t Airavata_updateExperiment_result::read(::apache::thrift::protocol::TPro } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size159; + ::apache::thrift::protocol::TType _etype162; + xfer += iprot->readListBegin(_etype162, _size159); + this->success.resize(_size159); + uint32_t _i163; + for (_i163 = 0; _i163 < _size159; ++_i163) + { + xfer += this->success[_i163].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } break; - case 2: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; + xfer += this->ire.read(iprot); + this->__isset.ire = true; } else { xfer += iprot->skip(ftype); } break; - case 3: + case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -6830,7 +7189,7 @@ uint32_t Airavata_updateExperiment_result::read(::apache::thrift::protocol::TPro xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -6850,26 +7209,34 @@ uint32_t Airavata_updateExperiment_result::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_updateExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateExperiment_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_result"); - if (this->__isset.ire) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter164; + for (_iter164 = this->success.begin(); _iter164 != this->success.end(); ++_iter164) + { + xfer += (*_iter164).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); - xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -6878,7 +7245,7 @@ uint32_t Airavata_updateExperiment_result::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_updateExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6898,23 +7265,35 @@ uint32_t Airavata_updateExperiment_presult::read(::apache::thrift::protocol::TPr } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size165; + ::apache::thrift::protocol::TType _etype168; + xfer += iprot->readListBegin(_etype168, _size165); + (*(this->success)).resize(_size165); + uint32_t _i169; + for (_i169 = 0; _i169 < _size165; ++_i169) + { + xfer += (*(this->success))[_i169].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } break; - case 2: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; + xfer += this->ire.read(iprot); + this->__isset.ire = true; } else { xfer += iprot->skip(ftype); } break; - case 3: + case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -6922,7 +7301,7 @@ uint32_t Airavata_updateExperiment_presult::read(::apache::thrift::protocol::TPr xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -6942,7 +7321,7 @@ uint32_t Airavata_updateExperiment_presult::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_updateExperimentConfiguration_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatusWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6953,8 +7332,11 @@ uint32_t Airavata_updateExperimentConfiguration_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; - bool isset_userConfiguration = false; + bool isset_gatewayId = false; + bool isset_userName = false; + bool isset_experimentState = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -6966,16 +7348,42 @@ uint32_t Airavata_updateExperimentConfiguration_args::read(::apache::thrift::pro { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->userConfiguration.read(iprot); - isset_userConfiguration = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast170; + xfer += iprot->readI32(ecast170); + this->experimentState = ( ::apache::airavata::model::workspace::experiment::ExperimentState::type)ecast170; + isset_experimentState = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -6989,23 +7397,41 @@ uint32_t Airavata_updateExperimentConfiguration_args::read(::apache::thrift::pro xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userConfiguration) + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_experimentState) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateExperimentConfiguration_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatusWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateExperimentConfiguration_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatusWithPagination_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userConfiguration", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->userConfiguration.write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->experimentState); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7013,16 +7439,28 @@ uint32_t Airavata_updateExperimentConfiguration_args::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateExperimentConfiguration_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatusWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateExperimentConfiguration_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatusWithPagination_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userConfiguration", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->userConfiguration)).write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)(*(this->experimentState))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7030,7 +7468,7 @@ uint32_t Airavata_updateExperimentConfiguration_pargs::write(::apache::thrift::p return xfer; } -uint32_t Airavata_updateExperimentConfiguration_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatusWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7048,7 +7486,56 @@ uint32_t Airavata_updateExperimentConfiguration_result::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size171; + ::apache::thrift::protocol::TType _etype174; + xfer += iprot->readListBegin(_etype174, _size171); + this->success.resize(_size171); + uint32_t _i175; + for (_i175 = 0; _i175 < _size171; ++_i175) + { + xfer += this->success[_i175].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -7057,18 +7544,43 @@ uint32_t Airavata_updateExperimentConfiguration_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_updateExperimentConfiguration_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatusWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateExperimentConfiguration_result"); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatusWithPagination_result"); -uint32_t Airavata_updateExperimentConfiguration_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter176; + for (_iter176 = this->success.begin(); _iter176 != this->success.end(); ++_iter176) + { + xfer += (*_iter176).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_searchExperimentsByStatusWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7086,7 +7598,56 @@ uint32_t Airavata_updateExperimentConfiguration_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size177; + ::apache::thrift::protocol::TType _etype180; + xfer += iprot->readListBegin(_etype180, _size177); + (*(this->success)).resize(_size177); + uint32_t _i181; + for (_i181 = 0; _i181 < _size177; ++_i181) + { + xfer += (*(this->success))[_i181].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -7095,7 +7656,7 @@ uint32_t Airavata_updateExperimentConfiguration_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_updateResourceScheduleing_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTime_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7106,8 +7667,10 @@ uint32_t Airavata_updateResourceScheduleing_args::read(::apache::thrift::protoco using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; - bool isset_resourceScheduling = false; + bool isset_gatewayId = false; + bool isset_userName = false; + bool isset_fromTime = false; + bool isset_toTime = false; while (true) { @@ -7119,16 +7682,32 @@ uint32_t Airavata_updateResourceScheduleing_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->resourceScheduling.read(iprot); - isset_resourceScheduling = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->fromTime); + isset_fromTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->toTime); + isset_toTime = true; } else { xfer += iprot->skip(ftype); } @@ -7142,23 +7721,35 @@ uint32_t Airavata_updateResourceScheduleing_args::read(::apache::thrift::protoco xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_resourceScheduling) + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_fromTime) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_toTime) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateResourceScheduleing_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTime_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateResourceScheduleing_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("resourceScheduling", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->resourceScheduling.write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->fromTime); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->toTime); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7166,16 +7757,24 @@ uint32_t Airavata_updateResourceScheduleing_args::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_updateResourceScheduleing_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTime_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateResourceScheduleing_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("resourceScheduling", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->resourceScheduling)).write(oprot); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64((*(this->fromTime))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64((*(this->toTime))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7183,7 +7782,7 @@ uint32_t Airavata_updateResourceScheduleing_pargs::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_updateResourceScheduleing_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTime_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7201,7 +7800,56 @@ uint32_t Airavata_updateResourceScheduleing_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size182; + ::apache::thrift::protocol::TType _etype185; + xfer += iprot->readListBegin(_etype185, _size182); + this->success.resize(_size182); + uint32_t _i186; + for (_i186 = 0; _i186 < _size182; ++_i186) + { + xfer += this->success[_i186].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -7210,18 +7858,43 @@ uint32_t Airavata_updateResourceScheduleing_result::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_updateResourceScheduleing_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTime_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateResourceScheduleing_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_result"); + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter187; + for (_iter187 = this->success.begin(); _iter187 != this->success.end(); ++_iter187) + { + xfer += (*_iter187).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_updateResourceScheduleing_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTime_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7239,7 +7912,56 @@ uint32_t Airavata_updateResourceScheduleing_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size188; + ::apache::thrift::protocol::TType _etype191; + xfer += iprot->readListBegin(_etype191, _size188); + (*(this->success)).resize(_size188); + uint32_t _i192; + for (_i192 = 0; _i192 < _size188; ++_i192) + { + xfer += (*(this->success))[_i192].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -7248,7 +7970,7 @@ uint32_t Airavata_updateResourceScheduleing_presult::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_validateExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7259,7 +7981,12 @@ uint32_t Airavata_validateExperiment_args::read(::apache::thrift::protocol::TPro using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; + bool isset_gatewayId = false; + bool isset_userName = false; + bool isset_fromTime = false; + bool isset_toTime = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -7271,8 +7998,48 @@ uint32_t Airavata_validateExperiment_args::read(::apache::thrift::protocol::TPro { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->fromTime); + isset_fromTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->toTime); + isset_toTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -7286,17 +8053,47 @@ uint32_t Airavata_validateExperiment_args::read(::apache::thrift::protocol::TPro xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_fromTime) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_toTime) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_validateExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_validateExperiment_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTimeWithPagination_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->fromTime); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->toTime); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7304,12 +8101,32 @@ uint32_t Airavata_validateExperiment_args::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_validateExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_validateExperiment_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTimeWithPagination_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64((*(this->fromTime))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64((*(this->toTime))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7317,7 +8134,7 @@ uint32_t Airavata_validateExperiment_pargs::write(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_validateExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7338,8 +8155,20 @@ uint32_t Airavata_validateExperiment_result::read(::apache::thrift::protocol::TP switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size193; + ::apache::thrift::protocol::TType _etype196; + xfer += iprot->readListBegin(_etype196, _size193); + this->success.resize(_size193); + uint32_t _i197; + for (_i197 = 0; _i197 < _size193; ++_i197) + { + xfer += this->success[_i197].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7354,14 +8183,6 @@ uint32_t Airavata_validateExperiment_result::read(::apache::thrift::protocol::TP } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -7369,7 +8190,7 @@ uint32_t Airavata_validateExperiment_result::read(::apache::thrift::protocol::TP xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -7389,30 +8210,34 @@ uint32_t Airavata_validateExperiment_result::read(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_validateExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_validateExperiment_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTimeWithPagination_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> ::const_iterator _iter198; + for (_iter198 = this->success.begin(); _iter198 != this->success.end(); ++_iter198) + { + xfer += (*_iter198).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); - xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -7421,7 +8246,7 @@ uint32_t Airavata_validateExperiment_result::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_validateExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7442,8 +8267,20 @@ uint32_t Airavata_validateExperiment_presult::read(::apache::thrift::protocol::T switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size199; + ::apache::thrift::protocol::TType _etype202; + xfer += iprot->readListBegin(_etype202, _size199); + (*(this->success)).resize(_size199); + uint32_t _i203; + for (_i203 = 0; _i203 < _size199; ++_i203) + { + xfer += (*(this->success))[_i203].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7458,14 +8295,6 @@ uint32_t Airavata_validateExperiment_presult::read(::apache::thrift::protocol::T } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -7473,7 +8302,7 @@ uint32_t Airavata_validateExperiment_presult::read(::apache::thrift::protocol::T xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -7493,7 +8322,7 @@ uint32_t Airavata_validateExperiment_presult::read(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_launchExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllExperimentsInProject_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7504,8 +8333,7 @@ uint32_t Airavata_launchExperiment_args::read(::apache::thrift::protocol::TProto using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; - bool isset_airavataCredStoreToken = false; + bool isset_projectId = false; while (true) { @@ -7517,16 +8345,8 @@ uint32_t Airavata_launchExperiment_args::read(::apache::thrift::protocol::TProto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataCredStoreToken); - isset_airavataCredStoreToken = true; + xfer += iprot->readString(this->projectId); + isset_projectId = true; } else { xfer += iprot->skip(ftype); } @@ -7540,23 +8360,17 @@ uint32_t Airavata_launchExperiment_args::read(::apache::thrift::protocol::TProto xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_airavataCredStoreToken) + if (!isset_projectId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_launchExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllExperimentsInProject_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_launchExperiment_args"); - - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_args"); - xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->airavataCredStoreToken); + xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->projectId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7564,16 +8378,12 @@ uint32_t Airavata_launchExperiment_args::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_launchExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllExperimentsInProject_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_launchExperiment_pargs"); - - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_pargs"); - xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->airavataCredStoreToken))); + xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->projectId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7581,7 +8391,7 @@ uint32_t Airavata_launchExperiment_pargs::write(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_launchExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllExperimentsInProject_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7601,23 +8411,35 @@ uint32_t Airavata_launchExperiment_result::read(::apache::thrift::protocol::TPro } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size204; + ::apache::thrift::protocol::TType _etype207; + xfer += iprot->readListBegin(_etype207, _size204); + this->success.resize(_size204); + uint32_t _i208; + for (_i208 = 0; _i208 < _size204; ++_i208) + { + xfer += this->success[_i208].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } break; - case 2: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; + xfer += this->ire.read(iprot); + this->__isset.ire = true; } else { xfer += iprot->skip(ftype); } break; - case 3: + case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -7625,7 +8447,7 @@ uint32_t Airavata_launchExperiment_result::read(::apache::thrift::protocol::TPro xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -7633,10 +8455,10 @@ uint32_t Airavata_launchExperiment_result::read(::apache::thrift::protocol::TPro xfer += iprot->skip(ftype); } break; - case 5: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->lve.read(iprot); - this->__isset.lve = true; + xfer += this->pnfe.read(iprot); + this->__isset.pnfe = true; } else { xfer += iprot->skip(ftype); } @@ -7653,31 +8475,39 @@ uint32_t Airavata_launchExperiment_result::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_launchExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllExperimentsInProject_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_launchExperiment_result"); + xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_result"); - if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> ::const_iterator _iter209; + for (_iter209 = this->success.begin(); _iter209 != this->success.end(); ++_iter209) + { + xfer += (*_iter209).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.lve) { - xfer += oprot->writeFieldBegin("lve", ::apache::thrift::protocol::T_STRUCT, 5); - xfer += this->lve.write(oprot); + } else if (this->__isset.pnfe) { + xfer += oprot->writeFieldBegin("pnfe", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->pnfe.write(oprot); xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); @@ -7685,7 +8515,7 @@ uint32_t Airavata_launchExperiment_result::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_launchExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllExperimentsInProject_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7705,23 +8535,35 @@ uint32_t Airavata_launchExperiment_presult::read(::apache::thrift::protocol::TPr } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size210; + ::apache::thrift::protocol::TType _etype213; + xfer += iprot->readListBegin(_etype213, _size210); + (*(this->success)).resize(_size210); + uint32_t _i214; + for (_i214 = 0; _i214 < _size210; ++_i214) + { + xfer += (*(this->success))[_i214].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } break; - case 2: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; + xfer += this->ire.read(iprot); + this->__isset.ire = true; } else { xfer += iprot->skip(ftype); } break; - case 3: + case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -7729,7 +8571,7 @@ uint32_t Airavata_launchExperiment_presult::read(::apache::thrift::protocol::TPr xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -7737,10 +8579,10 @@ uint32_t Airavata_launchExperiment_presult::read(::apache::thrift::protocol::TPr xfer += iprot->skip(ftype); } break; - case 5: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->lve.read(iprot); - this->__isset.lve = true; + xfer += this->pnfe.read(iprot); + this->__isset.pnfe = true; } else { xfer += iprot->skip(ftype); } @@ -7757,7 +8599,7 @@ uint32_t Airavata_launchExperiment_presult::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_getExperimentStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllExperimentsInProjectWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7768,7 +8610,9 @@ uint32_t Airavata_getExperimentStatus_args::read(::apache::thrift::protocol::TPr using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; + bool isset_projectId = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -7780,8 +8624,24 @@ uint32_t Airavata_getExperimentStatus_args::read(::apache::thrift::protocol::TPr { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->projectId); + isset_projectId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -7795,17 +8655,29 @@ uint32_t Airavata_getExperimentStatus_args::read(::apache::thrift::protocol::TPr xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_projectId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getExperimentStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllExperimentsInProjectWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperimentStatus_args"); + xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProjectWithPagination_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->projectId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7813,12 +8685,20 @@ uint32_t Airavata_getExperimentStatus_args::write(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_getExperimentStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllExperimentsInProjectWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperimentStatus_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProjectWithPagination_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->projectId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7826,7 +8706,7 @@ uint32_t Airavata_getExperimentStatus_pargs::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getExperimentStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllExperimentsInProjectWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7847,8 +8727,20 @@ uint32_t Airavata_getExperimentStatus_result::read(::apache::thrift::protocol::T switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size215; + ::apache::thrift::protocol::TType _etype218; + xfer += iprot->readListBegin(_etype218, _size215); + this->success.resize(_size215); + uint32_t _i219; + for (_i219 = 0; _i219 < _size215; ++_i219) + { + xfer += this->success[_i219].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7864,24 +8756,24 @@ uint32_t Airavata_getExperimentStatus_result::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; + xfer += this->ace.read(iprot); + this->__isset.ace = true; } else { xfer += iprot->skip(ftype); } break; case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; + xfer += this->ase.read(iprot); + this->__isset.ase = true; } else { xfer += iprot->skip(ftype); } break; case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; + xfer += this->pnfe.read(iprot); + this->__isset.pnfe = true; } else { xfer += iprot->skip(ftype); } @@ -7898,39 +8790,47 @@ uint32_t Airavata_getExperimentStatus_result::read(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getExperimentStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllExperimentsInProjectWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperimentStatus_result"); + xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProjectWithPagination_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> ::const_iterator _iter220; + for (_iter220 = this->success.begin(); _iter220 != this->success.end(); ++_iter220) + { + xfer += (*_iter220).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); - xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.pnfe) { + xfer += oprot->writeFieldBegin("pnfe", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->pnfe.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getExperimentStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllExperimentsInProjectWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7951,8 +8851,20 @@ uint32_t Airavata_getExperimentStatus_presult::read(::apache::thrift::protocol:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size221; + ::apache::thrift::protocol::TType _etype224; + xfer += iprot->readListBegin(_etype224, _size221); + (*(this->success)).resize(_size221); + uint32_t _i225; + for (_i225 = 0; _i225 < _size221; ++_i225) + { + xfer += (*(this->success))[_i225].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7968,24 +8880,24 @@ uint32_t Airavata_getExperimentStatus_presult::read(::apache::thrift::protocol:: break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; + xfer += this->ace.read(iprot); + this->__isset.ace = true; } else { xfer += iprot->skip(ftype); } break; case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; + xfer += this->ase.read(iprot); + this->__isset.ase = true; } else { xfer += iprot->skip(ftype); } break; case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; + xfer += this->pnfe.read(iprot); + this->__isset.pnfe = true; } else { xfer += iprot->skip(ftype); } @@ -8002,7 +8914,7 @@ uint32_t Airavata_getExperimentStatus_presult::read(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getExperimentOutputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserExperiments_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8013,7 +8925,8 @@ uint32_t Airavata_getExperimentOutputs_args::read(::apache::thrift::protocol::TP using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; + bool isset_gatewayId = false; + bool isset_userName = false; while (true) { @@ -8025,8 +8938,16 @@ uint32_t Airavata_getExperimentOutputs_args::read(::apache::thrift::protocol::TP { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; } else { xfer += iprot->skip(ftype); } @@ -8040,17 +8961,23 @@ uint32_t Airavata_getExperimentOutputs_args::read(::apache::thrift::protocol::TP xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getExperimentOutputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserExperiments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperimentOutputs_args"); + xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8058,12 +8985,16 @@ uint32_t Airavata_getExperimentOutputs_args::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getExperimentOutputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserExperiments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperimentOutputs_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8071,7 +9002,7 @@ uint32_t Airavata_getExperimentOutputs_pargs::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getExperimentOutputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserExperiments_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8095,14 +9026,14 @@ uint32_t Airavata_getExperimentOutputs_result::read(::apache::thrift::protocol:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size137; - ::apache::thrift::protocol::TType _etype140; - xfer += iprot->readListBegin(_etype140, _size137); - this->success.resize(_size137); - uint32_t _i141; - for (_i141 = 0; _i141 < _size137; ++_i141) + uint32_t _size226; + ::apache::thrift::protocol::TType _etype229; + xfer += iprot->readListBegin(_etype229, _size226); + this->success.resize(_size226); + uint32_t _i230; + for (_i230 = 0; _i230 < _size226; ++_i230) { - xfer += this->success[_i141].read(iprot); + xfer += this->success[_i230].read(iprot); } xfer += iprot->readListEnd(); } @@ -8120,14 +9051,6 @@ uint32_t Airavata_getExperimentOutputs_result::read(::apache::thrift::protocol:: } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -8135,7 +9058,7 @@ uint32_t Airavata_getExperimentOutputs_result::read(::apache::thrift::protocol:: xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -8155,20 +9078,20 @@ uint32_t Airavata_getExperimentOutputs_result::read(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getExperimentOutputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserExperiments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getExperimentOutputs_result"); + xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> ::const_iterator _iter142; - for (_iter142 = this->success.begin(); _iter142 != this->success.end(); ++_iter142) + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> ::const_iterator _iter231; + for (_iter231 = this->success.begin(); _iter231 != this->success.end(); ++_iter231) { - xfer += (*_iter142).write(oprot); + xfer += (*_iter231).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8177,16 +9100,12 @@ uint32_t Airavata_getExperimentOutputs_result::write(::apache::thrift::protocol: xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); - xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -8195,7 +9114,7 @@ uint32_t Airavata_getExperimentOutputs_result::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getExperimentOutputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserExperiments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8219,14 +9138,14 @@ uint32_t Airavata_getExperimentOutputs_presult::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size143; - ::apache::thrift::protocol::TType _etype146; - xfer += iprot->readListBegin(_etype146, _size143); - (*(this->success)).resize(_size143); - uint32_t _i147; - for (_i147 = 0; _i147 < _size143; ++_i147) + uint32_t _size232; + ::apache::thrift::protocol::TType _etype235; + xfer += iprot->readListBegin(_etype235, _size232); + (*(this->success)).resize(_size232); + uint32_t _i236; + for (_i236 = 0; _i236 < _size232; ++_i236) { - xfer += (*(this->success))[_i147].read(iprot); + xfer += (*(this->success))[_i236].read(iprot); } xfer += iprot->readListEnd(); } @@ -8244,14 +9163,6 @@ uint32_t Airavata_getExperimentOutputs_presult::read(::apache::thrift::protocol: } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -8259,7 +9170,7 @@ uint32_t Airavata_getExperimentOutputs_presult::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -8279,7 +9190,7 @@ uint32_t Airavata_getExperimentOutputs_presult::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getIntermediateOutputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserExperimentsWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8290,7 +9201,10 @@ uint32_t Airavata_getIntermediateOutputs_args::read(::apache::thrift::protocol:: using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; + bool isset_gatewayId = false; + bool isset_userName = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -8302,8 +9216,32 @@ uint32_t Airavata_getIntermediateOutputs_args::read(::apache::thrift::protocol:: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->userName); + isset_userName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -8317,17 +9255,35 @@ uint32_t Airavata_getIntermediateOutputs_args::read(::apache::thrift::protocol:: xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_userName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getIntermediateOutputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserExperimentsWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getIntermediateOutputs_args"); + xfer += oprot->writeStructBegin("Airavata_getAllUserExperimentsWithPagination_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8335,12 +9291,24 @@ uint32_t Airavata_getIntermediateOutputs_args::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getIntermediateOutputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserExperimentsWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getIntermediateOutputs_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAllUserExperimentsWithPagination_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8348,7 +9316,7 @@ uint32_t Airavata_getIntermediateOutputs_pargs::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getIntermediateOutputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserExperimentsWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8372,14 +9340,14 @@ uint32_t Airavata_getIntermediateOutputs_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size148; - ::apache::thrift::protocol::TType _etype151; - xfer += iprot->readListBegin(_etype151, _size148); - this->success.resize(_size148); - uint32_t _i152; - for (_i152 = 0; _i152 < _size148; ++_i152) + uint32_t _size237; + ::apache::thrift::protocol::TType _etype240; + xfer += iprot->readListBegin(_etype240, _size237); + this->success.resize(_size237); + uint32_t _i241; + for (_i241 = 0; _i241 < _size237; ++_i241) { - xfer += this->success[_i152].read(iprot); + xfer += this->success[_i241].read(iprot); } xfer += iprot->readListEnd(); } @@ -8397,14 +9365,6 @@ uint32_t Airavata_getIntermediateOutputs_result::read(::apache::thrift::protocol } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -8412,7 +9372,7 @@ uint32_t Airavata_getIntermediateOutputs_result::read(::apache::thrift::protocol xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -8432,20 +9392,20 @@ uint32_t Airavata_getIntermediateOutputs_result::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getIntermediateOutputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllUserExperimentsWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getIntermediateOutputs_result"); + xfer += oprot->writeStructBegin("Airavata_getAllUserExperimentsWithPagination_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> ::const_iterator _iter153; - for (_iter153 = this->success.begin(); _iter153 != this->success.end(); ++_iter153) + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> ::const_iterator _iter242; + for (_iter242 = this->success.begin(); _iter242 != this->success.end(); ++_iter242) { - xfer += (*_iter153).write(oprot); + xfer += (*_iter242).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8454,16 +9414,12 @@ uint32_t Airavata_getIntermediateOutputs_result::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); - xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -8472,7 +9428,7 @@ uint32_t Airavata_getIntermediateOutputs_result::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getIntermediateOutputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllUserExperimentsWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8496,14 +9452,14 @@ uint32_t Airavata_getIntermediateOutputs_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size154; - ::apache::thrift::protocol::TType _etype157; - xfer += iprot->readListBegin(_etype157, _size154); - (*(this->success)).resize(_size154); - uint32_t _i158; - for (_i158 = 0; _i158 < _size154; ++_i158) + uint32_t _size243; + ::apache::thrift::protocol::TType _etype246; + xfer += iprot->readListBegin(_etype246, _size243); + (*(this->success)).resize(_size243); + uint32_t _i247; + for (_i247 = 0; _i247 < _size243; ++_i247) { - xfer += (*(this->success))[_i158].read(iprot); + xfer += (*(this->success))[_i247].read(iprot); } xfer += iprot->readListEnd(); } @@ -8521,14 +9477,6 @@ uint32_t Airavata_getIntermediateOutputs_presult::read(::apache::thrift::protoco } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -8536,7 +9484,7 @@ uint32_t Airavata_getIntermediateOutputs_presult::read(::apache::thrift::protoco xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -8556,7 +9504,7 @@ uint32_t Airavata_getIntermediateOutputs_presult::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getJobStatuses_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_createExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8567,7 +9515,8 @@ uint32_t Airavata_getJobStatuses_args::read(::apache::thrift::protocol::TProtoco using ::apache::thrift::protocol::TProtocolException; - bool isset_airavataExperimentId = false; + bool isset_gatewayId = false; + bool isset_experiment = false; while (true) { @@ -8579,8 +9528,16 @@ uint32_t Airavata_getJobStatuses_args::read(::apache::thrift::protocol::TProtoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->airavataExperimentId); - isset_airavataExperimentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->experiment.read(iprot); + isset_experiment = true; } else { xfer += iprot->skip(ftype); } @@ -8594,17 +9551,23 @@ uint32_t Airavata_getJobStatuses_args::read(::apache::thrift::protocol::TProtoco xfer += iprot->readStructEnd(); - if (!isset_airavataExperimentId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_experiment) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getJobStatuses_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_createExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getJobStatuses_args"); + xfer += oprot->writeStructBegin("Airavata_createExperiment_args"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->experiment.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8612,12 +9575,16 @@ uint32_t Airavata_getJobStatuses_args::write(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t Airavata_getJobStatuses_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_createExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getJobStatuses_pargs"); + xfer += oprot->writeStructBegin("Airavata_createExperiment_pargs"); - xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->experiment)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8625,7 +9592,7 @@ uint32_t Airavata_getJobStatuses_pargs::write(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_getJobStatuses_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_createExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8646,23 +9613,8 @@ uint32_t Airavata_getJobStatuses_result::read(::apache::thrift::protocol::TProto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->success.clear(); - uint32_t _size159; - ::apache::thrift::protocol::TType _ktype160; - ::apache::thrift::protocol::TType _vtype161; - xfer += iprot->readMapBegin(_ktype160, _vtype161, _size159); - uint32_t _i163; - for (_i163 = 0; _i163 < _size159; ++_i163) - { - std::string _key164; - xfer += iprot->readString(_key164); - ::apache::airavata::model::workspace::experiment::JobStatus& _val165 = this->success[_key164]; - xfer += _val165.read(iprot); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -8677,14 +9629,6 @@ uint32_t Airavata_getJobStatuses_result::read(::apache::thrift::protocol::TProto } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -8692,7 +9636,7 @@ uint32_t Airavata_getJobStatuses_result::read(::apache::thrift::protocol::TProto xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -8712,39 +9656,26 @@ uint32_t Airavata_getJobStatuses_result::read(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_getJobStatuses_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_createExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getJobStatuses_result"); + xfer += oprot->writeStructBegin("Airavata_createExperiment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter166; - for (_iter166 = this->success.begin(); _iter166 != this->success.end(); ++_iter166) - { - xfer += oprot->writeString(_iter166->first); - xfer += _iter166->second.write(oprot); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.enf) { - xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->enf.write(oprot); - xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -8753,7 +9684,7 @@ uint32_t Airavata_getJobStatuses_result::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_getJobStatuses_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_createExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8774,23 +9705,8 @@ uint32_t Airavata_getJobStatuses_presult::read(::apache::thrift::protocol::TProt switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - (*(this->success)).clear(); - uint32_t _size167; - ::apache::thrift::protocol::TType _ktype168; - ::apache::thrift::protocol::TType _vtype169; - xfer += iprot->readMapBegin(_ktype168, _vtype169, _size167); - uint32_t _i171; - for (_i171 = 0; _i171 < _size167; ++_i171) - { - std::string _key172; - xfer += iprot->readString(_key172); - ::apache::airavata::model::workspace::experiment::JobStatus& _val173 = (*(this->success))[_key172]; - xfer += _val173.read(iprot); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -8805,14 +9721,6 @@ uint32_t Airavata_getJobStatuses_presult::read(::apache::thrift::protocol::TProt } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->enf.read(iprot); - this->__isset.enf = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -8820,7 +9728,7 @@ uint32_t Airavata_getJobStatuses_presult::read(::apache::thrift::protocol::TProt xfer += iprot->skip(ftype); } break; - case 4: + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -8840,7 +9748,7 @@ uint32_t Airavata_getJobStatuses_presult::read(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_getJobDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8883,9 +9791,9 @@ uint32_t Airavata_getJobDetails_args::read(::apache::thrift::protocol::TProtocol return xfer; } -uint32_t Airavata_getJobDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getJobDetails_args"); + xfer += oprot->writeStructBegin("Airavata_getExperiment_args"); xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->airavataExperimentId); @@ -8896,9 +9804,9 @@ uint32_t Airavata_getJobDetails_args::write(::apache::thrift::protocol::TProtoco return xfer; } -uint32_t Airavata_getJobDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getJobDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_getExperiment_pargs"); xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->airavataExperimentId))); @@ -8909,7 +9817,7 @@ uint32_t Airavata_getJobDetails_pargs::write(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t Airavata_getJobDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8930,20 +9838,8 @@ uint32_t Airavata_getJobDetails_result::read(::apache::thrift::protocol::TProtoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size174; - ::apache::thrift::protocol::TType _etype177; - xfer += iprot->readListBegin(_etype177, _size174); - this->success.resize(_size174); - uint32_t _i178; - for (_i178 = 0; _i178 < _size174; ++_i178) - { - xfer += this->success[_i178].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -8993,23 +9889,15 @@ uint32_t Airavata_getJobDetails_result::read(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t Airavata_getJobDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getJobDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getExperiment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::JobDetails> ::const_iterator _iter179; - for (_iter179 = this->success.begin(); _iter179 != this->success.end(); ++_iter179) - { - xfer += (*_iter179).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9033,7 +9921,7 @@ uint32_t Airavata_getJobDetails_result::write(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_getJobDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9054,20 +9942,8 @@ uint32_t Airavata_getJobDetails_presult::read(::apache::thrift::protocol::TProto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size180; - ::apache::thrift::protocol::TType _etype183; - xfer += iprot->readListBegin(_etype183, _size180); - (*(this->success)).resize(_size180); - uint32_t _i184; - for (_i184 = 0; _i184 < _size180; ++_i184) - { - xfer += (*(this->success))[_i184].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -9117,7 +9993,7 @@ uint32_t Airavata_getJobDetails_presult::read(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_getDataTransferDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9129,6 +10005,7 @@ uint32_t Airavata_getDataTransferDetails_args::read(::apache::thrift::protocol:: using ::apache::thrift::protocol::TProtocolException; bool isset_airavataExperimentId = false; + bool isset_experiment = false; while (true) { @@ -9146,6 +10023,14 @@ uint32_t Airavata_getDataTransferDetails_args::read(::apache::thrift::protocol:: xfer += iprot->skip(ftype); } break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->experiment.read(iprot); + isset_experiment = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -9157,36 +10042,46 @@ uint32_t Airavata_getDataTransferDetails_args::read(::apache::thrift::protocol:: if (!isset_airavataExperimentId) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_experiment) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getDataTransferDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getDataTransferDetails_args"); + xfer += oprot->writeStructBegin("Airavata_updateExperiment_args"); xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->experiment.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getDataTransferDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getDataTransferDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateExperiment_pargs"); xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("experiment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->experiment)).write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getDataTransferDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9206,26 +10101,6 @@ uint32_t Airavata_getDataTransferDetails_result::read(::apache::thrift::protocol } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size185; - ::apache::thrift::protocol::TType _etype188; - xfer += iprot->readListBegin(_etype188, _size185); - this->success.resize(_size185); - uint32_t _i189; - for (_i189 = 0; _i189 < _size185; ++_i189) - { - xfer += this->success[_i189].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -9270,25 +10145,13 @@ uint32_t Airavata_getDataTransferDetails_result::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getDataTransferDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getDataTransferDetails_result"); + xfer += oprot->writeStructBegin("Airavata_updateExperiment_result"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::experiment::DataTransferDetails> ::const_iterator _iter190; - for (_iter190 = this->success.begin(); _iter190 != this->success.end(); ++_iter190) - { - xfer += (*_iter190).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { + if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); @@ -9310,7 +10173,7 @@ uint32_t Airavata_getDataTransferDetails_result::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getDataTransferDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9330,26 +10193,6 @@ uint32_t Airavata_getDataTransferDetails_presult::read(::apache::thrift::protoco } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size191; - ::apache::thrift::protocol::TType _etype194; - xfer += iprot->readListBegin(_etype194, _size191); - (*(this->success)).resize(_size191); - uint32_t _i195; - for (_i195 = 0; _i195 < _size191; ++_i195) - { - xfer += (*(this->success))[_i195].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -9394,7 +10237,7 @@ uint32_t Airavata_getDataTransferDetails_presult::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_cloneExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateExperimentConfiguration_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9405,6 +10248,8 @@ uint32_t Airavata_cloneExperiment_args::read(::apache::thrift::protocol::TProtoc using ::apache::thrift::protocol::TProtocolException; + bool isset_airavataExperimentId = false; + bool isset_userConfiguration = false; while (true) { @@ -9416,16 +10261,169 @@ uint32_t Airavata_cloneExperiment_args::read(::apache::thrift::protocol::TProtoc { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->existingExperimentID); - this->__isset.existingExperimentID = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->userConfiguration.read(iprot); + isset_userConfiguration = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_airavataExperimentId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_userConfiguration) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_updateExperimentConfiguration_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_updateExperimentConfiguration_args"); + + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userConfiguration", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->userConfiguration.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_updateExperimentConfiguration_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_updateExperimentConfiguration_pargs"); + + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userConfiguration", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->userConfiguration)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_updateExperimentConfiguration_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_updateExperimentConfiguration_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_updateExperimentConfiguration_result"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_updateExperimentConfiguration_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_updateResourceScheduleing_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_airavataExperimentId = false; + bool isset_resourceScheduling = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->newExperimentName); - this->__isset.newExperimentName = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->resourceScheduling.read(iprot); + isset_resourceScheduling = true; } else { xfer += iprot->skip(ftype); } @@ -9439,19 +10437,23 @@ uint32_t Airavata_cloneExperiment_args::read(::apache::thrift::protocol::TProtoc xfer += iprot->readStructEnd(); + if (!isset_airavataExperimentId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_resourceScheduling) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_cloneExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateResourceScheduleing_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_cloneExperiment_args"); + xfer += oprot->writeStructBegin("Airavata_updateResourceScheduleing_args"); - xfer += oprot->writeFieldBegin("existingExperimentID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->existingExperimentID); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("newExperimentName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->newExperimentName); + xfer += oprot->writeFieldBegin("resourceScheduling", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->resourceScheduling.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -9459,16 +10461,16 @@ uint32_t Airavata_cloneExperiment_args::write(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_cloneExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateResourceScheduleing_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_cloneExperiment_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateResourceScheduleing_pargs"); - xfer += oprot->writeFieldBegin("existingExperimentID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->existingExperimentID))); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("newExperimentName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->newExperimentName))); + xfer += oprot->writeFieldBegin("resourceScheduling", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->resourceScheduling)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -9476,7 +10478,72 @@ uint32_t Airavata_cloneExperiment_pargs::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_cloneExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateResourceScheduleing_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_updateResourceScheduleing_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_updateResourceScheduleing_result"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_updateResourceScheduleing_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_validateExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9487,6 +10554,7 @@ uint32_t Airavata_cloneExperiment_result::read(::apache::thrift::protocol::TProt using ::apache::thrift::protocol::TProtocolException; + bool isset_airavataExperimentId = false; while (true) { @@ -9496,9 +10564,77 @@ uint32_t Airavata_cloneExperiment_result::read(::apache::thrift::protocol::TProt } switch (fid) { - case 0: + case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_airavataExperimentId) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_validateExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_validateExperiment_args"); + + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_validateExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_validateExperiment_pargs"); + + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_validateExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -9548,15 +10684,15 @@ uint32_t Airavata_cloneExperiment_result::read(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_cloneExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_validateExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_cloneExperiment_result"); + xfer += oprot->writeStructBegin("Airavata_validateExperiment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9580,7 +10716,7 @@ uint32_t Airavata_cloneExperiment_result::write(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_cloneExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_validateExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9601,8 +10737,8 @@ uint32_t Airavata_cloneExperiment_presult::read(::apache::thrift::protocol::TPro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -9652,7 +10788,7 @@ uint32_t Airavata_cloneExperiment_presult::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_terminateExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_launchExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9663,6 +10799,8 @@ uint32_t Airavata_terminateExperiment_args::read(::apache::thrift::protocol::TPr using ::apache::thrift::protocol::TProtocolException; + bool isset_airavataExperimentId = false; + bool isset_airavataCredStoreToken = false; while (true) { @@ -9675,15 +10813,15 @@ uint32_t Airavata_terminateExperiment_args::read(::apache::thrift::protocol::TPr case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->airavataExperimentId); - this->__isset.airavataExperimentId = true; + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } break; case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tokenId); - this->__isset.tokenId = true; + xfer += iprot->readString(this->airavataCredStoreToken); + isset_airavataCredStoreToken = true; } else { xfer += iprot->skip(ftype); } @@ -9697,19 +10835,23 @@ uint32_t Airavata_terminateExperiment_args::read(::apache::thrift::protocol::TPr xfer += iprot->readStructEnd(); + if (!isset_airavataExperimentId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_airavataCredStoreToken) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_terminateExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_launchExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_terminateExperiment_args"); + xfer += oprot->writeStructBegin("Airavata_launchExperiment_args"); xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tokenId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tokenId); + xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->airavataCredStoreToken); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -9717,16 +10859,16 @@ uint32_t Airavata_terminateExperiment_args::write(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_terminateExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_launchExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_terminateExperiment_pargs"); + xfer += oprot->writeStructBegin("Airavata_launchExperiment_pargs"); xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tokenId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tokenId))); + xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->airavataCredStoreToken))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -9734,7 +10876,7 @@ uint32_t Airavata_terminateExperiment_pargs::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_terminateExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_launchExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9786,6 +10928,14 @@ uint32_t Airavata_terminateExperiment_result::read(::apache::thrift::protocol::T xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->lve.read(iprot); + this->__isset.lve = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -9798,11 +10948,11 @@ uint32_t Airavata_terminateExperiment_result::read(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_terminateExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_launchExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_terminateExperiment_result"); + xfer += oprot->writeStructBegin("Airavata_launchExperiment_result"); if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9820,13 +10970,17 @@ uint32_t Airavata_terminateExperiment_result::write(::apache::thrift::protocol:: xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.lve) { + xfer += oprot->writeFieldBegin("lve", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->lve.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_terminateExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_launchExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9878,6 +11032,14 @@ uint32_t Airavata_terminateExperiment_presult::read(::apache::thrift::protocol:: xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->lve.read(iprot); + this->__isset.lve = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -9890,7 +11052,7 @@ uint32_t Airavata_terminateExperiment_presult::read(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_registerApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9901,8 +11063,7 @@ uint32_t Airavata_registerApplicationModule_args::read(::apache::thrift::protoco using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; - bool isset_applicationModule = false; + bool isset_airavataExperimentId = false; while (true) { @@ -9914,16 +11075,8 @@ uint32_t Airavata_registerApplicationModule_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->applicationModule.read(iprot); - isset_applicationModule = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } @@ -9937,23 +11090,17 @@ uint32_t Airavata_registerApplicationModule_args::read(::apache::thrift::protoco xfer += iprot->readStructEnd(); - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationModule) + if (!isset_airavataExperimentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_registerApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationModule_args"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getExperimentStatus_args"); - xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->applicationModule.write(oprot); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -9961,16 +11108,12 @@ uint32_t Airavata_registerApplicationModule_args::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_registerApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationModule_pargs"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getExperimentStatus_pargs"); - xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->applicationModule)).write(oprot); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -9978,7 +11121,7 @@ uint32_t Airavata_registerApplicationModule_pargs::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_registerApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9999,8 +11142,8 @@ uint32_t Airavata_registerApplicationModule_result::read(::apache::thrift::proto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -10015,6 +11158,14 @@ uint32_t Airavata_registerApplicationModule_result::read(::apache::thrift::proto } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10022,7 +11173,7 @@ uint32_t Airavata_registerApplicationModule_result::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10042,26 +11193,30 @@ uint32_t Airavata_registerApplicationModule_result::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_registerApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationModule_result"); + xfer += oprot->writeStructBegin("Airavata_getExperimentStatus_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -10070,7 +11225,7 @@ uint32_t Airavata_registerApplicationModule_result::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_registerApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10091,8 +11246,8 @@ uint32_t Airavata_registerApplicationModule_presult::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -10107,6 +11262,14 @@ uint32_t Airavata_registerApplicationModule_presult::read(::apache::thrift::prot } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10114,7 +11277,7 @@ uint32_t Airavata_registerApplicationModule_presult::read(::apache::thrift::prot xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10134,7 +11297,7 @@ uint32_t Airavata_registerApplicationModule_presult::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_getApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentOutputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10145,7 +11308,7 @@ uint32_t Airavata_getApplicationModule_args::read(::apache::thrift::protocol::TP using ::apache::thrift::protocol::TProtocolException; - bool isset_appModuleId = false; + bool isset_airavataExperimentId = false; while (true) { @@ -10157,8 +11320,8 @@ uint32_t Airavata_getApplicationModule_args::read(::apache::thrift::protocol::TP { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appModuleId); - isset_appModuleId = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } @@ -10172,17 +11335,17 @@ uint32_t Airavata_getApplicationModule_args::read(::apache::thrift::protocol::TP xfer += iprot->readStructEnd(); - if (!isset_appModuleId) + if (!isset_airavataExperimentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentOutputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationModule_args"); + xfer += oprot->writeStructBegin("Airavata_getExperimentOutputs_args"); - xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appModuleId); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10190,12 +11353,12 @@ uint32_t Airavata_getApplicationModule_args::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentOutputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationModule_pargs"); + xfer += oprot->writeStructBegin("Airavata_getExperimentOutputs_pargs"); - xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appModuleId))); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10203,7 +11366,7 @@ uint32_t Airavata_getApplicationModule_pargs::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentOutputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10224,8 +11387,20 @@ uint32_t Airavata_getApplicationModule_result::read(::apache::thrift::protocol:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size248; + ::apache::thrift::protocol::TType _etype251; + xfer += iprot->readListBegin(_etype251, _size248); + this->success.resize(_size248); + uint32_t _i252; + for (_i252 = 0; _i252 < _size248; ++_i252) + { + xfer += this->success[_i252].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -10240,6 +11415,14 @@ uint32_t Airavata_getApplicationModule_result::read(::apache::thrift::protocol:: } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10247,7 +11430,7 @@ uint32_t Airavata_getApplicationModule_result::read(::apache::thrift::protocol:: xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10267,26 +11450,38 @@ uint32_t Airavata_getApplicationModule_result::read(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentOutputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationModule_result"); + xfer += oprot->writeStructBegin("Airavata_getExperimentOutputs_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> ::const_iterator _iter253; + for (_iter253 = this->success.begin(); _iter253 != this->success.end(); ++_iter253) + { + xfer += (*_iter253).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -10295,7 +11490,7 @@ uint32_t Airavata_getApplicationModule_result::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentOutputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10316,8 +11511,20 @@ uint32_t Airavata_getApplicationModule_presult::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size254; + ::apache::thrift::protocol::TType _etype257; + xfer += iprot->readListBegin(_etype257, _size254); + (*(this->success)).resize(_size254); + uint32_t _i258; + for (_i258 = 0; _i258 < _size254; ++_i258) + { + xfer += (*(this->success))[_i258].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -10332,6 +11539,14 @@ uint32_t Airavata_getApplicationModule_presult::read(::apache::thrift::protocol: } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10339,7 +11554,7 @@ uint32_t Airavata_getApplicationModule_presult::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10359,7 +11574,7 @@ uint32_t Airavata_getApplicationModule_presult::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_updateApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getIntermediateOutputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10370,8 +11585,7 @@ uint32_t Airavata_updateApplicationModule_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; - bool isset_appModuleId = false; - bool isset_applicationModule = false; + bool isset_airavataExperimentId = false; while (true) { @@ -10383,16 +11597,8 @@ uint32_t Airavata_updateApplicationModule_args::read(::apache::thrift::protocol: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appModuleId); - isset_appModuleId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->applicationModule.read(iprot); - isset_applicationModule = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } @@ -10406,23 +11612,17 @@ uint32_t Airavata_updateApplicationModule_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); - if (!isset_appModuleId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationModule) + if (!isset_airavataExperimentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getIntermediateOutputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationModule_args"); - - xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appModuleId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getIntermediateOutputs_args"); - xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->applicationModule.write(oprot); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10430,16 +11630,12 @@ uint32_t Airavata_updateApplicationModule_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_updateApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getIntermediateOutputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationModule_pargs"); - - xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appModuleId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getIntermediateOutputs_pargs"); - xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->applicationModule)).write(oprot); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10447,7 +11643,7 @@ uint32_t Airavata_updateApplicationModule_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_updateApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getIntermediateOutputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10468,8 +11664,20 @@ uint32_t Airavata_updateApplicationModule_result::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size259; + ::apache::thrift::protocol::TType _etype262; + xfer += iprot->readListBegin(_etype262, _size259); + this->success.resize(_size259); + uint32_t _i263; + for (_i263 = 0; _i263 < _size259; ++_i263) + { + xfer += this->success[_i263].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -10484,6 +11692,14 @@ uint32_t Airavata_updateApplicationModule_result::read(::apache::thrift::protoco } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10491,7 +11707,7 @@ uint32_t Airavata_updateApplicationModule_result::read(::apache::thrift::protoco xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10511,26 +11727,38 @@ uint32_t Airavata_updateApplicationModule_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_updateApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getIntermediateOutputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationModule_result"); + xfer += oprot->writeStructBegin("Airavata_getIntermediateOutputs_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> ::const_iterator _iter264; + for (_iter264 = this->success.begin(); _iter264 != this->success.end(); ++_iter264) + { + xfer += (*_iter264).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -10539,7 +11767,7 @@ uint32_t Airavata_updateApplicationModule_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_updateApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getIntermediateOutputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10560,8 +11788,20 @@ uint32_t Airavata_updateApplicationModule_presult::read(::apache::thrift::protoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size265; + ::apache::thrift::protocol::TType _etype268; + xfer += iprot->readListBegin(_etype268, _size265); + (*(this->success)).resize(_size265); + uint32_t _i269; + for (_i269 = 0; _i269 < _size265; ++_i269) + { + xfer += (*(this->success))[_i269].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -10576,6 +11816,14 @@ uint32_t Airavata_updateApplicationModule_presult::read(::apache::thrift::protoc } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10583,7 +11831,7 @@ uint32_t Airavata_updateApplicationModule_presult::read(::apache::thrift::protoc xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10603,7 +11851,7 @@ uint32_t Airavata_updateApplicationModule_presult::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_getAllAppModules_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getJobStatuses_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10614,7 +11862,7 @@ uint32_t Airavata_getAllAppModules_args::read(::apache::thrift::protocol::TProto using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; + bool isset_airavataExperimentId = false; while (true) { @@ -10626,8 +11874,8 @@ uint32_t Airavata_getAllAppModules_args::read(::apache::thrift::protocol::TProto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } @@ -10641,17 +11889,17 @@ uint32_t Airavata_getAllAppModules_args::read(::apache::thrift::protocol::TProto xfer += iprot->readStructEnd(); - if (!isset_gatewayId) + if (!isset_airavataExperimentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllAppModules_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getJobStatuses_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllAppModules_args"); + xfer += oprot->writeStructBegin("Airavata_getJobStatuses_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10659,12 +11907,12 @@ uint32_t Airavata_getAllAppModules_args::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_getAllAppModules_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getJobStatuses_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllAppModules_pargs"); + xfer += oprot->writeStructBegin("Airavata_getJobStatuses_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10672,7 +11920,7 @@ uint32_t Airavata_getAllAppModules_pargs::write(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_getAllAppModules_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getJobStatuses_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10693,19 +11941,22 @@ uint32_t Airavata_getAllAppModules_result::read(::apache::thrift::protocol::TPro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { + if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size196; - ::apache::thrift::protocol::TType _etype199; - xfer += iprot->readListBegin(_etype199, _size196); - this->success.resize(_size196); - uint32_t _i200; - for (_i200 = 0; _i200 < _size196; ++_i200) + uint32_t _size270; + ::apache::thrift::protocol::TType _ktype271; + ::apache::thrift::protocol::TType _vtype272; + xfer += iprot->readMapBegin(_ktype271, _vtype272, _size270); + uint32_t _i274; + for (_i274 = 0; _i274 < _size270; ++_i274) { - xfer += this->success[_i200].read(iprot); + std::string _key275; + xfer += iprot->readString(_key275); + ::apache::airavata::model::workspace::experiment::JobStatus& _val276 = this->success[_key275]; + xfer += _val276.read(iprot); } - xfer += iprot->readListEnd(); + xfer += iprot->readMapEnd(); } this->__isset.success = true; } else { @@ -10721,6 +11972,14 @@ uint32_t Airavata_getAllAppModules_result::read(::apache::thrift::protocol::TPro } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10728,7 +11987,7 @@ uint32_t Airavata_getAllAppModules_result::read(::apache::thrift::protocol::TPro xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10748,34 +12007,39 @@ uint32_t Airavata_getAllAppModules_result::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_getAllAppModules_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getJobStatuses_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllAppModules_result"); + xfer += oprot->writeStructBegin("Airavata_getJobStatuses_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationModule> ::const_iterator _iter201; - for (_iter201 = this->success.begin(); _iter201 != this->success.end(); ++_iter201) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::map ::const_iterator _iter277; + for (_iter277 = this->success.begin(); _iter277 != this->success.end(); ++_iter277) { - xfer += (*_iter201).write(oprot); + xfer += oprot->writeString(_iter277->first); + xfer += _iter277->second.write(oprot); } - xfer += oprot->writeListEnd(); + xfer += oprot->writeMapEnd(); } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -10784,7 +12048,7 @@ uint32_t Airavata_getAllAppModules_result::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_getAllAppModules_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getJobStatuses_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10805,19 +12069,22 @@ uint32_t Airavata_getAllAppModules_presult::read(::apache::thrift::protocol::TPr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { + if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size202; - ::apache::thrift::protocol::TType _etype205; - xfer += iprot->readListBegin(_etype205, _size202); - (*(this->success)).resize(_size202); - uint32_t _i206; - for (_i206 = 0; _i206 < _size202; ++_i206) + uint32_t _size278; + ::apache::thrift::protocol::TType _ktype279; + ::apache::thrift::protocol::TType _vtype280; + xfer += iprot->readMapBegin(_ktype279, _vtype280, _size278); + uint32_t _i282; + for (_i282 = 0; _i282 < _size278; ++_i282) { - xfer += (*(this->success))[_i206].read(iprot); + std::string _key283; + xfer += iprot->readString(_key283); + ::apache::airavata::model::workspace::experiment::JobStatus& _val284 = (*(this->success))[_key283]; + xfer += _val284.read(iprot); } - xfer += iprot->readListEnd(); + xfer += iprot->readMapEnd(); } this->__isset.success = true; } else { @@ -10833,6 +12100,14 @@ uint32_t Airavata_getAllAppModules_presult::read(::apache::thrift::protocol::TPr } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10840,7 +12115,7 @@ uint32_t Airavata_getAllAppModules_presult::read(::apache::thrift::protocol::TPr xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10860,7 +12135,7 @@ uint32_t Airavata_getAllAppModules_presult::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_deleteApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getJobDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10871,7 +12146,7 @@ uint32_t Airavata_deleteApplicationModule_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; - bool isset_appModuleId = false; + bool isset_airavataExperimentId = false; while (true) { @@ -10883,8 +12158,8 @@ uint32_t Airavata_deleteApplicationModule_args::read(::apache::thrift::protocol: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appModuleId); - isset_appModuleId = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } @@ -10898,17 +12173,17 @@ uint32_t Airavata_deleteApplicationModule_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); - if (!isset_appModuleId) + if (!isset_airavataExperimentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getJobDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationModule_args"); + xfer += oprot->writeStructBegin("Airavata_getJobDetails_args"); - xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appModuleId); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10916,12 +12191,12 @@ uint32_t Airavata_deleteApplicationModule_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_deleteApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getJobDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationModule_pargs"); + xfer += oprot->writeStructBegin("Airavata_getJobDetails_pargs"); - xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appModuleId))); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -10929,7 +12204,7 @@ uint32_t Airavata_deleteApplicationModule_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_deleteApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getJobDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10950,8 +12225,20 @@ uint32_t Airavata_deleteApplicationModule_result::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size285; + ::apache::thrift::protocol::TType _etype288; + xfer += iprot->readListBegin(_etype288, _size285); + this->success.resize(_size285); + uint32_t _i289; + for (_i289 = 0; _i289 < _size285; ++_i289) + { + xfer += this->success[_i289].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -10966,6 +12253,14 @@ uint32_t Airavata_deleteApplicationModule_result::read(::apache::thrift::protoco } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -10973,7 +12268,7 @@ uint32_t Airavata_deleteApplicationModule_result::read(::apache::thrift::protoco xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -10993,26 +12288,38 @@ uint32_t Airavata_deleteApplicationModule_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_deleteApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getJobDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationModule_result"); + xfer += oprot->writeStructBegin("Airavata_getJobDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::JobDetails> ::const_iterator _iter290; + for (_iter290 = this->success.begin(); _iter290 != this->success.end(); ++_iter290) + { + xfer += (*_iter290).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -11021,7 +12328,7 @@ uint32_t Airavata_deleteApplicationModule_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_deleteApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getJobDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11042,8 +12349,20 @@ uint32_t Airavata_deleteApplicationModule_presult::read(::apache::thrift::protoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size291; + ::apache::thrift::protocol::TType _etype294; + xfer += iprot->readListBegin(_etype294, _size291); + (*(this->success)).resize(_size291); + uint32_t _i295; + for (_i295 = 0; _i295 < _size291; ++_i295) + { + xfer += (*(this->success))[_i295].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -11058,6 +12377,14 @@ uint32_t Airavata_deleteApplicationModule_presult::read(::apache::thrift::protoc } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -11065,7 +12392,7 @@ uint32_t Airavata_deleteApplicationModule_presult::read(::apache::thrift::protoc xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -11085,7 +12412,7 @@ uint32_t Airavata_deleteApplicationModule_presult::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_registerApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getDataTransferDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11096,8 +12423,7 @@ uint32_t Airavata_registerApplicationDeployment_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; - bool isset_applicationDeployment = false; + bool isset_airavataExperimentId = false; while (true) { @@ -11109,16 +12435,8 @@ uint32_t Airavata_registerApplicationDeployment_args::read(::apache::thrift::pro { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->applicationDeployment.read(iprot); - isset_applicationDeployment = true; + xfer += iprot->readString(this->airavataExperimentId); + isset_airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } @@ -11132,23 +12450,17 @@ uint32_t Airavata_registerApplicationDeployment_args::read(::apache::thrift::pro xfer += iprot->readStructEnd(); - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationDeployment) + if (!isset_airavataExperimentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_registerApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getDataTransferDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationDeployment_args"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getDataTransferDetails_args"); - xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->applicationDeployment.write(oprot); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11156,16 +12468,12 @@ uint32_t Airavata_registerApplicationDeployment_args::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_registerApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getDataTransferDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationDeployment_pargs"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getDataTransferDetails_pargs"); - xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->applicationDeployment)).write(oprot); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11173,7 +12481,7 @@ uint32_t Airavata_registerApplicationDeployment_pargs::write(::apache::thrift::p return xfer; } -uint32_t Airavata_registerApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getDataTransferDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11194,8 +12502,20 @@ uint32_t Airavata_registerApplicationDeployment_result::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size296; + ::apache::thrift::protocol::TType _etype299; + xfer += iprot->readListBegin(_etype299, _size296); + this->success.resize(_size296); + uint32_t _i300; + for (_i300 = 0; _i300 < _size296; ++_i300) + { + xfer += this->success[_i300].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -11210,6 +12530,14 @@ uint32_t Airavata_registerApplicationDeployment_result::read(::apache::thrift::p } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -11217,7 +12545,7 @@ uint32_t Airavata_registerApplicationDeployment_result::read(::apache::thrift::p xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -11237,26 +12565,38 @@ uint32_t Airavata_registerApplicationDeployment_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_registerApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getDataTransferDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationDeployment_result"); + xfer += oprot->writeStructBegin("Airavata_getDataTransferDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::workspace::experiment::DataTransferDetails> ::const_iterator _iter301; + for (_iter301 = this->success.begin(); _iter301 != this->success.end(); ++_iter301) + { + xfer += (*_iter301).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -11265,7 +12605,7 @@ uint32_t Airavata_registerApplicationDeployment_result::write(::apache::thrift:: return xfer; } -uint32_t Airavata_registerApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getDataTransferDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11286,8 +12626,20 @@ uint32_t Airavata_registerApplicationDeployment_presult::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size302; + ::apache::thrift::protocol::TType _etype305; + xfer += iprot->readListBegin(_etype305, _size302); + (*(this->success)).resize(_size302); + uint32_t _i306; + for (_i306 = 0; _i306 < _size302; ++_i306) + { + xfer += (*(this->success))[_i306].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -11302,6 +12654,14 @@ uint32_t Airavata_registerApplicationDeployment_presult::read(::apache::thrift:: } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -11309,7 +12669,7 @@ uint32_t Airavata_registerApplicationDeployment_presult::read(::apache::thrift:: xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -11329,7 +12689,7 @@ uint32_t Airavata_registerApplicationDeployment_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_getApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_cloneExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11340,7 +12700,6 @@ uint32_t Airavata_getApplicationDeployment_args::read(::apache::thrift::protocol using ::apache::thrift::protocol::TProtocolException; - bool isset_appDeploymentId = false; while (true) { @@ -11352,8 +12711,16 @@ uint32_t Airavata_getApplicationDeployment_args::read(::apache::thrift::protocol { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appDeploymentId); - isset_appDeploymentId = true; + xfer += iprot->readString(this->existingExperimentID); + this->__isset.existingExperimentID = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->newExperimentName); + this->__isset.newExperimentName = true; } else { xfer += iprot->skip(ftype); } @@ -11367,17 +12734,19 @@ uint32_t Airavata_getApplicationDeployment_args::read(::apache::thrift::protocol xfer += iprot->readStructEnd(); - if (!isset_appDeploymentId) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_cloneExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationDeployment_args"); + xfer += oprot->writeStructBegin("Airavata_cloneExperiment_args"); - xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appDeploymentId); + xfer += oprot->writeFieldBegin("existingExperimentID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->existingExperimentID); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newExperimentName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->newExperimentName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11385,12 +12754,16 @@ uint32_t Airavata_getApplicationDeployment_args::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_cloneExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationDeployment_pargs"); + xfer += oprot->writeStructBegin("Airavata_cloneExperiment_pargs"); - xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appDeploymentId))); + xfer += oprot->writeFieldBegin("existingExperimentID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->existingExperimentID))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newExperimentName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->newExperimentName))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11398,7 +12771,7 @@ uint32_t Airavata_getApplicationDeployment_pargs::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_getApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_cloneExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11419,8 +12792,8 @@ uint32_t Airavata_getApplicationDeployment_result::read(::apache::thrift::protoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -11436,16 +12809,24 @@ uint32_t Airavata_getApplicationDeployment_result::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; + xfer += this->enf.read(iprot); + this->__isset.enf = true; } else { xfer += iprot->skip(ftype); } break; case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; } else { xfer += iprot->skip(ftype); } @@ -11462,26 +12843,30 @@ uint32_t Airavata_getApplicationDeployment_result::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_getApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_cloneExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationDeployment_result"); + xfer += oprot->writeStructBegin("Airavata_cloneExperiment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -11490,7 +12875,7 @@ uint32_t Airavata_getApplicationDeployment_result::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_getApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_cloneExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11511,8 +12896,8 @@ uint32_t Airavata_getApplicationDeployment_presult::read(::apache::thrift::proto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -11527,6 +12912,14 @@ uint32_t Airavata_getApplicationDeployment_presult::read(::apache::thrift::proto } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -11534,7 +12927,7 @@ uint32_t Airavata_getApplicationDeployment_presult::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -11554,7 +12947,7 @@ uint32_t Airavata_getApplicationDeployment_presult::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_updateApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_terminateExperiment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11565,8 +12958,6 @@ uint32_t Airavata_updateApplicationDeployment_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; - bool isset_appDeploymentId = false; - bool isset_applicationDeployment = false; while (true) { @@ -11578,16 +12969,16 @@ uint32_t Airavata_updateApplicationDeployment_args::read(::apache::thrift::proto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appDeploymentId); - isset_appDeploymentId = true; + xfer += iprot->readString(this->airavataExperimentId); + this->__isset.airavataExperimentId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->applicationDeployment.read(iprot); - isset_applicationDeployment = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tokenId); + this->__isset.tokenId = true; } else { xfer += iprot->skip(ftype); } @@ -11601,23 +12992,19 @@ uint32_t Airavata_updateApplicationDeployment_args::read(::apache::thrift::proto xfer += iprot->readStructEnd(); - if (!isset_appDeploymentId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationDeployment) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_terminateExperiment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationDeployment_args"); + xfer += oprot->writeStructBegin("Airavata_terminateExperiment_args"); - xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appDeploymentId); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->airavataExperimentId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->applicationDeployment.write(oprot); + xfer += oprot->writeFieldBegin("tokenId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tokenId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11625,16 +13012,16 @@ uint32_t Airavata_updateApplicationDeployment_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_updateApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_terminateExperiment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationDeployment_pargs"); + xfer += oprot->writeStructBegin("Airavata_terminateExperiment_pargs"); - xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appDeploymentId))); + xfer += oprot->writeFieldBegin("airavataExperimentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->airavataExperimentId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->applicationDeployment)).write(oprot); + xfer += oprot->writeFieldBegin("tokenId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tokenId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11642,7 +13029,7 @@ uint32_t Airavata_updateApplicationDeployment_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_terminateExperiment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11662,14 +13049,6 @@ uint32_t Airavata_updateApplicationDeployment_result::read(::apache::thrift::pro } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -11679,6 +13058,14 @@ uint32_t Airavata_updateApplicationDeployment_result::read(::apache::thrift::pro } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -11686,7 +13073,7 @@ uint32_t Airavata_updateApplicationDeployment_result::read(::apache::thrift::pro xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -11706,26 +13093,26 @@ uint32_t Airavata_updateApplicationDeployment_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_terminateExperiment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationDeployment_result"); + xfer += oprot->writeStructBegin("Airavata_terminateExperiment_result"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { + if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.enf) { + xfer += oprot->writeFieldBegin("enf", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->enf.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ace.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 4); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -11734,7 +13121,7 @@ uint32_t Airavata_updateApplicationDeployment_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_terminateExperiment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11754,14 +13141,6 @@ uint32_t Airavata_updateApplicationDeployment_presult::read(::apache::thrift::pr } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -11771,6 +13150,14 @@ uint32_t Airavata_updateApplicationDeployment_presult::read(::apache::thrift::pr } break; case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->enf.read(iprot); + this->__isset.enf = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ace.read(iprot); this->__isset.ace = true; @@ -11778,7 +13165,7 @@ uint32_t Airavata_updateApplicationDeployment_presult::read(::apache::thrift::pr xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ase.read(iprot); this->__isset.ase = true; @@ -11798,7 +13185,7 @@ uint32_t Airavata_updateApplicationDeployment_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_deleteApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11809,7 +13196,8 @@ uint32_t Airavata_deleteApplicationDeployment_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; - bool isset_appDeploymentId = false; + bool isset_gatewayId = false; + bool isset_applicationModule = false; while (true) { @@ -11821,8 +13209,16 @@ uint32_t Airavata_deleteApplicationDeployment_args::read(::apache::thrift::proto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appDeploymentId); - isset_appDeploymentId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->applicationModule.read(iprot); + isset_applicationModule = true; } else { xfer += iprot->skip(ftype); } @@ -11836,17 +13232,23 @@ uint32_t Airavata_deleteApplicationDeployment_args::read(::apache::thrift::proto xfer += iprot->readStructEnd(); - if (!isset_appDeploymentId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_applicationModule) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationDeployment_args"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationModule_args"); - xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appDeploymentId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->applicationModule.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11854,12 +13256,16 @@ uint32_t Airavata_deleteApplicationDeployment_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_deleteApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationDeployment_pargs"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationModule_pargs"); - xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appDeploymentId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->applicationModule)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -11867,7 +13273,7 @@ uint32_t Airavata_deleteApplicationDeployment_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11888,8 +13294,8 @@ uint32_t Airavata_deleteApplicationDeployment_result::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -11931,15 +13337,15 @@ uint32_t Airavata_deleteApplicationDeployment_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationDeployment_result"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationModule_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -11959,7 +13365,7 @@ uint32_t Airavata_deleteApplicationDeployment_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_deleteApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11980,8 +13386,8 @@ uint32_t Airavata_deleteApplicationDeployment_presult::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12023,7 +13429,7 @@ uint32_t Airavata_deleteApplicationDeployment_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_getAllApplicationDeployments_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12034,7 +13440,7 @@ uint32_t Airavata_getAllApplicationDeployments_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; + bool isset_appModuleId = false; while (true) { @@ -12046,8 +13452,8 @@ uint32_t Airavata_getAllApplicationDeployments_args::read(::apache::thrift::prot { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + xfer += iprot->readString(this->appModuleId); + isset_appModuleId = true; } else { xfer += iprot->skip(ftype); } @@ -12061,17 +13467,17 @@ uint32_t Airavata_getAllApplicationDeployments_args::read(::apache::thrift::prot xfer += iprot->readStructEnd(); - if (!isset_gatewayId) + if (!isset_appModuleId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllApplicationDeployments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationDeployments_args"); + xfer += oprot->writeStructBegin("Airavata_getApplicationModule_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appModuleId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -12079,12 +13485,12 @@ uint32_t Airavata_getAllApplicationDeployments_args::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_getAllApplicationDeployments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationDeployments_pargs"); + xfer += oprot->writeStructBegin("Airavata_getApplicationModule_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appModuleId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -12092,7 +13498,7 @@ uint32_t Airavata_getAllApplicationDeployments_pargs::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_getAllApplicationDeployments_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12113,20 +13519,8 @@ uint32_t Airavata_getAllApplicationDeployments_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size207; - ::apache::thrift::protocol::TType _etype210; - xfer += iprot->readListBegin(_etype210, _size207); - this->success.resize(_size207); - uint32_t _i211; - for (_i211 = 0; _i211 < _size207; ++_i211) - { - xfer += this->success[_i211].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12168,23 +13562,15 @@ uint32_t Airavata_getAllApplicationDeployments_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_getAllApplicationDeployments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationDeployments_result"); + xfer += oprot->writeStructBegin("Airavata_getApplicationModule_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationDeploymentDescription> ::const_iterator _iter212; - for (_iter212 = this->success.begin(); _iter212 != this->success.end(); ++_iter212) - { - xfer += (*_iter212).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -12204,7 +13590,7 @@ uint32_t Airavata_getAllApplicationDeployments_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_getAllApplicationDeployments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12225,20 +13611,8 @@ uint32_t Airavata_getAllApplicationDeployments_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size213; - ::apache::thrift::protocol::TType _etype216; - xfer += iprot->readListBegin(_etype216, _size213); - (*(this->success)).resize(_size213); - uint32_t _i217; - for (_i217 = 0; _i217 < _size213; ++_i217) - { - xfer += (*(this->success))[_i217].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12280,7 +13654,7 @@ uint32_t Airavata_getAllApplicationDeployments_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_getAppModuleDeployedResources_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12292,6 +13666,7 @@ uint32_t Airavata_getAppModuleDeployedResources_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; bool isset_appModuleId = false; + bool isset_applicationModule = false; while (true) { @@ -12309,6 +13684,14 @@ uint32_t Airavata_getAppModuleDeployedResources_args::read(::apache::thrift::pro xfer += iprot->skip(ftype); } break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->applicationModule.read(iprot); + isset_applicationModule = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -12320,36 +13703,46 @@ uint32_t Airavata_getAppModuleDeployedResources_args::read(::apache::thrift::pro if (!isset_appModuleId) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_applicationModule) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAppModuleDeployedResources_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAppModuleDeployedResources_args"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationModule_args"); xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->appModuleId); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->applicationModule.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAppModuleDeployedResources_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAppModuleDeployedResources_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationModule_pargs"); xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->appModuleId))); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("applicationModule", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->applicationModule)).write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAppModuleDeployedResources_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12370,20 +13763,8 @@ uint32_t Airavata_getAppModuleDeployedResources_result::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size218; - ::apache::thrift::protocol::TType _etype221; - xfer += iprot->readListBegin(_etype221, _size218); - this->success.resize(_size218); - uint32_t _i222; - for (_i222 = 0; _i222 < _size218; ++_i222) - { - xfer += iprot->readString(this->success[_i222]); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12425,23 +13806,15 @@ uint32_t Airavata_getAppModuleDeployedResources_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_getAppModuleDeployedResources_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAppModuleDeployedResources_result"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationModule_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter223; - for (_iter223 = this->success.begin(); _iter223 != this->success.end(); ++_iter223) - { - xfer += oprot->writeString((*_iter223)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -12461,7 +13834,7 @@ uint32_t Airavata_getAppModuleDeployedResources_result::write(::apache::thrift:: return xfer; } -uint32_t Airavata_getAppModuleDeployedResources_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12482,20 +13855,8 @@ uint32_t Airavata_getAppModuleDeployedResources_presult::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size224; - ::apache::thrift::protocol::TType _etype227; - xfer += iprot->readListBegin(_etype227, _size224); - (*(this->success)).resize(_size224); - uint32_t _i228; - for (_i228 = 0; _i228 < _size224; ++_i228) - { - xfer += iprot->readString((*(this->success))[_i228]); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12537,7 +13898,7 @@ uint32_t Airavata_getAppModuleDeployedResources_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_registerApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllAppModules_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12549,7 +13910,6 @@ uint32_t Airavata_registerApplicationInterface_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; bool isset_gatewayId = false; - bool isset_applicationInterface = false; while (true) { @@ -12567,14 +13927,6 @@ uint32_t Airavata_registerApplicationInterface_args::read(::apache::thrift::prot xfer += iprot->skip(ftype); } break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->applicationInterface.read(iprot); - isset_applicationInterface = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -12586,46 +13938,36 @@ uint32_t Airavata_registerApplicationInterface_args::read(::apache::thrift::prot if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationInterface) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_registerApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllAppModules_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationInterface_args"); + xfer += oprot->writeStructBegin("Airavata_getAllAppModules_args"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->applicationInterface.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_registerApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllAppModules_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationInterface_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAllAppModules_pargs"); xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->applicationInterface)).write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_registerApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllAppModules_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12646,8 +13988,20 @@ uint32_t Airavata_registerApplicationInterface_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size307; + ::apache::thrift::protocol::TType _etype310; + xfer += iprot->readListBegin(_etype310, _size307); + this->success.resize(_size307); + uint32_t _i311; + for (_i311 = 0; _i311 < _size307; ++_i311) + { + xfer += this->success[_i311].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12689,15 +14043,23 @@ uint32_t Airavata_registerApplicationInterface_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_registerApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllAppModules_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerApplicationInterface_result"); + xfer += oprot->writeStructBegin("Airavata_getAllAppModules_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationModule> ::const_iterator _iter312; + for (_iter312 = this->success.begin(); _iter312 != this->success.end(); ++_iter312) + { + xfer += (*_iter312).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -12717,7 +14079,7 @@ uint32_t Airavata_registerApplicationInterface_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_registerApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllAppModules_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12738,8 +14100,20 @@ uint32_t Airavata_registerApplicationInterface_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size313; + ::apache::thrift::protocol::TType _etype316; + xfer += iprot->readListBegin(_etype316, _size313); + (*(this->success)).resize(_size313); + uint32_t _i317; + for (_i317 = 0; _i317 < _size313; ++_i317) + { + xfer += (*(this->success))[_i317].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12781,7 +14155,7 @@ uint32_t Airavata_registerApplicationInterface_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_getApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationModule_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12792,7 +14166,7 @@ uint32_t Airavata_getApplicationInterface_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; - bool isset_appInterfaceId = false; + bool isset_appModuleId = false; while (true) { @@ -12804,8 +14178,8 @@ uint32_t Airavata_getApplicationInterface_args::read(::apache::thrift::protocol: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appInterfaceId); - isset_appInterfaceId = true; + xfer += iprot->readString(this->appModuleId); + isset_appModuleId = true; } else { xfer += iprot->skip(ftype); } @@ -12819,17 +14193,17 @@ uint32_t Airavata_getApplicationInterface_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); - if (!isset_appInterfaceId) + if (!isset_appModuleId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationModule_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationInterface_args"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationModule_args"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appModuleId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -12837,12 +14211,12 @@ uint32_t Airavata_getApplicationInterface_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationModule_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationInterface_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationModule_pargs"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appModuleId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -12850,7 +14224,7 @@ uint32_t Airavata_getApplicationInterface_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationModule_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12871,8 +14245,8 @@ uint32_t Airavata_getApplicationInterface_result::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -12914,15 +14288,15 @@ uint32_t Airavata_getApplicationInterface_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationModule_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationInterface_result"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationModule_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -12942,7 +14316,7 @@ uint32_t Airavata_getApplicationInterface_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_getApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationModule_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -12963,8 +14337,8 @@ uint32_t Airavata_getApplicationInterface_presult::read(::apache::thrift::protoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13006,7 +14380,7 @@ uint32_t Airavata_getApplicationInterface_presult::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_updateApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13017,8 +14391,8 @@ uint32_t Airavata_updateApplicationInterface_args::read(::apache::thrift::protoc using ::apache::thrift::protocol::TProtocolException; - bool isset_appInterfaceId = false; - bool isset_applicationInterface = false; + bool isset_gatewayId = false; + bool isset_applicationDeployment = false; while (true) { @@ -13030,16 +14404,16 @@ uint32_t Airavata_updateApplicationInterface_args::read(::apache::thrift::protoc { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appInterfaceId); - isset_appInterfaceId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->applicationInterface.read(iprot); - isset_applicationInterface = true; + xfer += this->applicationDeployment.read(iprot); + isset_applicationDeployment = true; } else { xfer += iprot->skip(ftype); } @@ -13053,23 +14427,23 @@ uint32_t Airavata_updateApplicationInterface_args::read(::apache::thrift::protoc xfer += iprot->readStructEnd(); - if (!isset_appInterfaceId) + if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationInterface) + if (!isset_applicationDeployment) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationInterface_args"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationDeployment_args"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->applicationInterface.write(oprot); + xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->applicationDeployment.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13077,16 +14451,16 @@ uint32_t Airavata_updateApplicationInterface_args::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_updateApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationInterface_pargs"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationDeployment_pargs"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->applicationInterface)).write(oprot); + xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->applicationDeployment)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13094,7 +14468,7 @@ uint32_t Airavata_updateApplicationInterface_pargs::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_updateApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13115,8 +14489,8 @@ uint32_t Airavata_updateApplicationInterface_result::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13158,15 +14532,15 @@ uint32_t Airavata_updateApplicationInterface_result::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_updateApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateApplicationInterface_result"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationDeployment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -13186,7 +14560,7 @@ uint32_t Airavata_updateApplicationInterface_result::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13207,8 +14581,8 @@ uint32_t Airavata_updateApplicationInterface_presult::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13250,7 +14624,7 @@ uint32_t Airavata_updateApplicationInterface_presult::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13261,7 +14635,7 @@ uint32_t Airavata_deleteApplicationInterface_args::read(::apache::thrift::protoc using ::apache::thrift::protocol::TProtocolException; - bool isset_appInterfaceId = false; + bool isset_appDeploymentId = false; while (true) { @@ -13273,8 +14647,8 @@ uint32_t Airavata_deleteApplicationInterface_args::read(::apache::thrift::protoc { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appInterfaceId); - isset_appInterfaceId = true; + xfer += iprot->readString(this->appDeploymentId); + isset_appDeploymentId = true; } else { xfer += iprot->skip(ftype); } @@ -13288,17 +14662,17 @@ uint32_t Airavata_deleteApplicationInterface_args::read(::apache::thrift::protoc xfer += iprot->readStructEnd(); - if (!isset_appInterfaceId) + if (!isset_appDeploymentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationInterface_args"); + xfer += oprot->writeStructBegin("Airavata_getApplicationDeployment_args"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appDeploymentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13306,12 +14680,12 @@ uint32_t Airavata_deleteApplicationInterface_args::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_deleteApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationInterface_pargs"); + xfer += oprot->writeStructBegin("Airavata_getApplicationDeployment_pargs"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appDeploymentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13319,7 +14693,7 @@ uint32_t Airavata_deleteApplicationInterface_pargs::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_deleteApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13340,8 +14714,8 @@ uint32_t Airavata_deleteApplicationInterface_result::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13383,15 +14757,15 @@ uint32_t Airavata_deleteApplicationInterface_result::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_deleteApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteApplicationInterface_result"); + xfer += oprot->writeStructBegin("Airavata_getApplicationDeployment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -13411,7 +14785,7 @@ uint32_t Airavata_deleteApplicationInterface_result::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13432,8 +14806,8 @@ uint32_t Airavata_deleteApplicationInterface_presult::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13475,7 +14849,7 @@ uint32_t Airavata_deleteApplicationInterface_presult::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_getAllApplicationInterfaceNames_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13486,7 +14860,8 @@ uint32_t Airavata_getAllApplicationInterfaceNames_args::read(::apache::thrift::p using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; + bool isset_appDeploymentId = false; + bool isset_applicationDeployment = false; while (true) { @@ -13498,8 +14873,16 @@ uint32_t Airavata_getAllApplicationInterfaceNames_args::read(::apache::thrift::p { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + xfer += iprot->readString(this->appDeploymentId); + isset_appDeploymentId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->applicationDeployment.read(iprot); + isset_applicationDeployment = true; } else { xfer += iprot->skip(ftype); } @@ -13513,17 +14896,23 @@ uint32_t Airavata_getAllApplicationInterfaceNames_args::read(::apache::thrift::p xfer += iprot->readStructEnd(); - if (!isset_gatewayId) + if (!isset_appDeploymentId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_applicationDeployment) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllApplicationInterfaceNames_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaceNames_args"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationDeployment_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appDeploymentId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->applicationDeployment.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13531,12 +14920,16 @@ uint32_t Airavata_getAllApplicationInterfaceNames_args::write(::apache::thrift:: return xfer; } -uint32_t Airavata_getAllApplicationInterfaceNames_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaceNames_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationDeployment_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appDeploymentId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationDeployment", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->applicationDeployment)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13544,7 +14937,7 @@ uint32_t Airavata_getAllApplicationInterfaceNames_pargs::write(::apache::thrift: return xfer; } -uint32_t Airavata_getAllApplicationInterfaceNames_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13565,23 +14958,8 @@ uint32_t Airavata_getAllApplicationInterfaceNames_result::read(::apache::thrift: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->success.clear(); - uint32_t _size229; - ::apache::thrift::protocol::TType _ktype230; - ::apache::thrift::protocol::TType _vtype231; - xfer += iprot->readMapBegin(_ktype230, _vtype231, _size229); - uint32_t _i233; - for (_i233 = 0; _i233 < _size229; ++_i233) - { - std::string _key234; - xfer += iprot->readString(_key234); - std::string& _val235 = this->success[_key234]; - xfer += iprot->readString(_val235); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13623,24 +15001,15 @@ uint32_t Airavata_getAllApplicationInterfaceNames_result::read(::apache::thrift: return xfer; } -uint32_t Airavata_getAllApplicationInterfaceNames_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaceNames_result"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationDeployment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter236; - for (_iter236 = this->success.begin(); _iter236 != this->success.end(); ++_iter236) - { - xfer += oprot->writeString(_iter236->first); - xfer += oprot->writeString(_iter236->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -13660,7 +15029,7 @@ uint32_t Airavata_getAllApplicationInterfaceNames_result::write(::apache::thrift return xfer; } -uint32_t Airavata_getAllApplicationInterfaceNames_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13681,23 +15050,8 @@ uint32_t Airavata_getAllApplicationInterfaceNames_presult::read(::apache::thrift switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - (*(this->success)).clear(); - uint32_t _size237; - ::apache::thrift::protocol::TType _ktype238; - ::apache::thrift::protocol::TType _vtype239; - xfer += iprot->readMapBegin(_ktype238, _vtype239, _size237); - uint32_t _i241; - for (_i241 = 0; _i241 < _size237; ++_i241) - { - std::string _key242; - xfer += iprot->readString(_key242); - std::string& _val243 = (*(this->success))[_key242]; - xfer += iprot->readString(_val243); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13739,7 +15093,7 @@ uint32_t Airavata_getAllApplicationInterfaceNames_presult::read(::apache::thrift return xfer; } -uint32_t Airavata_getAllApplicationInterfaces_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationDeployment_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13750,7 +15104,7 @@ uint32_t Airavata_getAllApplicationInterfaces_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; + bool isset_appDeploymentId = false; while (true) { @@ -13762,8 +15116,8 @@ uint32_t Airavata_getAllApplicationInterfaces_args::read(::apache::thrift::proto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + xfer += iprot->readString(this->appDeploymentId); + isset_appDeploymentId = true; } else { xfer += iprot->skip(ftype); } @@ -13777,17 +15131,17 @@ uint32_t Airavata_getAllApplicationInterfaces_args::read(::apache::thrift::proto xfer += iprot->readStructEnd(); - if (!isset_gatewayId) + if (!isset_appDeploymentId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllApplicationInterfaces_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationDeployment_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaces_args"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationDeployment_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appDeploymentId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13795,12 +15149,12 @@ uint32_t Airavata_getAllApplicationInterfaces_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_getAllApplicationInterfaces_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationDeployment_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaces_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationDeployment_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("appDeploymentId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appDeploymentId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -13808,7 +15162,7 @@ uint32_t Airavata_getAllApplicationInterfaces_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_getAllApplicationInterfaces_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationDeployment_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13829,20 +15183,8 @@ uint32_t Airavata_getAllApplicationInterfaces_result::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size244; - ::apache::thrift::protocol::TType _etype247; - xfer += iprot->readListBegin(_etype247, _size244); - this->success.resize(_size244); - uint32_t _i248; - for (_i248 = 0; _i248 < _size244; ++_i248) - { - xfer += this->success[_i248].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13884,23 +15226,15 @@ uint32_t Airavata_getAllApplicationInterfaces_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_getAllApplicationInterfaces_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationDeployment_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaces_result"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationDeployment_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::ApplicationInterfaceDescription> ::const_iterator _iter249; - for (_iter249 = this->success.begin(); _iter249 != this->success.end(); ++_iter249) - { - xfer += (*_iter249).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -13920,7 +15254,7 @@ uint32_t Airavata_getAllApplicationInterfaces_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_getAllApplicationInterfaces_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationDeployment_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -13941,20 +15275,8 @@ uint32_t Airavata_getAllApplicationInterfaces_presult::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size250; - ::apache::thrift::protocol::TType _etype253; - xfer += iprot->readListBegin(_etype253, _size250); - (*(this->success)).resize(_size250); - uint32_t _i254; - for (_i254 = 0; _i254 < _size250; ++_i254) - { - xfer += (*(this->success))[_i254].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -13996,7 +15318,7 @@ uint32_t Airavata_getAllApplicationInterfaces_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_getApplicationInputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationDeployments_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14007,7 +15329,7 @@ uint32_t Airavata_getApplicationInputs_args::read(::apache::thrift::protocol::TP using ::apache::thrift::protocol::TProtocolException; - bool isset_appInterfaceId = false; + bool isset_gatewayId = false; while (true) { @@ -14019,8 +15341,8 @@ uint32_t Airavata_getApplicationInputs_args::read(::apache::thrift::protocol::TP { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appInterfaceId); - isset_appInterfaceId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } @@ -14034,17 +15356,17 @@ uint32_t Airavata_getApplicationInputs_args::read(::apache::thrift::protocol::TP xfer += iprot->readStructEnd(); - if (!isset_appInterfaceId) + if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getApplicationInputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationDeployments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationInputs_args"); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationDeployments_args"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14052,12 +15374,12 @@ uint32_t Airavata_getApplicationInputs_args::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getApplicationInputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationDeployments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationInputs_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationDeployments_pargs"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14065,7 +15387,7 @@ uint32_t Airavata_getApplicationInputs_pargs::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getApplicationInputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationDeployments_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14089,14 +15411,14 @@ uint32_t Airavata_getApplicationInputs_result::read(::apache::thrift::protocol:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size255; - ::apache::thrift::protocol::TType _etype258; - xfer += iprot->readListBegin(_etype258, _size255); - this->success.resize(_size255); - uint32_t _i259; - for (_i259 = 0; _i259 < _size255; ++_i259) + uint32_t _size318; + ::apache::thrift::protocol::TType _etype321; + xfer += iprot->readListBegin(_etype321, _size318); + this->success.resize(_size318); + uint32_t _i322; + for (_i322 = 0; _i322 < _size318; ++_i322) { - xfer += this->success[_i259].read(iprot); + xfer += this->success[_i322].read(iprot); } xfer += iprot->readListEnd(); } @@ -14141,20 +15463,20 @@ uint32_t Airavata_getApplicationInputs_result::read(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getApplicationInputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationDeployments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationInputs_result"); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationDeployments_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::InputDataObjectType> ::const_iterator _iter260; - for (_iter260 = this->success.begin(); _iter260 != this->success.end(); ++_iter260) + std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationDeploymentDescription> ::const_iterator _iter323; + for (_iter323 = this->success.begin(); _iter323 != this->success.end(); ++_iter323) { - xfer += (*_iter260).write(oprot); + xfer += (*_iter323).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14177,7 +15499,7 @@ uint32_t Airavata_getApplicationInputs_result::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getApplicationInputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationDeployments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14201,14 +15523,14 @@ uint32_t Airavata_getApplicationInputs_presult::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size261; - ::apache::thrift::protocol::TType _etype264; - xfer += iprot->readListBegin(_etype264, _size261); - (*(this->success)).resize(_size261); - uint32_t _i265; - for (_i265 = 0; _i265 < _size261; ++_i265) + uint32_t _size324; + ::apache::thrift::protocol::TType _etype327; + xfer += iprot->readListBegin(_etype327, _size324); + (*(this->success)).resize(_size324); + uint32_t _i328; + for (_i328 = 0; _i328 < _size324; ++_i328) { - xfer += (*(this->success))[_i265].read(iprot); + xfer += (*(this->success))[_i328].read(iprot); } xfer += iprot->readListEnd(); } @@ -14253,7 +15575,7 @@ uint32_t Airavata_getApplicationInputs_presult::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getApplicationOutputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAppModuleDeployedResources_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14264,7 +15586,7 @@ uint32_t Airavata_getApplicationOutputs_args::read(::apache::thrift::protocol::T using ::apache::thrift::protocol::TProtocolException; - bool isset_appInterfaceId = false; + bool isset_appModuleId = false; while (true) { @@ -14276,8 +15598,8 @@ uint32_t Airavata_getApplicationOutputs_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appInterfaceId); - isset_appInterfaceId = true; + xfer += iprot->readString(this->appModuleId); + isset_appModuleId = true; } else { xfer += iprot->skip(ftype); } @@ -14291,17 +15613,17 @@ uint32_t Airavata_getApplicationOutputs_args::read(::apache::thrift::protocol::T xfer += iprot->readStructEnd(); - if (!isset_appInterfaceId) + if (!isset_appModuleId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getApplicationOutputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAppModuleDeployedResources_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationOutputs_args"); + xfer += oprot->writeStructBegin("Airavata_getAppModuleDeployedResources_args"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appModuleId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14309,12 +15631,12 @@ uint32_t Airavata_getApplicationOutputs_args::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getApplicationOutputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAppModuleDeployedResources_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationOutputs_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAppModuleDeployedResources_pargs"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldBegin("appModuleId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appModuleId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14322,7 +15644,7 @@ uint32_t Airavata_getApplicationOutputs_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getApplicationOutputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAppModuleDeployedResources_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14346,14 +15668,14 @@ uint32_t Airavata_getApplicationOutputs_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size266; - ::apache::thrift::protocol::TType _etype269; - xfer += iprot->readListBegin(_etype269, _size266); - this->success.resize(_size266); - uint32_t _i270; - for (_i270 = 0; _i270 < _size266; ++_i270) + uint32_t _size329; + ::apache::thrift::protocol::TType _etype332; + xfer += iprot->readListBegin(_etype332, _size329); + this->success.resize(_size329); + uint32_t _i333; + for (_i333 = 0; _i333 < _size329; ++_i333) { - xfer += this->success[_i270].read(iprot); + xfer += iprot->readString(this->success[_i333]); } xfer += iprot->readListEnd(); } @@ -14398,20 +15720,20 @@ uint32_t Airavata_getApplicationOutputs_result::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getApplicationOutputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAppModuleDeployedResources_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getApplicationOutputs_result"); + xfer += oprot->writeStructBegin("Airavata_getAppModuleDeployedResources_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> ::const_iterator _iter271; - for (_iter271 = this->success.begin(); _iter271 != this->success.end(); ++_iter271) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::vector ::const_iterator _iter334; + for (_iter334 = this->success.begin(); _iter334 != this->success.end(); ++_iter334) { - xfer += (*_iter271).write(oprot); + xfer += oprot->writeString((*_iter334)); } xfer += oprot->writeListEnd(); } @@ -14434,7 +15756,7 @@ uint32_t Airavata_getApplicationOutputs_result::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getApplicationOutputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAppModuleDeployedResources_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14458,14 +15780,14 @@ uint32_t Airavata_getApplicationOutputs_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size272; - ::apache::thrift::protocol::TType _etype275; - xfer += iprot->readListBegin(_etype275, _size272); - (*(this->success)).resize(_size272); - uint32_t _i276; - for (_i276 = 0; _i276 < _size272; ++_i276) + uint32_t _size335; + ::apache::thrift::protocol::TType _etype338; + xfer += iprot->readListBegin(_etype338, _size335); + (*(this->success)).resize(_size335); + uint32_t _i339; + for (_i339 = 0; _i339 < _size335; ++_i339) { - xfer += (*(this->success))[_i276].read(iprot); + xfer += iprot->readString((*(this->success))[_i339]); } xfer += iprot->readListEnd(); } @@ -14510,7 +15832,7 @@ uint32_t Airavata_getApplicationOutputs_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14521,7 +15843,8 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::read(::apache:: using ::apache::thrift::protocol::TProtocolException; - bool isset_appInterfaceId = false; + bool isset_gatewayId = false; + bool isset_applicationInterface = false; while (true) { @@ -14533,8 +15856,16 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::read(::apache:: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->appInterfaceId); - isset_appInterfaceId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->applicationInterface.read(iprot); + isset_applicationInterface = true; } else { xfer += iprot->skip(ftype); } @@ -14548,17 +15879,23 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::read(::apache:: xfer += iprot->readStructEnd(); - if (!isset_appInterfaceId) + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_applicationInterface) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAvailableAppInterfaceComputeResources_args"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationInterface_args"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->applicationInterface.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14566,12 +15903,16 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::write(::apache: return xfer; } -uint32_t Airavata_getAvailableAppInterfaceComputeResources_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAvailableAppInterfaceComputeResources_pargs"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationInterface_pargs"); - xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->applicationInterface)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14579,7 +15920,7 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_pargs::write(::apache return xfer; } -uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14600,23 +15941,8 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::read(::apache switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->success.clear(); - uint32_t _size277; - ::apache::thrift::protocol::TType _ktype278; - ::apache::thrift::protocol::TType _vtype279; - xfer += iprot->readMapBegin(_ktype278, _vtype279, _size277); - uint32_t _i281; - for (_i281 = 0; _i281 < _size277; ++_i281) - { - std::string _key282; - xfer += iprot->readString(_key282); - std::string& _val283 = this->success[_key282]; - xfer += iprot->readString(_val283); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -14658,24 +15984,15 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::read(::apache return xfer; } -uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAvailableAppInterfaceComputeResources_result"); + xfer += oprot->writeStructBegin("Airavata_registerApplicationInterface_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter284; - for (_iter284 = this->success.begin(); _iter284 != this->success.end(); ++_iter284) - { - xfer += oprot->writeString(_iter284->first); - xfer += oprot->writeString(_iter284->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -14695,7 +16012,7 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::write(::apach return xfer; } -uint32_t Airavata_getAvailableAppInterfaceComputeResources_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14716,23 +16033,8 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_presult::read(::apach switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - (*(this->success)).clear(); - uint32_t _size285; - ::apache::thrift::protocol::TType _ktype286; - ::apache::thrift::protocol::TType _vtype287; - xfer += iprot->readMapBegin(_ktype286, _vtype287, _size285); - uint32_t _i289; - for (_i289 = 0; _i289 < _size285; ++_i289) - { - std::string _key290; - xfer += iprot->readString(_key290); - std::string& _val291 = (*(this->success))[_key290]; - xfer += iprot->readString(_val291); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -14774,7 +16076,7 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_presult::read(::apach return xfer; } -uint32_t Airavata_registerComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14785,7 +16087,7 @@ uint32_t Airavata_registerComputeResource_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceDescription = false; + bool isset_appInterfaceId = false; while (true) { @@ -14796,9 +16098,9 @@ uint32_t Airavata_registerComputeResource_args::read(::apache::thrift::protocol: switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->computeResourceDescription.read(iprot); - isset_computeResourceDescription = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->appInterfaceId); + isset_appInterfaceId = true; } else { xfer += iprot->skip(ftype); } @@ -14812,17 +16114,17 @@ uint32_t Airavata_registerComputeResource_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); - if (!isset_computeResourceDescription) + if (!isset_appInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_registerComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerComputeResource_args"); + xfer += oprot->writeStructBegin("Airavata_getApplicationInterface_args"); - xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->computeResourceDescription.write(oprot); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appInterfaceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14830,12 +16132,12 @@ uint32_t Airavata_registerComputeResource_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_registerComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerComputeResource_pargs"); + xfer += oprot->writeStructBegin("Airavata_getApplicationInterface_pargs"); - xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->computeResourceDescription)).write(oprot); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appInterfaceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -14843,7 +16145,7 @@ uint32_t Airavata_registerComputeResource_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_registerComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14864,8 +16166,8 @@ uint32_t Airavata_registerComputeResource_result::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -14907,15 +16209,15 @@ uint32_t Airavata_registerComputeResource_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_registerComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerComputeResource_result"); + xfer += oprot->writeStructBegin("Airavata_getApplicationInterface_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -14935,7 +16237,7 @@ uint32_t Airavata_registerComputeResource_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_registerComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -14956,8 +16258,8 @@ uint32_t Airavata_registerComputeResource_presult::read(::apache::thrift::protoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -14999,7 +16301,7 @@ uint32_t Airavata_registerComputeResource_presult::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_getComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15010,7 +16312,8 @@ uint32_t Airavata_getComputeResource_args::read(::apache::thrift::protocol::TPro using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; + bool isset_appInterfaceId = false; + bool isset_applicationInterface = false; while (true) { @@ -15022,8 +16325,16 @@ uint32_t Airavata_getComputeResource_args::read(::apache::thrift::protocol::TPro { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; + xfer += iprot->readString(this->appInterfaceId); + isset_appInterfaceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->applicationInterface.read(iprot); + isset_applicationInterface = true; } else { xfer += iprot->skip(ftype); } @@ -15037,17 +16348,23 @@ uint32_t Airavata_getComputeResource_args::read(::apache::thrift::protocol::TPro xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) + if (!isset_appInterfaceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_applicationInterface) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getComputeResource_args"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationInterface_args"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->applicationInterface.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -15055,12 +16372,16 @@ uint32_t Airavata_getComputeResource_args::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_getComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getComputeResource_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationInterface_pargs"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("applicationInterface", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->applicationInterface)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -15068,7 +16389,7 @@ uint32_t Airavata_getComputeResource_pargs::write(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_getComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15089,8 +16410,8 @@ uint32_t Airavata_getComputeResource_result::read(::apache::thrift::protocol::TP switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15132,15 +16453,15 @@ uint32_t Airavata_getComputeResource_result::read(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_getComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getComputeResource_result"); + xfer += oprot->writeStructBegin("Airavata_updateApplicationInterface_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15160,7 +16481,7 @@ uint32_t Airavata_getComputeResource_result::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15181,8 +16502,8 @@ uint32_t Airavata_getComputeResource_presult::read(::apache::thrift::protocol::T switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15224,7 +16545,7 @@ uint32_t Airavata_getComputeResource_presult::read(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getAllComputeResourceNames_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15235,6 +16556,7 @@ uint32_t Airavata_getAllComputeResourceNames_args::read(::apache::thrift::protoc using ::apache::thrift::protocol::TProtocolException; + bool isset_appInterfaceId = false; while (true) { @@ -15242,34 +16564,57 @@ uint32_t Airavata_getAllComputeResourceNames_args::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->appInterfaceId); + isset_appInterfaceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } xfer += iprot->readStructEnd(); + if (!isset_appInterfaceId) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllComputeResourceNames_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllComputeResourceNames_args"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationInterface_args"); + + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appInterfaceId); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAllComputeResourceNames_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllComputeResourceNames_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationInterface_pargs"); + + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appInterfaceId))); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAllComputeResourceNames_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15290,23 +16635,8 @@ uint32_t Airavata_getAllComputeResourceNames_result::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->success.clear(); - uint32_t _size292; - ::apache::thrift::protocol::TType _ktype293; - ::apache::thrift::protocol::TType _vtype294; - xfer += iprot->readMapBegin(_ktype293, _vtype294, _size292); - uint32_t _i296; - for (_i296 = 0; _i296 < _size292; ++_i296) - { - std::string _key297; - xfer += iprot->readString(_key297); - std::string& _val298 = this->success[_key297]; - xfer += iprot->readString(_val298); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15348,24 +16678,15 @@ uint32_t Airavata_getAllComputeResourceNames_result::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_getAllComputeResourceNames_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteApplicationInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllComputeResourceNames_result"); + xfer += oprot->writeStructBegin("Airavata_deleteApplicationInterface_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter299; - for (_iter299 = this->success.begin(); _iter299 != this->success.end(); ++_iter299) - { - xfer += oprot->writeString(_iter299->first); - xfer += oprot->writeString(_iter299->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15385,7 +16706,7 @@ uint32_t Airavata_getAllComputeResourceNames_result::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_getAllComputeResourceNames_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteApplicationInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15406,23 +16727,8 @@ uint32_t Airavata_getAllComputeResourceNames_presult::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - (*(this->success)).clear(); - uint32_t _size300; - ::apache::thrift::protocol::TType _ktype301; - ::apache::thrift::protocol::TType _vtype302; - xfer += iprot->readMapBegin(_ktype301, _vtype302, _size300); - uint32_t _i304; - for (_i304 = 0; _i304 < _size300; ++_i304) - { - std::string _key305; - xfer += iprot->readString(_key305); - std::string& _val306 = (*(this->success))[_key305]; - xfer += iprot->readString(_val306); - } - xfer += iprot->readMapEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15464,7 +16770,7 @@ uint32_t Airavata_getAllComputeResourceNames_presult::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationInterfaceNames_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15475,8 +16781,7 @@ uint32_t Airavata_updateComputeResource_args::read(::apache::thrift::protocol::T using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_computeResourceDescription = false; + bool isset_gatewayId = false; while (true) { @@ -15488,16 +16793,8 @@ uint32_t Airavata_updateComputeResource_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->computeResourceDescription.read(iprot); - isset_computeResourceDescription = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } @@ -15511,23 +16808,17 @@ uint32_t Airavata_updateComputeResource_args::read(::apache::thrift::protocol::T xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_computeResourceDescription) + if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationInterfaceNames_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateComputeResource_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaceNames_args"); - xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->computeResourceDescription.write(oprot); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -15535,16 +16826,12 @@ uint32_t Airavata_updateComputeResource_args::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_updateComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationInterfaceNames_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateComputeResource_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaceNames_pargs"); - xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->computeResourceDescription)).write(oprot); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -15552,7 +16839,7 @@ uint32_t Airavata_updateComputeResource_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_updateComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationInterfaceNames_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15573,8 +16860,23 @@ uint32_t Airavata_updateComputeResource_result::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->success.clear(); + uint32_t _size340; + ::apache::thrift::protocol::TType _ktype341; + ::apache::thrift::protocol::TType _vtype342; + xfer += iprot->readMapBegin(_ktype341, _vtype342, _size340); + uint32_t _i344; + for (_i344 = 0; _i344 < _size340; ++_i344) + { + std::string _key345; + xfer += iprot->readString(_key345); + std::string& _val346 = this->success[_key345]; + xfer += iprot->readString(_val346); + } + xfer += iprot->readMapEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15616,15 +16918,24 @@ uint32_t Airavata_updateComputeResource_result::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_updateComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationInterfaceNames_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateComputeResource_result"); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaceNames_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::map ::const_iterator _iter347; + for (_iter347 = this->success.begin(); _iter347 != this->success.end(); ++_iter347) + { + xfer += oprot->writeString(_iter347->first); + xfer += oprot->writeString(_iter347->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15644,7 +16955,7 @@ uint32_t Airavata_updateComputeResource_result::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_updateComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationInterfaceNames_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15665,8 +16976,23 @@ uint32_t Airavata_updateComputeResource_presult::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + (*(this->success)).clear(); + uint32_t _size348; + ::apache::thrift::protocol::TType _ktype349; + ::apache::thrift::protocol::TType _vtype350; + xfer += iprot->readMapBegin(_ktype349, _vtype350, _size348); + uint32_t _i352; + for (_i352 = 0; _i352 < _size348; ++_i352) + { + std::string _key353; + xfer += iprot->readString(_key353); + std::string& _val354 = (*(this->success))[_key353]; + xfer += iprot->readString(_val354); + } + xfer += iprot->readMapEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15708,7 +17034,7 @@ uint32_t Airavata_updateComputeResource_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_deleteComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationInterfaces_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15719,7 +17045,7 @@ uint32_t Airavata_deleteComputeResource_args::read(::apache::thrift::protocol::T using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; + bool isset_gatewayId = false; while (true) { @@ -15731,8 +17057,8 @@ uint32_t Airavata_deleteComputeResource_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } @@ -15746,17 +17072,17 @@ uint32_t Airavata_deleteComputeResource_args::read(::apache::thrift::protocol::T xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) + if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationInterfaces_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteComputeResource_args"); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaces_args"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -15764,12 +17090,12 @@ uint32_t Airavata_deleteComputeResource_args::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_deleteComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationInterfaces_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteComputeResource_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaces_pargs"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -15777,7 +17103,7 @@ uint32_t Airavata_deleteComputeResource_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_deleteComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationInterfaces_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15798,8 +17124,20 @@ uint32_t Airavata_deleteComputeResource_result::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size355; + ::apache::thrift::protocol::TType _etype358; + xfer += iprot->readListBegin(_etype358, _size355); + this->success.resize(_size355); + uint32_t _i359; + for (_i359 = 0; _i359 < _size355; ++_i359) + { + xfer += this->success[_i359].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15841,15 +17179,23 @@ uint32_t Airavata_deleteComputeResource_result::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_deleteComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllApplicationInterfaces_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteComputeResource_result"); + xfer += oprot->writeStructBegin("Airavata_getAllApplicationInterfaces_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::appinterface::ApplicationInterfaceDescription> ::const_iterator _iter360; + for (_iter360 = this->success.begin(); _iter360 != this->success.end(); ++_iter360) + { + xfer += (*_iter360).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15869,7 +17215,7 @@ uint32_t Airavata_deleteComputeResource_result::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_deleteComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllApplicationInterfaces_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15890,8 +17236,20 @@ uint32_t Airavata_deleteComputeResource_presult::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size361; + ::apache::thrift::protocol::TType _etype364; + xfer += iprot->readListBegin(_etype364, _size361); + (*(this->success)).resize(_size361); + uint32_t _i365; + for (_i365 = 0; _i365 < _size361; ++_i365) + { + xfer += (*(this->success))[_i365].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15933,7 +17291,7 @@ uint32_t Airavata_deleteComputeResource_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_addLocalSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationInputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15944,9 +17302,7 @@ uint32_t Airavata_addLocalSubmissionDetails_args::read(::apache::thrift::protoco using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_priorityOrder = false; - bool isset_localSubmission = false; + bool isset_appInterfaceId = false; while (true) { @@ -15958,24 +17314,8 @@ uint32_t Airavata_addLocalSubmissionDetails_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->priorityOrder); - isset_priorityOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->localSubmission.read(iprot); - isset_localSubmission = true; + xfer += iprot->readString(this->appInterfaceId); + isset_appInterfaceId = true; } else { xfer += iprot->skip(ftype); } @@ -15989,29 +17329,17 @@ uint32_t Airavata_addLocalSubmissionDetails_args::read(::apache::thrift::protoco xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_priorityOrder) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_localSubmission) + if (!isset_appInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addLocalSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationInputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addLocalSubmissionDetails_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->priorityOrder); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getApplicationInputs_args"); - xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->localSubmission.write(oprot); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appInterfaceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16019,20 +17347,12 @@ uint32_t Airavata_addLocalSubmissionDetails_args::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_addLocalSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationInputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addLocalSubmissionDetails_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->priorityOrder))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getApplicationInputs_pargs"); - xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->localSubmission)).write(oprot); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appInterfaceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16040,7 +17360,7 @@ uint32_t Airavata_addLocalSubmissionDetails_pargs::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_addLocalSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationInputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16061,8 +17381,20 @@ uint32_t Airavata_addLocalSubmissionDetails_result::read(::apache::thrift::proto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size366; + ::apache::thrift::protocol::TType _etype369; + xfer += iprot->readListBegin(_etype369, _size366); + this->success.resize(_size366); + uint32_t _i370; + for (_i370 = 0; _i370 < _size366; ++_i370) + { + xfer += this->success[_i370].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -16104,15 +17436,23 @@ uint32_t Airavata_addLocalSubmissionDetails_result::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_addLocalSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationInputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addLocalSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getApplicationInputs_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::appinterface::InputDataObjectType> ::const_iterator _iter371; + for (_iter371 = this->success.begin(); _iter371 != this->success.end(); ++_iter371) + { + xfer += (*_iter371).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -16132,7 +17472,7 @@ uint32_t Airavata_addLocalSubmissionDetails_result::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_addLocalSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationInputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16153,8 +17493,20 @@ uint32_t Airavata_addLocalSubmissionDetails_presult::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size372; + ::apache::thrift::protocol::TType _etype375; + xfer += iprot->readListBegin(_etype375, _size372); + (*(this->success)).resize(_size372); + uint32_t _i376; + for (_i376 = 0; _i376 < _size372; ++_i376) + { + xfer += (*(this->success))[_i376].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -16196,7 +17548,7 @@ uint32_t Airavata_addLocalSubmissionDetails_presult::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_updateLocalSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationOutputs_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16207,8 +17559,7 @@ uint32_t Airavata_updateLocalSubmissionDetails_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionInterfaceId = false; - bool isset_localSubmission = false; + bool isset_appInterfaceId = false; while (true) { @@ -16220,16 +17571,8 @@ uint32_t Airavata_updateLocalSubmissionDetails_args::read(::apache::thrift::prot { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionInterfaceId); - isset_jobSubmissionInterfaceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->localSubmission.read(iprot); - isset_localSubmission = true; + xfer += iprot->readString(this->appInterfaceId); + isset_appInterfaceId = true; } else { xfer += iprot->skip(ftype); } @@ -16243,23 +17586,17 @@ uint32_t Airavata_updateLocalSubmissionDetails_args::read(::apache::thrift::prot xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionInterfaceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_localSubmission) + if (!isset_appInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateLocalSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationOutputs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateLocalSubmissionDetails_args"); - - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionInterfaceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getApplicationOutputs_args"); - xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->localSubmission.write(oprot); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appInterfaceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16267,16 +17604,12 @@ uint32_t Airavata_updateLocalSubmissionDetails_args::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateLocalSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationOutputs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateLocalSubmissionDetails_pargs"); - - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getApplicationOutputs_pargs"); - xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->localSubmission)).write(oprot); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appInterfaceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16284,7 +17617,7 @@ uint32_t Airavata_updateLocalSubmissionDetails_pargs::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateLocalSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationOutputs_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16305,8 +17638,20 @@ uint32_t Airavata_updateLocalSubmissionDetails_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size377; + ::apache::thrift::protocol::TType _etype380; + xfer += iprot->readListBegin(_etype380, _size377); + this->success.resize(_size377); + uint32_t _i381; + for (_i381 = 0; _i381 < _size377; ++_i381) + { + xfer += this->success[_i381].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -16348,15 +17693,23 @@ uint32_t Airavata_updateLocalSubmissionDetails_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateLocalSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getApplicationOutputs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateLocalSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getApplicationOutputs_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> ::const_iterator _iter382; + for (_iter382 = this->success.begin(); _iter382 != this->success.end(); ++_iter382) + { + xfer += (*_iter382).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -16376,7 +17729,7 @@ uint32_t Airavata_updateLocalSubmissionDetails_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_updateLocalSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getApplicationOutputs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16397,8 +17750,20 @@ uint32_t Airavata_updateLocalSubmissionDetails_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size383; + ::apache::thrift::protocol::TType _etype386; + xfer += iprot->readListBegin(_etype386, _size383); + (*(this->success)).resize(_size383); + uint32_t _i387; + for (_i387 = 0; _i387 < _size383; ++_i387) + { + xfer += (*(this->success))[_i387].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -16440,7 +17805,7 @@ uint32_t Airavata_updateLocalSubmissionDetails_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_getLocalJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16451,7 +17816,7 @@ uint32_t Airavata_getLocalJobSubmission_args::read(::apache::thrift::protocol::T using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionId = false; + bool isset_appInterfaceId = false; while (true) { @@ -16463,8 +17828,8 @@ uint32_t Airavata_getLocalJobSubmission_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionId); - isset_jobSubmissionId = true; + xfer += iprot->readString(this->appInterfaceId); + isset_appInterfaceId = true; } else { xfer += iprot->skip(ftype); } @@ -16478,17 +17843,17 @@ uint32_t Airavata_getLocalJobSubmission_args::read(::apache::thrift::protocol::T xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionId) + if (!isset_appInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getLocalJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAvailableAppInterfaceComputeResources_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getLocalJobSubmission_args"); + xfer += oprot->writeStructBegin("Airavata_getAvailableAppInterfaceComputeResources_args"); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionId); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->appInterfaceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16496,12 +17861,12 @@ uint32_t Airavata_getLocalJobSubmission_args::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getLocalJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAvailableAppInterfaceComputeResources_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getLocalJobSubmission_pargs"); + xfer += oprot->writeStructBegin("Airavata_getAvailableAppInterfaceComputeResources_pargs"); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionId))); + xfer += oprot->writeFieldBegin("appInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->appInterfaceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16509,7 +17874,7 @@ uint32_t Airavata_getLocalJobSubmission_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getLocalJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16530,8 +17895,23 @@ uint32_t Airavata_getLocalJobSubmission_result::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->success.clear(); + uint32_t _size388; + ::apache::thrift::protocol::TType _ktype389; + ::apache::thrift::protocol::TType _vtype390; + xfer += iprot->readMapBegin(_ktype389, _vtype390, _size388); + uint32_t _i392; + for (_i392 = 0; _i392 < _size388; ++_i392) + { + std::string _key393; + xfer += iprot->readString(_key393); + std::string& _val394 = this->success[_key393]; + xfer += iprot->readString(_val394); + } + xfer += iprot->readMapEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -16573,15 +17953,24 @@ uint32_t Airavata_getLocalJobSubmission_result::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getLocalJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getLocalJobSubmission_result"); + xfer += oprot->writeStructBegin("Airavata_getAvailableAppInterfaceComputeResources_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::map ::const_iterator _iter395; + for (_iter395 = this->success.begin(); _iter395 != this->success.end(); ++_iter395) + { + xfer += oprot->writeString(_iter395->first); + xfer += oprot->writeString(_iter395->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -16601,7 +17990,7 @@ uint32_t Airavata_getLocalJobSubmission_result::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getLocalJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAvailableAppInterfaceComputeResources_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16622,8 +18011,23 @@ uint32_t Airavata_getLocalJobSubmission_presult::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + (*(this->success)).clear(); + uint32_t _size396; + ::apache::thrift::protocol::TType _ktype397; + ::apache::thrift::protocol::TType _vtype398; + xfer += iprot->readMapBegin(_ktype397, _vtype398, _size396); + uint32_t _i400; + for (_i400 = 0; _i400 < _size396; ++_i400) + { + std::string _key401; + xfer += iprot->readString(_key401); + std::string& _val402 = (*(this->success))[_key401]; + xfer += iprot->readString(_val402); + } + xfer += iprot->readMapEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -16665,7 +18069,7 @@ uint32_t Airavata_getLocalJobSubmission_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_addSSHJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16676,9 +18080,7 @@ uint32_t Airavata_addSSHJobSubmissionDetails_args::read(::apache::thrift::protoc using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_priorityOrder = false; - bool isset_sshJobSubmission = false; + bool isset_computeResourceDescription = false; while (true) { @@ -16689,25 +18091,9 @@ uint32_t Airavata_addSSHJobSubmissionDetails_args::read(::apache::thrift::protoc switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->priorityOrder); - isset_priorityOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->sshJobSubmission.read(iprot); - isset_sshJobSubmission = true; + xfer += this->computeResourceDescription.read(iprot); + isset_computeResourceDescription = true; } else { xfer += iprot->skip(ftype); } @@ -16721,29 +18107,17 @@ uint32_t Airavata_addSSHJobSubmissionDetails_args::read(::apache::thrift::protoc xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_priorityOrder) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_sshJobSubmission) + if (!isset_computeResourceDescription) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addSSHJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addSSHJobSubmissionDetails_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->priorityOrder); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_registerComputeResource_args"); - xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->sshJobSubmission.write(oprot); + xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->computeResourceDescription.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16751,20 +18125,12 @@ uint32_t Airavata_addSSHJobSubmissionDetails_args::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_addSSHJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addSSHJobSubmissionDetails_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->priorityOrder))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_registerComputeResource_pargs"); - xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->sshJobSubmission)).write(oprot); + xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->computeResourceDescription)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16772,7 +18138,7 @@ uint32_t Airavata_addSSHJobSubmissionDetails_pargs::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_addSSHJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16836,11 +18202,11 @@ uint32_t Airavata_addSSHJobSubmissionDetails_result::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_addSSHJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addSSHJobSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_registerComputeResource_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); @@ -16864,7 +18230,7 @@ uint32_t Airavata_addSSHJobSubmissionDetails_result::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_addSSHJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16928,7 +18294,7 @@ uint32_t Airavata_addSSHJobSubmissionDetails_presult::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_getSSHJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -16939,7 +18305,7 @@ uint32_t Airavata_getSSHJobSubmission_args::read(::apache::thrift::protocol::TPr using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionId = false; + bool isset_computeResourceId = false; while (true) { @@ -16951,8 +18317,8 @@ uint32_t Airavata_getSSHJobSubmission_args::read(::apache::thrift::protocol::TPr { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionId); - isset_jobSubmissionId = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; } else { xfer += iprot->skip(ftype); } @@ -16966,17 +18332,17 @@ uint32_t Airavata_getSSHJobSubmission_args::read(::apache::thrift::protocol::TPr xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionId) + if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getSSHJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getSSHJobSubmission_args"); + xfer += oprot->writeStructBegin("Airavata_getComputeResource_args"); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionId); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16984,12 +18350,12 @@ uint32_t Airavata_getSSHJobSubmission_args::write(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_getSSHJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getSSHJobSubmission_pargs"); + xfer += oprot->writeStructBegin("Airavata_getComputeResource_pargs"); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionId))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -16997,7 +18363,7 @@ uint32_t Airavata_getSSHJobSubmission_pargs::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getSSHJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17061,11 +18427,11 @@ uint32_t Airavata_getSSHJobSubmission_result::read(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getSSHJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getSSHJobSubmission_result"); + xfer += oprot->writeStructBegin("Airavata_getComputeResource_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -17089,7 +18455,7 @@ uint32_t Airavata_getSSHJobSubmission_result::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getSSHJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17153,7 +18519,7 @@ uint32_t Airavata_getSSHJobSubmission_presult::read(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_addUNICOREJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllComputeResourceNames_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17164,9 +18530,6 @@ uint32_t Airavata_addUNICOREJobSubmissionDetails_args::read(::apache::thrift::pr using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_priorityOrder = false; - bool isset_unicoreJobSubmission = false; while (true) { @@ -17174,93 +18537,34 @@ uint32_t Airavata_addUNICOREJobSubmissionDetails_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->priorityOrder); - isset_priorityOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->unicoreJobSubmission.read(iprot); - isset_unicoreJobSubmission = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } + xfer += iprot->skip(ftype); xfer += iprot->readFieldEnd(); } xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_priorityOrder) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_unicoreJobSubmission) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addUNICOREJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllComputeResourceNames_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addUNICOREJobSubmissionDetails_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->priorityOrder); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->unicoreJobSubmission.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllComputeResourceNames_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_addUNICOREJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllComputeResourceNames_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addUNICOREJobSubmissionDetails_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->priorityOrder))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->unicoreJobSubmission)).write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllComputeResourceNames_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_addUNICOREJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllComputeResourceNames_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17281,8 +18585,23 @@ uint32_t Airavata_addUNICOREJobSubmissionDetails_result::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->success.clear(); + uint32_t _size403; + ::apache::thrift::protocol::TType _ktype404; + ::apache::thrift::protocol::TType _vtype405; + xfer += iprot->readMapBegin(_ktype404, _vtype405, _size403); + uint32_t _i407; + for (_i407 = 0; _i407 < _size403; ++_i407) + { + std::string _key408; + xfer += iprot->readString(_key408); + std::string& _val409 = this->success[_key408]; + xfer += iprot->readString(_val409); + } + xfer += iprot->readMapEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -17324,15 +18643,24 @@ uint32_t Airavata_addUNICOREJobSubmissionDetails_result::read(::apache::thrift:: return xfer; } -uint32_t Airavata_addUNICOREJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllComputeResourceNames_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addUNICOREJobSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getAllComputeResourceNames_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::map ::const_iterator _iter410; + for (_iter410 = this->success.begin(); _iter410 != this->success.end(); ++_iter410) + { + xfer += oprot->writeString(_iter410->first); + xfer += oprot->writeString(_iter410->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -17352,7 +18680,7 @@ uint32_t Airavata_addUNICOREJobSubmissionDetails_result::write(::apache::thrift: return xfer; } -uint32_t Airavata_addUNICOREJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllComputeResourceNames_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17373,8 +18701,23 @@ uint32_t Airavata_addUNICOREJobSubmissionDetails_presult::read(::apache::thrift: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + (*(this->success)).clear(); + uint32_t _size411; + ::apache::thrift::protocol::TType _ktype412; + ::apache::thrift::protocol::TType _vtype413; + xfer += iprot->readMapBegin(_ktype412, _vtype413, _size411); + uint32_t _i415; + for (_i415 = 0; _i415 < _size411; ++_i415) + { + std::string _key416; + xfer += iprot->readString(_key416); + std::string& _val417 = (*(this->success))[_key416]; + xfer += iprot->readString(_val417); + } + xfer += iprot->readMapEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -17416,7 +18759,7 @@ uint32_t Airavata_addUNICOREJobSubmissionDetails_presult::read(::apache::thrift: return xfer; } -uint32_t Airavata_getUnicoreJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17427,7 +18770,8 @@ uint32_t Airavata_getUnicoreJobSubmission_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionId = false; + bool isset_computeResourceId = false; + bool isset_computeResourceDescription = false; while (true) { @@ -17439,8 +18783,16 @@ uint32_t Airavata_getUnicoreJobSubmission_args::read(::apache::thrift::protocol: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionId); - isset_jobSubmissionId = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->computeResourceDescription.read(iprot); + isset_computeResourceDescription = true; } else { xfer += iprot->skip(ftype); } @@ -17454,17 +18806,23 @@ uint32_t Airavata_getUnicoreJobSubmission_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionId) + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_computeResourceDescription) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getUnicoreJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getUnicoreJobSubmission_args"); + xfer += oprot->writeStructBegin("Airavata_updateComputeResource_args"); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionId); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->computeResourceDescription.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -17472,12 +18830,16 @@ uint32_t Airavata_getUnicoreJobSubmission_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getUnicoreJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getUnicoreJobSubmission_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateComputeResource_pargs"); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionId))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceDescription", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->computeResourceDescription)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -17485,7 +18847,7 @@ uint32_t Airavata_getUnicoreJobSubmission_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getUnicoreJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17506,8 +18868,8 @@ uint32_t Airavata_getUnicoreJobSubmission_result::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -17549,15 +18911,15 @@ uint32_t Airavata_getUnicoreJobSubmission_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getUnicoreJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getUnicoreJobSubmission_result"); + xfer += oprot->writeStructBegin("Airavata_updateComputeResource_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -17577,7 +18939,7 @@ uint32_t Airavata_getUnicoreJobSubmission_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_getUnicoreJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17598,8 +18960,8 @@ uint32_t Airavata_getUnicoreJobSubmission_presult::read(::apache::thrift::protoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -17641,7 +19003,7 @@ uint32_t Airavata_getUnicoreJobSubmission_presult::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_addCloudJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteComputeResource_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17653,8 +19015,6 @@ uint32_t Airavata_addCloudJobSubmissionDetails_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; bool isset_computeResourceId = false; - bool isset_priorityOrder = false; - bool isset_cloudSubmission = false; while (true) { @@ -17672,22 +19032,6 @@ uint32_t Airavata_addCloudJobSubmissionDetails_args::read(::apache::thrift::prot xfer += iprot->skip(ftype); } break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->priorityOrder); - isset_priorityOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->cloudSubmission.read(iprot); - isset_cloudSubmission = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -17699,56 +19043,36 @@ uint32_t Airavata_addCloudJobSubmissionDetails_args::read(::apache::thrift::prot if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_priorityOrder) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_cloudSubmission) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addCloudJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteComputeResource_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addCloudJobSubmissionDetails_args"); + xfer += oprot->writeStructBegin("Airavata_deleteComputeResource_args"); xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->priorityOrder); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("cloudSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->cloudSubmission.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_addCloudJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteComputeResource_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addCloudJobSubmissionDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteComputeResource_pargs"); xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->priorityOrder))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("cloudSubmission", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->cloudSubmission)).write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_addCloudJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteComputeResource_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17769,8 +19093,8 @@ uint32_t Airavata_addCloudJobSubmissionDetails_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -17812,15 +19136,15 @@ uint32_t Airavata_addCloudJobSubmissionDetails_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_addCloudJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteComputeResource_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addCloudJobSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_deleteComputeResource_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -17840,7 +19164,7 @@ uint32_t Airavata_addCloudJobSubmissionDetails_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_addCloudJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteComputeResource_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17861,8 +19185,8 @@ uint32_t Airavata_addCloudJobSubmissionDetails_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -17904,7 +19228,7 @@ uint32_t Airavata_addCloudJobSubmissionDetails_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_getCloudJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addLocalSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -17915,7 +19239,9 @@ uint32_t Airavata_getCloudJobSubmission_args::read(::apache::thrift::protocol::T using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionId = false; + bool isset_computeResourceId = false; + bool isset_priorityOrder = false; + bool isset_localSubmission = false; while (true) { @@ -17927,8 +19253,24 @@ uint32_t Airavata_getCloudJobSubmission_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionId); - isset_jobSubmissionId = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->priorityOrder); + isset_priorityOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->localSubmission.read(iprot); + isset_localSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -17942,30 +19284,29 @@ uint32_t Airavata_getCloudJobSubmission_args::read(::apache::thrift::protocol::T xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionId) + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_priorityOrder) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_localSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getCloudJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addLocalSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getCloudJobSubmission_args"); + xfer += oprot->writeStructBegin("Airavata_addLocalSubmissionDetails_args"); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionId); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -uint32_t Airavata_getCloudJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getCloudJobSubmission_pargs"); + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionId))); + xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->localSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -17973,99 +19314,28 @@ uint32_t Airavata_getCloudJobSubmission_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getCloudJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { - +uint32_t Airavata_addLocalSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} + xfer += oprot->writeStructBegin("Airavata_addLocalSubmissionDetails_pargs"); -uint32_t Airavata_getCloudJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); - uint32_t xfer = 0; + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeStructBegin("Airavata_getCloudJobSubmission_result"); + xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->localSubmission)).write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getCloudJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addLocalSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18086,8 +19356,8 @@ uint32_t Airavata_getCloudJobSubmission_presult::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -18129,7 +19399,99 @@ uint32_t Airavata_getCloudJobSubmission_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_updateSSHJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addLocalSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_addLocalSubmissionDetails_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_addLocalSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_updateLocalSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18141,7 +19503,7 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; bool isset_jobSubmissionInterfaceId = false; - bool isset_sshJobSubmission = false; + bool isset_localSubmission = false; while (true) { @@ -18161,8 +19523,8 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_args::read(::apache::thrift::pro break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->sshJobSubmission.read(iprot); - isset_sshJobSubmission = true; + xfer += this->localSubmission.read(iprot); + isset_localSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -18178,21 +19540,21 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_args::read(::apache::thrift::pro if (!isset_jobSubmissionInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_sshJobSubmission) + if (!isset_localSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateSSHJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateLocalSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateSSHJobSubmissionDetails_args"); + xfer += oprot->writeStructBegin("Airavata_updateLocalSubmissionDetails_args"); xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->jobSubmissionInterfaceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->sshJobSubmission.write(oprot); + xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->localSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18200,16 +19562,16 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_args::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateSSHJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateLocalSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateSSHJobSubmissionDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateLocalSubmissionDetails_pargs"); xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->sshJobSubmission)).write(oprot); + xfer += oprot->writeFieldBegin("localSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->localSubmission)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18217,7 +19579,7 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_pargs::write(::apache::thrift::p return xfer; } -uint32_t Airavata_updateSSHJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateLocalSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18281,11 +19643,11 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_updateSSHJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateLocalSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateSSHJobSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_updateLocalSubmissionDetails_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -18309,7 +19671,7 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_result::write(::apache::thrift:: return xfer; } -uint32_t Airavata_updateSSHJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateLocalSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18373,7 +19735,7 @@ uint32_t Airavata_updateSSHJobSubmissionDetails_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_updateCloudJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getLocalJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18384,8 +19746,7 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_args::read(::apache::thrift::p using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionInterfaceId = false; - bool isset_sshJobSubmission = false; + bool isset_jobSubmissionId = false; while (true) { @@ -18397,16 +19758,8 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_args::read(::apache::thrift::p { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionInterfaceId); - isset_jobSubmissionInterfaceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->sshJobSubmission.read(iprot); - isset_sshJobSubmission = true; + xfer += iprot->readString(this->jobSubmissionId); + isset_jobSubmissionId = true; } else { xfer += iprot->skip(ftype); } @@ -18420,23 +19773,17 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_args::read(::apache::thrift::p xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionInterfaceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_sshJobSubmission) + if (!isset_jobSubmissionId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateCloudJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getLocalJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateCloudJobSubmissionDetails_args"); - - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionInterfaceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getLocalJobSubmission_args"); - xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->sshJobSubmission.write(oprot); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18444,16 +19791,12 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_args::write(::apache::thrift:: return xfer; } -uint32_t Airavata_updateCloudJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getLocalJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateCloudJobSubmissionDetails_pargs"); - - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getLocalJobSubmission_pargs"); - xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->sshJobSubmission)).write(oprot); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18461,7 +19804,7 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_pargs::write(::apache::thrift: return xfer; } -uint32_t Airavata_updateCloudJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getLocalJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18482,8 +19825,8 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_result::read(::apache::thrift: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -18525,15 +19868,15 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_result::read(::apache::thrift: return xfer; } -uint32_t Airavata_updateCloudJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getLocalJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateCloudJobSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getLocalJobSubmission_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -18553,7 +19896,7 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_result::write(::apache::thrift return xfer; } -uint32_t Airavata_updateCloudJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getLocalJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18574,8 +19917,8 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_presult::read(::apache::thrift switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -18617,7 +19960,7 @@ uint32_t Airavata_updateCloudJobSubmissionDetails_presult::read(::apache::thrift return xfer; } -uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addSSHJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18628,8 +19971,9 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::read(::apache::thrift: using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionInterfaceId = false; - bool isset_unicoreJobSubmission = false; + bool isset_computeResourceId = false; + bool isset_priorityOrder = false; + bool isset_sshJobSubmission = false; while (true) { @@ -18641,16 +19985,24 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::read(::apache::thrift: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionInterfaceId); - isset_jobSubmissionInterfaceId = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; } else { xfer += iprot->skip(ftype); } break; case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->priorityOrder); + isset_priorityOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->unicoreJobSubmission.read(iprot); - isset_unicoreJobSubmission = true; + xfer += this->sshJobSubmission.read(iprot); + isset_sshJobSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -18664,23 +20016,29 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::read(::apache::thrift: xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionInterfaceId) + if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_unicoreJobSubmission) + if (!isset_priorityOrder) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_sshJobSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addSSHJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateUnicoreJobSubmissionDetails_args"); + xfer += oprot->writeStructBegin("Airavata_addSSHJobSubmissionDetails_args"); - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionInterfaceId); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->unicoreJobSubmission.write(oprot); + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->sshJobSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18688,16 +20046,20 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::write(::apache::thrift return xfer; } -uint32_t Airavata_updateUnicoreJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addSSHJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateUnicoreJobSubmissionDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_addSSHJobSubmissionDetails_pargs"); - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->unicoreJobSubmission)).write(oprot); + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->sshJobSubmission)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18705,7 +20067,7 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_pargs::write(::apache::thrif return xfer; } -uint32_t Airavata_updateUnicoreJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addSSHJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18726,8 +20088,8 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_result::read(::apache::thrif switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -18769,15 +20131,15 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_result::read(::apache::thrif return xfer; } -uint32_t Airavata_updateUnicoreJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addSSHJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateUnicoreJobSubmissionDetails_result"); + xfer += oprot->writeStructBegin("Airavata_addSSHJobSubmissionDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -18797,7 +20159,7 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_result::write(::apache::thri return xfer; } -uint32_t Airavata_updateUnicoreJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addSSHJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18818,8 +20180,8 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_presult::read(::apache::thri switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -18861,7 +20223,7 @@ uint32_t Airavata_updateUnicoreJobSubmissionDetails_presult::read(::apache::thri return xfer; } -uint32_t Airavata_addLocalDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getSSHJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18872,9 +20234,7 @@ uint32_t Airavata_addLocalDataMovementDetails_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_priorityOrder = false; - bool isset_localDataMovement = false; + bool isset_jobSubmissionId = false; while (true) { @@ -18886,24 +20246,8 @@ uint32_t Airavata_addLocalDataMovementDetails_args::read(::apache::thrift::proto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->priorityOrder); - isset_priorityOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->localDataMovement.read(iprot); - isset_localDataMovement = true; + xfer += iprot->readString(this->jobSubmissionId); + isset_jobSubmissionId = true; } else { xfer += iprot->skip(ftype); } @@ -18917,29 +20261,17 @@ uint32_t Airavata_addLocalDataMovementDetails_args::read(::apache::thrift::proto xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_priorityOrder) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_localDataMovement) + if (!isset_jobSubmissionId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addLocalDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getSSHJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addLocalDataMovementDetails_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->priorityOrder); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getSSHJobSubmission_args"); - xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->localDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18947,20 +20279,12 @@ uint32_t Airavata_addLocalDataMovementDetails_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_addLocalDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getSSHJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addLocalDataMovementDetails_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->priorityOrder))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getSSHJobSubmission_pargs"); - xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->localDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18968,7 +20292,7 @@ uint32_t Airavata_addLocalDataMovementDetails_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_addLocalDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getSSHJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -18989,8 +20313,8 @@ uint32_t Airavata_addLocalDataMovementDetails_result::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -19032,15 +20356,15 @@ uint32_t Airavata_addLocalDataMovementDetails_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_addLocalDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getSSHJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addLocalDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getSSHJobSubmission_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -19060,7 +20384,7 @@ uint32_t Airavata_addLocalDataMovementDetails_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_addLocalDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getSSHJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19081,8 +20405,8 @@ uint32_t Airavata_addLocalDataMovementDetails_presult::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -19124,7 +20448,7 @@ uint32_t Airavata_addLocalDataMovementDetails_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateLocalDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addUNICOREJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19135,8 +20459,9 @@ uint32_t Airavata_updateLocalDataMovementDetails_args::read(::apache::thrift::pr using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementInterfaceId = false; - bool isset_localDataMovement = false; + bool isset_computeResourceId = false; + bool isset_priorityOrder = false; + bool isset_unicoreJobSubmission = false; while (true) { @@ -19148,16 +20473,24 @@ uint32_t Airavata_updateLocalDataMovementDetails_args::read(::apache::thrift::pr { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementInterfaceId); - isset_dataMovementInterfaceId = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; } else { xfer += iprot->skip(ftype); } break; case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->priorityOrder); + isset_priorityOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->localDataMovement.read(iprot); - isset_localDataMovement = true; + xfer += this->unicoreJobSubmission.read(iprot); + isset_unicoreJobSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -19171,23 +20504,29 @@ uint32_t Airavata_updateLocalDataMovementDetails_args::read(::apache::thrift::pr xfer += iprot->readStructEnd(); - if (!isset_dataMovementInterfaceId) + if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_localDataMovement) + if (!isset_priorityOrder) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_unicoreJobSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateLocalDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addUNICOREJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateLocalDataMovementDetails_args"); + xfer += oprot->writeStructBegin("Airavata_addUNICOREJobSubmissionDetails_args"); - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementInterfaceId); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->localDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->unicoreJobSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19195,16 +20534,20 @@ uint32_t Airavata_updateLocalDataMovementDetails_args::write(::apache::thrift::p return xfer; } -uint32_t Airavata_updateLocalDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addUNICOREJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateLocalDataMovementDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_addUNICOREJobSubmissionDetails_pargs"); - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementInterfaceId))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->localDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->unicoreJobSubmission)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19212,7 +20555,7 @@ uint32_t Airavata_updateLocalDataMovementDetails_pargs::write(::apache::thrift:: return xfer; } -uint32_t Airavata_updateLocalDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addUNICOREJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19233,8 +20576,8 @@ uint32_t Airavata_updateLocalDataMovementDetails_result::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -19276,15 +20619,15 @@ uint32_t Airavata_updateLocalDataMovementDetails_result::read(::apache::thrift:: return xfer; } -uint32_t Airavata_updateLocalDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addUNICOREJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateLocalDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_addUNICOREJobSubmissionDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -19304,7 +20647,7 @@ uint32_t Airavata_updateLocalDataMovementDetails_result::write(::apache::thrift: return xfer; } -uint32_t Airavata_updateLocalDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addUNICOREJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19325,8 +20668,8 @@ uint32_t Airavata_updateLocalDataMovementDetails_presult::read(::apache::thrift: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -19368,7 +20711,7 @@ uint32_t Airavata_updateLocalDataMovementDetails_presult::read(::apache::thrift: return xfer; } -uint32_t Airavata_getLocalDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUnicoreJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19379,7 +20722,7 @@ uint32_t Airavata_getLocalDataMovement_args::read(::apache::thrift::protocol::TP using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementId = false; + bool isset_jobSubmissionId = false; while (true) { @@ -19391,8 +20734,8 @@ uint32_t Airavata_getLocalDataMovement_args::read(::apache::thrift::protocol::TP { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementId); - isset_dataMovementId = true; + xfer += iprot->readString(this->jobSubmissionId); + isset_jobSubmissionId = true; } else { xfer += iprot->skip(ftype); } @@ -19406,17 +20749,17 @@ uint32_t Airavata_getLocalDataMovement_args::read(::apache::thrift::protocol::TP xfer += iprot->readStructEnd(); - if (!isset_dataMovementId) + if (!isset_jobSubmissionId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getLocalDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUnicoreJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getLocalDataMovement_args"); + xfer += oprot->writeStructBegin("Airavata_getUnicoreJobSubmission_args"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementId); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19424,12 +20767,12 @@ uint32_t Airavata_getLocalDataMovement_args::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getLocalDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUnicoreJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getLocalDataMovement_pargs"); + xfer += oprot->writeStructBegin("Airavata_getUnicoreJobSubmission_pargs"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementId))); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19437,7 +20780,7 @@ uint32_t Airavata_getLocalDataMovement_pargs::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getLocalDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUnicoreJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19501,11 +20844,11 @@ uint32_t Airavata_getLocalDataMovement_result::read(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getLocalDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUnicoreJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getLocalDataMovement_result"); + xfer += oprot->writeStructBegin("Airavata_getUnicoreJobSubmission_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -19529,7 +20872,7 @@ uint32_t Airavata_getLocalDataMovement_result::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getLocalDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUnicoreJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19593,7 +20936,7 @@ uint32_t Airavata_getLocalDataMovement_presult::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_addSCPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addCloudJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19606,7 +20949,7 @@ uint32_t Airavata_addSCPDataMovementDetails_args::read(::apache::thrift::protoco bool isset_computeResourceId = false; bool isset_priorityOrder = false; - bool isset_scpDataMovement = false; + bool isset_cloudSubmission = false; while (true) { @@ -19634,8 +20977,8 @@ uint32_t Airavata_addSCPDataMovementDetails_args::read(::apache::thrift::protoco break; case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->scpDataMovement.read(iprot); - isset_scpDataMovement = true; + xfer += this->cloudSubmission.read(iprot); + isset_cloudSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -19653,14 +20996,14 @@ uint32_t Airavata_addSCPDataMovementDetails_args::read(::apache::thrift::protoco throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_priorityOrder) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_scpDataMovement) + if (!isset_cloudSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addSCPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addCloudJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addSCPDataMovementDetails_args"); + xfer += oprot->writeStructBegin("Airavata_addCloudJobSubmissionDetails_args"); xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->computeResourceId); @@ -19670,8 +21013,8 @@ uint32_t Airavata_addSCPDataMovementDetails_args::write(::apache::thrift::protoc xfer += oprot->writeI32(this->priorityOrder); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->scpDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("cloudSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->cloudSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19679,9 +21022,9 @@ uint32_t Airavata_addSCPDataMovementDetails_args::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_addSCPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addCloudJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addSCPDataMovementDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_addCloudJobSubmissionDetails_pargs"); xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->computeResourceId))); @@ -19691,8 +21034,8 @@ uint32_t Airavata_addSCPDataMovementDetails_pargs::write(::apache::thrift::proto xfer += oprot->writeI32((*(this->priorityOrder))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->scpDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("cloudSubmission", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->cloudSubmission)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19700,7 +21043,7 @@ uint32_t Airavata_addSCPDataMovementDetails_pargs::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_addSCPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addCloudJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19764,11 +21107,11 @@ uint32_t Airavata_addSCPDataMovementDetails_result::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_addSCPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addCloudJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addSCPDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_addCloudJobSubmissionDetails_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); @@ -19792,7 +21135,7 @@ uint32_t Airavata_addSCPDataMovementDetails_result::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_addSCPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addCloudJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19856,7 +21199,7 @@ uint32_t Airavata_addSCPDataMovementDetails_presult::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_updateSCPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getCloudJobSubmission_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19867,8 +21210,7 @@ uint32_t Airavata_updateSCPDataMovementDetails_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementInterfaceId = false; - bool isset_scpDataMovement = false; + bool isset_jobSubmissionId = false; while (true) { @@ -19880,16 +21222,8 @@ uint32_t Airavata_updateSCPDataMovementDetails_args::read(::apache::thrift::prot { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementInterfaceId); - isset_dataMovementInterfaceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->scpDataMovement.read(iprot); - isset_scpDataMovement = true; + xfer += iprot->readString(this->jobSubmissionId); + isset_jobSubmissionId = true; } else { xfer += iprot->skip(ftype); } @@ -19903,23 +21237,17 @@ uint32_t Airavata_updateSCPDataMovementDetails_args::read(::apache::thrift::prot xfer += iprot->readStructEnd(); - if (!isset_dataMovementInterfaceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_scpDataMovement) + if (!isset_jobSubmissionId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateSCPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getCloudJobSubmission_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateSCPDataMovementDetails_args"); - - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementInterfaceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getCloudJobSubmission_args"); - xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->scpDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19927,16 +21255,12 @@ uint32_t Airavata_updateSCPDataMovementDetails_args::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateSCPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getCloudJobSubmission_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateSCPDataMovementDetails_pargs"); - - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementInterfaceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getCloudJobSubmission_pargs"); - xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->scpDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("jobSubmissionId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -19944,7 +21268,7 @@ uint32_t Airavata_updateSCPDataMovementDetails_pargs::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateSCPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getCloudJobSubmission_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -19965,8 +21289,8 @@ uint32_t Airavata_updateSCPDataMovementDetails_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20008,15 +21332,15 @@ uint32_t Airavata_updateSCPDataMovementDetails_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateSCPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getCloudJobSubmission_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateSCPDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getCloudJobSubmission_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20036,7 +21360,7 @@ uint32_t Airavata_updateSCPDataMovementDetails_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_updateSCPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getCloudJobSubmission_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20057,8 +21381,8 @@ uint32_t Airavata_updateSCPDataMovementDetails_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20100,7 +21424,7 @@ uint32_t Airavata_updateSCPDataMovementDetails_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_getSCPDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateSSHJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20111,7 +21435,8 @@ uint32_t Airavata_getSCPDataMovement_args::read(::apache::thrift::protocol::TPro using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementId = false; + bool isset_jobSubmissionInterfaceId = false; + bool isset_sshJobSubmission = false; while (true) { @@ -20123,8 +21448,16 @@ uint32_t Airavata_getSCPDataMovement_args::read(::apache::thrift::protocol::TPro { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementId); - isset_dataMovementId = true; + xfer += iprot->readString(this->jobSubmissionInterfaceId); + isset_jobSubmissionInterfaceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->sshJobSubmission.read(iprot); + isset_sshJobSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -20138,17 +21471,23 @@ uint32_t Airavata_getSCPDataMovement_args::read(::apache::thrift::protocol::TPro xfer += iprot->readStructEnd(); - if (!isset_dataMovementId) + if (!isset_jobSubmissionInterfaceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_sshJobSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getSCPDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateSSHJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getSCPDataMovement_args"); + xfer += oprot->writeStructBegin("Airavata_updateSSHJobSubmissionDetails_args"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementId); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionInterfaceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->sshJobSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20156,12 +21495,16 @@ uint32_t Airavata_getSCPDataMovement_args::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_getSCPDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateSSHJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getSCPDataMovement_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateSSHJobSubmissionDetails_pargs"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementId))); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->sshJobSubmission)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20169,7 +21512,7 @@ uint32_t Airavata_getSCPDataMovement_pargs::write(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_getSCPDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateSSHJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20190,8 +21533,8 @@ uint32_t Airavata_getSCPDataMovement_result::read(::apache::thrift::protocol::TP switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20233,15 +21576,15 @@ uint32_t Airavata_getSCPDataMovement_result::read(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_getSCPDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateSSHJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getSCPDataMovement_result"); + xfer += oprot->writeStructBegin("Airavata_updateSSHJobSubmissionDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20261,7 +21604,7 @@ uint32_t Airavata_getSCPDataMovement_result::write(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_getSCPDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateSSHJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20282,8 +21625,8 @@ uint32_t Airavata_getSCPDataMovement_presult::read(::apache::thrift::protocol::T switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20325,7 +21668,7 @@ uint32_t Airavata_getSCPDataMovement_presult::read(::apache::thrift::protocol::T return xfer; } -uint32_t Airavata_addUnicoreDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateCloudJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20336,9 +21679,8 @@ uint32_t Airavata_addUnicoreDataMovementDetails_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_priorityOrder = false; - bool isset_unicoreDataMovement = false; + bool isset_jobSubmissionInterfaceId = false; + bool isset_sshJobSubmission = false; while (true) { @@ -20350,24 +21692,16 @@ uint32_t Airavata_addUnicoreDataMovementDetails_args::read(::apache::thrift::pro { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; + xfer += iprot->readString(this->jobSubmissionInterfaceId); + isset_jobSubmissionInterfaceId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->priorityOrder); - isset_priorityOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->unicoreDataMovement.read(iprot); - isset_unicoreDataMovement = true; + xfer += this->sshJobSubmission.read(iprot); + isset_sshJobSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -20381,29 +21715,23 @@ uint32_t Airavata_addUnicoreDataMovementDetails_args::read(::apache::thrift::pro xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_priorityOrder) + if (!isset_jobSubmissionInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_unicoreDataMovement) + if (!isset_sshJobSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addUnicoreDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateCloudJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addUnicoreDataMovementDetails_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_updateCloudJobSubmissionDetails_args"); - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionInterfaceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->unicoreDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->sshJobSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20411,20 +21739,16 @@ uint32_t Airavata_addUnicoreDataMovementDetails_args::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_addUnicoreDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateCloudJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addUnicoreDataMovementDetails_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_updateCloudJobSubmissionDetails_pargs"); - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->unicoreDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("sshJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->sshJobSubmission)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20432,7 +21756,7 @@ uint32_t Airavata_addUnicoreDataMovementDetails_pargs::write(::apache::thrift::p return xfer; } -uint32_t Airavata_addUnicoreDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateCloudJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20453,8 +21777,8 @@ uint32_t Airavata_addUnicoreDataMovementDetails_result::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20496,15 +21820,15 @@ uint32_t Airavata_addUnicoreDataMovementDetails_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_addUnicoreDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateCloudJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addUnicoreDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_updateCloudJobSubmissionDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20524,7 +21848,7 @@ uint32_t Airavata_addUnicoreDataMovementDetails_result::write(::apache::thrift:: return xfer; } -uint32_t Airavata_addUnicoreDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateCloudJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20545,8 +21869,8 @@ uint32_t Airavata_addUnicoreDataMovementDetails_presult::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20588,7 +21912,7 @@ uint32_t Airavata_addUnicoreDataMovementDetails_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_updateUnicoreDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20599,8 +21923,8 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_args::read(::apache::thrift:: using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementInterfaceId = false; - bool isset_unicoreDataMovement = false; + bool isset_jobSubmissionInterfaceId = false; + bool isset_unicoreJobSubmission = false; while (true) { @@ -20612,16 +21936,16 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_args::read(::apache::thrift:: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementInterfaceId); - isset_dataMovementInterfaceId = true; + xfer += iprot->readString(this->jobSubmissionInterfaceId); + isset_jobSubmissionInterfaceId = true; } else { xfer += iprot->skip(ftype); } break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->unicoreDataMovement.read(iprot); - isset_unicoreDataMovement = true; + xfer += this->unicoreJobSubmission.read(iprot); + isset_unicoreJobSubmission = true; } else { xfer += iprot->skip(ftype); } @@ -20635,23 +21959,23 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_args::read(::apache::thrift:: xfer += iprot->readStructEnd(); - if (!isset_dataMovementInterfaceId) + if (!isset_jobSubmissionInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_unicoreDataMovement) + if (!isset_unicoreJobSubmission) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateUnicoreDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateUnicoreJobSubmissionDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateUnicoreDataMovementDetails_args"); + xfer += oprot->writeStructBegin("Airavata_updateUnicoreJobSubmissionDetails_args"); - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementInterfaceId); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionInterfaceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->unicoreDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->unicoreJobSubmission.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20659,16 +21983,16 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_args::write(::apache::thrift: return xfer; } -uint32_t Airavata_updateUnicoreDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateUnicoreJobSubmissionDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateUnicoreDataMovementDetails_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateUnicoreJobSubmissionDetails_pargs"); - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementInterfaceId))); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->unicoreDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("unicoreJobSubmission", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->unicoreJobSubmission)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20676,7 +22000,7 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_pargs::write(::apache::thrift return xfer; } -uint32_t Airavata_updateUnicoreDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateUnicoreJobSubmissionDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20740,11 +22064,11 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_result::read(::apache::thrift return xfer; } -uint32_t Airavata_updateUnicoreDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateUnicoreJobSubmissionDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateUnicoreDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_updateUnicoreJobSubmissionDetails_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -20768,7 +22092,7 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_result::write(::apache::thrif return xfer; } -uint32_t Airavata_updateUnicoreDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateUnicoreJobSubmissionDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20832,7 +22156,7 @@ uint32_t Airavata_updateUnicoreDataMovementDetails_presult::read(::apache::thrif return xfer; } -uint32_t Airavata_getUnicoreDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addLocalDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20843,7 +22167,9 @@ uint32_t Airavata_getUnicoreDataMovement_args::read(::apache::thrift::protocol:: using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementId = false; + bool isset_computeResourceId = false; + bool isset_priorityOrder = false; + bool isset_localDataMovement = false; while (true) { @@ -20855,8 +22181,24 @@ uint32_t Airavata_getUnicoreDataMovement_args::read(::apache::thrift::protocol:: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementId); - isset_dataMovementId = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->priorityOrder); + isset_priorityOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->localDataMovement.read(iprot); + isset_localDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -20870,17 +22212,29 @@ uint32_t Airavata_getUnicoreDataMovement_args::read(::apache::thrift::protocol:: xfer += iprot->readStructEnd(); - if (!isset_dataMovementId) + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_priorityOrder) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_localDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getUnicoreDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addLocalDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getUnicoreDataMovement_args"); + xfer += oprot->writeStructBegin("Airavata_addLocalDataMovementDetails_args"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementId); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->localDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20888,12 +22242,20 @@ uint32_t Airavata_getUnicoreDataMovement_args::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getUnicoreDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addLocalDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getUnicoreDataMovement_pargs"); + xfer += oprot->writeStructBegin("Airavata_addLocalDataMovementDetails_pargs"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementId))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->localDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20901,7 +22263,7 @@ uint32_t Airavata_getUnicoreDataMovement_pargs::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getUnicoreDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addLocalDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20922,8 +22284,8 @@ uint32_t Airavata_getUnicoreDataMovement_result::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20965,15 +22327,15 @@ uint32_t Airavata_getUnicoreDataMovement_result::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getUnicoreDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addLocalDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getUnicoreDataMovement_result"); + xfer += oprot->writeStructBegin("Airavata_addLocalDataMovementDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20993,7 +22355,7 @@ uint32_t Airavata_getUnicoreDataMovement_result::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getUnicoreDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addLocalDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21014,8 +22376,8 @@ uint32_t Airavata_getUnicoreDataMovement_presult::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21057,7 +22419,7 @@ uint32_t Airavata_getUnicoreDataMovement_presult::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_addGridFTPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateLocalDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21068,9 +22430,8 @@ uint32_t Airavata_addGridFTPDataMovementDetails_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_priorityOrder = false; - bool isset_gridFTPDataMovement = false; + bool isset_dataMovementInterfaceId = false; + bool isset_localDataMovement = false; while (true) { @@ -21082,24 +22443,16 @@ uint32_t Airavata_addGridFTPDataMovementDetails_args::read(::apache::thrift::pro { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; + xfer += iprot->readString(this->dataMovementInterfaceId); + isset_dataMovementInterfaceId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->priorityOrder); - isset_priorityOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->gridFTPDataMovement.read(iprot); - isset_gridFTPDataMovement = true; + xfer += this->localDataMovement.read(iprot); + isset_localDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -21113,29 +22466,23 @@ uint32_t Airavata_addGridFTPDataMovementDetails_args::read(::apache::thrift::pro xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_priorityOrder) + if (!isset_dataMovementInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gridFTPDataMovement) + if (!isset_localDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addGridFTPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateLocalDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addGridFTPDataMovementDetails_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_updateLocalDataMovementDetails_args"); - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementInterfaceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->gridFTPDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->localDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21143,20 +22490,16 @@ uint32_t Airavata_addGridFTPDataMovementDetails_args::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_addGridFTPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateLocalDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addGridFTPDataMovementDetails_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_updateLocalDataMovementDetails_pargs"); - xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementInterfaceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->gridFTPDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("localDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->localDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21164,7 +22507,7 @@ uint32_t Airavata_addGridFTPDataMovementDetails_pargs::write(::apache::thrift::p return xfer; } -uint32_t Airavata_addGridFTPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateLocalDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21185,8 +22528,8 @@ uint32_t Airavata_addGridFTPDataMovementDetails_result::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21228,15 +22571,15 @@ uint32_t Airavata_addGridFTPDataMovementDetails_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_addGridFTPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateLocalDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addGridFTPDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_updateLocalDataMovementDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21256,7 +22599,7 @@ uint32_t Airavata_addGridFTPDataMovementDetails_result::write(::apache::thrift:: return xfer; } -uint32_t Airavata_addGridFTPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateLocalDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21277,8 +22620,8 @@ uint32_t Airavata_addGridFTPDataMovementDetails_presult::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21320,7 +22663,7 @@ uint32_t Airavata_addGridFTPDataMovementDetails_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_updateGridFTPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getLocalDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21331,8 +22674,7 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_args::read(::apache::thrift:: using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementInterfaceId = false; - bool isset_gridFTPDataMovement = false; + bool isset_dataMovementId = false; while (true) { @@ -21344,16 +22686,8 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_args::read(::apache::thrift:: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementInterfaceId); - isset_dataMovementInterfaceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->gridFTPDataMovement.read(iprot); - isset_gridFTPDataMovement = true; + xfer += iprot->readString(this->dataMovementId); + isset_dataMovementId = true; } else { xfer += iprot->skip(ftype); } @@ -21367,23 +22701,17 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_args::read(::apache::thrift:: xfer += iprot->readStructEnd(); - if (!isset_dataMovementInterfaceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gridFTPDataMovement) + if (!isset_dataMovementId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateGridFTPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getLocalDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGridFTPDataMovementDetails_args"); - - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementInterfaceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getLocalDataMovement_args"); - xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->gridFTPDataMovement.write(oprot); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21391,16 +22719,12 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_args::write(::apache::thrift: return xfer; } -uint32_t Airavata_updateGridFTPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getLocalDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGridFTPDataMovementDetails_pargs"); - - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementInterfaceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getLocalDataMovement_pargs"); - xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->gridFTPDataMovement)).write(oprot); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21408,7 +22732,7 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_pargs::write(::apache::thrift return xfer; } -uint32_t Airavata_updateGridFTPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getLocalDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21429,8 +22753,8 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_result::read(::apache::thrift switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21472,15 +22796,15 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_result::read(::apache::thrift return xfer; } -uint32_t Airavata_updateGridFTPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getLocalDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGridFTPDataMovementDetails_result"); + xfer += oprot->writeStructBegin("Airavata_getLocalDataMovement_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21500,7 +22824,7 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_result::write(::apache::thrif return xfer; } -uint32_t Airavata_updateGridFTPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getLocalDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21521,8 +22845,8 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_presult::read(::apache::thrif switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21564,7 +22888,7 @@ uint32_t Airavata_updateGridFTPDataMovementDetails_presult::read(::apache::thrif return xfer; } -uint32_t Airavata_getGridFTPDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addSCPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21575,7 +22899,9 @@ uint32_t Airavata_getGridFTPDataMovement_args::read(::apache::thrift::protocol:: using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementId = false; + bool isset_computeResourceId = false; + bool isset_priorityOrder = false; + bool isset_scpDataMovement = false; while (true) { @@ -21587,8 +22913,24 @@ uint32_t Airavata_getGridFTPDataMovement_args::read(::apache::thrift::protocol:: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementId); - isset_dataMovementId = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->priorityOrder); + isset_priorityOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->scpDataMovement.read(iprot); + isset_scpDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -21602,17 +22944,29 @@ uint32_t Airavata_getGridFTPDataMovement_args::read(::apache::thrift::protocol:: xfer += iprot->readStructEnd(); - if (!isset_dataMovementId) + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_priorityOrder) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_scpDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getGridFTPDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addSCPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGridFTPDataMovement_args"); + xfer += oprot->writeStructBegin("Airavata_addSCPDataMovementDetails_args"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementId); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->scpDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21620,12 +22974,20 @@ uint32_t Airavata_getGridFTPDataMovement_args::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getGridFTPDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addSCPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGridFTPDataMovement_pargs"); + xfer += oprot->writeStructBegin("Airavata_addSCPDataMovementDetails_pargs"); - xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementId))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->scpDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21633,7 +22995,7 @@ uint32_t Airavata_getGridFTPDataMovement_pargs::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getGridFTPDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addSCPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21654,8 +23016,8 @@ uint32_t Airavata_getGridFTPDataMovement_result::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21697,15 +23059,15 @@ uint32_t Airavata_getGridFTPDataMovement_result::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getGridFTPDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addSCPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGridFTPDataMovement_result"); + xfer += oprot->writeStructBegin("Airavata_addSCPDataMovementDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21725,7 +23087,7 @@ uint32_t Airavata_getGridFTPDataMovement_result::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_getGridFTPDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addSCPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21746,8 +23108,8 @@ uint32_t Airavata_getGridFTPDataMovement_presult::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21789,7 +23151,7 @@ uint32_t Airavata_getGridFTPDataMovement_presult::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_changeJobSubmissionPriority_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateSCPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21800,8 +23162,8 @@ uint32_t Airavata_changeJobSubmissionPriority_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionInterfaceId = false; - bool isset_newPriorityOrder = false; + bool isset_dataMovementInterfaceId = false; + bool isset_scpDataMovement = false; while (true) { @@ -21813,16 +23175,16 @@ uint32_t Airavata_changeJobSubmissionPriority_args::read(::apache::thrift::proto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionInterfaceId); - isset_jobSubmissionInterfaceId = true; + xfer += iprot->readString(this->dataMovementInterfaceId); + isset_dataMovementInterfaceId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->newPriorityOrder); - isset_newPriorityOrder = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->scpDataMovement.read(iprot); + isset_scpDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -21836,23 +23198,23 @@ uint32_t Airavata_changeJobSubmissionPriority_args::read(::apache::thrift::proto xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionInterfaceId) + if (!isset_dataMovementInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_newPriorityOrder) + if (!isset_scpDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_changeJobSubmissionPriority_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateSCPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriority_args"); + xfer += oprot->writeStructBegin("Airavata_updateSCPDataMovementDetails_args"); - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->jobSubmissionInterfaceId); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementInterfaceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->newPriorityOrder); + xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->scpDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21860,16 +23222,16 @@ uint32_t Airavata_changeJobSubmissionPriority_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_changeJobSubmissionPriority_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateSCPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriority_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateSCPDataMovementDetails_pargs"); - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementInterfaceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->newPriorityOrder))); + xfer += oprot->writeFieldBegin("scpDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->scpDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21877,7 +23239,7 @@ uint32_t Airavata_changeJobSubmissionPriority_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_changeJobSubmissionPriority_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateSCPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -21941,11 +23303,11 @@ uint32_t Airavata_changeJobSubmissionPriority_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_changeJobSubmissionPriority_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateSCPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriority_result"); + xfer += oprot->writeStructBegin("Airavata_updateSCPDataMovementDetails_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -21969,7 +23331,7 @@ uint32_t Airavata_changeJobSubmissionPriority_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_changeJobSubmissionPriority_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateSCPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22033,7 +23395,7 @@ uint32_t Airavata_changeJobSubmissionPriority_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_changeDataMovementPriority_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getSCPDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22044,8 +23406,7 @@ uint32_t Airavata_changeDataMovementPriority_args::read(::apache::thrift::protoc using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementInterfaceId = false; - bool isset_newPriorityOrder = false; + bool isset_dataMovementId = false; while (true) { @@ -22057,16 +23418,8 @@ uint32_t Airavata_changeDataMovementPriority_args::read(::apache::thrift::protoc { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementInterfaceId); - isset_dataMovementInterfaceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->newPriorityOrder); - isset_newPriorityOrder = true; + xfer += iprot->readString(this->dataMovementId); + isset_dataMovementId = true; } else { xfer += iprot->skip(ftype); } @@ -22080,23 +23433,17 @@ uint32_t Airavata_changeDataMovementPriority_args::read(::apache::thrift::protoc xfer += iprot->readStructEnd(); - if (!isset_dataMovementInterfaceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_newPriorityOrder) + if (!isset_dataMovementId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_changeDataMovementPriority_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getSCPDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriority_args"); - - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dataMovementInterfaceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getSCPDataMovement_args"); - xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->newPriorityOrder); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22104,16 +23451,12 @@ uint32_t Airavata_changeDataMovementPriority_args::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_changeDataMovementPriority_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getSCPDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriority_pargs"); - - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dataMovementInterfaceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getSCPDataMovement_pargs"); - xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((*(this->newPriorityOrder))); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22121,7 +23464,7 @@ uint32_t Airavata_changeDataMovementPriority_pargs::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_changeDataMovementPriority_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getSCPDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22142,8 +23485,8 @@ uint32_t Airavata_changeDataMovementPriority_result::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22185,15 +23528,15 @@ uint32_t Airavata_changeDataMovementPriority_result::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_changeDataMovementPriority_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getSCPDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriority_result"); + xfer += oprot->writeStructBegin("Airavata_getSCPDataMovement_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22213,7 +23556,7 @@ uint32_t Airavata_changeDataMovementPriority_result::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_changeDataMovementPriority_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getSCPDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22234,8 +23577,8 @@ uint32_t Airavata_changeDataMovementPriority_presult::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22277,7 +23620,7 @@ uint32_t Airavata_changeDataMovementPriority_presult::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_changeJobSubmissionPriorities_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addUnicoreDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22288,7 +23631,9 @@ uint32_t Airavata_changeJobSubmissionPriorities_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; - bool isset_jobSubmissionPriorityMap = false; + bool isset_computeResourceId = false; + bool isset_priorityOrder = false; + bool isset_unicoreDataMovement = false; while (true) { @@ -22299,24 +23644,25 @@ uint32_t Airavata_changeJobSubmissionPriorities_args::read(::apache::thrift::pro switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->jobSubmissionPriorityMap.clear(); - uint32_t _size307; - ::apache::thrift::protocol::TType _ktype308; - ::apache::thrift::protocol::TType _vtype309; - xfer += iprot->readMapBegin(_ktype308, _vtype309, _size307); - uint32_t _i311; - for (_i311 = 0; _i311 < _size307; ++_i311) - { - std::string _key312; - xfer += iprot->readString(_key312); - int32_t& _val313 = this->jobSubmissionPriorityMap[_key312]; - xfer += iprot->readI32(_val313); - } - xfer += iprot->readMapEnd(); - } - isset_jobSubmissionPriorityMap = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->priorityOrder); + isset_priorityOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->unicoreDataMovement.read(iprot); + isset_unicoreDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -22330,26 +23676,29 @@ uint32_t Airavata_changeJobSubmissionPriorities_args::read(::apache::thrift::pro xfer += iprot->readStructEnd(); - if (!isset_jobSubmissionPriorityMap) + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_priorityOrder) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_unicoreDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_changeJobSubmissionPriorities_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addUnicoreDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriorities_args"); + xfer += oprot->writeStructBegin("Airavata_addUnicoreDataMovementDetails_args"); - xfer += oprot->writeFieldBegin("jobSubmissionPriorityMap", ::apache::thrift::protocol::T_MAP, 1); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->jobSubmissionPriorityMap.size())); - std::map ::const_iterator _iter314; - for (_iter314 = this->jobSubmissionPriorityMap.begin(); _iter314 != this->jobSubmissionPriorityMap.end(); ++_iter314) - { - xfer += oprot->writeString(_iter314->first); - xfer += oprot->writeI32(_iter314->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->unicoreDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22357,21 +23706,20 @@ uint32_t Airavata_changeJobSubmissionPriorities_args::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_changeJobSubmissionPriorities_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addUnicoreDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriorities_pargs"); + xfer += oprot->writeStructBegin("Airavata_addUnicoreDataMovementDetails_pargs"); - xfer += oprot->writeFieldBegin("jobSubmissionPriorityMap", ::apache::thrift::protocol::T_MAP, 1); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast((*(this->jobSubmissionPriorityMap)).size())); - std::map ::const_iterator _iter315; - for (_iter315 = (*(this->jobSubmissionPriorityMap)).begin(); _iter315 != (*(this->jobSubmissionPriorityMap)).end(); ++_iter315) - { - xfer += oprot->writeString(_iter315->first); - xfer += oprot->writeI32(_iter315->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->unicoreDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22379,7 +23727,7 @@ uint32_t Airavata_changeJobSubmissionPriorities_pargs::write(::apache::thrift::p return xfer; } -uint32_t Airavata_changeJobSubmissionPriorities_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addUnicoreDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22400,8 +23748,8 @@ uint32_t Airavata_changeJobSubmissionPriorities_result::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22443,15 +23791,15 @@ uint32_t Airavata_changeJobSubmissionPriorities_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_changeJobSubmissionPriorities_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addUnicoreDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriorities_result"); + xfer += oprot->writeStructBegin("Airavata_addUnicoreDataMovementDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22471,7 +23819,7 @@ uint32_t Airavata_changeJobSubmissionPriorities_result::write(::apache::thrift:: return xfer; } -uint32_t Airavata_changeJobSubmissionPriorities_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addUnicoreDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22492,8 +23840,8 @@ uint32_t Airavata_changeJobSubmissionPriorities_presult::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22535,7 +23883,7 @@ uint32_t Airavata_changeJobSubmissionPriorities_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_changeDataMovementPriorities_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateUnicoreDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22546,7 +23894,8 @@ uint32_t Airavata_changeDataMovementPriorities_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; - bool isset_dataMovementPriorityMap = false; + bool isset_dataMovementInterfaceId = false; + bool isset_unicoreDataMovement = false; while (true) { @@ -22557,24 +23906,17 @@ uint32_t Airavata_changeDataMovementPriorities_args::read(::apache::thrift::prot switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->dataMovementPriorityMap.clear(); - uint32_t _size316; - ::apache::thrift::protocol::TType _ktype317; - ::apache::thrift::protocol::TType _vtype318; - xfer += iprot->readMapBegin(_ktype317, _vtype318, _size316); - uint32_t _i320; - for (_i320 = 0; _i320 < _size316; ++_i320) - { - std::string _key321; - xfer += iprot->readString(_key321); - int32_t& _val322 = this->dataMovementPriorityMap[_key321]; - xfer += iprot->readI32(_val322); - } - xfer += iprot->readMapEnd(); - } - isset_dataMovementPriorityMap = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dataMovementInterfaceId); + isset_dataMovementInterfaceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->unicoreDataMovement.read(iprot); + isset_unicoreDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -22588,26 +23930,23 @@ uint32_t Airavata_changeDataMovementPriorities_args::read(::apache::thrift::prot xfer += iprot->readStructEnd(); - if (!isset_dataMovementPriorityMap) + if (!isset_dataMovementInterfaceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_unicoreDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_changeDataMovementPriorities_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateUnicoreDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriorities_args"); + xfer += oprot->writeStructBegin("Airavata_updateUnicoreDataMovementDetails_args"); - xfer += oprot->writeFieldBegin("dataMovementPriorityMap", ::apache::thrift::protocol::T_MAP, 1); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->dataMovementPriorityMap.size())); - std::map ::const_iterator _iter323; - for (_iter323 = this->dataMovementPriorityMap.begin(); _iter323 != this->dataMovementPriorityMap.end(); ++_iter323) - { - xfer += oprot->writeString(_iter323->first); - xfer += oprot->writeI32(_iter323->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementInterfaceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->unicoreDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22615,21 +23954,16 @@ uint32_t Airavata_changeDataMovementPriorities_args::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_changeDataMovementPriorities_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateUnicoreDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriorities_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateUnicoreDataMovementDetails_pargs"); - xfer += oprot->writeFieldBegin("dataMovementPriorityMap", ::apache::thrift::protocol::T_MAP, 1); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast((*(this->dataMovementPriorityMap)).size())); - std::map ::const_iterator _iter324; - for (_iter324 = (*(this->dataMovementPriorityMap)).begin(); _iter324 != (*(this->dataMovementPriorityMap)).end(); ++_iter324) - { - xfer += oprot->writeString(_iter324->first); - xfer += oprot->writeI32(_iter324->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementInterfaceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("unicoreDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->unicoreDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22637,7 +23971,7 @@ uint32_t Airavata_changeDataMovementPriorities_pargs::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_changeDataMovementPriorities_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateUnicoreDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22701,11 +24035,11 @@ uint32_t Airavata_changeDataMovementPriorities_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_changeDataMovementPriorities_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateUnicoreDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriorities_result"); + xfer += oprot->writeStructBegin("Airavata_updateUnicoreDataMovementDetails_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -22729,7 +24063,7 @@ uint32_t Airavata_changeDataMovementPriorities_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_changeDataMovementPriorities_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateUnicoreDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22793,7 +24127,7 @@ uint32_t Airavata_changeDataMovementPriorities_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_deleteJobSubmissionInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUnicoreDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22804,8 +24138,7 @@ uint32_t Airavata_deleteJobSubmissionInterface_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_jobSubmissionInterfaceId = false; + bool isset_dataMovementId = false; while (true) { @@ -22817,16 +24150,8 @@ uint32_t Airavata_deleteJobSubmissionInterface_args::read(::apache::thrift::prot { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->jobSubmissionInterfaceId); - isset_jobSubmissionInterfaceId = true; + xfer += iprot->readString(this->dataMovementId); + isset_dataMovementId = true; } else { xfer += iprot->skip(ftype); } @@ -22840,23 +24165,17 @@ uint32_t Airavata_deleteJobSubmissionInterface_args::read(::apache::thrift::prot xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_jobSubmissionInterfaceId) + if (!isset_dataMovementId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteJobSubmissionInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUnicoreDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteJobSubmissionInterface_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getUnicoreDataMovement_args"); - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->jobSubmissionInterfaceId); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22864,16 +24183,12 @@ uint32_t Airavata_deleteJobSubmissionInterface_args::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteJobSubmissionInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUnicoreDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteJobSubmissionInterface_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getUnicoreDataMovement_pargs"); - xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22881,7 +24196,7 @@ uint32_t Airavata_deleteJobSubmissionInterface_pargs::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_deleteJobSubmissionInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUnicoreDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22902,8 +24217,8 @@ uint32_t Airavata_deleteJobSubmissionInterface_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22945,15 +24260,15 @@ uint32_t Airavata_deleteJobSubmissionInterface_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_deleteJobSubmissionInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUnicoreDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteJobSubmissionInterface_result"); + xfer += oprot->writeStructBegin("Airavata_getUnicoreDataMovement_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22973,7 +24288,7 @@ uint32_t Airavata_deleteJobSubmissionInterface_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_deleteJobSubmissionInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUnicoreDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -22994,8 +24309,8 @@ uint32_t Airavata_deleteJobSubmissionInterface_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23037,7 +24352,7 @@ uint32_t Airavata_deleteJobSubmissionInterface_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_deleteDataMovementInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addGridFTPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23049,7 +24364,8 @@ uint32_t Airavata_deleteDataMovementInterface_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; bool isset_computeResourceId = false; - bool isset_dataMovementInterfaceId = false; + bool isset_priorityOrder = false; + bool isset_gridFTPDataMovement = false; while (true) { @@ -23068,9 +24384,17 @@ uint32_t Airavata_deleteDataMovementInterface_args::read(::apache::thrift::proto } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dataMovementInterfaceId); - isset_dataMovementInterfaceId = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->priorityOrder); + isset_priorityOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->gridFTPDataMovement.read(iprot); + isset_gridFTPDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -23086,21 +24410,27 @@ uint32_t Airavata_deleteDataMovementInterface_args::read(::apache::thrift::proto if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_dataMovementInterfaceId) + if (!isset_priorityOrder) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_gridFTPDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteDataMovementInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addGridFTPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteDataMovementInterface_args"); + xfer += oprot->writeStructBegin("Airavata_addGridFTPDataMovementDetails_args"); xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->dataMovementInterfaceId); + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->priorityOrder); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->gridFTPDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23108,16 +24438,20 @@ uint32_t Airavata_deleteDataMovementInterface_args::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_deleteDataMovementInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addGridFTPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteDataMovementInterface_pargs"); + xfer += oprot->writeStructBegin("Airavata_addGridFTPDataMovementDetails_pargs"); xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->dataMovementInterfaceId))); + xfer += oprot->writeFieldBegin("priorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->priorityOrder))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->gridFTPDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23125,7 +24459,7 @@ uint32_t Airavata_deleteDataMovementInterface_pargs::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteDataMovementInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addGridFTPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23146,8 +24480,8 @@ uint32_t Airavata_deleteDataMovementInterface_result::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23189,15 +24523,15 @@ uint32_t Airavata_deleteDataMovementInterface_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteDataMovementInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addGridFTPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteDataMovementInterface_result"); + xfer += oprot->writeStructBegin("Airavata_addGridFTPDataMovementDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23217,7 +24551,7 @@ uint32_t Airavata_deleteDataMovementInterface_result::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_deleteDataMovementInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addGridFTPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23238,8 +24572,8 @@ uint32_t Airavata_deleteDataMovementInterface_presult::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23281,7 +24615,7 @@ uint32_t Airavata_deleteDataMovementInterface_presult::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_registerResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGridFTPDataMovementDetails_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23292,7 +24626,8 @@ uint32_t Airavata_registerResourceJobManager_args::read(::apache::thrift::protoc using ::apache::thrift::protocol::TProtocolException; - bool isset_resourceJobManager = false; + bool isset_dataMovementInterfaceId = false; + bool isset_gridFTPDataMovement = false; while (true) { @@ -23303,9 +24638,17 @@ uint32_t Airavata_registerResourceJobManager_args::read(::apache::thrift::protoc switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dataMovementInterfaceId); + isset_dataMovementInterfaceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->resourceJobManager.read(iprot); - isset_resourceJobManager = true; + xfer += this->gridFTPDataMovement.read(iprot); + isset_gridFTPDataMovement = true; } else { xfer += iprot->skip(ftype); } @@ -23319,17 +24662,23 @@ uint32_t Airavata_registerResourceJobManager_args::read(::apache::thrift::protoc xfer += iprot->readStructEnd(); - if (!isset_resourceJobManager) + if (!isset_dataMovementInterfaceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_gridFTPDataMovement) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_registerResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGridFTPDataMovementDetails_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerResourceJobManager_args"); + xfer += oprot->writeStructBegin("Airavata_updateGridFTPDataMovementDetails_args"); - xfer += oprot->writeFieldBegin("resourceJobManager", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->resourceJobManager.write(oprot); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementInterfaceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->gridFTPDataMovement.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23337,12 +24686,16 @@ uint32_t Airavata_registerResourceJobManager_args::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_registerResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGridFTPDataMovementDetails_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerResourceJobManager_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateGridFTPDataMovementDetails_pargs"); - xfer += oprot->writeFieldBegin("resourceJobManager", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->resourceJobManager)).write(oprot); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementInterfaceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gridFTPDataMovement", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->gridFTPDataMovement)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23350,7 +24703,7 @@ uint32_t Airavata_registerResourceJobManager_pargs::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_registerResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGridFTPDataMovementDetails_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23371,8 +24724,8 @@ uint32_t Airavata_registerResourceJobManager_result::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23414,15 +24767,15 @@ uint32_t Airavata_registerResourceJobManager_result::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_registerResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGridFTPDataMovementDetails_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerResourceJobManager_result"); + xfer += oprot->writeStructBegin("Airavata_updateGridFTPDataMovementDetails_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23442,7 +24795,7 @@ uint32_t Airavata_registerResourceJobManager_result::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_registerResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGridFTPDataMovementDetails_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23463,8 +24816,8 @@ uint32_t Airavata_registerResourceJobManager_presult::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23506,7 +24859,7 @@ uint32_t Airavata_registerResourceJobManager_presult::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGridFTPDataMovement_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23517,8 +24870,7 @@ uint32_t Airavata_updateResourceJobManager_args::read(::apache::thrift::protocol using ::apache::thrift::protocol::TProtocolException; - bool isset_resourceJobManagerId = false; - bool isset_updatedResourceJobManager = false; + bool isset_dataMovementId = false; while (true) { @@ -23530,16 +24882,8 @@ uint32_t Airavata_updateResourceJobManager_args::read(::apache::thrift::protocol { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceJobManagerId); - isset_resourceJobManagerId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->updatedResourceJobManager.read(iprot); - isset_updatedResourceJobManager = true; + xfer += iprot->readString(this->dataMovementId); + isset_dataMovementId = true; } else { xfer += iprot->skip(ftype); } @@ -23553,23 +24897,17 @@ uint32_t Airavata_updateResourceJobManager_args::read(::apache::thrift::protocol xfer += iprot->readStructEnd(); - if (!isset_resourceJobManagerId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_updatedResourceJobManager) + if (!isset_dataMovementId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGridFTPDataMovement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateResourceJobManager_args"); - - xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->resourceJobManagerId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getGridFTPDataMovement_args"); - xfer += oprot->writeFieldBegin("updatedResourceJobManager", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->updatedResourceJobManager.write(oprot); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23577,16 +24915,12 @@ uint32_t Airavata_updateResourceJobManager_args::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_updateResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGridFTPDataMovement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateResourceJobManager_pargs"); - - xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->resourceJobManagerId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getGridFTPDataMovement_pargs"); - xfer += oprot->writeFieldBegin("updatedResourceJobManager", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->updatedResourceJobManager)).write(oprot); + xfer += oprot->writeFieldBegin("dataMovementId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23594,7 +24928,7 @@ uint32_t Airavata_updateResourceJobManager_pargs::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_updateResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGridFTPDataMovement_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23615,8 +24949,8 @@ uint32_t Airavata_updateResourceJobManager_result::read(::apache::thrift::protoc switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23658,15 +24992,15 @@ uint32_t Airavata_updateResourceJobManager_result::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_updateResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGridFTPDataMovement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateResourceJobManager_result"); + xfer += oprot->writeStructBegin("Airavata_getGridFTPDataMovement_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23686,7 +25020,7 @@ uint32_t Airavata_updateResourceJobManager_result::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_updateResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGridFTPDataMovement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23707,8 +25041,8 @@ uint32_t Airavata_updateResourceJobManager_presult::read(::apache::thrift::proto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23750,7 +25084,7 @@ uint32_t Airavata_updateResourceJobManager_presult::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_getResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeJobSubmissionPriority_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23761,7 +25095,8 @@ uint32_t Airavata_getResourceJobManager_args::read(::apache::thrift::protocol::T using ::apache::thrift::protocol::TProtocolException; - bool isset_resourceJobManagerId = false; + bool isset_jobSubmissionInterfaceId = false; + bool isset_newPriorityOrder = false; while (true) { @@ -23773,8 +25108,16 @@ uint32_t Airavata_getResourceJobManager_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceJobManagerId); - isset_resourceJobManagerId = true; + xfer += iprot->readString(this->jobSubmissionInterfaceId); + isset_jobSubmissionInterfaceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->newPriorityOrder); + isset_newPriorityOrder = true; } else { xfer += iprot->skip(ftype); } @@ -23788,17 +25131,23 @@ uint32_t Airavata_getResourceJobManager_args::read(::apache::thrift::protocol::T xfer += iprot->readStructEnd(); - if (!isset_resourceJobManagerId) + if (!isset_jobSubmissionInterfaceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_newPriorityOrder) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeJobSubmissionPriority_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getResourceJobManager_args"); + xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriority_args"); - xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->resourceJobManagerId); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->jobSubmissionInterfaceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->newPriorityOrder); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23806,12 +25155,16 @@ uint32_t Airavata_getResourceJobManager_args::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeJobSubmissionPriority_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getResourceJobManager_pargs"); + xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriority_pargs"); - xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->resourceJobManagerId))); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->newPriorityOrder))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23819,7 +25172,7 @@ uint32_t Airavata_getResourceJobManager_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeJobSubmissionPriority_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23840,8 +25193,8 @@ uint32_t Airavata_getResourceJobManager_result::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23883,15 +25236,15 @@ uint32_t Airavata_getResourceJobManager_result::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeJobSubmissionPriority_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getResourceJobManager_result"); + xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriority_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23911,7 +25264,7 @@ uint32_t Airavata_getResourceJobManager_result::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeJobSubmissionPriority_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23932,8 +25285,8 @@ uint32_t Airavata_getResourceJobManager_presult::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23975,7 +25328,7 @@ uint32_t Airavata_getResourceJobManager_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_deleteResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeDataMovementPriority_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -23986,7 +25339,8 @@ uint32_t Airavata_deleteResourceJobManager_args::read(::apache::thrift::protocol using ::apache::thrift::protocol::TProtocolException; - bool isset_resourceJobManagerId = false; + bool isset_dataMovementInterfaceId = false; + bool isset_newPriorityOrder = false; while (true) { @@ -23998,8 +25352,16 @@ uint32_t Airavata_deleteResourceJobManager_args::read(::apache::thrift::protocol { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceJobManagerId); - isset_resourceJobManagerId = true; + xfer += iprot->readString(this->dataMovementInterfaceId); + isset_dataMovementInterfaceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->newPriorityOrder); + isset_newPriorityOrder = true; } else { xfer += iprot->skip(ftype); } @@ -24013,17 +25375,23 @@ uint32_t Airavata_deleteResourceJobManager_args::read(::apache::thrift::protocol xfer += iprot->readStructEnd(); - if (!isset_resourceJobManagerId) + if (!isset_dataMovementInterfaceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_newPriorityOrder) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeDataMovementPriority_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteResourceJobManager_args"); + xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriority_args"); - xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->resourceJobManagerId); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dataMovementInterfaceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->newPriorityOrder); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24031,12 +25399,16 @@ uint32_t Airavata_deleteResourceJobManager_args::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_deleteResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeDataMovementPriority_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteResourceJobManager_pargs"); + xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriority_pargs"); - xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->resourceJobManagerId))); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dataMovementInterfaceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newPriorityOrder", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((*(this->newPriorityOrder))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24044,7 +25416,7 @@ uint32_t Airavata_deleteResourceJobManager_pargs::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_deleteResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeDataMovementPriority_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24108,11 +25480,11 @@ uint32_t Airavata_deleteResourceJobManager_result::read(::apache::thrift::protoc return xfer; } -uint32_t Airavata_deleteResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeDataMovementPriority_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteResourceJobManager_result"); + xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriority_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -24136,7 +25508,7 @@ uint32_t Airavata_deleteResourceJobManager_result::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_deleteResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeDataMovementPriority_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24200,7 +25572,7 @@ uint32_t Airavata_deleteResourceJobManager_presult::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_deleteBatchQueue_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeJobSubmissionPriorities_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24211,8 +25583,7 @@ uint32_t Airavata_deleteBatchQueue_args::read(::apache::thrift::protocol::TProto using ::apache::thrift::protocol::TProtocolException; - bool isset_computeResourceId = false; - bool isset_queueName = false; + bool isset_jobSubmissionPriorityMap = false; while (true) { @@ -24223,17 +25594,24 @@ uint32_t Airavata_deleteBatchQueue_args::read(::apache::thrift::protocol::TProto switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->queueName); - isset_queueName = true; + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->jobSubmissionPriorityMap.clear(); + uint32_t _size418; + ::apache::thrift::protocol::TType _ktype419; + ::apache::thrift::protocol::TType _vtype420; + xfer += iprot->readMapBegin(_ktype419, _vtype420, _size418); + uint32_t _i422; + for (_i422 = 0; _i422 < _size418; ++_i422) + { + std::string _key423; + xfer += iprot->readString(_key423); + int32_t& _val424 = this->jobSubmissionPriorityMap[_key423]; + xfer += iprot->readI32(_val424); + } + xfer += iprot->readMapEnd(); + } + isset_jobSubmissionPriorityMap = true; } else { xfer += iprot->skip(ftype); } @@ -24247,23 +25625,26 @@ uint32_t Airavata_deleteBatchQueue_args::read(::apache::thrift::protocol::TProto xfer += iprot->readStructEnd(); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_queueName) + if (!isset_jobSubmissionPriorityMap) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteBatchQueue_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeJobSubmissionPriorities_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteBatchQueue_args"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriorities_args"); - xfer += oprot->writeFieldBegin("queueName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->queueName); + xfer += oprot->writeFieldBegin("jobSubmissionPriorityMap", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->jobSubmissionPriorityMap.size())); + std::map ::const_iterator _iter425; + for (_iter425 = this->jobSubmissionPriorityMap.begin(); _iter425 != this->jobSubmissionPriorityMap.end(); ++_iter425) + { + xfer += oprot->writeString(_iter425->first); + xfer += oprot->writeI32(_iter425->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24271,16 +25652,21 @@ uint32_t Airavata_deleteBatchQueue_args::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_deleteBatchQueue_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeJobSubmissionPriorities_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteBatchQueue_pargs"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriorities_pargs"); - xfer += oprot->writeFieldBegin("queueName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->queueName))); + xfer += oprot->writeFieldBegin("jobSubmissionPriorityMap", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast((*(this->jobSubmissionPriorityMap)).size())); + std::map ::const_iterator _iter426; + for (_iter426 = (*(this->jobSubmissionPriorityMap)).begin(); _iter426 != (*(this->jobSubmissionPriorityMap)).end(); ++_iter426) + { + xfer += oprot->writeString(_iter426->first); + xfer += oprot->writeI32(_iter426->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24288,7 +25674,7 @@ uint32_t Airavata_deleteBatchQueue_pargs::write(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_deleteBatchQueue_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeJobSubmissionPriorities_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24352,11 +25738,11 @@ uint32_t Airavata_deleteBatchQueue_result::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_deleteBatchQueue_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeJobSubmissionPriorities_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteBatchQueue_result"); + xfer += oprot->writeStructBegin("Airavata_changeJobSubmissionPriorities_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -24380,7 +25766,7 @@ uint32_t Airavata_deleteBatchQueue_result::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_deleteBatchQueue_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeJobSubmissionPriorities_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24444,7 +25830,7 @@ uint32_t Airavata_deleteBatchQueue_presult::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_registerGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeDataMovementPriorities_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24455,7 +25841,7 @@ uint32_t Airavata_registerGatewayResourceProfile_args::read(::apache::thrift::pr using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayResourceProfile = false; + bool isset_dataMovementPriorityMap = false; while (true) { @@ -24466,9 +25852,24 @@ uint32_t Airavata_registerGatewayResourceProfile_args::read(::apache::thrift::pr switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->gatewayResourceProfile.read(iprot); - isset_gatewayResourceProfile = true; + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->dataMovementPriorityMap.clear(); + uint32_t _size427; + ::apache::thrift::protocol::TType _ktype428; + ::apache::thrift::protocol::TType _vtype429; + xfer += iprot->readMapBegin(_ktype428, _vtype429, _size427); + uint32_t _i431; + for (_i431 = 0; _i431 < _size427; ++_i431) + { + std::string _key432; + xfer += iprot->readString(_key432); + int32_t& _val433 = this->dataMovementPriorityMap[_key432]; + xfer += iprot->readI32(_val433); + } + xfer += iprot->readMapEnd(); + } + isset_dataMovementPriorityMap = true; } else { xfer += iprot->skip(ftype); } @@ -24482,17 +25883,26 @@ uint32_t Airavata_registerGatewayResourceProfile_args::read(::apache::thrift::pr xfer += iprot->readStructEnd(); - if (!isset_gatewayResourceProfile) + if (!isset_dataMovementPriorityMap) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_registerGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeDataMovementPriorities_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerGatewayResourceProfile_args"); + xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriorities_args"); - xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->gatewayResourceProfile.write(oprot); + xfer += oprot->writeFieldBegin("dataMovementPriorityMap", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->dataMovementPriorityMap.size())); + std::map ::const_iterator _iter434; + for (_iter434 = this->dataMovementPriorityMap.begin(); _iter434 != this->dataMovementPriorityMap.end(); ++_iter434) + { + xfer += oprot->writeString(_iter434->first); + xfer += oprot->writeI32(_iter434->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24500,12 +25910,21 @@ uint32_t Airavata_registerGatewayResourceProfile_args::write(::apache::thrift::p return xfer; } -uint32_t Airavata_registerGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeDataMovementPriorities_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerGatewayResourceProfile_pargs"); + xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriorities_pargs"); - xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->gatewayResourceProfile)).write(oprot); + xfer += oprot->writeFieldBegin("dataMovementPriorityMap", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast((*(this->dataMovementPriorityMap)).size())); + std::map ::const_iterator _iter435; + for (_iter435 = (*(this->dataMovementPriorityMap)).begin(); _iter435 != (*(this->dataMovementPriorityMap)).end(); ++_iter435) + { + xfer += oprot->writeString(_iter435->first); + xfer += oprot->writeI32(_iter435->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24513,7 +25932,7 @@ uint32_t Airavata_registerGatewayResourceProfile_pargs::write(::apache::thrift:: return xfer; } -uint32_t Airavata_registerGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeDataMovementPriorities_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24534,8 +25953,8 @@ uint32_t Airavata_registerGatewayResourceProfile_result::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -24577,15 +25996,15 @@ uint32_t Airavata_registerGatewayResourceProfile_result::read(::apache::thrift:: return xfer; } -uint32_t Airavata_registerGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_changeDataMovementPriorities_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerGatewayResourceProfile_result"); + xfer += oprot->writeStructBegin("Airavata_changeDataMovementPriorities_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -24605,7 +26024,7 @@ uint32_t Airavata_registerGatewayResourceProfile_result::write(::apache::thrift: return xfer; } -uint32_t Airavata_registerGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_changeDataMovementPriorities_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24626,8 +26045,8 @@ uint32_t Airavata_registerGatewayResourceProfile_presult::read(::apache::thrift: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -24669,7 +26088,7 @@ uint32_t Airavata_registerGatewayResourceProfile_presult::read(::apache::thrift: return xfer; } -uint32_t Airavata_getGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteJobSubmissionInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24680,7 +26099,8 @@ uint32_t Airavata_getGatewayResourceProfile_args::read(::apache::thrift::protoco using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayID = false; + bool isset_computeResourceId = false; + bool isset_jobSubmissionInterfaceId = false; while (true) { @@ -24692,8 +26112,16 @@ uint32_t Airavata_getGatewayResourceProfile_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->jobSubmissionInterfaceId); + isset_jobSubmissionInterfaceId = true; } else { xfer += iprot->skip(ftype); } @@ -24707,17 +26135,23 @@ uint32_t Airavata_getGatewayResourceProfile_args::read(::apache::thrift::protoco xfer += iprot->readStructEnd(); - if (!isset_gatewayID) + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_jobSubmissionInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteJobSubmissionInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGatewayResourceProfile_args"); + xfer += oprot->writeStructBegin("Airavata_deleteJobSubmissionInterface_args"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->jobSubmissionInterfaceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24725,12 +26159,16 @@ uint32_t Airavata_getGatewayResourceProfile_args::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_getGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteJobSubmissionInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGatewayResourceProfile_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteJobSubmissionInterface_pargs"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("jobSubmissionInterfaceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->jobSubmissionInterfaceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24738,7 +26176,7 @@ uint32_t Airavata_getGatewayResourceProfile_pargs::write(::apache::thrift::proto return xfer; } -uint32_t Airavata_getGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteJobSubmissionInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24759,8 +26197,8 @@ uint32_t Airavata_getGatewayResourceProfile_result::read(::apache::thrift::proto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -24802,15 +26240,15 @@ uint32_t Airavata_getGatewayResourceProfile_result::read(::apache::thrift::proto return xfer; } -uint32_t Airavata_getGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteJobSubmissionInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGatewayResourceProfile_result"); + xfer += oprot->writeStructBegin("Airavata_deleteJobSubmissionInterface_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -24830,7 +26268,7 @@ uint32_t Airavata_getGatewayResourceProfile_result::write(::apache::thrift::prot return xfer; } -uint32_t Airavata_getGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteJobSubmissionInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24851,8 +26289,8 @@ uint32_t Airavata_getGatewayResourceProfile_presult::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -24894,7 +26332,7 @@ uint32_t Airavata_getGatewayResourceProfile_presult::read(::apache::thrift::prot return xfer; } -uint32_t Airavata_updateGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteDataMovementInterface_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -24905,8 +26343,8 @@ uint32_t Airavata_updateGatewayResourceProfile_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayID = false; - bool isset_gatewayResourceProfile = false; + bool isset_computeResourceId = false; + bool isset_dataMovementInterfaceId = false; while (true) { @@ -24918,16 +26356,16 @@ uint32_t Airavata_updateGatewayResourceProfile_args::read(::apache::thrift::prot { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->gatewayResourceProfile.read(iprot); - isset_gatewayResourceProfile = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dataMovementInterfaceId); + isset_dataMovementInterfaceId = true; } else { xfer += iprot->skip(ftype); } @@ -24941,23 +26379,23 @@ uint32_t Airavata_updateGatewayResourceProfile_args::read(::apache::thrift::prot xfer += iprot->readStructEnd(); - if (!isset_gatewayID) + if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gatewayResourceProfile) + if (!isset_dataMovementInterfaceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteDataMovementInterface_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGatewayResourceProfile_args"); + xfer += oprot->writeStructBegin("Airavata_deleteDataMovementInterface_args"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->gatewayResourceProfile.write(oprot); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->dataMovementInterfaceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24965,16 +26403,16 @@ uint32_t Airavata_updateGatewayResourceProfile_args::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_updateGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteDataMovementInterface_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGatewayResourceProfile_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteDataMovementInterface_pargs"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->gatewayResourceProfile)).write(oprot); + xfer += oprot->writeFieldBegin("dataMovementInterfaceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->dataMovementInterfaceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24982,7 +26420,7 @@ uint32_t Airavata_updateGatewayResourceProfile_pargs::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteDataMovementInterface_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25046,11 +26484,11 @@ uint32_t Airavata_updateGatewayResourceProfile_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_updateGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteDataMovementInterface_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGatewayResourceProfile_result"); + xfer += oprot->writeStructBegin("Airavata_deleteDataMovementInterface_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -25074,7 +26512,7 @@ uint32_t Airavata_updateGatewayResourceProfile_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_updateGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteDataMovementInterface_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25138,7 +26576,7 @@ uint32_t Airavata_updateGatewayResourceProfile_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_deleteGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25149,7 +26587,7 @@ uint32_t Airavata_deleteGatewayResourceProfile_args::read(::apache::thrift::prot using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayID = false; + bool isset_resourceJobManager = false; while (true) { @@ -25160,9 +26598,9 @@ uint32_t Airavata_deleteGatewayResourceProfile_args::read(::apache::thrift::prot switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->resourceJobManager.read(iprot); + isset_resourceJobManager = true; } else { xfer += iprot->skip(ftype); } @@ -25176,17 +26614,17 @@ uint32_t Airavata_deleteGatewayResourceProfile_args::read(::apache::thrift::prot xfer += iprot->readStructEnd(); - if (!isset_gatewayID) + if (!isset_resourceJobManager) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteGatewayResourceProfile_args"); + xfer += oprot->writeStructBegin("Airavata_registerResourceJobManager_args"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldBegin("resourceJobManager", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->resourceJobManager.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25194,12 +26632,12 @@ uint32_t Airavata_deleteGatewayResourceProfile_args::write(::apache::thrift::pro return xfer; } -uint32_t Airavata_deleteGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteGatewayResourceProfile_pargs"); + xfer += oprot->writeStructBegin("Airavata_registerResourceJobManager_pargs"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldBegin("resourceJobManager", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->resourceJobManager)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25207,7 +26645,7 @@ uint32_t Airavata_deleteGatewayResourceProfile_pargs::write(::apache::thrift::pr return xfer; } -uint32_t Airavata_deleteGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25228,8 +26666,8 @@ uint32_t Airavata_deleteGatewayResourceProfile_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25271,15 +26709,15 @@ uint32_t Airavata_deleteGatewayResourceProfile_result::read(::apache::thrift::pr return xfer; } -uint32_t Airavata_deleteGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteGatewayResourceProfile_result"); + xfer += oprot->writeStructBegin("Airavata_registerResourceJobManager_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25299,7 +26737,7 @@ uint32_t Airavata_deleteGatewayResourceProfile_result::write(::apache::thrift::p return xfer; } -uint32_t Airavata_deleteGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25320,8 +26758,8 @@ uint32_t Airavata_deleteGatewayResourceProfile_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25363,7 +26801,7 @@ uint32_t Airavata_deleteGatewayResourceProfile_presult::read(::apache::thrift::p return xfer; } -uint32_t Airavata_addGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25374,9 +26812,8 @@ uint32_t Airavata_addGatewayComputeResourcePreference_args::read(::apache::thrif using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayID = false; - bool isset_computeResourceId = false; - bool isset_computeResourcePreference = false; + bool isset_resourceJobManagerId = false; + bool isset_updatedResourceJobManager = false; while (true) { @@ -25388,24 +26825,16 @@ uint32_t Airavata_addGatewayComputeResourcePreference_args::read(::apache::thrif { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; + xfer += iprot->readString(this->resourceJobManagerId); + isset_resourceJobManagerId = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->computeResourcePreference.read(iprot); - isset_computeResourcePreference = true; + xfer += this->updatedResourceJobManager.read(iprot); + isset_updatedResourceJobManager = true; } else { xfer += iprot->skip(ftype); } @@ -25419,29 +26848,23 @@ uint32_t Airavata_addGatewayComputeResourcePreference_args::read(::apache::thrif xfer += iprot->readStructEnd(); - if (!isset_gatewayID) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_computeResourceId) + if (!isset_resourceJobManagerId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_computeResourcePreference) + if (!isset_updatedResourceJobManager) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_addGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addGatewayComputeResourcePreference_args"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_updateResourceJobManager_args"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->resourceJobManagerId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->computeResourcePreference.write(oprot); + xfer += oprot->writeFieldBegin("updatedResourceJobManager", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->updatedResourceJobManager.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25449,20 +26872,16 @@ uint32_t Airavata_addGatewayComputeResourcePreference_args::write(::apache::thri return xfer; } -uint32_t Airavata_addGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addGatewayComputeResourcePreference_pargs"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayID))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_updateResourceJobManager_pargs"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->resourceJobManagerId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->computeResourcePreference)).write(oprot); + xfer += oprot->writeFieldBegin("updatedResourceJobManager", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->updatedResourceJobManager)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25470,7 +26889,7 @@ uint32_t Airavata_addGatewayComputeResourcePreference_pargs::write(::apache::thr return xfer; } -uint32_t Airavata_addGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25534,11 +26953,11 @@ uint32_t Airavata_addGatewayComputeResourcePreference_result::read(::apache::thr return xfer; } -uint32_t Airavata_addGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_addGatewayComputeResourcePreference_result"); + xfer += oprot->writeStructBegin("Airavata_updateResourceJobManager_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -25562,7 +26981,7 @@ uint32_t Airavata_addGatewayComputeResourcePreference_result::write(::apache::th return xfer; } -uint32_t Airavata_addGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25626,7 +27045,7 @@ uint32_t Airavata_addGatewayComputeResourcePreference_presult::read(::apache::th return xfer; } -uint32_t Airavata_getGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25637,8 +27056,7 @@ uint32_t Airavata_getGatewayComputeResourcePreference_args::read(::apache::thrif using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayID = false; - bool isset_computeResourceId = false; + bool isset_resourceJobManagerId = false; while (true) { @@ -25650,16 +27068,8 @@ uint32_t Airavata_getGatewayComputeResourcePreference_args::read(::apache::thrif { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; + xfer += iprot->readString(this->resourceJobManagerId); + isset_resourceJobManagerId = true; } else { xfer += iprot->skip(ftype); } @@ -25673,23 +27083,17 @@ uint32_t Airavata_getGatewayComputeResourcePreference_args::read(::apache::thrif xfer += iprot->readStructEnd(); - if (!isset_gatewayID) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_computeResourceId) + if (!isset_resourceJobManagerId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGatewayComputeResourcePreference_args"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getResourceJobManager_args"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->resourceJobManagerId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25697,16 +27101,12 @@ uint32_t Airavata_getGatewayComputeResourcePreference_args::write(::apache::thri return xfer; } -uint32_t Airavata_getGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGatewayComputeResourcePreference_pargs"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayID))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getResourceJobManager_pargs"); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->resourceJobManagerId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25714,7 +27114,7 @@ uint32_t Airavata_getGatewayComputeResourcePreference_pargs::write(::apache::thr return xfer; } -uint32_t Airavata_getGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25778,11 +27178,11 @@ uint32_t Airavata_getGatewayComputeResourcePreference_result::read(::apache::thr return xfer; } -uint32_t Airavata_getGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getGatewayComputeResourcePreference_result"); + xfer += oprot->writeStructBegin("Airavata_getResourceJobManager_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -25806,7 +27206,7 @@ uint32_t Airavata_getGatewayComputeResourcePreference_result::write(::apache::th return xfer; } -uint32_t Airavata_getGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25870,7 +27270,7 @@ uint32_t Airavata_getGatewayComputeResourcePreference_presult::read(::apache::th return xfer; } -uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteResourceJobManager_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25881,7 +27281,7 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::read(::apache::t using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayID = false; + bool isset_resourceJobManagerId = false; while (true) { @@ -25893,8 +27293,8 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::read(::apache::t { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; + xfer += iprot->readString(this->resourceJobManagerId); + isset_resourceJobManagerId = true; } else { xfer += iprot->skip(ftype); } @@ -25908,17 +27308,17 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::read(::apache::t xfer += iprot->readStructEnd(); - if (!isset_gatewayID) + if (!isset_resourceJobManagerId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteResourceJobManager_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResourcePreferences_args"); + xfer += oprot->writeStructBegin("Airavata_deleteResourceJobManager_args"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->resourceJobManagerId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25926,12 +27326,12 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::write(::apache:: return xfer; } -uint32_t Airavata_getAllGatewayComputeResourcePreferences_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteResourceJobManager_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResourcePreferences_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteResourceJobManager_pargs"); - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldBegin("resourceJobManagerId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->resourceJobManagerId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25939,7 +27339,7 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_pargs::write(::apache: return xfer; } -uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteResourceJobManager_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -25960,20 +27360,8 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::read(::apache: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size325; - ::apache::thrift::protocol::TType _etype328; - xfer += iprot->readListBegin(_etype328, _size325); - this->success.resize(_size325); - uint32_t _i329; - for (_i329 = 0; _i329 < _size325; ++_i329) - { - xfer += this->success[_i329].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26015,23 +27403,15 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::read(::apache: return xfer; } -uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteResourceJobManager_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResourcePreferences_result"); + xfer += oprot->writeStructBegin("Airavata_deleteResourceJobManager_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::ComputeResourcePreference> ::const_iterator _iter330; - for (_iter330 = this->success.begin(); _iter330 != this->success.end(); ++_iter330) - { - xfer += (*_iter330).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26051,7 +27431,7 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::write(::apache return xfer; } -uint32_t Airavata_getAllGatewayComputeResourcePreferences_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteResourceJobManager_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26072,20 +27452,8 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_presult::read(::apache switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size331; - ::apache::thrift::protocol::TType _etype334; - xfer += iprot->readListBegin(_etype334, _size331); - (*(this->success)).resize(_size331); - uint32_t _i335; - for (_i335 = 0; _i335 < _size331; ++_i335) - { - xfer += (*(this->success))[_i335].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26127,7 +27495,7 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_presult::read(::apache return xfer; } -uint32_t Airavata_getAllGatewayComputeResources_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteBatchQueue_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26138,6 +27506,8 @@ uint32_t Airavata_getAllGatewayComputeResources_args::read(::apache::thrift::pro using ::apache::thrift::protocol::TProtocolException; + bool isset_computeResourceId = false; + bool isset_queueName = false; while (true) { @@ -26145,34 +27515,75 @@ uint32_t Airavata_getAllGatewayComputeResources_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->queueName); + isset_queueName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } xfer += iprot->readStructEnd(); + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_queueName) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllGatewayComputeResources_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteBatchQueue_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResources_args"); + xfer += oprot->writeStructBegin("Airavata_deleteBatchQueue_args"); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("queueName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->queueName); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAllGatewayComputeResources_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteBatchQueue_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResources_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteBatchQueue_pargs"); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("queueName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->queueName))); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_getAllGatewayComputeResources_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteBatchQueue_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26193,20 +27604,8 @@ uint32_t Airavata_getAllGatewayComputeResources_result::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size336; - ::apache::thrift::protocol::TType _etype339; - xfer += iprot->readListBegin(_etype339, _size336); - this->success.resize(_size336); - uint32_t _i340; - for (_i340 = 0; _i340 < _size336; ++_i340) - { - xfer += this->success[_i340].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26248,23 +27647,15 @@ uint32_t Airavata_getAllGatewayComputeResources_result::read(::apache::thrift::p return xfer; } -uint32_t Airavata_getAllGatewayComputeResources_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteBatchQueue_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResources_result"); + xfer += oprot->writeStructBegin("Airavata_deleteBatchQueue_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::GatewayResourceProfile> ::const_iterator _iter341; - for (_iter341 = this->success.begin(); _iter341 != this->success.end(); ++_iter341) - { - xfer += (*_iter341).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26284,7 +27675,7 @@ uint32_t Airavata_getAllGatewayComputeResources_result::write(::apache::thrift:: return xfer; } -uint32_t Airavata_getAllGatewayComputeResources_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteBatchQueue_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26305,20 +27696,8 @@ uint32_t Airavata_getAllGatewayComputeResources_presult::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size342; - ::apache::thrift::protocol::TType _etype345; - xfer += iprot->readListBegin(_etype345, _size342); - (*(this->success)).resize(_size342); - uint32_t _i346; - for (_i346 = 0; _i346 < _size342; ++_i346) - { - xfer += (*(this->success))[_i346].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26360,7 +27739,7 @@ uint32_t Airavata_getAllGatewayComputeResources_presult::read(::apache::thrift:: return xfer; } -uint32_t Airavata_updateGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26371,9 +27750,7 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_args::read(::apache::th using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayID = false; - bool isset_computeResourceId = false; - bool isset_computeResourcePreference = false; + bool isset_gatewayResourceProfile = false; while (true) { @@ -26384,25 +27761,9 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_args::read(::apache::th switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->computeResourcePreference.read(iprot); - isset_computeResourcePreference = true; + xfer += this->gatewayResourceProfile.read(iprot); + isset_gatewayResourceProfile = true; } else { xfer += iprot->skip(ftype); } @@ -26416,29 +27777,17 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_args::read(::apache::th xfer += iprot->readStructEnd(); - if (!isset_gatewayID) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_computeResourcePreference) + if (!isset_gatewayResourceProfile) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGatewayComputeResourcePreference_args"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_registerGatewayResourceProfile_args"); - xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->computeResourcePreference.write(oprot); + xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->gatewayResourceProfile.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26446,20 +27795,12 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_args::write(::apache::t return xfer; } -uint32_t Airavata_updateGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGatewayComputeResourcePreference_pargs"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayID))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_registerGatewayResourceProfile_pargs"); - xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->computeResourcePreference)).write(oprot); + xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->gatewayResourceProfile)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26467,7 +27808,7 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_pargs::write(::apache:: return xfer; } -uint32_t Airavata_updateGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26488,8 +27829,8 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_result::read(::apache:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26531,15 +27872,15 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_result::read(::apache:: return xfer; } -uint32_t Airavata_updateGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_registerGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateGatewayComputeResourcePreference_result"); + xfer += oprot->writeStructBegin("Airavata_registerGatewayResourceProfile_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26559,7 +27900,7 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_result::write(::apache: return xfer; } -uint32_t Airavata_updateGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_registerGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26580,8 +27921,8 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_presult::read(::apache: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26623,7 +27964,7 @@ uint32_t Airavata_updateGatewayComputeResourcePreference_presult::read(::apache: return xfer; } -uint32_t Airavata_deleteGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26635,7 +27976,6 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_args::read(::apache::th using ::apache::thrift::protocol::TProtocolException; bool isset_gatewayID = false; - bool isset_computeResourceId = false; while (true) { @@ -26653,14 +27993,6 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_args::read(::apache::th xfer += iprot->skip(ftype); } break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -26672,46 +28004,36 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_args::read(::apache::th if (!isset_gatewayID) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteGatewayComputeResourcePreference_args"); + xfer += oprot->writeStructBegin("Airavata_getGatewayResourceProfile_args"); xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->gatewayID); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_deleteGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteGatewayComputeResourcePreference_pargs"); + xfer += oprot->writeStructBegin("Airavata_getGatewayResourceProfile_pargs"); xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->gatewayID))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->computeResourceId))); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -uint32_t Airavata_deleteGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26732,8 +28054,8 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_result::read(::apache:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26775,15 +28097,15 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_result::read(::apache:: return xfer; } -uint32_t Airavata_deleteGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteGatewayComputeResourcePreference_result"); + xfer += oprot->writeStructBegin("Airavata_getGatewayResourceProfile_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26803,7 +28125,7 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_result::write(::apache: return xfer; } -uint32_t Airavata_deleteGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26824,8 +28146,8 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_presult::read(::apache: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26867,7 +28189,7 @@ uint32_t Airavata_deleteGatewayComputeResourcePreference_presult::read(::apache: return xfer; } -uint32_t Airavata_getAllWorkflows_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26878,7 +28200,8 @@ uint32_t Airavata_getAllWorkflows_args::read(::apache::thrift::protocol::TProtoc using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; + bool isset_gatewayID = false; + bool isset_gatewayResourceProfile = false; while (true) { @@ -26890,8 +28213,16 @@ uint32_t Airavata_getAllWorkflows_args::read(::apache::thrift::protocol::TProtoc { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + xfer += iprot->readString(this->gatewayID); + isset_gatewayID = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->gatewayResourceProfile.read(iprot); + isset_gatewayResourceProfile = true; } else { xfer += iprot->skip(ftype); } @@ -26905,17 +28236,23 @@ uint32_t Airavata_getAllWorkflows_args::read(::apache::thrift::protocol::TProtoc xfer += iprot->readStructEnd(); - if (!isset_gatewayId) + if (!isset_gatewayID) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_gatewayResourceProfile) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllWorkflows_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllWorkflows_args"); + xfer += oprot->writeStructBegin("Airavata_updateGatewayResourceProfile_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->gatewayResourceProfile.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26923,12 +28260,16 @@ uint32_t Airavata_getAllWorkflows_args::write(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_getAllWorkflows_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllWorkflows_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateGatewayResourceProfile_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayResourceProfile", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->gatewayResourceProfile)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26936,7 +28277,7 @@ uint32_t Airavata_getAllWorkflows_pargs::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_getAllWorkflows_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -26957,20 +28298,8 @@ uint32_t Airavata_getAllWorkflows_result::read(::apache::thrift::protocol::TProt switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size347; - ::apache::thrift::protocol::TType _etype350; - xfer += iprot->readListBegin(_etype350, _size347); - this->success.resize(_size347); - uint32_t _i351; - for (_i351 = 0; _i351 < _size347; ++_i351) - { - xfer += iprot->readString(this->success[_i351]); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -27012,23 +28341,15 @@ uint32_t Airavata_getAllWorkflows_result::read(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_getAllWorkflows_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllWorkflows_result"); + xfer += oprot->writeStructBegin("Airavata_updateGatewayResourceProfile_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter352; - for (_iter352 = this->success.begin(); _iter352 != this->success.end(); ++_iter352) - { - xfer += oprot->writeString((*_iter352)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27048,7 +28369,7 @@ uint32_t Airavata_getAllWorkflows_result::write(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_getAllWorkflows_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27069,20 +28390,8 @@ uint32_t Airavata_getAllWorkflows_presult::read(::apache::thrift::protocol::TPro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size353; - ::apache::thrift::protocol::TType _etype356; - xfer += iprot->readListBegin(_etype356, _size353); - (*(this->success)).resize(_size353); - uint32_t _i357; - for (_i357 = 0; _i357 < _size353; ++_i357) - { - xfer += iprot->readString((*(this->success))[_i357]); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -27124,7 +28433,7 @@ uint32_t Airavata_getAllWorkflows_presult::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_getWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteGatewayResourceProfile_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27135,7 +28444,7 @@ uint32_t Airavata_getWorkflow_args::read(::apache::thrift::protocol::TProtocol* using ::apache::thrift::protocol::TProtocolException; - bool isset_workflowTemplateId = false; + bool isset_gatewayID = false; while (true) { @@ -27147,8 +28456,8 @@ uint32_t Airavata_getWorkflow_args::read(::apache::thrift::protocol::TProtocol* { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->workflowTemplateId); - isset_workflowTemplateId = true; + xfer += iprot->readString(this->gatewayID); + isset_gatewayID = true; } else { xfer += iprot->skip(ftype); } @@ -27162,17 +28471,17 @@ uint32_t Airavata_getWorkflow_args::read(::apache::thrift::protocol::TProtocol* xfer += iprot->readStructEnd(); - if (!isset_workflowTemplateId) + if (!isset_gatewayID) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteGatewayResourceProfile_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getWorkflow_args"); + xfer += oprot->writeStructBegin("Airavata_deleteGatewayResourceProfile_args"); - xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->workflowTemplateId); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayID); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27180,12 +28489,12 @@ uint32_t Airavata_getWorkflow_args::write(::apache::thrift::protocol::TProtocol* return xfer; } -uint32_t Airavata_getWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteGatewayResourceProfile_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getWorkflow_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteGatewayResourceProfile_pargs"); - xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->workflowTemplateId))); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayID))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27193,7 +28502,7 @@ uint32_t Airavata_getWorkflow_pargs::write(::apache::thrift::protocol::TProtocol return xfer; } -uint32_t Airavata_getWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteGatewayResourceProfile_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27214,8 +28523,8 @@ uint32_t Airavata_getWorkflow_result::read(::apache::thrift::protocol::TProtocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -27257,15 +28566,15 @@ uint32_t Airavata_getWorkflow_result::read(::apache::thrift::protocol::TProtocol return xfer; } -uint32_t Airavata_getWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteGatewayResourceProfile_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getWorkflow_result"); + xfer += oprot->writeStructBegin("Airavata_deleteGatewayResourceProfile_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27285,7 +28594,7 @@ uint32_t Airavata_getWorkflow_result::write(::apache::thrift::protocol::TProtoco return xfer; } -uint32_t Airavata_getWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteGatewayResourceProfile_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27306,8 +28615,8 @@ uint32_t Airavata_getWorkflow_presult::read(::apache::thrift::protocol::TProtoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -27349,7 +28658,7 @@ uint32_t Airavata_getWorkflow_presult::read(::apache::thrift::protocol::TProtoco return xfer; } -uint32_t Airavata_deleteWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27360,7 +28669,9 @@ uint32_t Airavata_deleteWorkflow_args::read(::apache::thrift::protocol::TProtoco using ::apache::thrift::protocol::TProtocolException; - bool isset_workflowTemplateId = false; + bool isset_gatewayID = false; + bool isset_computeResourceId = false; + bool isset_computeResourcePreference = false; while (true) { @@ -27372,8 +28683,24 @@ uint32_t Airavata_deleteWorkflow_args::read(::apache::thrift::protocol::TProtoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->workflowTemplateId); - isset_workflowTemplateId = true; + xfer += iprot->readString(this->gatewayID); + isset_gatewayID = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->computeResourcePreference.read(iprot); + isset_computeResourcePreference = true; } else { xfer += iprot->skip(ftype); } @@ -27387,17 +28714,29 @@ uint32_t Airavata_deleteWorkflow_args::read(::apache::thrift::protocol::TProtoco xfer += iprot->readStructEnd(); - if (!isset_workflowTemplateId) + if (!isset_gatewayID) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_computeResourcePreference) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_deleteWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteWorkflow_args"); + xfer += oprot->writeStructBegin("Airavata_addGatewayComputeResourcePreference_args"); - xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->workflowTemplateId); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->computeResourcePreference.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27405,12 +28744,20 @@ uint32_t Airavata_deleteWorkflow_args::write(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t Airavata_deleteWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteWorkflow_pargs"); + xfer += oprot->writeStructBegin("Airavata_addGatewayComputeResourcePreference_pargs"); - xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->workflowTemplateId))); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->computeResourcePreference)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27418,7 +28765,7 @@ uint32_t Airavata_deleteWorkflow_pargs::write(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_deleteWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27438,6 +28785,14 @@ uint32_t Airavata_deleteWorkflow_result::read(::apache::thrift::protocol::TProto } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -27474,13 +28829,17 @@ uint32_t Airavata_deleteWorkflow_result::read(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_deleteWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_addGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_deleteWorkflow_result"); + xfer += oprot->writeStructBegin("Airavata_addGatewayComputeResourcePreference_result"); - if (this->__isset.ire) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); @@ -27498,7 +28857,7 @@ uint32_t Airavata_deleteWorkflow_result::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_deleteWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_addGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27518,6 +28877,14 @@ uint32_t Airavata_deleteWorkflow_presult::read(::apache::thrift::protocol::TProt } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -27554,7 +28921,7 @@ uint32_t Airavata_deleteWorkflow_presult::read(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_registerWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27565,8 +28932,8 @@ uint32_t Airavata_registerWorkflow_args::read(::apache::thrift::protocol::TProto using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; - bool isset_workflow = false; + bool isset_gatewayID = false; + bool isset_computeResourceId = false; while (true) { @@ -27578,16 +28945,16 @@ uint32_t Airavata_registerWorkflow_args::read(::apache::thrift::protocol::TProto { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + xfer += iprot->readString(this->gatewayID); + isset_gatewayID = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->workflow.read(iprot); - isset_workflow = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; } else { xfer += iprot->skip(ftype); } @@ -27601,23 +28968,23 @@ uint32_t Airavata_registerWorkflow_args::read(::apache::thrift::protocol::TProto xfer += iprot->readStructEnd(); - if (!isset_gatewayId) + if (!isset_gatewayID) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_workflow) + if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_registerWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerWorkflow_args"); + xfer += oprot->writeStructBegin("Airavata_getGatewayComputeResourcePreference_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayID); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->workflow.write(oprot); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27625,16 +28992,16 @@ uint32_t Airavata_registerWorkflow_args::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_registerWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerWorkflow_pargs"); + xfer += oprot->writeStructBegin("Airavata_getGatewayComputeResourcePreference_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayID))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->workflow)).write(oprot); + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27642,7 +29009,7 @@ uint32_t Airavata_registerWorkflow_pargs::write(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_registerWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27663,8 +29030,8 @@ uint32_t Airavata_registerWorkflow_result::read(::apache::thrift::protocol::TPro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -27706,15 +29073,15 @@ uint32_t Airavata_registerWorkflow_result::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t Airavata_registerWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_registerWorkflow_result"); + xfer += oprot->writeStructBegin("Airavata_getGatewayComputeResourcePreference_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27734,7 +29101,7 @@ uint32_t Airavata_registerWorkflow_result::write(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_registerWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27755,8 +29122,8 @@ uint32_t Airavata_registerWorkflow_presult::read(::apache::thrift::protocol::TPr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -27798,7 +29165,7 @@ uint32_t Airavata_registerWorkflow_presult::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t Airavata_updateWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27809,8 +29176,7 @@ uint32_t Airavata_updateWorkflow_args::read(::apache::thrift::protocol::TProtoco using ::apache::thrift::protocol::TProtocolException; - bool isset_workflowTemplateId = false; - bool isset_workflow = false; + bool isset_gatewayID = false; while (true) { @@ -27822,16 +29188,8 @@ uint32_t Airavata_updateWorkflow_args::read(::apache::thrift::protocol::TProtoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->workflowTemplateId); - isset_workflowTemplateId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->workflow.read(iprot); - isset_workflow = true; + xfer += iprot->readString(this->gatewayID); + isset_gatewayID = true; } else { xfer += iprot->skip(ftype); } @@ -27845,23 +29203,17 @@ uint32_t Airavata_updateWorkflow_args::read(::apache::thrift::protocol::TProtoco xfer += iprot->readStructEnd(); - if (!isset_workflowTemplateId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_workflow) + if (!isset_gatewayID) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_updateWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllGatewayComputeResourcePreferences_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateWorkflow_args"); - - xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->workflowTemplateId); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResourcePreferences_args"); - xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->workflow.write(oprot); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayID); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27869,16 +29221,12 @@ uint32_t Airavata_updateWorkflow_args::write(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t Airavata_updateWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllGatewayComputeResourcePreferences_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateWorkflow_pargs"); - - xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->workflowTemplateId))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResourcePreferences_pargs"); - xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += (*(this->workflow)).write(oprot); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayID))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27886,7 +29234,7 @@ uint32_t Airavata_updateWorkflow_pargs::write(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_updateWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27906,6 +29254,26 @@ uint32_t Airavata_updateWorkflow_result::read(::apache::thrift::protocol::TProto } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size436; + ::apache::thrift::protocol::TType _etype439; + xfer += iprot->readListBegin(_etype439, _size436); + this->success.resize(_size436); + uint32_t _i440; + for (_i440 = 0; _i440 < _size436; ++_i440) + { + xfer += this->success[_i440].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -27942,13 +29310,25 @@ uint32_t Airavata_updateWorkflow_result::read(::apache::thrift::protocol::TProto return xfer; } -uint32_t Airavata_updateWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_updateWorkflow_result"); + xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResourcePreferences_result"); - if (this->__isset.ire) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::ComputeResourcePreference> ::const_iterator _iter441; + for (_iter441 = this->success.begin(); _iter441 != this->success.end(); ++_iter441) + { + xfer += (*_iter441).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->ire.write(oprot); xfer += oprot->writeFieldEnd(); @@ -27966,7 +29346,7 @@ uint32_t Airavata_updateWorkflow_result::write(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_updateWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllGatewayComputeResourcePreferences_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -27986,6 +29366,26 @@ uint32_t Airavata_updateWorkflow_presult::read(::apache::thrift::protocol::TProt } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size442; + ::apache::thrift::protocol::TType _etype445; + xfer += iprot->readListBegin(_etype445, _size442); + (*(this->success)).resize(_size442); + uint32_t _i446; + for (_i446 = 0; _i446 < _size442; ++_i446) + { + xfer += (*(this->success))[_i446].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->ire.read(iprot); @@ -28022,7 +29422,7 @@ uint32_t Airavata_updateWorkflow_presult::read(::apache::thrift::protocol::TProt return xfer; } -uint32_t Airavata_getWorkflowTemplateId_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getAllGatewayComputeResources_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -28033,7 +29433,242 @@ uint32_t Airavata_getWorkflowTemplateId_args::read(::apache::thrift::protocol::T using ::apache::thrift::protocol::TProtocolException; - bool isset_workflowName = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_getAllGatewayComputeResources_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResources_args"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getAllGatewayComputeResources_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResources_pargs"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getAllGatewayComputeResources_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size447; + ::apache::thrift::protocol::TType _etype450; + xfer += iprot->readListBegin(_etype450, _size447); + this->success.resize(_size447); + uint32_t _i451; + for (_i451 = 0; _i451 < _size447; ++_i451) + { + xfer += this->success[_i451].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_getAllGatewayComputeResources_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_getAllGatewayComputeResources_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::GatewayResourceProfile> ::const_iterator _iter452; + for (_iter452 = this->success.begin(); _iter452 != this->success.end(); ++_iter452) + { + xfer += (*_iter452).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getAllGatewayComputeResources_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size453; + ::apache::thrift::protocol::TType _etype456; + xfer += iprot->readListBegin(_etype456, _size453); + (*(this->success)).resize(_size453); + uint32_t _i457; + for (_i457 = 0; _i457 < _size453; ++_i457) + { + xfer += (*(this->success))[_i457].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_updateGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_gatewayID = false; + bool isset_computeResourceId = false; + bool isset_computeResourcePreference = false; while (true) { @@ -28045,8 +29680,24 @@ uint32_t Airavata_getWorkflowTemplateId_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->workflowName); - isset_workflowName = true; + xfer += iprot->readString(this->gatewayID); + isset_gatewayID = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->computeResourcePreference.read(iprot); + isset_computeResourcePreference = true; } else { xfer += iprot->skip(ftype); } @@ -28060,17 +29711,29 @@ uint32_t Airavata_getWorkflowTemplateId_args::read(::apache::thrift::protocol::T xfer += iprot->readStructEnd(); - if (!isset_workflowName) + if (!isset_gatewayID) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_computeResourceId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_computeResourcePreference) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getWorkflowTemplateId_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getWorkflowTemplateId_args"); + xfer += oprot->writeStructBegin("Airavata_updateGatewayComputeResourcePreference_args"); - xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->workflowName); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->computeResourceId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->computeResourcePreference.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -28078,12 +29741,20 @@ uint32_t Airavata_getWorkflowTemplateId_args::write(::apache::thrift::protocol:: return xfer; } -uint32_t Airavata_getWorkflowTemplateId_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getWorkflowTemplateId_pargs"); + xfer += oprot->writeStructBegin("Airavata_updateGatewayComputeResourcePreference_pargs"); - xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->workflowName))); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->computeResourceId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourcePreference", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->computeResourcePreference)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -28091,7 +29762,7 @@ uint32_t Airavata_getWorkflowTemplateId_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getWorkflowTemplateId_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -28112,8 +29783,8 @@ uint32_t Airavata_getWorkflowTemplateId_result::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->success); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -28155,15 +29826,15 @@ uint32_t Airavata_getWorkflowTemplateId_result::read(::apache::thrift::protocol: return xfer; } -uint32_t Airavata_getWorkflowTemplateId_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_updateGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getWorkflowTemplateId_result"); + xfer += oprot->writeStructBegin("Airavata_updateGatewayComputeResourcePreference_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); - xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28183,7 +29854,7 @@ uint32_t Airavata_getWorkflowTemplateId_result::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_getWorkflowTemplateId_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_updateGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -28204,8 +29875,8 @@ uint32_t Airavata_getWorkflowTemplateId_presult::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -28247,7 +29918,7 @@ uint32_t Airavata_getWorkflowTemplateId_presult::read(::apache::thrift::protocol return xfer; } -uint32_t Airavata_isWorkflowExistWithName_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteGatewayComputeResourcePreference_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -28258,7 +29929,8 @@ uint32_t Airavata_isWorkflowExistWithName_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; - bool isset_workflowName = false; + bool isset_gatewayID = false; + bool isset_computeResourceId = false; while (true) { @@ -28270,8 +29942,16 @@ uint32_t Airavata_isWorkflowExistWithName_args::read(::apache::thrift::protocol: { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->workflowName); - isset_workflowName = true; + xfer += iprot->readString(this->gatewayID); + isset_gatewayID = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->computeResourceId); + isset_computeResourceId = true; } else { xfer += iprot->skip(ftype); } @@ -28285,17 +29965,23 @@ uint32_t Airavata_isWorkflowExistWithName_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); - if (!isset_workflowName) + if (!isset_gatewayID) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_computeResourceId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_isWorkflowExistWithName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteGatewayComputeResourcePreference_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_isWorkflowExistWithName_args"); + xfer += oprot->writeStructBegin("Airavata_deleteGatewayComputeResourcePreference_args"); - xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->workflowName); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayID); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->computeResourceId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -28303,12 +29989,16 @@ uint32_t Airavata_isWorkflowExistWithName_args::write(::apache::thrift::protocol return xfer; } -uint32_t Airavata_isWorkflowExistWithName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteGatewayComputeResourcePreference_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_isWorkflowExistWithName_pargs"); + xfer += oprot->writeStructBegin("Airavata_deleteGatewayComputeResourcePreference_pargs"); - xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->workflowName))); + xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayID))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->computeResourceId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -28316,7 +30006,7 @@ uint32_t Airavata_isWorkflowExistWithName_pargs::write(::apache::thrift::protoco return xfer; } -uint32_t Airavata_isWorkflowExistWithName_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteGatewayComputeResourcePreference_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -28380,11 +30070,11 @@ uint32_t Airavata_isWorkflowExistWithName_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_isWorkflowExistWithName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_deleteGatewayComputeResourcePreference_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_isWorkflowExistWithName_result"); + xfer += oprot->writeStructBegin("Airavata_deleteGatewayComputeResourcePreference_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -28408,7 +30098,7 @@ uint32_t Airavata_isWorkflowExistWithName_result::write(::apache::thrift::protoc return xfer; } -uint32_t Airavata_isWorkflowExistWithName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_deleteGatewayComputeResourcePreference_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -28472,18 +30162,2222 @@ uint32_t Airavata_isWorkflowExistWithName_presult::read(::apache::thrift::protoc return xfer; } -void AiravataClient::getAPIVersion(std::string& _return) -{ - send_getAPIVersion(); - recv_getAPIVersion(_return); +uint32_t Airavata_getAllWorkflows_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_gatewayId = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_getAllWorkflows_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getAllWorkflows_args"); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getAllWorkflows_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getAllWorkflows_pargs"); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getAllWorkflows_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size458; + ::apache::thrift::protocol::TType _etype461; + xfer += iprot->readListBegin(_etype461, _size458); + this->success.resize(_size458); + uint32_t _i462; + for (_i462 = 0; _i462 < _size458; ++_i462) + { + xfer += iprot->readString(this->success[_i462]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_getAllWorkflows_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_getAllWorkflows_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::vector ::const_iterator _iter463; + for (_iter463 = this->success.begin(); _iter463 != this->success.end(); ++_iter463) + { + xfer += oprot->writeString((*_iter463)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getAllWorkflows_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size464; + ::apache::thrift::protocol::TType _etype467; + xfer += iprot->readListBegin(_etype467, _size464); + (*(this->success)).resize(_size464); + uint32_t _i468; + for (_i468 = 0; _i468 < _size464; ++_i468) + { + xfer += iprot->readString((*(this->success))[_i468]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_getWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_workflowTemplateId = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->workflowTemplateId); + isset_workflowTemplateId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_workflowTemplateId) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_getWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getWorkflow_args"); + + xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->workflowTemplateId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getWorkflow_pargs"); + + xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->workflowTemplateId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_getWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_getWorkflow_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_deleteWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_workflowTemplateId = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->workflowTemplateId); + isset_workflowTemplateId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_workflowTemplateId) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_deleteWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_deleteWorkflow_args"); + + xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->workflowTemplateId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_deleteWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_deleteWorkflow_pargs"); + + xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->workflowTemplateId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_deleteWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_deleteWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_deleteWorkflow_result"); + + if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_deleteWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_registerWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_gatewayId = false; + bool isset_workflow = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->workflow.read(iprot); + isset_workflow = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_gatewayId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_workflow) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_registerWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_registerWorkflow_args"); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->workflow.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_registerWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_registerWorkflow_pargs"); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->workflow)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_registerWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_registerWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_registerWorkflow_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_registerWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_updateWorkflow_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_workflowTemplateId = false; + bool isset_workflow = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->workflowTemplateId); + isset_workflowTemplateId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->workflow.read(iprot); + isset_workflow = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_workflowTemplateId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_workflow) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_updateWorkflow_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_updateWorkflow_args"); + + xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->workflowTemplateId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->workflow.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_updateWorkflow_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_updateWorkflow_pargs"); + + xfer += oprot->writeFieldBegin("workflowTemplateId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->workflowTemplateId))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("workflow", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += (*(this->workflow)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_updateWorkflow_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_updateWorkflow_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_updateWorkflow_result"); + + if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_updateWorkflow_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_getWorkflowTemplateId_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_workflowName = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->workflowName); + isset_workflowName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_workflowName) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_getWorkflowTemplateId_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getWorkflowTemplateId_args"); + + xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->workflowName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getWorkflowTemplateId_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_getWorkflowTemplateId_pargs"); + + xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->workflowName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getWorkflowTemplateId_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_getWorkflowTemplateId_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_getWorkflowTemplateId_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0); + xfer += oprot->writeString(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_getWorkflowTemplateId_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_isWorkflowExistWithName_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_workflowName = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->workflowName); + isset_workflowName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_workflowName) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Airavata_isWorkflowExistWithName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_isWorkflowExistWithName_args"); + + xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->workflowName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_isWorkflowExistWithName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Airavata_isWorkflowExistWithName_pargs"); + + xfer += oprot->writeFieldBegin("workflowName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->workflowName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_isWorkflowExistWithName_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t Airavata_isWorkflowExistWithName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_isWorkflowExistWithName_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t Airavata_isWorkflowExistWithName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ire.read(iprot); + this->__isset.ire = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +void AiravataClient::getAPIVersion(std::string& _return) +{ + send_getAPIVersion(); + recv_getAPIVersion(_return); +} + +void AiravataClient::send_getAPIVersion() +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("getAPIVersion", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_getAPIVersion_pargs args; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_getAPIVersion(std::string& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("getAPIVersion") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_getAPIVersion_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAPIVersion failed: unknown result"); +} + +void AiravataClient::addGateway(std::string& _return, const ::apache::airavata::model::workspace::Gateway& gateway) +{ + send_addGateway(gateway); + recv_addGateway(_return); +} + +void AiravataClient::send_addGateway(const ::apache::airavata::model::workspace::Gateway& gateway) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("addGateway", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_addGateway_pargs args; + args.gateway = &gateway; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_addGateway(std::string& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("addGateway") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_addGateway_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "addGateway failed: unknown result"); +} + +void AiravataClient::updateGateway(const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) +{ + send_updateGateway(gatewayId, updatedGateway); + recv_updateGateway(); +} + +void AiravataClient::send_updateGateway(const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("updateGateway", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_updateGateway_pargs args; + args.gatewayId = &gatewayId; + args.updatedGateway = &updatedGateway; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_updateGateway() +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("updateGateway") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_updateGateway_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + return; +} + +void AiravataClient::getGateway( ::apache::airavata::model::workspace::Gateway& _return, const std::string& gatewayId) +{ + send_getGateway(gatewayId); + recv_getGateway(_return); +} + +void AiravataClient::send_getGateway(const std::string& gatewayId) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("getGateway", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_getGateway_pargs args; + args.gatewayId = &gatewayId; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_getGateway( ::apache::airavata::model::workspace::Gateway& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("getGateway") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_getGateway_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getGateway failed: unknown result"); +} + +bool AiravataClient::deleteGateway(const std::string& gatewayId) +{ + send_deleteGateway(gatewayId); + return recv_deleteGateway(); +} + +void AiravataClient::send_deleteGateway(const std::string& gatewayId) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("deleteGateway", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_deleteGateway_pargs args; + args.gatewayId = &gatewayId; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +bool AiravataClient::recv_deleteGateway() +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("deleteGateway") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + bool _return; + Airavata_deleteGateway_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + return _return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteGateway failed: unknown result"); +} + +void AiravataClient::getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return) +{ + send_getAllGateways(); + recv_getAllGateways(_return); +} + +void AiravataClient::send_getAllGateways() +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("getAllGateways", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_getAllGateways_pargs args; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("getAllGateways") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_getAllGateways_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllGateways failed: unknown result"); +} + +bool AiravataClient::isGatewayExist(const std::string& gatewayId) +{ + send_isGatewayExist(gatewayId); + return recv_isGatewayExist(); +} + +void AiravataClient::send_isGatewayExist(const std::string& gatewayId) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("isGatewayExist", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_isGatewayExist_pargs args; + args.gatewayId = &gatewayId; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +bool AiravataClient::recv_isGatewayExist() +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("isGatewayExist") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + bool _return; + Airavata_isGatewayExist_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + return _return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "isGatewayExist failed: unknown result"); +} + +void AiravataClient::generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) +{ + send_generateAndRegisterSSHKeys(gatewayId, userName); + recv_generateAndRegisterSSHKeys(_return); +} + +void AiravataClient::send_generateAndRegisterSSHKeys(const std::string& gatewayId, const std::string& userName) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("generateAndRegisterSSHKeys", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_generateAndRegisterSSHKeys_pargs args; + args.gatewayId = &gatewayId; + args.userName = &userName; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_generateAndRegisterSSHKeys(std::string& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("generateAndRegisterSSHKeys") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_generateAndRegisterSSHKeys_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "generateAndRegisterSSHKeys failed: unknown result"); +} + +void AiravataClient::getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) +{ + send_getSSHPubKey(airavataCredStoreToken); + recv_getSSHPubKey(_return); +} + +void AiravataClient::send_getSSHPubKey(const std::string& airavataCredStoreToken) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("getSSHPubKey", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_getSSHPubKey_pargs args; + args.airavataCredStoreToken = &airavataCredStoreToken; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_getSSHPubKey(std::string& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("getSSHPubKey") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_getSSHPubKey_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getSSHPubKey failed: unknown result"); +} + +void AiravataClient::getAllUserSSHPubKeys(std::map & _return, const std::string& userName) +{ + send_getAllUserSSHPubKeys(userName); + recv_getAllUserSSHPubKeys(_return); } -void AiravataClient::send_getAPIVersion() +void AiravataClient::send_getAllUserSSHPubKeys(const std::string& userName) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAPIVersion", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getAllUserSSHPubKeys", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAPIVersion_pargs args; + Airavata_getAllUserSSHPubKeys_pargs args; + args.userName = &userName; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28491,7 +32385,7 @@ void AiravataClient::send_getAPIVersion() oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAPIVersion(std::string& _return) +void AiravataClient::recv_getAllUserSSHPubKeys(std::map & _return) { int32_t rseqid = 0; @@ -28511,12 +32405,12 @@ void AiravataClient::recv_getAPIVersion(std::string& _return) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAPIVersion") != 0) { + if (fname.compare("getAllUserSSHPubKeys") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAPIVersion_presult result; + Airavata_getAllUserSSHPubKeys_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -28535,22 +32429,23 @@ void AiravataClient::recv_getAPIVersion(std::string& _return) if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAPIVersion failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserSSHPubKeys failed: unknown result"); } -void AiravataClient::addGateway(std::string& _return, const ::apache::airavata::model::workspace::Gateway& gateway) +void AiravataClient::createProject(std::string& _return, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) { - send_addGateway(gateway); - recv_addGateway(_return); + send_createProject(gatewayId, project); + recv_createProject(_return); } -void AiravataClient::send_addGateway(const ::apache::airavata::model::workspace::Gateway& gateway) +void AiravataClient::send_createProject(const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) { int32_t cseqid = 0; - oprot_->writeMessageBegin("addGateway", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("createProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_addGateway_pargs args; - args.gateway = &gateway; + Airavata_createProject_pargs args; + args.gatewayId = &gatewayId; + args.project = &project; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28558,7 +32453,7 @@ void AiravataClient::send_addGateway(const ::apache::airavata::model::workspace oprot_->getTransport()->flush(); } -void AiravataClient::recv_addGateway(std::string& _return) +void AiravataClient::recv_createProject(std::string& _return) { int32_t rseqid = 0; @@ -28578,12 +32473,12 @@ void AiravataClient::recv_addGateway(std::string& _return) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("addGateway") != 0) { + if (fname.compare("createProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_addGateway_presult result; + Airavata_createProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -28602,23 +32497,23 @@ void AiravataClient::recv_addGateway(std::string& _return) if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "addGateway failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "createProject failed: unknown result"); } -void AiravataClient::updateGateway(const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) +void AiravataClient::updateProject(const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) { - send_updateGateway(gatewayId, updatedGateway); - recv_updateGateway(); + send_updateProject(projectId, updatedProject); + recv_updateProject(); } -void AiravataClient::send_updateGateway(const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) +void AiravataClient::send_updateProject(const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) { int32_t cseqid = 0; - oprot_->writeMessageBegin("updateGateway", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("updateProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_updateGateway_pargs args; - args.gatewayId = &gatewayId; - args.updatedGateway = &updatedGateway; + Airavata_updateProject_pargs args; + args.projectId = &projectId; + args.updatedProject = &updatedProject; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28626,7 +32521,7 @@ void AiravataClient::send_updateGateway(const std::string& gatewayId, const ::a oprot_->getTransport()->flush(); } -void AiravataClient::recv_updateGateway() +void AiravataClient::recv_updateProject() { int32_t rseqid = 0; @@ -28646,12 +32541,12 @@ void AiravataClient::recv_updateGateway() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("updateGateway") != 0) { + if (fname.compare("updateProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_updateGateway_presult result; + Airavata_updateProject_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -28665,22 +32560,25 @@ void AiravataClient::recv_updateGateway() if (result.__isset.ase) { throw result.ase; } + if (result.__isset.pnfe) { + throw result.pnfe; + } return; } -void AiravataClient::getGateway( ::apache::airavata::model::workspace::Gateway& _return, const std::string& gatewayId) +void AiravataClient::getProject( ::apache::airavata::model::workspace::Project& _return, const std::string& projectId) { - send_getGateway(gatewayId); - recv_getGateway(_return); + send_getProject(projectId); + recv_getProject(_return); } -void AiravataClient::send_getGateway(const std::string& gatewayId) +void AiravataClient::send_getProject(const std::string& projectId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getGateway", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getGateway_pargs args; - args.gatewayId = &gatewayId; + Airavata_getProject_pargs args; + args.projectId = &projectId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28688,7 +32586,7 @@ void AiravataClient::send_getGateway(const std::string& gatewayId) oprot_->getTransport()->flush(); } -void AiravataClient::recv_getGateway( ::apache::airavata::model::workspace::Gateway& _return) +void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Project& _return) { int32_t rseqid = 0; @@ -28708,12 +32606,12 @@ void AiravataClient::recv_getGateway( ::apache::airavata::model::workspace::Gate iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getGateway") != 0) { + if (fname.compare("getProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getGateway_presult result; + Airavata_getProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -28732,22 +32630,25 @@ void AiravataClient::recv_getGateway( ::apache::airavata::model::workspace::Gate if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getGateway failed: unknown result"); + if (result.__isset.pnfe) { + throw result.pnfe; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getProject failed: unknown result"); } -bool AiravataClient::deleteGateway(const std::string& gatewayId) +bool AiravataClient::deleteProject(const std::string& projectId) { - send_deleteGateway(gatewayId); - return recv_deleteGateway(); + send_deleteProject(projectId); + return recv_deleteProject(); } -void AiravataClient::send_deleteGateway(const std::string& gatewayId) +void AiravataClient::send_deleteProject(const std::string& projectId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("deleteGateway", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("deleteProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_deleteGateway_pargs args; - args.gatewayId = &gatewayId; + Airavata_deleteProject_pargs args; + args.projectId = &projectId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28755,7 +32656,7 @@ void AiravataClient::send_deleteGateway(const std::string& gatewayId) oprot_->getTransport()->flush(); } -bool AiravataClient::recv_deleteGateway() +bool AiravataClient::recv_deleteProject() { int32_t rseqid = 0; @@ -28775,13 +32676,13 @@ bool AiravataClient::recv_deleteGateway() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("deleteGateway") != 0) { + if (fname.compare("deleteProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } bool _return; - Airavata_deleteGateway_presult result; + Airavata_deleteProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -28799,21 +32700,26 @@ bool AiravataClient::recv_deleteGateway() if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteGateway failed: unknown result"); + if (result.__isset.pnfe) { + throw result.pnfe; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteProject failed: unknown result"); } -void AiravataClient::getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return) +void AiravataClient::getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName) { - send_getAllGateways(); - recv_getAllGateways(_return); + send_getAllUserProjects(gatewayId, userName); + recv_getAllUserProjects(_return); } -void AiravataClient::send_getAllGateways() +void AiravataClient::send_getAllUserProjects(const std::string& gatewayId, const std::string& userName) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllGateways", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getAllUserProjects", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAllGateways_pargs args; + Airavata_getAllUserProjects_pargs args; + args.gatewayId = &gatewayId; + args.userName = &userName; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28821,7 +32727,7 @@ void AiravataClient::send_getAllGateways() oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return) +void AiravataClient::recv_getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -28841,12 +32747,12 @@ void AiravataClient::recv_getAllGateways(std::vector< ::apache::airavata::model: iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllGateways") != 0) { + if (fname.compare("getAllUserProjects") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllGateways_presult result; + Airavata_getAllUserProjects_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -28865,22 +32771,25 @@ void AiravataClient::recv_getAllGateways(std::vector< ::apache::airavata::model: if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllGateways failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserProjects failed: unknown result"); } -bool AiravataClient::isGatewayExist(const std::string& gatewayId) +void AiravataClient::getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { - send_isGatewayExist(gatewayId); - return recv_isGatewayExist(); + send_getAllUserProjectsWithPagination(gatewayId, userName, limit, offset); + recv_getAllUserProjectsWithPagination(_return); } -void AiravataClient::send_isGatewayExist(const std::string& gatewayId) +void AiravataClient::send_getAllUserProjectsWithPagination(const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("isGatewayExist", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getAllUserProjectsWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_isGatewayExist_pargs args; + Airavata_getAllUserProjectsWithPagination_pargs args; args.gatewayId = &gatewayId; + args.userName = &userName; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28888,7 +32797,7 @@ void AiravataClient::send_isGatewayExist(const std::string& gatewayId) oprot_->getTransport()->flush(); } -bool AiravataClient::recv_isGatewayExist() +void AiravataClient::recv_getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -28908,20 +32817,20 @@ bool AiravataClient::recv_isGatewayExist() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("isGatewayExist") != 0) { + if (fname.compare("getAllUserProjectsWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - bool _return; - Airavata_isGatewayExist_presult result; + Airavata_getAllUserProjectsWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - return _return; + // _return pointer has now been filled + return; } if (result.__isset.ire) { throw result.ire; @@ -28932,23 +32841,24 @@ bool AiravataClient::recv_isGatewayExist() if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "isGatewayExist failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserProjectsWithPagination failed: unknown result"); } -void AiravataClient::generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) +void AiravataClient::searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) { - send_generateAndRegisterSSHKeys(gatewayId, userName); - recv_generateAndRegisterSSHKeys(_return); + send_searchProjectsByProjectName(gatewayId, userName, projectName); + recv_searchProjectsByProjectName(_return); } -void AiravataClient::send_generateAndRegisterSSHKeys(const std::string& gatewayId, const std::string& userName) +void AiravataClient::send_searchProjectsByProjectName(const std::string& gatewayId, const std::string& userName, const std::string& projectName) { int32_t cseqid = 0; - oprot_->writeMessageBegin("generateAndRegisterSSHKeys", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_generateAndRegisterSSHKeys_pargs args; + Airavata_searchProjectsByProjectName_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; + args.projectName = &projectName; args.write(oprot_); oprot_->writeMessageEnd(); @@ -28956,7 +32866,7 @@ void AiravataClient::send_generateAndRegisterSSHKeys(const std::string& gatewayI oprot_->getTransport()->flush(); } -void AiravataClient::recv_generateAndRegisterSSHKeys(std::string& _return) +void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -28976,12 +32886,12 @@ void AiravataClient::recv_generateAndRegisterSSHKeys(std::string& _return) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("generateAndRegisterSSHKeys") != 0) { + if (fname.compare("searchProjectsByProjectName") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_generateAndRegisterSSHKeys_presult result; + Airavata_searchProjectsByProjectName_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29000,22 +32910,26 @@ void AiravataClient::recv_generateAndRegisterSSHKeys(std::string& _return) if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "generateAndRegisterSSHKeys failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); } -void AiravataClient::getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) +void AiravataClient::searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { - send_getSSHPubKey(airavataCredStoreToken); - recv_getSSHPubKey(_return); + send_searchProjectsByProjectNameWithPagination(gatewayId, userName, projectName, limit, offset); + recv_searchProjectsByProjectNameWithPagination(_return); } -void AiravataClient::send_getSSHPubKey(const std::string& airavataCredStoreToken) +void AiravataClient::send_searchProjectsByProjectNameWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getSSHPubKey", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchProjectsByProjectNameWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getSSHPubKey_pargs args; - args.airavataCredStoreToken = &airavataCredStoreToken; + Airavata_searchProjectsByProjectNameWithPagination_pargs args; + args.gatewayId = &gatewayId; + args.userName = &userName; + args.projectName = &projectName; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29023,7 +32937,7 @@ void AiravataClient::send_getSSHPubKey(const std::string& airavataCredStoreToken oprot_->getTransport()->flush(); } -void AiravataClient::recv_getSSHPubKey(std::string& _return) +void AiravataClient::recv_searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -29043,12 +32957,12 @@ void AiravataClient::recv_getSSHPubKey(std::string& _return) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getSSHPubKey") != 0) { + if (fname.compare("searchProjectsByProjectNameWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getSSHPubKey_presult result; + Airavata_searchProjectsByProjectNameWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29067,22 +32981,24 @@ void AiravataClient::recv_getSSHPubKey(std::string& _return) if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getSSHPubKey failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectNameWithPagination failed: unknown result"); } -void AiravataClient::getAllUserSSHPubKeys(std::map & _return, const std::string& userName) +void AiravataClient::searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { - send_getAllUserSSHPubKeys(userName); - recv_getAllUserSSHPubKeys(_return); + send_searchProjectsByProjectDesc(gatewayId, userName, description); + recv_searchProjectsByProjectDesc(_return); } -void AiravataClient::send_getAllUserSSHPubKeys(const std::string& userName) +void AiravataClient::send_searchProjectsByProjectDesc(const std::string& gatewayId, const std::string& userName, const std::string& description) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllUserSSHPubKeys", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAllUserSSHPubKeys_pargs args; + Airavata_searchProjectsByProjectDesc_pargs args; + args.gatewayId = &gatewayId; args.userName = &userName; + args.description = &description; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29090,7 +33006,7 @@ void AiravataClient::send_getAllUserSSHPubKeys(const std::string& userName) oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllUserSSHPubKeys(std::map & _return) +void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -29110,12 +33026,12 @@ void AiravataClient::recv_getAllUserSSHPubKeys(std::mapreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllUserSSHPubKeys") != 0) { + if (fname.compare("searchProjectsByProjectDesc") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllUserSSHPubKeys_presult result; + Airavata_searchProjectsByProjectDesc_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29134,23 +33050,26 @@ void AiravataClient::recv_getAllUserSSHPubKeys(std::map & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { - send_createProject(gatewayId, project); - recv_createProject(_return); + send_searchProjectsByProjectDescWithPagination(gatewayId, userName, description, limit, offset); + recv_searchProjectsByProjectDescWithPagination(_return); } -void AiravataClient::send_createProject(const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) +void AiravataClient::send_searchProjectsByProjectDescWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("createProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchProjectsByProjectDescWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_createProject_pargs args; + Airavata_searchProjectsByProjectDescWithPagination_pargs args; args.gatewayId = &gatewayId; - args.project = &project; + args.userName = &userName; + args.description = &description; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29158,7 +33077,7 @@ void AiravataClient::send_createProject(const std::string& gatewayId, const ::a oprot_->getTransport()->flush(); } -void AiravataClient::recv_createProject(std::string& _return) +void AiravataClient::recv_searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -29178,12 +33097,12 @@ void AiravataClient::recv_createProject(std::string& _return) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("createProject") != 0) { + if (fname.compare("searchProjectsByProjectDescWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_createProject_presult result; + Airavata_searchProjectsByProjectDescWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29202,23 +33121,24 @@ void AiravataClient::recv_createProject(std::string& _return) if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "createProject failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectDescWithPagination failed: unknown result"); } -void AiravataClient::updateProject(const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) +void AiravataClient::searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) { - send_updateProject(projectId, updatedProject); - recv_updateProject(); + send_searchExperimentsByName(gatewayId, userName, expName); + recv_searchExperimentsByName(_return); } -void AiravataClient::send_updateProject(const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) +void AiravataClient::send_searchExperimentsByName(const std::string& gatewayId, const std::string& userName, const std::string& expName) { int32_t cseqid = 0; - oprot_->writeMessageBegin("updateProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_updateProject_pargs args; - args.projectId = &projectId; - args.updatedProject = &updatedProject; + Airavata_searchExperimentsByName_pargs args; + args.gatewayId = &gatewayId; + args.userName = &userName; + args.expName = &expName; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29226,7 +33146,7 @@ void AiravataClient::send_updateProject(const std::string& projectId, const ::a oprot_->getTransport()->flush(); } -void AiravataClient::recv_updateProject() +void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29246,16 +33166,21 @@ void AiravataClient::recv_updateProject() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("updateProject") != 0) { + if (fname.compare("searchExperimentsByName") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_updateProject_presult result; + Airavata_searchExperimentsByName_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); + if (result.__isset.success) { + // _return pointer has now been filled + return; + } if (result.__isset.ire) { throw result.ire; } @@ -29265,25 +33190,26 @@ void AiravataClient::recv_updateProject() if (result.__isset.ase) { throw result.ase; } - if (result.__isset.pnfe) { - throw result.pnfe; - } - return; + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByName failed: unknown result"); } -void AiravataClient::getProject( ::apache::airavata::model::workspace::Project& _return, const std::string& projectId) +void AiravataClient::searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { - send_getProject(projectId); - recv_getProject(_return); + send_searchExperimentsByNameWithPagination(gatewayId, userName, expName, limit, offset); + recv_searchExperimentsByNameWithPagination(_return); } -void AiravataClient::send_getProject(const std::string& projectId) +void AiravataClient::send_searchExperimentsByNameWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByNameWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getProject_pargs args; - args.projectId = &projectId; + Airavata_searchExperimentsByNameWithPagination_pargs args; + args.gatewayId = &gatewayId; + args.userName = &userName; + args.expName = &expName; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29291,7 +33217,7 @@ void AiravataClient::send_getProject(const std::string& projectId) oprot_->getTransport()->flush(); } -void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Project& _return) +void AiravataClient::recv_searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29311,12 +33237,12 @@ void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Proj iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getProject") != 0) { + if (fname.compare("searchExperimentsByNameWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getProject_presult result; + Airavata_searchExperimentsByNameWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29335,25 +33261,24 @@ void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Proj if (result.__isset.ase) { throw result.ase; } - if (result.__isset.pnfe) { - throw result.pnfe; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getProject failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByNameWithPagination failed: unknown result"); } -bool AiravataClient::deleteProject(const std::string& projectId) +void AiravataClient::searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { - send_deleteProject(projectId); - return recv_deleteProject(); + send_searchExperimentsByDesc(gatewayId, userName, description); + recv_searchExperimentsByDesc(_return); } -void AiravataClient::send_deleteProject(const std::string& projectId) +void AiravataClient::send_searchExperimentsByDesc(const std::string& gatewayId, const std::string& userName, const std::string& description) { int32_t cseqid = 0; - oprot_->writeMessageBegin("deleteProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_deleteProject_pargs args; - args.projectId = &projectId; + Airavata_searchExperimentsByDesc_pargs args; + args.gatewayId = &gatewayId; + args.userName = &userName; + args.description = &description; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29361,7 +33286,7 @@ void AiravataClient::send_deleteProject(const std::string& projectId) oprot_->getTransport()->flush(); } -bool AiravataClient::recv_deleteProject() +void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29381,20 +33306,20 @@ bool AiravataClient::recv_deleteProject() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("deleteProject") != 0) { + if (fname.compare("searchExperimentsByDesc") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - bool _return; - Airavata_deleteProject_presult result; + Airavata_searchExperimentsByDesc_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - return _return; + // _return pointer has now been filled + return; } if (result.__isset.ire) { throw result.ire; @@ -29405,26 +33330,26 @@ bool AiravataClient::recv_deleteProject() if (result.__isset.ase) { throw result.ase; } - if (result.__isset.pnfe) { - throw result.pnfe; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteProject failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); } -void AiravataClient::getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName) +void AiravataClient::searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { - send_getAllUserProjects(gatewayId, userName); - recv_getAllUserProjects(_return); + send_searchExperimentsByDescWithPagination(gatewayId, userName, description, limit, offset); + recv_searchExperimentsByDescWithPagination(_return); } -void AiravataClient::send_getAllUserProjects(const std::string& gatewayId, const std::string& userName) +void AiravataClient::send_searchExperimentsByDescWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllUserProjects", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByDescWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAllUserProjects_pargs args; + Airavata_searchExperimentsByDescWithPagination_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; + args.description = &description; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29432,7 +33357,7 @@ void AiravataClient::send_getAllUserProjects(const std::string& gatewayId, const oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29452,12 +33377,12 @@ void AiravataClient::recv_getAllUserProjects(std::vector< ::apache::airavata::mo iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllUserProjects") != 0) { + if (fname.compare("searchExperimentsByDescWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllUserProjects_presult result; + Airavata_searchExperimentsByDescWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29476,24 +33401,24 @@ void AiravataClient::recv_getAllUserProjects(std::vector< ::apache::airavata::mo if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserProjects failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByDescWithPagination failed: unknown result"); } -void AiravataClient::searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) +void AiravataClient::searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) { - send_searchProjectsByProjectName(gatewayId, userName, projectName); - recv_searchProjectsByProjectName(_return); + send_searchExperimentsByApplication(gatewayId, userName, applicationId); + recv_searchExperimentsByApplication(_return); } -void AiravataClient::send_searchProjectsByProjectName(const std::string& gatewayId, const std::string& userName, const std::string& projectName) +void AiravataClient::send_searchExperimentsByApplication(const std::string& gatewayId, const std::string& userName, const std::string& applicationId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchProjectsByProjectName_pargs args; + Airavata_searchExperimentsByApplication_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; - args.projectName = &projectName; + args.applicationId = &applicationId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29501,7 +33426,7 @@ void AiravataClient::send_searchProjectsByProjectName(const std::string& gateway oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29521,12 +33446,12 @@ void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::air iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchProjectsByProjectName") != 0) { + if (fname.compare("searchExperimentsByApplication") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchProjectsByProjectName_presult result; + Airavata_searchExperimentsByApplication_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29545,24 +33470,26 @@ void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::air if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); } -void AiravataClient::searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { - send_searchProjectsByProjectDesc(gatewayId, userName, description); - recv_searchProjectsByProjectDesc(_return); + send_searchExperimentsByApplicationWithPagination(gatewayId, userName, applicationId, limit, offset); + recv_searchExperimentsByApplicationWithPagination(_return); } -void AiravataClient::send_searchProjectsByProjectDesc(const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::send_searchExperimentsByApplicationWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByApplicationWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchProjectsByProjectDesc_pargs args; + Airavata_searchExperimentsByApplicationWithPagination_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; - args.description = &description; + args.applicationId = &applicationId; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29570,7 +33497,7 @@ void AiravataClient::send_searchProjectsByProjectDesc(const std::string& gateway oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29590,12 +33517,12 @@ void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::air iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchProjectsByProjectDesc") != 0) { + if (fname.compare("searchExperimentsByApplicationWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchProjectsByProjectDesc_presult result; + Airavata_searchExperimentsByApplicationWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29614,24 +33541,24 @@ void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::air if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByApplicationWithPagination failed: unknown result"); } -void AiravataClient::searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) +void AiravataClient::searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState) { - send_searchExperimentsByName(gatewayId, userName, expName); - recv_searchExperimentsByName(_return); + send_searchExperimentsByStatus(gatewayId, userName, experimentState); + recv_searchExperimentsByStatus(_return); } -void AiravataClient::send_searchExperimentsByName(const std::string& gatewayId, const std::string& userName, const std::string& expName) +void AiravataClient::send_searchExperimentsByStatus(const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByName_pargs args; + Airavata_searchExperimentsByStatus_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; - args.expName = &expName; + args.experimentState = &experimentState; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29639,7 +33566,7 @@ void AiravataClient::send_searchExperimentsByName(const std::string& gatewayId, oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) +void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29659,12 +33586,12 @@ void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavat iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByName") != 0) { + if (fname.compare("searchExperimentsByStatus") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByName_presult result; + Airavata_searchExperimentsByStatus_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29683,24 +33610,26 @@ void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavat if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByName failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); } -void AiravataClient::searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { - send_searchExperimentsByDesc(gatewayId, userName, description); - recv_searchExperimentsByDesc(_return); + send_searchExperimentsByStatusWithPagination(gatewayId, userName, experimentState, limit, offset); + recv_searchExperimentsByStatusWithPagination(_return); } -void AiravataClient::send_searchExperimentsByDesc(const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::send_searchExperimentsByStatusWithPagination(const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByStatusWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByDesc_pargs args; + Airavata_searchExperimentsByStatusWithPagination_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; - args.description = &description; + args.experimentState = &experimentState; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29708,7 +33637,7 @@ void AiravataClient::send_searchExperimentsByDesc(const std::string& gatewayId, oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) +void AiravataClient::recv_searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29728,12 +33657,12 @@ void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavat iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByDesc") != 0) { + if (fname.compare("searchExperimentsByStatusWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByDesc_presult result; + Airavata_searchExperimentsByStatusWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29752,24 +33681,25 @@ void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavat if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByStatusWithPagination failed: unknown result"); } -void AiravataClient::searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) +void AiravataClient::searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) { - send_searchExperimentsByApplication(gatewayId, userName, applicationId); - recv_searchExperimentsByApplication(_return); + send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime); + recv_searchExperimentsByCreationTime(_return); } -void AiravataClient::send_searchExperimentsByApplication(const std::string& gatewayId, const std::string& userName, const std::string& applicationId) +void AiravataClient::send_searchExperimentsByCreationTime(const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByCreationTime", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByApplication_pargs args; + Airavata_searchExperimentsByCreationTime_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; - args.applicationId = &applicationId; + args.fromTime = &fromTime; + args.toTime = &toTime; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29777,7 +33707,7 @@ void AiravataClient::send_searchExperimentsByApplication(const std::string& gate oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) +void AiravataClient::recv_searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29797,12 +33727,12 @@ void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache:: iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByApplication") != 0) { + if (fname.compare("searchExperimentsByCreationTime") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByApplication_presult result; + Airavata_searchExperimentsByCreationTime_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29821,24 +33751,27 @@ void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache:: if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); } -void AiravataClient::searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState) +void AiravataClient::searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { - send_searchExperimentsByStatus(gatewayId, userName, experimentState); - recv_searchExperimentsByStatus(_return); + send_searchExperimentsByCreationTimeWithPagination(gatewayId, userName, fromTime, toTime, limit, offset); + recv_searchExperimentsByCreationTimeWithPagination(_return); } -void AiravataClient::send_searchExperimentsByStatus(const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState) +void AiravataClient::send_searchExperimentsByCreationTimeWithPagination(const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByCreationTimeWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByStatus_pargs args; + Airavata_searchExperimentsByCreationTimeWithPagination_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; - args.experimentState = &experimentState; + args.fromTime = &fromTime; + args.toTime = &toTime; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29846,7 +33779,7 @@ void AiravataClient::send_searchExperimentsByStatus(const std::string& gatewayId oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) +void AiravataClient::recv_searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) { int32_t rseqid = 0; @@ -29866,12 +33799,12 @@ void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airav iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByStatus") != 0) { + if (fname.compare("searchExperimentsByCreationTimeWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByStatus_presult result; + Airavata_searchExperimentsByCreationTimeWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29890,25 +33823,22 @@ void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airav if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByCreationTimeWithPagination failed: unknown result"); } -void AiravataClient::searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) +void AiravataClient::getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId) { - send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime); - recv_searchExperimentsByCreationTime(_return); + send_getAllExperimentsInProject(projectId); + recv_getAllExperimentsInProject(_return); } -void AiravataClient::send_searchExperimentsByCreationTime(const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) +void AiravataClient::send_getAllExperimentsInProject(const std::string& projectId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByCreationTime", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getAllExperimentsInProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByCreationTime_pargs args; - args.gatewayId = &gatewayId; - args.userName = &userName; - args.fromTime = &fromTime; - args.toTime = &toTime; + Airavata_getAllExperimentsInProject_pargs args; + args.projectId = &projectId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29916,7 +33846,7 @@ void AiravataClient::send_searchExperimentsByCreationTime(const std::string& gat oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return) +void AiravataClient::recv_getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return) { int32_t rseqid = 0; @@ -29936,12 +33866,12 @@ void AiravataClient::recv_searchExperimentsByCreationTime(std::vector< ::apache: iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByCreationTime") != 0) { + if (fname.compare("getAllExperimentsInProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByCreationTime_presult result; + Airavata_getAllExperimentsInProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -29960,22 +33890,27 @@ void AiravataClient::recv_searchExperimentsByCreationTime(std::vector< ::apache: if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); + if (result.__isset.pnfe) { + throw result.pnfe; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); } -void AiravataClient::getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId) +void AiravataClient::getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId, const int32_t limit, const int32_t offset) { - send_getAllExperimentsInProject(projectId); - recv_getAllExperimentsInProject(_return); + send_getAllExperimentsInProjectWithPagination(projectId, limit, offset); + recv_getAllExperimentsInProjectWithPagination(_return); } -void AiravataClient::send_getAllExperimentsInProject(const std::string& projectId) +void AiravataClient::send_getAllExperimentsInProjectWithPagination(const std::string& projectId, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllExperimentsInProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getAllExperimentsInProjectWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAllExperimentsInProject_pargs args; + Airavata_getAllExperimentsInProjectWithPagination_pargs args; args.projectId = &projectId; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -29983,7 +33918,7 @@ void AiravataClient::send_getAllExperimentsInProject(const std::string& projectI oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return) +void AiravataClient::recv_getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return) { int32_t rseqid = 0; @@ -30003,12 +33938,12 @@ void AiravataClient::recv_getAllExperimentsInProject(std::vector< ::apache::aira iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllExperimentsInProject") != 0) { + if (fname.compare("getAllExperimentsInProjectWithPagination") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllExperimentsInProject_presult result; + Airavata_getAllExperimentsInProjectWithPagination_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -30030,7 +33965,7 @@ void AiravataClient::recv_getAllExperimentsInProject(std::vector< ::apache::aira if (result.__isset.pnfe) { throw result.pnfe; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllExperimentsInProjectWithPagination failed: unknown result"); } void AiravataClient::getAllUserExperiments(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName) @@ -30101,6 +34036,76 @@ void AiravataClient::recv_getAllUserExperiments(std::vector< ::apache::airavata: throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserExperiments failed: unknown result"); } +void AiravataClient::getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) +{ + send_getAllUserExperimentsWithPagination(gatewayId, userName, limit, offset); + recv_getAllUserExperimentsWithPagination(_return); +} + +void AiravataClient::send_getAllUserExperimentsWithPagination(const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("getAllUserExperimentsWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + + Airavata_getAllUserExperimentsWithPagination_pargs args; + args.gatewayId = &gatewayId; + args.userName = &userName; + args.limit = &limit; + args.offset = &offset; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void AiravataClient::recv_getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("getAllUserExperimentsWithPagination") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + Airavata_getAllUserExperimentsWithPagination_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.ire) { + throw result.ire; + } + if (result.__isset.ace) { + throw result.ace; + } + if (result.__isset.ase) { + throw result.ase; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserExperimentsWithPagination failed: unknown result"); +} + void AiravataClient::createExperiment(std::string& _return, const std::string& gatewayId, const ::apache::airavata::model::workspace::experiment::Experiment& experiment) { send_createExperiment(gatewayId, experiment); @@ -37273,6 +41278,69 @@ void AiravataProcessor::process_getAllUserProjects(int32_t seqid, ::apache::thri } } +void AiravataProcessor::process_getAllUserProjectsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.getAllUserProjectsWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllUserProjectsWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.getAllUserProjectsWithPagination"); + } + + Airavata_getAllUserProjectsWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.getAllUserProjectsWithPagination", bytes); + } + + Airavata_getAllUserProjectsWithPagination_result result; + try { + iface_->getAllUserProjectsWithPagination(result.success, args.gatewayId, args.userName, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.getAllUserProjectsWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("getAllUserProjectsWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.getAllUserProjectsWithPagination"); + } + + oprot->writeMessageBegin("getAllUserProjectsWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.getAllUserProjectsWithPagination", bytes); + } +} + void AiravataProcessor::process_searchProjectsByProjectName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37336,6 +41404,69 @@ void AiravataProcessor::process_searchProjectsByProjectName(int32_t seqid, ::apa } } +void AiravataProcessor::process_searchProjectsByProjectNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectNameWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectNameWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectNameWithPagination"); + } + + Airavata_searchProjectsByProjectNameWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectNameWithPagination", bytes); + } + + Airavata_searchProjectsByProjectNameWithPagination_result result; + try { + iface_->searchProjectsByProjectNameWithPagination(result.success, args.gatewayId, args.userName, args.projectName, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectNameWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("searchProjectsByProjectNameWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectNameWithPagination"); + } + + oprot->writeMessageBegin("searchProjectsByProjectNameWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectNameWithPagination", bytes); + } +} + void AiravataProcessor::process_searchProjectsByProjectDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37399,6 +41530,69 @@ void AiravataProcessor::process_searchProjectsByProjectDesc(int32_t seqid, ::apa } } +void AiravataProcessor::process_searchProjectsByProjectDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectDescWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectDescWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectDescWithPagination"); + } + + Airavata_searchProjectsByProjectDescWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectDescWithPagination", bytes); + } + + Airavata_searchProjectsByProjectDescWithPagination_result result; + try { + iface_->searchProjectsByProjectDescWithPagination(result.success, args.gatewayId, args.userName, args.description, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectDescWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("searchProjectsByProjectDescWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectDescWithPagination"); + } + + oprot->writeMessageBegin("searchProjectsByProjectDescWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectDescWithPagination", bytes); + } +} + void AiravataProcessor::process_searchExperimentsByName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37462,6 +41656,69 @@ void AiravataProcessor::process_searchExperimentsByName(int32_t seqid, ::apache: } } +void AiravataProcessor::process_searchExperimentsByNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByNameWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByNameWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByNameWithPagination"); + } + + Airavata_searchExperimentsByNameWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByNameWithPagination", bytes); + } + + Airavata_searchExperimentsByNameWithPagination_result result; + try { + iface_->searchExperimentsByNameWithPagination(result.success, args.gatewayId, args.userName, args.expName, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByNameWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("searchExperimentsByNameWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByNameWithPagination"); + } + + oprot->writeMessageBegin("searchExperimentsByNameWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByNameWithPagination", bytes); + } +} + void AiravataProcessor::process_searchExperimentsByDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37525,6 +41782,69 @@ void AiravataProcessor::process_searchExperimentsByDesc(int32_t seqid, ::apache: } } +void AiravataProcessor::process_searchExperimentsByDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByDescWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByDescWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByDescWithPagination"); + } + + Airavata_searchExperimentsByDescWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByDescWithPagination", bytes); + } + + Airavata_searchExperimentsByDescWithPagination_result result; + try { + iface_->searchExperimentsByDescWithPagination(result.success, args.gatewayId, args.userName, args.description, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByDescWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("searchExperimentsByDescWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByDescWithPagination"); + } + + oprot->writeMessageBegin("searchExperimentsByDescWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByDescWithPagination", bytes); + } +} + void AiravataProcessor::process_searchExperimentsByApplication(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37588,6 +41908,69 @@ void AiravataProcessor::process_searchExperimentsByApplication(int32_t seqid, :: } } +void AiravataProcessor::process_searchExperimentsByApplicationWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByApplicationWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + } + + Airavata_searchExperimentsByApplicationWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByApplicationWithPagination", bytes); + } + + Airavata_searchExperimentsByApplicationWithPagination_result result; + try { + iface_->searchExperimentsByApplicationWithPagination(result.success, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("searchExperimentsByApplicationWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + } + + oprot->writeMessageBegin("searchExperimentsByApplicationWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByApplicationWithPagination", bytes); + } +} + void AiravataProcessor::process_searchExperimentsByStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37651,6 +42034,69 @@ void AiravataProcessor::process_searchExperimentsByStatus(int32_t seqid, ::apach } } +void AiravataProcessor::process_searchExperimentsByStatusWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByStatusWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByStatusWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByStatusWithPagination"); + } + + Airavata_searchExperimentsByStatusWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByStatusWithPagination", bytes); + } + + Airavata_searchExperimentsByStatusWithPagination_result result; + try { + iface_->searchExperimentsByStatusWithPagination(result.success, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByStatusWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("searchExperimentsByStatusWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByStatusWithPagination"); + } + + oprot->writeMessageBegin("searchExperimentsByStatusWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByStatusWithPagination", bytes); + } +} + void AiravataProcessor::process_searchExperimentsByCreationTime(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37714,6 +42160,69 @@ void AiravataProcessor::process_searchExperimentsByCreationTime(int32_t seqid, : } } +void AiravataProcessor::process_searchExperimentsByCreationTimeWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByCreationTimeWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); + } + + Airavata_searchExperimentsByCreationTimeWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination", bytes); + } + + Airavata_searchExperimentsByCreationTimeWithPagination_result result; + try { + iface_->searchExperimentsByCreationTimeWithPagination(result.success, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("searchExperimentsByCreationTimeWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); + } + + oprot->writeMessageBegin("searchExperimentsByCreationTimeWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination", bytes); + } +} + void AiravataProcessor::process_getAllExperimentsInProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37780,6 +42289,72 @@ void AiravataProcessor::process_getAllExperimentsInProject(int32_t seqid, ::apac } } +void AiravataProcessor::process_getAllExperimentsInProjectWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.getAllExperimentsInProjectWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllExperimentsInProjectWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.getAllExperimentsInProjectWithPagination"); + } + + Airavata_getAllExperimentsInProjectWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.getAllExperimentsInProjectWithPagination", bytes); + } + + Airavata_getAllExperimentsInProjectWithPagination_result result; + try { + iface_->getAllExperimentsInProjectWithPagination(result.success, args.projectId, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch ( ::apache::airavata::api::error::ProjectNotFoundException &pnfe) { + result.pnfe = pnfe; + result.__isset.pnfe = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.getAllExperimentsInProjectWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("getAllExperimentsInProjectWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.getAllExperimentsInProjectWithPagination"); + } + + oprot->writeMessageBegin("getAllExperimentsInProjectWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.getAllExperimentsInProjectWithPagination", bytes); + } +} + void AiravataProcessor::process_getAllUserExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -37843,6 +42418,69 @@ void AiravataProcessor::process_getAllUserExperiments(int32_t seqid, ::apache::t } } +void AiravataProcessor::process_getAllUserExperimentsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("Airavata.getAllUserExperimentsWithPagination", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllUserExperimentsWithPagination"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "Airavata.getAllUserExperimentsWithPagination"); + } + + Airavata_getAllUserExperimentsWithPagination_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "Airavata.getAllUserExperimentsWithPagination", bytes); + } + + Airavata_getAllUserExperimentsWithPagination_result result; + try { + iface_->getAllUserExperimentsWithPagination(result.success, args.gatewayId, args.userName, args.limit, args.offset); + result.__isset.success = true; + } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { + result.ire = ire; + result.__isset.ire = true; + } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { + result.ace = ace; + result.__isset.ace = true; + } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { + result.ase = ase; + result.__isset.ase = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "Airavata.getAllUserExperimentsWithPagination"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("getAllUserExperimentsWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "Airavata.getAllUserExperimentsWithPagination"); + } + + oprot->writeMessageBegin("getAllUserExperimentsWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "Airavata.getAllUserExperimentsWithPagination", bytes); + } +} + void AiravataProcessor::process_createExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h index 78f2742e7a..8bdcb39db5 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h @@ -47,15 +47,25 @@ class AiravataIf { virtual void getProject( ::apache::airavata::model::workspace::Project& _return, const std::string& projectId) = 0; virtual bool deleteProject(const std::string& projectId) = 0; virtual void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName) = 0; + virtual void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) = 0; virtual void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) = 0; + virtual void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) = 0; virtual void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) = 0; + virtual void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) = 0; virtual void searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) = 0; + virtual void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) = 0; virtual void searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) = 0; + virtual void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) = 0; virtual void searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) = 0; + virtual void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) = 0; virtual void searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState) = 0; + virtual void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) = 0; virtual void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) = 0; + virtual void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) = 0; virtual void getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId) = 0; + virtual void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId, const int32_t limit, const int32_t offset) = 0; virtual void getAllUserExperiments(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName) = 0; + virtual void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) = 0; virtual void createExperiment(std::string& _return, const std::string& gatewayId, const ::apache::airavata::model::workspace::experiment::Experiment& experiment) = 0; virtual void getExperiment( ::apache::airavata::model::workspace::experiment::Experiment& _return, const std::string& airavataExperimentId) = 0; virtual void updateExperiment(const std::string& airavataExperimentId, const ::apache::airavata::model::workspace::experiment::Experiment& experiment) = 0; @@ -225,33 +235,63 @@ class AiravataNull : virtual public AiravataIf { void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */) { return; } + void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* projectName */) { return; } + void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* projectName */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */) { return; } + void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* expName */) { return; } + void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* expName */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */) { return; } + void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* applicationId */) { return; } + void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* applicationId */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const ::apache::airavata::model::workspace::experiment::ExperimentState::type /* experimentState */) { return; } + void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const ::apache::airavata::model::workspace::experiment::ExperimentState::type /* experimentState */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const int64_t /* fromTime */, const int64_t /* toTime */) { return; } + void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const int64_t /* fromTime */, const int64_t /* toTime */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & /* _return */, const std::string& /* projectId */) { return; } + void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & /* _return */, const std::string& /* projectId */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void getAllUserExperiments(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */) { return; } + void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const int32_t /* limit */, const int32_t /* offset */) { + return; + } void createExperiment(std::string& /* _return */, const std::string& /* gatewayId */, const ::apache::airavata::model::workspace::experiment::Experiment& /* experiment */) { return; } @@ -2577,17 +2617,18 @@ class Airavata_getAllUserProjects_presult { }; -class Airavata_searchProjectsByProjectName_args { +class Airavata_getAllUserProjectsWithPagination_args { public: - Airavata_searchProjectsByProjectName_args() : gatewayId(), userName(), projectName() { + Airavata_getAllUserProjectsWithPagination_args() : gatewayId(), userName(), limit(0), offset(0) { } - virtual ~Airavata_searchProjectsByProjectName_args() throw() {} + virtual ~Airavata_getAllUserProjectsWithPagination_args() throw() {} std::string gatewayId; std::string userName; - std::string projectName; + int32_t limit; + int32_t offset; void __set_gatewayId(const std::string& val) { gatewayId = val; @@ -2597,25 +2638,31 @@ class Airavata_searchProjectsByProjectName_args { userName = val; } - void __set_projectName(const std::string& val) { - projectName = val; + void __set_limit(const int32_t val) { + limit = val; } - bool operator == (const Airavata_searchProjectsByProjectName_args & rhs) const + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_getAllUserProjectsWithPagination_args & rhs) const { if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; - if (!(projectName == rhs.projectName)) + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectName_args &rhs) const { + bool operator != (const Airavata_getAllUserProjectsWithPagination_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectName_args & ) const; + bool operator < (const Airavata_getAllUserProjectsWithPagination_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -2623,42 +2670,43 @@ class Airavata_searchProjectsByProjectName_args { }; -class Airavata_searchProjectsByProjectName_pargs { +class Airavata_getAllUserProjectsWithPagination_pargs { public: - virtual ~Airavata_searchProjectsByProjectName_pargs() throw() {} + virtual ~Airavata_getAllUserProjectsWithPagination_pargs() throw() {} const std::string* gatewayId; const std::string* userName; - const std::string* projectName; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchProjectsByProjectName_result__isset { - _Airavata_searchProjectsByProjectName_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getAllUserProjectsWithPagination_result__isset { + _Airavata_getAllUserProjectsWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchProjectsByProjectName_result__isset; +} _Airavata_getAllUserProjectsWithPagination_result__isset; -class Airavata_searchProjectsByProjectName_result { +class Airavata_getAllUserProjectsWithPagination_result { public: - Airavata_searchProjectsByProjectName_result() { + Airavata_getAllUserProjectsWithPagination_result() { } - virtual ~Airavata_searchProjectsByProjectName_result() throw() {} + virtual ~Airavata_getAllUserProjectsWithPagination_result() throw() {} std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchProjectsByProjectName_result__isset __isset; + _Airavata_getAllUserProjectsWithPagination_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val) { success = val; @@ -2676,7 +2724,7 @@ class Airavata_searchProjectsByProjectName_result { ase = val; } - bool operator == (const Airavata_searchProjectsByProjectName_result & rhs) const + bool operator == (const Airavata_getAllUserProjectsWithPagination_result & rhs) const { if (!(success == rhs.success)) return false; @@ -2688,54 +2736,54 @@ class Airavata_searchProjectsByProjectName_result { return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectName_result &rhs) const { + bool operator != (const Airavata_getAllUserProjectsWithPagination_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectName_result & ) const; + bool operator < (const Airavata_getAllUserProjectsWithPagination_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchProjectsByProjectName_presult__isset { - _Airavata_searchProjectsByProjectName_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getAllUserProjectsWithPagination_presult__isset { + _Airavata_getAllUserProjectsWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchProjectsByProjectName_presult__isset; +} _Airavata_getAllUserProjectsWithPagination_presult__isset; -class Airavata_searchProjectsByProjectName_presult { +class Airavata_getAllUserProjectsWithPagination_presult { public: - virtual ~Airavata_searchProjectsByProjectName_presult() throw() {} + virtual ~Airavata_getAllUserProjectsWithPagination_presult() throw() {} std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchProjectsByProjectName_presult__isset __isset; + _Airavata_getAllUserProjectsWithPagination_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -class Airavata_searchProjectsByProjectDesc_args { +class Airavata_searchProjectsByProjectName_args { public: - Airavata_searchProjectsByProjectDesc_args() : gatewayId(), userName(), description() { + Airavata_searchProjectsByProjectName_args() : gatewayId(), userName(), projectName() { } - virtual ~Airavata_searchProjectsByProjectDesc_args() throw() {} + virtual ~Airavata_searchProjectsByProjectName_args() throw() {} std::string gatewayId; std::string userName; - std::string description; + std::string projectName; void __set_gatewayId(const std::string& val) { gatewayId = val; @@ -2745,25 +2793,25 @@ class Airavata_searchProjectsByProjectDesc_args { userName = val; } - void __set_description(const std::string& val) { - description = val; + void __set_projectName(const std::string& val) { + projectName = val; } - bool operator == (const Airavata_searchProjectsByProjectDesc_args & rhs) const + bool operator == (const Airavata_searchProjectsByProjectName_args & rhs) const { if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; - if (!(description == rhs.description)) + if (!(projectName == rhs.projectName)) return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectDesc_args &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectName_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectDesc_args & ) const; + bool operator < (const Airavata_searchProjectsByProjectName_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -2771,42 +2819,42 @@ class Airavata_searchProjectsByProjectDesc_args { }; -class Airavata_searchProjectsByProjectDesc_pargs { +class Airavata_searchProjectsByProjectName_pargs { public: - virtual ~Airavata_searchProjectsByProjectDesc_pargs() throw() {} + virtual ~Airavata_searchProjectsByProjectName_pargs() throw() {} const std::string* gatewayId; const std::string* userName; - const std::string* description; + const std::string* projectName; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchProjectsByProjectDesc_result__isset { - _Airavata_searchProjectsByProjectDesc_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectName_result__isset { + _Airavata_searchProjectsByProjectName_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchProjectsByProjectDesc_result__isset; +} _Airavata_searchProjectsByProjectName_result__isset; -class Airavata_searchProjectsByProjectDesc_result { +class Airavata_searchProjectsByProjectName_result { public: - Airavata_searchProjectsByProjectDesc_result() { + Airavata_searchProjectsByProjectName_result() { } - virtual ~Airavata_searchProjectsByProjectDesc_result() throw() {} + virtual ~Airavata_searchProjectsByProjectName_result() throw() {} std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchProjectsByProjectDesc_result__isset __isset; + _Airavata_searchProjectsByProjectName_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val) { success = val; @@ -2824,7 +2872,7 @@ class Airavata_searchProjectsByProjectDesc_result { ase = val; } - bool operator == (const Airavata_searchProjectsByProjectDesc_result & rhs) const + bool operator == (const Airavata_searchProjectsByProjectName_result & rhs) const { if (!(success == rhs.success)) return false; @@ -2836,54 +2884,56 @@ class Airavata_searchProjectsByProjectDesc_result { return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectDesc_result &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectName_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectDesc_result & ) const; + bool operator < (const Airavata_searchProjectsByProjectName_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchProjectsByProjectDesc_presult__isset { - _Airavata_searchProjectsByProjectDesc_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectName_presult__isset { + _Airavata_searchProjectsByProjectName_presult__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchProjectsByProjectDesc_presult__isset; +} _Airavata_searchProjectsByProjectName_presult__isset; -class Airavata_searchProjectsByProjectDesc_presult { +class Airavata_searchProjectsByProjectName_presult { public: - virtual ~Airavata_searchProjectsByProjectDesc_presult() throw() {} + virtual ~Airavata_searchProjectsByProjectName_presult() throw() {} std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchProjectsByProjectDesc_presult__isset __isset; + _Airavata_searchProjectsByProjectName_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -class Airavata_searchExperimentsByName_args { +class Airavata_searchProjectsByProjectNameWithPagination_args { public: - Airavata_searchExperimentsByName_args() : gatewayId(), userName(), expName() { + Airavata_searchProjectsByProjectNameWithPagination_args() : gatewayId(), userName(), projectName(), limit(0), offset(0) { } - virtual ~Airavata_searchExperimentsByName_args() throw() {} + virtual ~Airavata_searchProjectsByProjectNameWithPagination_args() throw() {} std::string gatewayId; std::string userName; - std::string expName; + std::string projectName; + int32_t limit; + int32_t offset; void __set_gatewayId(const std::string& val) { gatewayId = val; @@ -2893,25 +2943,37 @@ class Airavata_searchExperimentsByName_args { userName = val; } - void __set_expName(const std::string& val) { - expName = val; + void __set_projectName(const std::string& val) { + projectName = val; } - bool operator == (const Airavata_searchExperimentsByName_args & rhs) const + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_searchProjectsByProjectNameWithPagination_args & rhs) const { if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; - if (!(expName == rhs.expName)) + if (!(projectName == rhs.projectName)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchExperimentsByName_args &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectNameWithPagination_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByName_args & ) const; + bool operator < (const Airavata_searchProjectsByProjectNameWithPagination_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -2919,44 +2981,46 @@ class Airavata_searchExperimentsByName_args { }; -class Airavata_searchExperimentsByName_pargs { +class Airavata_searchProjectsByProjectNameWithPagination_pargs { public: - virtual ~Airavata_searchExperimentsByName_pargs() throw() {} + virtual ~Airavata_searchProjectsByProjectNameWithPagination_pargs() throw() {} const std::string* gatewayId; const std::string* userName; - const std::string* expName; + const std::string* projectName; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByName_result__isset { - _Airavata_searchExperimentsByName_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectNameWithPagination_result__isset { + _Airavata_searchProjectsByProjectNameWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByName_result__isset; +} _Airavata_searchProjectsByProjectNameWithPagination_result__isset; -class Airavata_searchExperimentsByName_result { +class Airavata_searchProjectsByProjectNameWithPagination_result { public: - Airavata_searchExperimentsByName_result() { + Airavata_searchProjectsByProjectNameWithPagination_result() { } - virtual ~Airavata_searchExperimentsByName_result() throw() {} + virtual ~Airavata_searchProjectsByProjectNameWithPagination_result() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchExperimentsByName_result__isset __isset; + _Airavata_searchProjectsByProjectNameWithPagination_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val) { success = val; } @@ -2972,7 +3036,7 @@ class Airavata_searchExperimentsByName_result { ase = val; } - bool operator == (const Airavata_searchExperimentsByName_result & rhs) const + bool operator == (const Airavata_searchProjectsByProjectNameWithPagination_result & rhs) const { if (!(success == rhs.success)) return false; @@ -2984,50 +3048,50 @@ class Airavata_searchExperimentsByName_result { return false; return true; } - bool operator != (const Airavata_searchExperimentsByName_result &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectNameWithPagination_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByName_result & ) const; + bool operator < (const Airavata_searchProjectsByProjectNameWithPagination_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByName_presult__isset { - _Airavata_searchExperimentsByName_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectNameWithPagination_presult__isset { + _Airavata_searchProjectsByProjectNameWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByName_presult__isset; +} _Airavata_searchProjectsByProjectNameWithPagination_presult__isset; -class Airavata_searchExperimentsByName_presult { +class Airavata_searchProjectsByProjectNameWithPagination_presult { public: - virtual ~Airavata_searchExperimentsByName_presult() throw() {} + virtual ~Airavata_searchProjectsByProjectNameWithPagination_presult() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchExperimentsByName_presult__isset __isset; + _Airavata_searchProjectsByProjectNameWithPagination_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -class Airavata_searchExperimentsByDesc_args { +class Airavata_searchProjectsByProjectDesc_args { public: - Airavata_searchExperimentsByDesc_args() : gatewayId(), userName(), description() { + Airavata_searchProjectsByProjectDesc_args() : gatewayId(), userName(), description() { } - virtual ~Airavata_searchExperimentsByDesc_args() throw() {} + virtual ~Airavata_searchProjectsByProjectDesc_args() throw() {} std::string gatewayId; std::string userName; @@ -3045,7 +3109,7 @@ class Airavata_searchExperimentsByDesc_args { description = val; } - bool operator == (const Airavata_searchExperimentsByDesc_args & rhs) const + bool operator == (const Airavata_searchProjectsByProjectDesc_args & rhs) const { if (!(gatewayId == rhs.gatewayId)) return false; @@ -3055,11 +3119,11 @@ class Airavata_searchExperimentsByDesc_args { return false; return true; } - bool operator != (const Airavata_searchExperimentsByDesc_args &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectDesc_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByDesc_args & ) const; + bool operator < (const Airavata_searchProjectsByProjectDesc_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3067,11 +3131,11 @@ class Airavata_searchExperimentsByDesc_args { }; -class Airavata_searchExperimentsByDesc_pargs { +class Airavata_searchProjectsByProjectDesc_pargs { public: - virtual ~Airavata_searchExperimentsByDesc_pargs() throw() {} + virtual ~Airavata_searchProjectsByProjectDesc_pargs() throw() {} const std::string* gatewayId; const std::string* userName; @@ -3081,30 +3145,30 @@ class Airavata_searchExperimentsByDesc_pargs { }; -typedef struct _Airavata_searchExperimentsByDesc_result__isset { - _Airavata_searchExperimentsByDesc_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectDesc_result__isset { + _Airavata_searchProjectsByProjectDesc_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByDesc_result__isset; +} _Airavata_searchProjectsByProjectDesc_result__isset; -class Airavata_searchExperimentsByDesc_result { +class Airavata_searchProjectsByProjectDesc_result { public: - Airavata_searchExperimentsByDesc_result() { + Airavata_searchProjectsByProjectDesc_result() { } - virtual ~Airavata_searchExperimentsByDesc_result() throw() {} + virtual ~Airavata_searchProjectsByProjectDesc_result() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchExperimentsByDesc_result__isset __isset; + _Airavata_searchProjectsByProjectDesc_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val) { success = val; } @@ -3120,7 +3184,7 @@ class Airavata_searchExperimentsByDesc_result { ase = val; } - bool operator == (const Airavata_searchExperimentsByDesc_result & rhs) const + bool operator == (const Airavata_searchProjectsByProjectDesc_result & rhs) const { if (!(success == rhs.success)) return false; @@ -3132,54 +3196,56 @@ class Airavata_searchExperimentsByDesc_result { return false; return true; } - bool operator != (const Airavata_searchExperimentsByDesc_result &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectDesc_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByDesc_result & ) const; + bool operator < (const Airavata_searchProjectsByProjectDesc_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByDesc_presult__isset { - _Airavata_searchExperimentsByDesc_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectDesc_presult__isset { + _Airavata_searchProjectsByProjectDesc_presult__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByDesc_presult__isset; +} _Airavata_searchProjectsByProjectDesc_presult__isset; -class Airavata_searchExperimentsByDesc_presult { +class Airavata_searchProjectsByProjectDesc_presult { public: - virtual ~Airavata_searchExperimentsByDesc_presult() throw() {} + virtual ~Airavata_searchProjectsByProjectDesc_presult() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchExperimentsByDesc_presult__isset __isset; + _Airavata_searchProjectsByProjectDesc_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -class Airavata_searchExperimentsByApplication_args { +class Airavata_searchProjectsByProjectDescWithPagination_args { public: - Airavata_searchExperimentsByApplication_args() : gatewayId(), userName(), applicationId() { + Airavata_searchProjectsByProjectDescWithPagination_args() : gatewayId(), userName(), description(), limit(0), offset(0) { } - virtual ~Airavata_searchExperimentsByApplication_args() throw() {} + virtual ~Airavata_searchProjectsByProjectDescWithPagination_args() throw() {} std::string gatewayId; std::string userName; - std::string applicationId; + std::string description; + int32_t limit; + int32_t offset; void __set_gatewayId(const std::string& val) { gatewayId = val; @@ -3189,25 +3255,37 @@ class Airavata_searchExperimentsByApplication_args { userName = val; } - void __set_applicationId(const std::string& val) { - applicationId = val; + void __set_description(const std::string& val) { + description = val; } - bool operator == (const Airavata_searchExperimentsByApplication_args & rhs) const + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_searchProjectsByProjectDescWithPagination_args & rhs) const { if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; - if (!(applicationId == rhs.applicationId)) + if (!(description == rhs.description)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchExperimentsByApplication_args &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectDescWithPagination_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByApplication_args & ) const; + bool operator < (const Airavata_searchProjectsByProjectDescWithPagination_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3215,44 +3293,46 @@ class Airavata_searchExperimentsByApplication_args { }; -class Airavata_searchExperimentsByApplication_pargs { +class Airavata_searchProjectsByProjectDescWithPagination_pargs { public: - virtual ~Airavata_searchExperimentsByApplication_pargs() throw() {} + virtual ~Airavata_searchProjectsByProjectDescWithPagination_pargs() throw() {} const std::string* gatewayId; const std::string* userName; - const std::string* applicationId; + const std::string* description; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByApplication_result__isset { - _Airavata_searchExperimentsByApplication_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectDescWithPagination_result__isset { + _Airavata_searchProjectsByProjectDescWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByApplication_result__isset; +} _Airavata_searchProjectsByProjectDescWithPagination_result__isset; -class Airavata_searchExperimentsByApplication_result { +class Airavata_searchProjectsByProjectDescWithPagination_result { public: - Airavata_searchExperimentsByApplication_result() { + Airavata_searchProjectsByProjectDescWithPagination_result() { } - virtual ~Airavata_searchExperimentsByApplication_result() throw() {} + virtual ~Airavata_searchProjectsByProjectDescWithPagination_result() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchExperimentsByApplication_result__isset __isset; + _Airavata_searchProjectsByProjectDescWithPagination_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val) { success = val; } @@ -3268,7 +3348,7 @@ class Airavata_searchExperimentsByApplication_result { ase = val; } - bool operator == (const Airavata_searchExperimentsByApplication_result & rhs) const + bool operator == (const Airavata_searchProjectsByProjectDescWithPagination_result & rhs) const { if (!(success == rhs.success)) return false; @@ -3280,37 +3360,973 @@ class Airavata_searchExperimentsByApplication_result { return false; return true; } - bool operator != (const Airavata_searchExperimentsByApplication_result &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectDescWithPagination_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByApplication_result & ) const; + bool operator < (const Airavata_searchProjectsByProjectDescWithPagination_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByApplication_presult__isset { - _Airavata_searchExperimentsByApplication_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectDescWithPagination_presult__isset { + _Airavata_searchProjectsByProjectDescWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByApplication_presult__isset; +} _Airavata_searchProjectsByProjectDescWithPagination_presult__isset; -class Airavata_searchExperimentsByApplication_presult { +class Airavata_searchProjectsByProjectDescWithPagination_presult { public: - virtual ~Airavata_searchExperimentsByApplication_presult() throw() {} + virtual ~Airavata_searchProjectsByProjectDescWithPagination_presult() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchExperimentsByApplication_presult__isset __isset; + _Airavata_searchProjectsByProjectDescWithPagination_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByName_args { + public: + + Airavata_searchExperimentsByName_args() : gatewayId(), userName(), expName() { + } + + virtual ~Airavata_searchExperimentsByName_args() throw() {} + + std::string gatewayId; + std::string userName; + std::string expName; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_expName(const std::string& val) { + expName = val; + } + + bool operator == (const Airavata_searchExperimentsByName_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(expName == rhs.expName)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByName_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByName_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByName_pargs { + public: + + + virtual ~Airavata_searchExperimentsByName_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const std::string* expName; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByName_result__isset { + _Airavata_searchExperimentsByName_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByName_result__isset; + +class Airavata_searchExperimentsByName_result { + public: + + Airavata_searchExperimentsByName_result() { + } + + virtual ~Airavata_searchExperimentsByName_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByName_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByName_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByName_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByName_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByName_presult__isset { + _Airavata_searchExperimentsByName_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByName_presult__isset; + +class Airavata_searchExperimentsByName_presult { + public: + + + virtual ~Airavata_searchExperimentsByName_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByName_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByNameWithPagination_args { + public: + + Airavata_searchExperimentsByNameWithPagination_args() : gatewayId(), userName(), expName(), limit(0), offset(0) { + } + + virtual ~Airavata_searchExperimentsByNameWithPagination_args() throw() {} + + std::string gatewayId; + std::string userName; + std::string expName; + int32_t limit; + int32_t offset; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_expName(const std::string& val) { + expName = val; + } + + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_searchExperimentsByNameWithPagination_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(expName == rhs.expName)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByNameWithPagination_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByNameWithPagination_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByNameWithPagination_pargs { + public: + + + virtual ~Airavata_searchExperimentsByNameWithPagination_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const std::string* expName; + const int32_t* limit; + const int32_t* offset; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByNameWithPagination_result__isset { + _Airavata_searchExperimentsByNameWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByNameWithPagination_result__isset; + +class Airavata_searchExperimentsByNameWithPagination_result { + public: + + Airavata_searchExperimentsByNameWithPagination_result() { + } + + virtual ~Airavata_searchExperimentsByNameWithPagination_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByNameWithPagination_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByNameWithPagination_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByNameWithPagination_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByNameWithPagination_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByNameWithPagination_presult__isset { + _Airavata_searchExperimentsByNameWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByNameWithPagination_presult__isset; + +class Airavata_searchExperimentsByNameWithPagination_presult { + public: + + + virtual ~Airavata_searchExperimentsByNameWithPagination_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByNameWithPagination_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByDesc_args { + public: + + Airavata_searchExperimentsByDesc_args() : gatewayId(), userName(), description() { + } + + virtual ~Airavata_searchExperimentsByDesc_args() throw() {} + + std::string gatewayId; + std::string userName; + std::string description; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_description(const std::string& val) { + description = val; + } + + bool operator == (const Airavata_searchExperimentsByDesc_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(description == rhs.description)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByDesc_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByDesc_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByDesc_pargs { + public: + + + virtual ~Airavata_searchExperimentsByDesc_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const std::string* description; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByDesc_result__isset { + _Airavata_searchExperimentsByDesc_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByDesc_result__isset; + +class Airavata_searchExperimentsByDesc_result { + public: + + Airavata_searchExperimentsByDesc_result() { + } + + virtual ~Airavata_searchExperimentsByDesc_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByDesc_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByDesc_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByDesc_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByDesc_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByDesc_presult__isset { + _Airavata_searchExperimentsByDesc_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByDesc_presult__isset; + +class Airavata_searchExperimentsByDesc_presult { + public: + + + virtual ~Airavata_searchExperimentsByDesc_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByDesc_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByDescWithPagination_args { + public: + + Airavata_searchExperimentsByDescWithPagination_args() : gatewayId(), userName(), description(), limit(0), offset(0) { + } + + virtual ~Airavata_searchExperimentsByDescWithPagination_args() throw() {} + + std::string gatewayId; + std::string userName; + std::string description; + int32_t limit; + int32_t offset; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_description(const std::string& val) { + description = val; + } + + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_searchExperimentsByDescWithPagination_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(description == rhs.description)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByDescWithPagination_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByDescWithPagination_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByDescWithPagination_pargs { + public: + + + virtual ~Airavata_searchExperimentsByDescWithPagination_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const std::string* description; + const int32_t* limit; + const int32_t* offset; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByDescWithPagination_result__isset { + _Airavata_searchExperimentsByDescWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByDescWithPagination_result__isset; + +class Airavata_searchExperimentsByDescWithPagination_result { + public: + + Airavata_searchExperimentsByDescWithPagination_result() { + } + + virtual ~Airavata_searchExperimentsByDescWithPagination_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByDescWithPagination_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByDescWithPagination_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByDescWithPagination_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByDescWithPagination_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByDescWithPagination_presult__isset { + _Airavata_searchExperimentsByDescWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByDescWithPagination_presult__isset; + +class Airavata_searchExperimentsByDescWithPagination_presult { + public: + + + virtual ~Airavata_searchExperimentsByDescWithPagination_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByDescWithPagination_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByApplication_args { + public: + + Airavata_searchExperimentsByApplication_args() : gatewayId(), userName(), applicationId() { + } + + virtual ~Airavata_searchExperimentsByApplication_args() throw() {} + + std::string gatewayId; + std::string userName; + std::string applicationId; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_applicationId(const std::string& val) { + applicationId = val; + } + + bool operator == (const Airavata_searchExperimentsByApplication_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(applicationId == rhs.applicationId)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByApplication_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByApplication_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByApplication_pargs { + public: + + + virtual ~Airavata_searchExperimentsByApplication_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const std::string* applicationId; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByApplication_result__isset { + _Airavata_searchExperimentsByApplication_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByApplication_result__isset; + +class Airavata_searchExperimentsByApplication_result { + public: + + Airavata_searchExperimentsByApplication_result() { + } + + virtual ~Airavata_searchExperimentsByApplication_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByApplication_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByApplication_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByApplication_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByApplication_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByApplication_presult__isset { + _Airavata_searchExperimentsByApplication_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByApplication_presult__isset; + +class Airavata_searchExperimentsByApplication_presult { + public: + + + virtual ~Airavata_searchExperimentsByApplication_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByApplication_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByApplicationWithPagination_args { + public: + + Airavata_searchExperimentsByApplicationWithPagination_args() : gatewayId(), userName(), applicationId(), limit(0), offset(0) { + } + + virtual ~Airavata_searchExperimentsByApplicationWithPagination_args() throw() {} + + std::string gatewayId; + std::string userName; + std::string applicationId; + int32_t limit; + int32_t offset; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_applicationId(const std::string& val) { + applicationId = val; + } + + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_searchExperimentsByApplicationWithPagination_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(applicationId == rhs.applicationId)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByApplicationWithPagination_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByApplicationWithPagination_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByApplicationWithPagination_pargs { + public: + + + virtual ~Airavata_searchExperimentsByApplicationWithPagination_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const std::string* applicationId; + const int32_t* limit; + const int32_t* offset; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByApplicationWithPagination_result__isset { + _Airavata_searchExperimentsByApplicationWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByApplicationWithPagination_result__isset; + +class Airavata_searchExperimentsByApplicationWithPagination_result { + public: + + Airavata_searchExperimentsByApplicationWithPagination_result() { + } + + virtual ~Airavata_searchExperimentsByApplicationWithPagination_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByApplicationWithPagination_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByApplicationWithPagination_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByApplicationWithPagination_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByApplicationWithPagination_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByApplicationWithPagination_presult__isset { + _Airavata_searchExperimentsByApplicationWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByApplicationWithPagination_presult__isset; + +class Airavata_searchExperimentsByApplicationWithPagination_presult { + public: + + + virtual ~Airavata_searchExperimentsByApplicationWithPagination_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByApplicationWithPagination_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); @@ -3320,14 +4336,485 @@ class Airavata_searchExperimentsByApplication_presult { class Airavata_searchExperimentsByStatus_args { public: - Airavata_searchExperimentsByStatus_args() : gatewayId(), userName(), experimentState(( ::apache::airavata::model::workspace::experiment::ExperimentState::type)0) { + Airavata_searchExperimentsByStatus_args() : gatewayId(), userName(), experimentState(( ::apache::airavata::model::workspace::experiment::ExperimentState::type)0) { + } + + virtual ~Airavata_searchExperimentsByStatus_args() throw() {} + + std::string gatewayId; + std::string userName; + ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_experimentState(const ::apache::airavata::model::workspace::experiment::ExperimentState::type val) { + experimentState = val; + } + + bool operator == (const Airavata_searchExperimentsByStatus_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(experimentState == rhs.experimentState)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByStatus_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByStatus_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByStatus_pargs { + public: + + + virtual ~Airavata_searchExperimentsByStatus_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const ::apache::airavata::model::workspace::experiment::ExperimentState::type* experimentState; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByStatus_result__isset { + _Airavata_searchExperimentsByStatus_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByStatus_result__isset; + +class Airavata_searchExperimentsByStatus_result { + public: + + Airavata_searchExperimentsByStatus_result() { + } + + virtual ~Airavata_searchExperimentsByStatus_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByStatus_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByStatus_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByStatus_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByStatus_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByStatus_presult__isset { + _Airavata_searchExperimentsByStatus_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByStatus_presult__isset; + +class Airavata_searchExperimentsByStatus_presult { + public: + + + virtual ~Airavata_searchExperimentsByStatus_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByStatus_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByStatusWithPagination_args { + public: + + Airavata_searchExperimentsByStatusWithPagination_args() : gatewayId(), userName(), experimentState(( ::apache::airavata::model::workspace::experiment::ExperimentState::type)0), limit(0), offset(0) { + } + + virtual ~Airavata_searchExperimentsByStatusWithPagination_args() throw() {} + + std::string gatewayId; + std::string userName; + ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState; + int32_t limit; + int32_t offset; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_experimentState(const ::apache::airavata::model::workspace::experiment::ExperimentState::type val) { + experimentState = val; + } + + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_searchExperimentsByStatusWithPagination_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(experimentState == rhs.experimentState)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByStatusWithPagination_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByStatusWithPagination_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByStatusWithPagination_pargs { + public: + + + virtual ~Airavata_searchExperimentsByStatusWithPagination_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const ::apache::airavata::model::workspace::experiment::ExperimentState::type* experimentState; + const int32_t* limit; + const int32_t* offset; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByStatusWithPagination_result__isset { + _Airavata_searchExperimentsByStatusWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByStatusWithPagination_result__isset; + +class Airavata_searchExperimentsByStatusWithPagination_result { + public: + + Airavata_searchExperimentsByStatusWithPagination_result() { + } + + virtual ~Airavata_searchExperimentsByStatusWithPagination_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByStatusWithPagination_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByStatusWithPagination_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByStatusWithPagination_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByStatusWithPagination_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByStatusWithPagination_presult__isset { + _Airavata_searchExperimentsByStatusWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByStatusWithPagination_presult__isset; + +class Airavata_searchExperimentsByStatusWithPagination_presult { + public: + + + virtual ~Airavata_searchExperimentsByStatusWithPagination_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByStatusWithPagination_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByCreationTime_args { + public: + + Airavata_searchExperimentsByCreationTime_args() : gatewayId(), userName(), fromTime(0), toTime(0) { + } + + virtual ~Airavata_searchExperimentsByCreationTime_args() throw() {} + + std::string gatewayId; + std::string userName; + int64_t fromTime; + int64_t toTime; + + void __set_gatewayId(const std::string& val) { + gatewayId = val; + } + + void __set_userName(const std::string& val) { + userName = val; + } + + void __set_fromTime(const int64_t val) { + fromTime = val; + } + + void __set_toTime(const int64_t val) { + toTime = val; + } + + bool operator == (const Airavata_searchExperimentsByCreationTime_args & rhs) const + { + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(fromTime == rhs.fromTime)) + return false; + if (!(toTime == rhs.toTime)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByCreationTime_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByCreationTime_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_searchExperimentsByCreationTime_pargs { + public: + + + virtual ~Airavata_searchExperimentsByCreationTime_pargs() throw() {} + + const std::string* gatewayId; + const std::string* userName; + const int64_t* fromTime; + const int64_t* toTime; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByCreationTime_result__isset { + _Airavata_searchExperimentsByCreationTime_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByCreationTime_result__isset; + +class Airavata_searchExperimentsByCreationTime_result { + public: + + Airavata_searchExperimentsByCreationTime_result() { + } + + virtual ~Airavata_searchExperimentsByCreationTime_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByCreationTime_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + bool operator == (const Airavata_searchExperimentsByCreationTime_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_searchExperimentsByCreationTime_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_searchExperimentsByCreationTime_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_searchExperimentsByCreationTime_presult__isset { + _Airavata_searchExperimentsByCreationTime_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByCreationTime_presult__isset; + +class Airavata_searchExperimentsByCreationTime_presult { + public: + + + virtual ~Airavata_searchExperimentsByCreationTime_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByCreationTime_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_searchExperimentsByCreationTimeWithPagination_args { + public: + + Airavata_searchExperimentsByCreationTimeWithPagination_args() : gatewayId(), userName(), fromTime(0), toTime(0), limit(0), offset(0) { } - virtual ~Airavata_searchExperimentsByStatus_args() throw() {} + virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_args() throw() {} std::string gatewayId; std::string userName; - ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState; + int64_t fromTime; + int64_t toTime; + int32_t limit; + int32_t offset; void __set_gatewayId(const std::string& val) { gatewayId = val; @@ -3337,25 +4824,43 @@ class Airavata_searchExperimentsByStatus_args { userName = val; } - void __set_experimentState(const ::apache::airavata::model::workspace::experiment::ExperimentState::type val) { - experimentState = val; + void __set_fromTime(const int64_t val) { + fromTime = val; } - bool operator == (const Airavata_searchExperimentsByStatus_args & rhs) const + void __set_toTime(const int64_t val) { + toTime = val; + } + + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_searchExperimentsByCreationTimeWithPagination_args & rhs) const { if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; - if (!(experimentState == rhs.experimentState)) + if (!(fromTime == rhs.fromTime)) + return false; + if (!(toTime == rhs.toTime)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchExperimentsByStatus_args &rhs) const { + bool operator != (const Airavata_searchExperimentsByCreationTimeWithPagination_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByStatus_args & ) const; + bool operator < (const Airavata_searchExperimentsByCreationTimeWithPagination_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3363,42 +4868,45 @@ class Airavata_searchExperimentsByStatus_args { }; -class Airavata_searchExperimentsByStatus_pargs { +class Airavata_searchExperimentsByCreationTimeWithPagination_pargs { public: - virtual ~Airavata_searchExperimentsByStatus_pargs() throw() {} + virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_pargs() throw() {} const std::string* gatewayId; const std::string* userName; - const ::apache::airavata::model::workspace::experiment::ExperimentState::type* experimentState; + const int64_t* fromTime; + const int64_t* toTime; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByStatus_result__isset { - _Airavata_searchExperimentsByStatus_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset { + _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByStatus_result__isset; +} _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset; -class Airavata_searchExperimentsByStatus_result { +class Airavata_searchExperimentsByCreationTimeWithPagination_result { public: - Airavata_searchExperimentsByStatus_result() { + Airavata_searchExperimentsByCreationTimeWithPagination_result() { } - virtual ~Airavata_searchExperimentsByStatus_result() throw() {} + virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_result() throw() {} std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_searchExperimentsByStatus_result__isset __isset; + _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { success = val; @@ -3416,7 +4924,7 @@ class Airavata_searchExperimentsByStatus_result { ase = val; } - bool operator == (const Airavata_searchExperimentsByStatus_result & rhs) const + bool operator == (const Airavata_searchExperimentsByCreationTimeWithPagination_result & rhs) const { if (!(success == rhs.success)) return false; @@ -3428,89 +4936,224 @@ class Airavata_searchExperimentsByStatus_result { return false; return true; } - bool operator != (const Airavata_searchExperimentsByStatus_result &rhs) const { + bool operator != (const Airavata_searchExperimentsByCreationTimeWithPagination_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByStatus_result & ) const; + bool operator < (const Airavata_searchExperimentsByCreationTimeWithPagination_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByStatus_presult__isset { - _Airavata_searchExperimentsByStatus_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset { + _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success; + bool ire; + bool ace; + bool ase; +} _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset; + +class Airavata_searchExperimentsByCreationTimeWithPagination_presult { + public: + + + virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_presult() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + + +class Airavata_getAllExperimentsInProject_args { + public: + + Airavata_getAllExperimentsInProject_args() : projectId() { + } + + virtual ~Airavata_getAllExperimentsInProject_args() throw() {} + + std::string projectId; + + void __set_projectId(const std::string& val) { + projectId = val; + } + + bool operator == (const Airavata_getAllExperimentsInProject_args & rhs) const + { + if (!(projectId == rhs.projectId)) + return false; + return true; + } + bool operator != (const Airavata_getAllExperimentsInProject_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_getAllExperimentsInProject_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class Airavata_getAllExperimentsInProject_pargs { + public: + + + virtual ~Airavata_getAllExperimentsInProject_pargs() throw() {} + + const std::string* projectId; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_getAllExperimentsInProject_result__isset { + _Airavata_getAllExperimentsInProject_result__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} + bool success; + bool ire; + bool ace; + bool ase; + bool pnfe; +} _Airavata_getAllExperimentsInProject_result__isset; + +class Airavata_getAllExperimentsInProject_result { + public: + + Airavata_getAllExperimentsInProject_result() { + } + + virtual ~Airavata_getAllExperimentsInProject_result() throw() {} + + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::ProjectNotFoundException pnfe; + + _Airavata_getAllExperimentsInProject_result__isset __isset; + + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & val) { + success = val; + } + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val) { + ire = val; + } + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val) { + ace = val; + } + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val) { + ase = val; + } + + void __set_pnfe(const ::apache::airavata::api::error::ProjectNotFoundException& val) { + pnfe = val; + } + + bool operator == (const Airavata_getAllExperimentsInProject_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + if (!(pnfe == rhs.pnfe)) + return false; + return true; + } + bool operator != (const Airavata_getAllExperimentsInProject_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_getAllExperimentsInProject_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _Airavata_getAllExperimentsInProject_presult__isset { + _Airavata_getAllExperimentsInProject_presult__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByStatus_presult__isset; + bool pnfe; +} _Airavata_getAllExperimentsInProject_presult__isset; -class Airavata_searchExperimentsByStatus_presult { +class Airavata_getAllExperimentsInProject_presult { public: - virtual ~Airavata_searchExperimentsByStatus_presult() throw() {} + virtual ~Airavata_getAllExperimentsInProject_presult() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::ProjectNotFoundException pnfe; - _Airavata_searchExperimentsByStatus_presult__isset __isset; + _Airavata_getAllExperimentsInProject_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -class Airavata_searchExperimentsByCreationTime_args { +class Airavata_getAllExperimentsInProjectWithPagination_args { public: - Airavata_searchExperimentsByCreationTime_args() : gatewayId(), userName(), fromTime(0), toTime(0) { + Airavata_getAllExperimentsInProjectWithPagination_args() : projectId(), limit(0), offset(0) { } - virtual ~Airavata_searchExperimentsByCreationTime_args() throw() {} - - std::string gatewayId; - std::string userName; - int64_t fromTime; - int64_t toTime; + virtual ~Airavata_getAllExperimentsInProjectWithPagination_args() throw() {} - void __set_gatewayId(const std::string& val) { - gatewayId = val; - } + std::string projectId; + int32_t limit; + int32_t offset; - void __set_userName(const std::string& val) { - userName = val; + void __set_projectId(const std::string& val) { + projectId = val; } - void __set_fromTime(const int64_t val) { - fromTime = val; + void __set_limit(const int32_t val) { + limit = val; } - void __set_toTime(const int64_t val) { - toTime = val; + void __set_offset(const int32_t val) { + offset = val; } - bool operator == (const Airavata_searchExperimentsByCreationTime_args & rhs) const + bool operator == (const Airavata_getAllExperimentsInProjectWithPagination_args & rhs) const { - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) + if (!(projectId == rhs.projectId)) return false; - if (!(fromTime == rhs.fromTime)) + if (!(limit == rhs.limit)) return false; - if (!(toTime == rhs.toTime)) + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchExperimentsByCreationTime_args &rhs) const { + bool operator != (const Airavata_getAllExperimentsInProjectWithPagination_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByCreationTime_args & ) const; + bool operator < (const Airavata_getAllExperimentsInProjectWithPagination_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3518,45 +5161,46 @@ class Airavata_searchExperimentsByCreationTime_args { }; -class Airavata_searchExperimentsByCreationTime_pargs { +class Airavata_getAllExperimentsInProjectWithPagination_pargs { public: - virtual ~Airavata_searchExperimentsByCreationTime_pargs() throw() {} + virtual ~Airavata_getAllExperimentsInProjectWithPagination_pargs() throw() {} - const std::string* gatewayId; - const std::string* userName; - const int64_t* fromTime; - const int64_t* toTime; + const std::string* projectId; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByCreationTime_result__isset { - _Airavata_searchExperimentsByCreationTime_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getAllExperimentsInProjectWithPagination_result__isset { + _Airavata_getAllExperimentsInProjectWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByCreationTime_result__isset; + bool pnfe; +} _Airavata_getAllExperimentsInProjectWithPagination_result__isset; -class Airavata_searchExperimentsByCreationTime_result { +class Airavata_getAllExperimentsInProjectWithPagination_result { public: - Airavata_searchExperimentsByCreationTime_result() { + Airavata_getAllExperimentsInProjectWithPagination_result() { } - virtual ~Airavata_searchExperimentsByCreationTime_result() throw() {} + virtual ~Airavata_getAllExperimentsInProjectWithPagination_result() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> success; + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::ProjectNotFoundException pnfe; - _Airavata_searchExperimentsByCreationTime_result__isset __isset; + _Airavata_getAllExperimentsInProjectWithPagination_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & val) { + void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & val) { success = val; } @@ -3572,7 +5216,11 @@ class Airavata_searchExperimentsByCreationTime_result { ase = val; } - bool operator == (const Airavata_searchExperimentsByCreationTime_result & rhs) const + void __set_pnfe(const ::apache::airavata::api::error::ProjectNotFoundException& val) { + pnfe = val; + } + + bool operator == (const Airavata_getAllExperimentsInProjectWithPagination_result & rhs) const { if (!(success == rhs.success)) return false; @@ -3582,70 +5230,81 @@ class Airavata_searchExperimentsByCreationTime_result { return false; if (!(ase == rhs.ase)) return false; + if (!(pnfe == rhs.pnfe)) + return false; return true; } - bool operator != (const Airavata_searchExperimentsByCreationTime_result &rhs) const { + bool operator != (const Airavata_getAllExperimentsInProjectWithPagination_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByCreationTime_result & ) const; + bool operator < (const Airavata_getAllExperimentsInProjectWithPagination_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_searchExperimentsByCreationTime_presult__isset { - _Airavata_searchExperimentsByCreationTime_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getAllExperimentsInProjectWithPagination_presult__isset { + _Airavata_getAllExperimentsInProjectWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_searchExperimentsByCreationTime_presult__isset; + bool pnfe; +} _Airavata_getAllExperimentsInProjectWithPagination_presult__isset; -class Airavata_searchExperimentsByCreationTime_presult { +class Airavata_getAllExperimentsInProjectWithPagination_presult { public: - virtual ~Airavata_searchExperimentsByCreationTime_presult() throw() {} + virtual ~Airavata_getAllExperimentsInProjectWithPagination_presult() throw() {} - std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> * success; + std::vector< ::apache::airavata::model::workspace::experiment::Experiment> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::ProjectNotFoundException pnfe; - _Airavata_searchExperimentsByCreationTime_presult__isset __isset; + _Airavata_getAllExperimentsInProjectWithPagination_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -class Airavata_getAllExperimentsInProject_args { +class Airavata_getAllUserExperiments_args { public: - Airavata_getAllExperimentsInProject_args() : projectId() { + Airavata_getAllUserExperiments_args() : gatewayId(), userName() { } - virtual ~Airavata_getAllExperimentsInProject_args() throw() {} + virtual ~Airavata_getAllUserExperiments_args() throw() {} - std::string projectId; + std::string gatewayId; + std::string userName; - void __set_projectId(const std::string& val) { - projectId = val; + void __set_gatewayId(const std::string& val) { + gatewayId = val; } - bool operator == (const Airavata_getAllExperimentsInProject_args & rhs) const + void __set_userName(const std::string& val) { + userName = val; + } + + bool operator == (const Airavata_getAllUserExperiments_args & rhs) const { - if (!(projectId == rhs.projectId)) + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) return false; return true; } - bool operator != (const Airavata_getAllExperimentsInProject_args &rhs) const { + bool operator != (const Airavata_getAllUserExperiments_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllExperimentsInProject_args & ) const; + bool operator < (const Airavata_getAllUserExperiments_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3653,42 +5312,41 @@ class Airavata_getAllExperimentsInProject_args { }; -class Airavata_getAllExperimentsInProject_pargs { +class Airavata_getAllUserExperiments_pargs { public: - virtual ~Airavata_getAllExperimentsInProject_pargs() throw() {} + virtual ~Airavata_getAllUserExperiments_pargs() throw() {} - const std::string* projectId; + const std::string* gatewayId; + const std::string* userName; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_getAllExperimentsInProject_result__isset { - _Airavata_getAllExperimentsInProject_result__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} +typedef struct _Airavata_getAllUserExperiments_result__isset { + _Airavata_getAllUserExperiments_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; - bool pnfe; -} _Airavata_getAllExperimentsInProject_result__isset; +} _Airavata_getAllUserExperiments_result__isset; -class Airavata_getAllExperimentsInProject_result { +class Airavata_getAllUserExperiments_result { public: - Airavata_getAllExperimentsInProject_result() { + Airavata_getAllUserExperiments_result() { } - virtual ~Airavata_getAllExperimentsInProject_result() throw() {} + virtual ~Airavata_getAllUserExperiments_result() throw() {} std::vector< ::apache::airavata::model::workspace::experiment::Experiment> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::ProjectNotFoundException pnfe; - _Airavata_getAllExperimentsInProject_result__isset __isset; + _Airavata_getAllUserExperiments_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & val) { success = val; @@ -3706,11 +5364,7 @@ class Airavata_getAllExperimentsInProject_result { ase = val; } - void __set_pnfe(const ::apache::airavata::api::error::ProjectNotFoundException& val) { - pnfe = val; - } - - bool operator == (const Airavata_getAllExperimentsInProject_result & rhs) const + bool operator == (const Airavata_getAllUserExperiments_result & rhs) const { if (!(success == rhs.success)) return false; @@ -3720,59 +5374,57 @@ class Airavata_getAllExperimentsInProject_result { return false; if (!(ase == rhs.ase)) return false; - if (!(pnfe == rhs.pnfe)) - return false; return true; } - bool operator != (const Airavata_getAllExperimentsInProject_result &rhs) const { + bool operator != (const Airavata_getAllUserExperiments_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllExperimentsInProject_result & ) const; + bool operator < (const Airavata_getAllUserExperiments_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_getAllExperimentsInProject_presult__isset { - _Airavata_getAllExperimentsInProject_presult__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} +typedef struct _Airavata_getAllUserExperiments_presult__isset { + _Airavata_getAllUserExperiments_presult__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; - bool pnfe; -} _Airavata_getAllExperimentsInProject_presult__isset; +} _Airavata_getAllUserExperiments_presult__isset; -class Airavata_getAllExperimentsInProject_presult { +class Airavata_getAllUserExperiments_presult { public: - virtual ~Airavata_getAllExperimentsInProject_presult() throw() {} + virtual ~Airavata_getAllUserExperiments_presult() throw() {} std::vector< ::apache::airavata::model::workspace::experiment::Experiment> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::ProjectNotFoundException pnfe; - _Airavata_getAllExperimentsInProject_presult__isset __isset; + _Airavata_getAllUserExperiments_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -class Airavata_getAllUserExperiments_args { +class Airavata_getAllUserExperimentsWithPagination_args { public: - Airavata_getAllUserExperiments_args() : gatewayId(), userName() { + Airavata_getAllUserExperimentsWithPagination_args() : gatewayId(), userName(), limit(0), offset(0) { } - virtual ~Airavata_getAllUserExperiments_args() throw() {} + virtual ~Airavata_getAllUserExperimentsWithPagination_args() throw() {} std::string gatewayId; std::string userName; + int32_t limit; + int32_t offset; void __set_gatewayId(const std::string& val) { gatewayId = val; @@ -3782,19 +5434,31 @@ class Airavata_getAllUserExperiments_args { userName = val; } - bool operator == (const Airavata_getAllUserExperiments_args & rhs) const + void __set_limit(const int32_t val) { + limit = val; + } + + void __set_offset(const int32_t val) { + offset = val; + } + + bool operator == (const Airavata_getAllUserExperimentsWithPagination_args & rhs) const { if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) + return false; return true; } - bool operator != (const Airavata_getAllUserExperiments_args &rhs) const { + bool operator != (const Airavata_getAllUserExperimentsWithPagination_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserExperiments_args & ) const; + bool operator < (const Airavata_getAllUserExperimentsWithPagination_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3802,41 +5466,43 @@ class Airavata_getAllUserExperiments_args { }; -class Airavata_getAllUserExperiments_pargs { +class Airavata_getAllUserExperimentsWithPagination_pargs { public: - virtual ~Airavata_getAllUserExperiments_pargs() throw() {} + virtual ~Airavata_getAllUserExperimentsWithPagination_pargs() throw() {} const std::string* gatewayId; const std::string* userName; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_getAllUserExperiments_result__isset { - _Airavata_getAllUserExperiments_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getAllUserExperimentsWithPagination_result__isset { + _Airavata_getAllUserExperimentsWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_getAllUserExperiments_result__isset; +} _Airavata_getAllUserExperimentsWithPagination_result__isset; -class Airavata_getAllUserExperiments_result { +class Airavata_getAllUserExperimentsWithPagination_result { public: - Airavata_getAllUserExperiments_result() { + Airavata_getAllUserExperimentsWithPagination_result() { } - virtual ~Airavata_getAllUserExperiments_result() throw() {} + virtual ~Airavata_getAllUserExperimentsWithPagination_result() throw() {} std::vector< ::apache::airavata::model::workspace::experiment::Experiment> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_getAllUserExperiments_result__isset __isset; + _Airavata_getAllUserExperimentsWithPagination_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & val) { success = val; @@ -3854,7 +5520,7 @@ class Airavata_getAllUserExperiments_result { ase = val; } - bool operator == (const Airavata_getAllUserExperiments_result & rhs) const + bool operator == (const Airavata_getAllUserExperimentsWithPagination_result & rhs) const { if (!(success == rhs.success)) return false; @@ -3866,37 +5532,37 @@ class Airavata_getAllUserExperiments_result { return false; return true; } - bool operator != (const Airavata_getAllUserExperiments_result &rhs) const { + bool operator != (const Airavata_getAllUserExperimentsWithPagination_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserExperiments_result & ) const; + bool operator < (const Airavata_getAllUserExperimentsWithPagination_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _Airavata_getAllUserExperiments_presult__isset { - _Airavata_getAllUserExperiments_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getAllUserExperimentsWithPagination_presult__isset { + _Airavata_getAllUserExperimentsWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false) {} bool success; bool ire; bool ace; bool ase; -} _Airavata_getAllUserExperiments_presult__isset; +} _Airavata_getAllUserExperimentsWithPagination_presult__isset; -class Airavata_getAllUserExperiments_presult { +class Airavata_getAllUserExperimentsWithPagination_presult { public: - virtual ~Airavata_getAllUserExperiments_presult() throw() {} + virtual ~Airavata_getAllUserExperimentsWithPagination_presult() throw() {} std::vector< ::apache::airavata::model::workspace::experiment::Experiment> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - _Airavata_getAllUserExperiments_presult__isset __isset; + _Airavata_getAllUserExperimentsWithPagination_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); @@ -16513,33 +18179,63 @@ class AiravataClient : virtual public AiravataIf { void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName); void send_getAllUserProjects(const std::string& gatewayId, const std::string& userName); void recv_getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return); + void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void send_getAllUserProjectsWithPagination(const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void recv_getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return); void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName); void send_searchProjectsByProjectName(const std::string& gatewayId, const std::string& userName, const std::string& projectName); void recv_searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return); + void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset); + void send_searchProjectsByProjectNameWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset); + void recv_searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return); void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description); void send_searchProjectsByProjectDesc(const std::string& gatewayId, const std::string& userName, const std::string& description); void recv_searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return); + void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); + void send_searchProjectsByProjectDescWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); + void recv_searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return); void searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName); void send_searchExperimentsByName(const std::string& gatewayId, const std::string& userName, const std::string& expName); void recv_searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); + void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset); + void send_searchExperimentsByNameWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset); + void recv_searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); void searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description); void send_searchExperimentsByDesc(const std::string& gatewayId, const std::string& userName, const std::string& description); void recv_searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); + void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); + void send_searchExperimentsByDescWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); + void recv_searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); void searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId); void send_searchExperimentsByApplication(const std::string& gatewayId, const std::string& userName, const std::string& applicationId); void recv_searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); + void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset); + void send_searchExperimentsByApplicationWithPagination(const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset); + void recv_searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); void searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState); void send_searchExperimentsByStatus(const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState); void recv_searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); + void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState, const int32_t limit, const int32_t offset); + void send_searchExperimentsByStatusWithPagination(const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState, const int32_t limit, const int32_t offset); + void recv_searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime); void send_searchExperimentsByCreationTime(const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime); void recv_searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); + void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset); + void send_searchExperimentsByCreationTimeWithPagination(const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset); + void recv_searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return); void getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId); void send_getAllExperimentsInProject(const std::string& projectId); void recv_getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return); + void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId, const int32_t limit, const int32_t offset); + void send_getAllExperimentsInProjectWithPagination(const std::string& projectId, const int32_t limit, const int32_t offset); + void recv_getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return); void getAllUserExperiments(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName); void send_getAllUserExperiments(const std::string& gatewayId, const std::string& userName); void recv_getAllUserExperiments(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return); + void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void send_getAllUserExperimentsWithPagination(const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void recv_getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return); void createExperiment(std::string& _return, const std::string& gatewayId, const ::apache::airavata::model::workspace::experiment::Experiment& experiment); void send_createExperiment(const std::string& gatewayId, const ::apache::airavata::model::workspace::experiment::Experiment& experiment); void recv_createExperiment(std::string& _return); @@ -16846,15 +18542,25 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor { void process_getProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_deleteProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getAllUserProjects(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getAllUserProjectsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchProjectsByProjectName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_searchProjectsByProjectNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchProjectsByProjectDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_searchProjectsByProjectDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_searchExperimentsByNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_searchExperimentsByDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByApplication(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_searchExperimentsByApplicationWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_searchExperimentsByStatusWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByCreationTime(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_searchExperimentsByCreationTimeWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getAllExperimentsInProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getAllExperimentsInProjectWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getAllUserExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getAllUserExperimentsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_createExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_updateExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -16965,15 +18671,25 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor { processMap_["getProject"] = &AiravataProcessor::process_getProject; processMap_["deleteProject"] = &AiravataProcessor::process_deleteProject; processMap_["getAllUserProjects"] = &AiravataProcessor::process_getAllUserProjects; + processMap_["getAllUserProjectsWithPagination"] = &AiravataProcessor::process_getAllUserProjectsWithPagination; processMap_["searchProjectsByProjectName"] = &AiravataProcessor::process_searchProjectsByProjectName; + processMap_["searchProjectsByProjectNameWithPagination"] = &AiravataProcessor::process_searchProjectsByProjectNameWithPagination; processMap_["searchProjectsByProjectDesc"] = &AiravataProcessor::process_searchProjectsByProjectDesc; + processMap_["searchProjectsByProjectDescWithPagination"] = &AiravataProcessor::process_searchProjectsByProjectDescWithPagination; processMap_["searchExperimentsByName"] = &AiravataProcessor::process_searchExperimentsByName; + processMap_["searchExperimentsByNameWithPagination"] = &AiravataProcessor::process_searchExperimentsByNameWithPagination; processMap_["searchExperimentsByDesc"] = &AiravataProcessor::process_searchExperimentsByDesc; + processMap_["searchExperimentsByDescWithPagination"] = &AiravataProcessor::process_searchExperimentsByDescWithPagination; processMap_["searchExperimentsByApplication"] = &AiravataProcessor::process_searchExperimentsByApplication; + processMap_["searchExperimentsByApplicationWithPagination"] = &AiravataProcessor::process_searchExperimentsByApplicationWithPagination; processMap_["searchExperimentsByStatus"] = &AiravataProcessor::process_searchExperimentsByStatus; + processMap_["searchExperimentsByStatusWithPagination"] = &AiravataProcessor::process_searchExperimentsByStatusWithPagination; processMap_["searchExperimentsByCreationTime"] = &AiravataProcessor::process_searchExperimentsByCreationTime; + processMap_["searchExperimentsByCreationTimeWithPagination"] = &AiravataProcessor::process_searchExperimentsByCreationTimeWithPagination; processMap_["getAllExperimentsInProject"] = &AiravataProcessor::process_getAllExperimentsInProject; + processMap_["getAllExperimentsInProjectWithPagination"] = &AiravataProcessor::process_getAllExperimentsInProjectWithPagination; processMap_["getAllUserExperiments"] = &AiravataProcessor::process_getAllUserExperiments; + processMap_["getAllUserExperimentsWithPagination"] = &AiravataProcessor::process_getAllUserExperimentsWithPagination; processMap_["createExperiment"] = &AiravataProcessor::process_createExperiment; processMap_["getExperiment"] = &AiravataProcessor::process_getExperiment; processMap_["updateExperiment"] = &AiravataProcessor::process_updateExperiment; @@ -17239,6 +18955,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->getAllUserProjectsWithPagination(_return, gatewayId, userName, limit, offset); + } + ifaces_[i]->getAllUserProjectsWithPagination(_return, gatewayId, userName, limit, offset); + return; + } + void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17249,6 +18975,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->searchProjectsByProjectNameWithPagination(_return, gatewayId, userName, projectName, limit, offset); + } + ifaces_[i]->searchProjectsByProjectNameWithPagination(_return, gatewayId, userName, projectName, limit, offset); + return; + } + void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17259,6 +18995,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->searchProjectsByProjectDescWithPagination(_return, gatewayId, userName, description, limit, offset); + } + ifaces_[i]->searchProjectsByProjectDescWithPagination(_return, gatewayId, userName, description, limit, offset); + return; + } + void searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17269,6 +19015,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->searchExperimentsByNameWithPagination(_return, gatewayId, userName, expName, limit, offset); + } + ifaces_[i]->searchExperimentsByNameWithPagination(_return, gatewayId, userName, expName, limit, offset); + return; + } + void searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17279,6 +19035,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->searchExperimentsByDescWithPagination(_return, gatewayId, userName, description, limit, offset); + } + ifaces_[i]->searchExperimentsByDescWithPagination(_return, gatewayId, userName, description, limit, offset); + return; + } + void searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17289,6 +19055,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->searchExperimentsByApplicationWithPagination(_return, gatewayId, userName, applicationId, limit, offset); + } + ifaces_[i]->searchExperimentsByApplicationWithPagination(_return, gatewayId, userName, applicationId, limit, offset); + return; + } + void searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17299,6 +19075,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->searchExperimentsByStatusWithPagination(_return, gatewayId, userName, experimentState, limit, offset); + } + ifaces_[i]->searchExperimentsByStatusWithPagination(_return, gatewayId, userName, experimentState, limit, offset); + return; + } + void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17309,6 +19095,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->searchExperimentsByCreationTimeWithPagination(_return, gatewayId, userName, fromTime, toTime, limit, offset); + } + ifaces_[i]->searchExperimentsByCreationTimeWithPagination(_return, gatewayId, userName, fromTime, toTime, limit, offset); + return; + } + void getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17319,6 +19115,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->getAllExperimentsInProjectWithPagination(_return, projectId, limit, offset); + } + ifaces_[i]->getAllExperimentsInProjectWithPagination(_return, projectId, limit, offset); + return; + } + void getAllUserExperiments(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName) { size_t sz = ifaces_.size(); size_t i = 0; @@ -17329,6 +19135,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->getAllUserExperimentsWithPagination(_return, gatewayId, userName, limit, offset); + } + ifaces_[i]->getAllUserExperimentsWithPagination(_return, gatewayId, userName, limit, offset); + return; + } + void createExperiment(std::string& _return, const std::string& gatewayId, const ::apache::airavata::model::workspace::experiment::Experiment& experiment) { size_t sz = ifaces_.size(); size_t i = 0; diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp index b39c56fdcf..faf8c0fa39 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp @@ -114,51 +114,101 @@ class AiravataHandler : virtual public AiravataIf { printf("getAllUserProjects\n"); } + void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("getAllUserProjectsWithPagination\n"); + } + void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) { // Your implementation goes here printf("searchProjectsByProjectName\n"); } + void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("searchProjectsByProjectNameWithPagination\n"); + } + void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { // Your implementation goes here printf("searchProjectsByProjectDesc\n"); } + void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("searchProjectsByProjectDescWithPagination\n"); + } + void searchExperimentsByName(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) { // Your implementation goes here printf("searchExperimentsByName\n"); } + void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("searchExperimentsByNameWithPagination\n"); + } + void searchExperimentsByDesc(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { // Your implementation goes here printf("searchExperimentsByDesc\n"); } + void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("searchExperimentsByDescWithPagination\n"); + } + void searchExperimentsByApplication(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) { // Your implementation goes here printf("searchExperimentsByApplication\n"); } + void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("searchExperimentsByApplicationWithPagination\n"); + } + void searchExperimentsByStatus(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState) { // Your implementation goes here printf("searchExperimentsByStatus\n"); } + void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::workspace::experiment::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("searchExperimentsByStatusWithPagination\n"); + } + void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) { // Your implementation goes here printf("searchExperimentsByCreationTime\n"); } + void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::ExperimentSummary> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("searchExperimentsByCreationTimeWithPagination\n"); + } + void getAllExperimentsInProject(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId) { // Your implementation goes here printf("getAllExperimentsInProject\n"); } + void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& projectId, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("getAllExperimentsInProjectWithPagination\n"); + } + void getAllUserExperiments(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName) { // Your implementation goes here printf("getAllUserExperiments\n"); } + void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::workspace::experiment::Experiment> & _return, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { + // Your implementation goes here + printf("getAllUserExperimentsWithPagination\n"); + } + void createExperiment(std::string& _return, const std::string& gatewayId, const ::apache::airavata::model::workspace::experiment::Experiment& experiment) { // Your implementation goes here printf("createExperiment\n"); diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php index 5d20b4fbd5..3938ddd622 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php @@ -32,15 +32,25 @@ public function updateProject($projectId, \Airavata\Model\Workspace\Project $upd public function getProject($projectId); public function deleteProject($projectId); public function getAllUserProjects($gatewayId, $userName); + public function getAllUserProjectsWithPagination($gatewayId, $userName, $limit, $offset); public function searchProjectsByProjectName($gatewayId, $userName, $projectName); + public function searchProjectsByProjectNameWithPagination($gatewayId, $userName, $projectName, $limit, $offset); public function searchProjectsByProjectDesc($gatewayId, $userName, $description); + public function searchProjectsByProjectDescWithPagination($gatewayId, $userName, $description, $limit, $offset); public function searchExperimentsByName($gatewayId, $userName, $expName); + public function searchExperimentsByNameWithPagination($gatewayId, $userName, $expName, $limit, $offset); public function searchExperimentsByDesc($gatewayId, $userName, $description); + public function searchExperimentsByDescWithPagination($gatewayId, $userName, $description, $limit, $offset); public function searchExperimentsByApplication($gatewayId, $userName, $applicationId); + public function searchExperimentsByApplicationWithPagination($gatewayId, $userName, $applicationId, $limit, $offset); public function searchExperimentsByStatus($gatewayId, $userName, $experimentState); + public function searchExperimentsByStatusWithPagination($gatewayId, $userName, $experimentState, $limit, $offset); public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime); + public function searchExperimentsByCreationTimeWithPagination($gatewayId, $userName, $fromTime, $toTime, $limit, $offset); public function getAllExperimentsInProject($projectId); + public function getAllExperimentsInProjectWithPagination($projectId, $limit, $offset); public function getAllUserExperiments($gatewayId, $userName); + public function getAllUserExperimentsWithPagination($gatewayId, $userName, $limit, $offset); public function createExperiment($gatewayId, \Airavata\Model\Workspace\Experiment\Experiment $experiment); public function getExperiment($airavataExperimentId); public function updateExperiment($airavataExperimentId, \Airavata\Model\Workspace\Experiment\Experiment $experiment); @@ -1052,6 +1062,69 @@ public function recv_getAllUserProjects() throw new \Exception("getAllUserProjects failed: unknown result"); } + public function getAllUserProjectsWithPagination($gatewayId, $userName, $limit, $offset) + { + $this->send_getAllUserProjectsWithPagination($gatewayId, $userName, $limit, $offset); + return $this->recv_getAllUserProjectsWithPagination(); + } + + public function send_getAllUserProjectsWithPagination($gatewayId, $userName, $limit, $offset) + { + $args = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'getAllUserProjectsWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('getAllUserProjectsWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_getAllUserProjectsWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserProjectsWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("getAllUserProjectsWithPagination failed: unknown result"); + } + public function searchProjectsByProjectName($gatewayId, $userName, $projectName) { $this->send_searchProjectsByProjectName($gatewayId, $userName, $projectName); @@ -1114,6 +1187,70 @@ public function recv_searchProjectsByProjectName() throw new \Exception("searchProjectsByProjectName failed: unknown result"); } + public function searchProjectsByProjectNameWithPagination($gatewayId, $userName, $projectName, $limit, $offset) + { + $this->send_searchProjectsByProjectNameWithPagination($gatewayId, $userName, $projectName, $limit, $offset); + return $this->recv_searchProjectsByProjectNameWithPagination(); + } + + public function send_searchProjectsByProjectNameWithPagination($gatewayId, $userName, $projectName, $limit, $offset) + { + $args = new \Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->projectName = $projectName; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectNameWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('searchProjectsByProjectNameWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_searchProjectsByProjectNameWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("searchProjectsByProjectNameWithPagination failed: unknown result"); + } + public function searchProjectsByProjectDesc($gatewayId, $userName, $description) { $this->send_searchProjectsByProjectDesc($gatewayId, $userName, $description); @@ -1176,6 +1313,70 @@ public function recv_searchProjectsByProjectDesc() throw new \Exception("searchProjectsByProjectDesc failed: unknown result"); } + public function searchProjectsByProjectDescWithPagination($gatewayId, $userName, $description, $limit, $offset) + { + $this->send_searchProjectsByProjectDescWithPagination($gatewayId, $userName, $description, $limit, $offset); + return $this->recv_searchProjectsByProjectDescWithPagination(); + } + + public function send_searchProjectsByProjectDescWithPagination($gatewayId, $userName, $description, $limit, $offset) + { + $args = new \Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->description = $description; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectDescWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('searchProjectsByProjectDescWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_searchProjectsByProjectDescWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("searchProjectsByProjectDescWithPagination failed: unknown result"); + } + public function searchExperimentsByName($gatewayId, $userName, $expName) { $this->send_searchExperimentsByName($gatewayId, $userName, $expName); @@ -1238,6 +1439,70 @@ public function recv_searchExperimentsByName() throw new \Exception("searchExperimentsByName failed: unknown result"); } + public function searchExperimentsByNameWithPagination($gatewayId, $userName, $expName, $limit, $offset) + { + $this->send_searchExperimentsByNameWithPagination($gatewayId, $userName, $expName, $limit, $offset); + return $this->recv_searchExperimentsByNameWithPagination(); + } + + public function send_searchExperimentsByNameWithPagination($gatewayId, $userName, $expName, $limit, $offset) + { + $args = new \Airavata\API\Airavata_searchExperimentsByNameWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->expName = $expName; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'searchExperimentsByNameWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('searchExperimentsByNameWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_searchExperimentsByNameWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByNameWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_searchExperimentsByNameWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("searchExperimentsByNameWithPagination failed: unknown result"); + } + public function searchExperimentsByDesc($gatewayId, $userName, $description) { $this->send_searchExperimentsByDesc($gatewayId, $userName, $description); @@ -1300,6 +1565,70 @@ public function recv_searchExperimentsByDesc() throw new \Exception("searchExperimentsByDesc failed: unknown result"); } + public function searchExperimentsByDescWithPagination($gatewayId, $userName, $description, $limit, $offset) + { + $this->send_searchExperimentsByDescWithPagination($gatewayId, $userName, $description, $limit, $offset); + return $this->recv_searchExperimentsByDescWithPagination(); + } + + public function send_searchExperimentsByDescWithPagination($gatewayId, $userName, $description, $limit, $offset) + { + $args = new \Airavata\API\Airavata_searchExperimentsByDescWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->description = $description; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'searchExperimentsByDescWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('searchExperimentsByDescWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_searchExperimentsByDescWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByDescWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_searchExperimentsByDescWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("searchExperimentsByDescWithPagination failed: unknown result"); + } + public function searchExperimentsByApplication($gatewayId, $userName, $applicationId) { $this->send_searchExperimentsByApplication($gatewayId, $userName, $applicationId); @@ -1362,6 +1691,70 @@ public function recv_searchExperimentsByApplication() throw new \Exception("searchExperimentsByApplication failed: unknown result"); } + public function searchExperimentsByApplicationWithPagination($gatewayId, $userName, $applicationId, $limit, $offset) + { + $this->send_searchExperimentsByApplicationWithPagination($gatewayId, $userName, $applicationId, $limit, $offset); + return $this->recv_searchExperimentsByApplicationWithPagination(); + } + + public function send_searchExperimentsByApplicationWithPagination($gatewayId, $userName, $applicationId, $limit, $offset) + { + $args = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->applicationId = $applicationId; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'searchExperimentsByApplicationWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('searchExperimentsByApplicationWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_searchExperimentsByApplicationWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("searchExperimentsByApplicationWithPagination failed: unknown result"); + } + public function searchExperimentsByStatus($gatewayId, $userName, $experimentState) { $this->send_searchExperimentsByStatus($gatewayId, $userName, $experimentState); @@ -1424,6 +1817,70 @@ public function recv_searchExperimentsByStatus() throw new \Exception("searchExperimentsByStatus failed: unknown result"); } + public function searchExperimentsByStatusWithPagination($gatewayId, $userName, $experimentState, $limit, $offset) + { + $this->send_searchExperimentsByStatusWithPagination($gatewayId, $userName, $experimentState, $limit, $offset); + return $this->recv_searchExperimentsByStatusWithPagination(); + } + + public function send_searchExperimentsByStatusWithPagination($gatewayId, $userName, $experimentState, $limit, $offset) + { + $args = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->experimentState = $experimentState; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatusWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('searchExperimentsByStatusWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_searchExperimentsByStatusWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByStatusWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("searchExperimentsByStatusWithPagination failed: unknown result"); + } + public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime) { $this->send_searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime); @@ -1487,6 +1944,71 @@ public function recv_searchExperimentsByCreationTime() throw new \Exception("searchExperimentsByCreationTime failed: unknown result"); } + public function searchExperimentsByCreationTimeWithPagination($gatewayId, $userName, $fromTime, $toTime, $limit, $offset) + { + $this->send_searchExperimentsByCreationTimeWithPagination($gatewayId, $userName, $fromTime, $toTime, $limit, $offset); + return $this->recv_searchExperimentsByCreationTimeWithPagination(); + } + + public function send_searchExperimentsByCreationTimeWithPagination($gatewayId, $userName, $fromTime, $toTime, $limit, $offset) + { + $args = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->fromTime = $fromTime; + $args->toTime = $toTime; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTimeWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('searchExperimentsByCreationTimeWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_searchExperimentsByCreationTimeWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("searchExperimentsByCreationTimeWithPagination failed: unknown result"); + } + public function getAllExperimentsInProject($projectId) { $this->send_getAllExperimentsInProject($projectId); @@ -1550,6 +2072,71 @@ public function recv_getAllExperimentsInProject() throw new \Exception("getAllExperimentsInProject failed: unknown result"); } + public function getAllExperimentsInProjectWithPagination($projectId, $limit, $offset) + { + $this->send_getAllExperimentsInProjectWithPagination($projectId, $limit, $offset); + return $this->recv_getAllExperimentsInProjectWithPagination(); + } + + public function send_getAllExperimentsInProjectWithPagination($projectId, $limit, $offset) + { + $args = new \Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_args(); + $args->projectId = $projectId; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProjectWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('getAllExperimentsInProjectWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_getAllExperimentsInProjectWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + if ($result->pnfe !== null) { + throw $result->pnfe; + } + throw new \Exception("getAllExperimentsInProjectWithPagination failed: unknown result"); + } + public function getAllUserExperiments($gatewayId, $userName) { $this->send_getAllUserExperiments($gatewayId, $userName); @@ -1611,6 +2198,69 @@ public function recv_getAllUserExperiments() throw new \Exception("getAllUserExperiments failed: unknown result"); } + public function getAllUserExperimentsWithPagination($gatewayId, $userName, $limit, $offset) + { + $this->send_getAllUserExperimentsWithPagination($gatewayId, $userName, $limit, $offset); + return $this->recv_getAllUserExperimentsWithPagination(); + } + + public function send_getAllUserExperimentsWithPagination($gatewayId, $userName, $limit, $offset) + { + $args = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_args(); + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->limit = $limit; + $args->offset = $offset; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'getAllUserExperimentsWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('getAllUserExperimentsWithPagination', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_getAllUserExperimentsWithPagination() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserExperimentsWithPagination_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("getAllUserExperimentsWithPagination failed: unknown result"); + } + public function createExperiment($gatewayId, \Airavata\Model\Workspace\Experiment\Experiment $experiment) { $this->send_createExperiment($gatewayId, $experiment); @@ -10426,7 +11076,2689 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getAllUserProjects_result'; + return 'Airavata_getAllUserProjects_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size16 = 0; + $_etype19 = 0; + $xfer += $input->readListBegin($_etype19, $_size16); + for ($_i20 = 0; $_i20 < $_size16; ++$_i20) + { + $elem21 = null; + $elem21 = new \Airavata\Model\Workspace\Project(); + $xfer += $elem21->read($input); + $this->success []= $elem21; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter22) + { + $xfer += $iter22->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_getAllUserProjectsWithPagination_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $limit = null; + public $offset = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 4 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } + } + } + + public function getName() { + return 'Airavata_getAllUserProjectsWithPagination_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 3); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 4); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_getAllUserProjectsWithPagination_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_getAllUserProjectsWithPagination_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size23 = 0; + $_etype26 = 0; + $xfer += $input->readListBegin($_etype26, $_size23); + for ($_i27 = 0; $_i27 < $_size23; ++$_i27) + { + $elem28 = null; + $elem28 = new \Airavata\Model\Workspace\Project(); + $xfer += $elem28->read($input); + $this->success []= $elem28; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter29) + { + $xfer += $iter29->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectName_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $projectName = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'projectName', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['projectName'])) { + $this->projectName = $vals['projectName']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectName_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->projectName); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->projectName !== null) { + $xfer += $output->writeFieldBegin('projectName', TType::STRING, 3); + $xfer += $output->writeString($this->projectName); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectName_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectName_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size30 = 0; + $_etype33 = 0; + $xfer += $input->readListBegin($_etype33, $_size30); + for ($_i34 = 0; $_i34 < $_size30; ++$_i34) + { + $elem35 = null; + $elem35 = new \Airavata\Model\Workspace\Project(); + $xfer += $elem35->read($input); + $this->success []= $elem35; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter36) + { + $xfer += $iter36->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectNameWithPagination_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $projectName = null; + public $limit = null; + public $offset = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'projectName', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['projectName'])) { + $this->projectName = $vals['projectName']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectNameWithPagination_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->projectName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectNameWithPagination_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->projectName !== null) { + $xfer += $output->writeFieldBegin('projectName', TType::STRING, 3); + $xfer += $output->writeString($this->projectName); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectNameWithPagination_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectNameWithPagination_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size37 = 0; + $_etype40 = 0; + $xfer += $input->readListBegin($_etype40, $_size37); + for ($_i41 = 0; $_i41 < $_size37; ++$_i41) + { + $elem42 = null; + $elem42 = new \Airavata\Model\Workspace\Project(); + $xfer += $elem42->read($input); + $this->success []= $elem42; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectNameWithPagination_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter43) + { + $xfer += $iter43->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectDesc_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $description = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'description', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['description'])) { + $this->description = $vals['description']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectDesc_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->description); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->description !== null) { + $xfer += $output->writeFieldBegin('description', TType::STRING, 3); + $xfer += $output->writeString($this->description); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectDesc_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectDesc_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size44 = 0; + $_etype47 = 0; + $xfer += $input->readListBegin($_etype47, $_size44); + for ($_i48 = 0; $_i48 < $_size44; ++$_i48) + { + $elem49 = null; + $elem49 = new \Airavata\Model\Workspace\Project(); + $xfer += $elem49->read($input); + $this->success []= $elem49; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter50) + { + $xfer += $iter50->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectDescWithPagination_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $description = null; + public $limit = null; + public $offset = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'description', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['description'])) { + $this->description = $vals['description']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectDescWithPagination_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->description); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDescWithPagination_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->description !== null) { + $xfer += $output->writeFieldBegin('description', TType::STRING, 3); + $xfer += $output->writeString($this->description); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchProjectsByProjectDescWithPagination_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchProjectsByProjectDescWithPagination_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size51 = 0; + $_etype54 = 0; + $xfer += $input->readListBegin($_etype54, $_size51); + for ($_i55 = 0; $_i55 < $_size51; ++$_i55) + { + $elem56 = null; + $elem56 = new \Airavata\Model\Workspace\Project(); + $xfer += $elem56->read($input); + $this->success []= $elem56; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDescWithPagination_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter57) + { + $xfer += $iter57->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByName_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $expName = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'expName', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['expName'])) { + $this->expName = $vals['expName']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByName_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->expName); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->expName !== null) { + $xfer += $output->writeFieldBegin('expName', TType::STRING, 3); + $xfer += $output->writeString($this->expName); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByName_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Experiment\ExperimentSummary', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByName_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size58 = 0; + $_etype61 = 0; + $xfer += $input->readListBegin($_etype61, $_size58); + for ($_i62 = 0; $_i62 < $_size58; ++$_i62) + { + $elem63 = null; + $elem63 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem63->read($input); + $this->success []= $elem63; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter64) + { + $xfer += $iter64->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByNameWithPagination_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $expName = null; + public $limit = null; + public $offset = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'expName', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['expName'])) { + $this->expName = $vals['expName']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByNameWithPagination_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->expName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByNameWithPagination_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->expName !== null) { + $xfer += $output->writeFieldBegin('expName', TType::STRING, 3); + $xfer += $output->writeString($this->expName); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByNameWithPagination_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Experiment\ExperimentSummary', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByNameWithPagination_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size65 = 0; + $_etype68 = 0; + $xfer += $input->readListBegin($_etype68, $_size65); + for ($_i69 = 0; $_i69 < $_size65; ++$_i69) + { + $elem70 = null; + $elem70 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem70->read($input); + $this->success []= $elem70; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByNameWithPagination_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter71) + { + $xfer += $iter71->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByDesc_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $description = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'description', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['description'])) { + $this->description = $vals['description']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByDesc_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->description); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->description !== null) { + $xfer += $output->writeFieldBegin('description', TType::STRING, 3); + $xfer += $output->writeString($this->description); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByDesc_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Experiment\ExperimentSummary', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByDesc_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size72 = 0; + $_etype75 = 0; + $xfer += $input->readListBegin($_etype75, $_size72); + for ($_i76 = 0; $_i76 < $_size72; ++$_i76) + { + $elem77 = null; + $elem77 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem77->read($input); + $this->success []= $elem77; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter78) + { + $xfer += $iter78->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByDescWithPagination_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $description = null; + public $limit = null; + public $offset = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'description', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['description'])) { + $this->description = $vals['description']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByDescWithPagination_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->description); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDescWithPagination_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->description !== null) { + $xfer += $output->writeFieldBegin('description', TType::STRING, 3); + $xfer += $output->writeString($this->description); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_searchExperimentsByDescWithPagination_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Experiment\ExperimentSummary', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_searchExperimentsByDescWithPagination_result'; } public function read($input) @@ -10447,15 +13779,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size16 = 0; - $_etype19 = 0; - $xfer += $input->readListBegin($_etype19, $_size16); - for ($_i20 = 0; $_i20 < $_size16; ++$_i20) + $_size79 = 0; + $_etype82 = 0; + $xfer += $input->readListBegin($_etype82, $_size79); + for ($_i83 = 0; $_i83 < $_size79; ++$_i83) { - $elem21 = null; - $elem21 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem21->read($input); - $this->success []= $elem21; + $elem84 = null; + $elem84 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem84->read($input); + $this->success []= $elem84; } $xfer += $input->readListEnd(); } else { @@ -10498,7 +13830,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDescWithPagination_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -10507,9 +13839,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter22) + foreach ($this->success as $iter85) { - $xfer += $iter22->write($output); + $xfer += $iter85->write($output); } } $output->writeListEnd(); @@ -10538,12 +13870,12 @@ public function write($output) { } -class Airavata_searchProjectsByProjectName_args { +class Airavata_searchExperimentsByApplication_args { static $_TSPEC; public $gatewayId = null; public $userName = null; - public $projectName = null; + public $applicationId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -10557,7 +13889,7 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( - 'var' => 'projectName', + 'var' => 'applicationId', 'type' => TType::STRING, ), ); @@ -10569,14 +13901,14 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['projectName'])) { - $this->projectName = $vals['projectName']; + if (isset($vals['applicationId'])) { + $this->applicationId = $vals['applicationId']; } } } public function getName() { - return 'Airavata_searchProjectsByProjectName_args'; + return 'Airavata_searchExperimentsByApplication_args'; } public function read($input) @@ -10610,7 +13942,7 @@ public function read($input) break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectName); + $xfer += $input->readString($this->applicationId); } else { $xfer += $input->skip($ftype); } @@ -10627,7 +13959,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_args'); if ($this->gatewayId !== null) { $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); $xfer += $output->writeString($this->gatewayId); @@ -10638,9 +13970,9 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->projectName !== null) { - $xfer += $output->writeFieldBegin('projectName', TType::STRING, 3); - $xfer += $output->writeString($this->projectName); + if ($this->applicationId !== null) { + $xfer += $output->writeFieldBegin('applicationId', TType::STRING, 3); + $xfer += $output->writeString($this->applicationId); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -10650,7 +13982,7 @@ public function write($output) { } -class Airavata_searchProjectsByProjectName_result { +class Airavata_searchExperimentsByApplication_result { static $_TSPEC; public $success = null; @@ -10667,7 +13999,7 @@ public function __construct($vals=null) { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', + 'class' => '\Airavata\Model\Workspace\Experiment\ExperimentSummary', ), ), 1 => array( @@ -10704,7 +14036,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchProjectsByProjectName_result'; + return 'Airavata_searchExperimentsByApplication_result'; } public function read($input) @@ -10725,15 +14057,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size23 = 0; - $_etype26 = 0; - $xfer += $input->readListBegin($_etype26, $_size23); - for ($_i27 = 0; $_i27 < $_size23; ++$_i27) + $_size86 = 0; + $_etype89 = 0; + $xfer += $input->readListBegin($_etype89, $_size86); + for ($_i90 = 0; $_i90 < $_size86; ++$_i90) { - $elem28 = null; - $elem28 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem28->read($input); - $this->success []= $elem28; + $elem91 = null; + $elem91 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem91->read($input); + $this->success []= $elem91; } $xfer += $input->readListEnd(); } else { @@ -10776,7 +14108,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -10785,9 +14117,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter29) + foreach ($this->success as $iter92) { - $xfer += $iter29->write($output); + $xfer += $iter92->write($output); } } $output->writeListEnd(); @@ -10816,12 +14148,14 @@ public function write($output) { } -class Airavata_searchProjectsByProjectDesc_args { +class Airavata_searchExperimentsByApplicationWithPagination_args { static $_TSPEC; public $gatewayId = null; public $userName = null; - public $description = null; + public $applicationId = null; + public $limit = null; + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -10835,9 +14169,17 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( - 'var' => 'description', + 'var' => 'applicationId', 'type' => TType::STRING, ), + 4 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { @@ -10847,14 +14189,20 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['description'])) { - $this->description = $vals['description']; + if (isset($vals['applicationId'])) { + $this->applicationId = $vals['applicationId']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; } } } public function getName() { - return 'Airavata_searchProjectsByProjectDesc_args'; + return 'Airavata_searchExperimentsByApplicationWithPagination_args'; } public function read($input) @@ -10888,7 +14236,21 @@ public function read($input) break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->description); + $xfer += $input->readString($this->applicationId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); } else { $xfer += $input->skip($ftype); } @@ -10905,7 +14267,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplicationWithPagination_args'); if ($this->gatewayId !== null) { $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); $xfer += $output->writeString($this->gatewayId); @@ -10916,9 +14278,19 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->description !== null) { - $xfer += $output->writeFieldBegin('description', TType::STRING, 3); - $xfer += $output->writeString($this->description); + if ($this->applicationId !== null) { + $xfer += $output->writeFieldBegin('applicationId', TType::STRING, 3); + $xfer += $output->writeString($this->applicationId); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -10928,7 +14300,7 @@ public function write($output) { } -class Airavata_searchProjectsByProjectDesc_result { +class Airavata_searchExperimentsByApplicationWithPagination_result { static $_TSPEC; public $success = null; @@ -10945,7 +14317,7 @@ public function __construct($vals=null) { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', + 'class' => '\Airavata\Model\Workspace\Experiment\ExperimentSummary', ), ), 1 => array( @@ -10982,7 +14354,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchProjectsByProjectDesc_result'; + return 'Airavata_searchExperimentsByApplicationWithPagination_result'; } public function read($input) @@ -11003,15 +14375,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size30 = 0; - $_etype33 = 0; - $xfer += $input->readListBegin($_etype33, $_size30); - for ($_i34 = 0; $_i34 < $_size30; ++$_i34) + $_size93 = 0; + $_etype96 = 0; + $xfer += $input->readListBegin($_etype96, $_size93); + for ($_i97 = 0; $_i97 < $_size93; ++$_i97) { - $elem35 = null; - $elem35 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem35->read($input); - $this->success []= $elem35; + $elem98 = null; + $elem98 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem98->read($input); + $this->success []= $elem98; } $xfer += $input->readListEnd(); } else { @@ -11054,7 +14426,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplicationWithPagination_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -11063,9 +14435,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter36) + foreach ($this->success as $iter99) { - $xfer += $iter36->write($output); + $xfer += $iter99->write($output); } } $output->writeListEnd(); @@ -11094,12 +14466,12 @@ public function write($output) { } -class Airavata_searchExperimentsByName_args { +class Airavata_searchExperimentsByStatus_args { static $_TSPEC; public $gatewayId = null; public $userName = null; - public $expName = null; + public $experimentState = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -11113,8 +14485,8 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( - 'var' => 'expName', - 'type' => TType::STRING, + 'var' => 'experimentState', + 'type' => TType::I32, ), ); } @@ -11125,14 +14497,14 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['expName'])) { - $this->expName = $vals['expName']; + if (isset($vals['experimentState'])) { + $this->experimentState = $vals['experimentState']; } } } public function getName() { - return 'Airavata_searchExperimentsByName_args'; + return 'Airavata_searchExperimentsByStatus_args'; } public function read($input) @@ -11165,8 +14537,8 @@ public function read($input) } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->expName); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->experimentState); } else { $xfer += $input->skip($ftype); } @@ -11183,7 +14555,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_args'); if ($this->gatewayId !== null) { $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); $xfer += $output->writeString($this->gatewayId); @@ -11194,9 +14566,9 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->expName !== null) { - $xfer += $output->writeFieldBegin('expName', TType::STRING, 3); - $xfer += $output->writeString($this->expName); + if ($this->experimentState !== null) { + $xfer += $output->writeFieldBegin('experimentState', TType::I32, 3); + $xfer += $output->writeI32($this->experimentState); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -11206,7 +14578,7 @@ public function write($output) { } -class Airavata_searchExperimentsByName_result { +class Airavata_searchExperimentsByStatus_result { static $_TSPEC; public $success = null; @@ -11260,7 +14632,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByName_result'; + return 'Airavata_searchExperimentsByStatus_result'; } public function read($input) @@ -11281,15 +14653,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size37 = 0; - $_etype40 = 0; - $xfer += $input->readListBegin($_etype40, $_size37); - for ($_i41 = 0; $_i41 < $_size37; ++$_i41) + $_size100 = 0; + $_etype103 = 0; + $xfer += $input->readListBegin($_etype103, $_size100); + for ($_i104 = 0; $_i104 < $_size100; ++$_i104) { - $elem42 = null; - $elem42 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); - $xfer += $elem42->read($input); - $this->success []= $elem42; + $elem105 = null; + $elem105 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem105->read($input); + $this->success []= $elem105; } $xfer += $input->readListEnd(); } else { @@ -11332,7 +14704,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -11341,9 +14713,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter43) + foreach ($this->success as $iter106) { - $xfer += $iter43->write($output); + $xfer += $iter106->write($output); } } $output->writeListEnd(); @@ -11372,12 +14744,14 @@ public function write($output) { } -class Airavata_searchExperimentsByDesc_args { +class Airavata_searchExperimentsByStatusWithPagination_args { static $_TSPEC; public $gatewayId = null; public $userName = null; - public $description = null; + public $experimentState = null; + public $limit = null; + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -11391,8 +14765,16 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( - 'var' => 'description', - 'type' => TType::STRING, + 'var' => 'experimentState', + 'type' => TType::I32, + ), + 4 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'offset', + 'type' => TType::I32, ), ); } @@ -11403,14 +14785,20 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['description'])) { - $this->description = $vals['description']; + if (isset($vals['experimentState'])) { + $this->experimentState = $vals['experimentState']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; } } } public function getName() { - return 'Airavata_searchExperimentsByDesc_args'; + return 'Airavata_searchExperimentsByStatusWithPagination_args'; } public function read($input) @@ -11443,8 +14831,22 @@ public function read($input) } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->description); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->experimentState); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); } else { $xfer += $input->skip($ftype); } @@ -11461,7 +14863,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatusWithPagination_args'); if ($this->gatewayId !== null) { $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); $xfer += $output->writeString($this->gatewayId); @@ -11472,9 +14874,19 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->description !== null) { - $xfer += $output->writeFieldBegin('description', TType::STRING, 3); - $xfer += $output->writeString($this->description); + if ($this->experimentState !== null) { + $xfer += $output->writeFieldBegin('experimentState', TType::I32, 3); + $xfer += $output->writeI32($this->experimentState); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -11484,7 +14896,7 @@ public function write($output) { } -class Airavata_searchExperimentsByDesc_result { +class Airavata_searchExperimentsByStatusWithPagination_result { static $_TSPEC; public $success = null; @@ -11538,7 +14950,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByDesc_result'; + return 'Airavata_searchExperimentsByStatusWithPagination_result'; } public function read($input) @@ -11559,15 +14971,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size44 = 0; - $_etype47 = 0; - $xfer += $input->readListBegin($_etype47, $_size44); - for ($_i48 = 0; $_i48 < $_size44; ++$_i48) + $_size107 = 0; + $_etype110 = 0; + $xfer += $input->readListBegin($_etype110, $_size107); + for ($_i111 = 0; $_i111 < $_size107; ++$_i111) { - $elem49 = null; - $elem49 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); - $xfer += $elem49->read($input); - $this->success []= $elem49; + $elem112 = null; + $elem112 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem112->read($input); + $this->success []= $elem112; } $xfer += $input->readListEnd(); } else { @@ -11610,7 +15022,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatusWithPagination_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -11619,9 +15031,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter50) + foreach ($this->success as $iter113) { - $xfer += $iter50->write($output); + $xfer += $iter113->write($output); } } $output->writeListEnd(); @@ -11650,12 +15062,13 @@ public function write($output) { } -class Airavata_searchExperimentsByApplication_args { +class Airavata_searchExperimentsByCreationTime_args { static $_TSPEC; public $gatewayId = null; public $userName = null; - public $applicationId = null; + public $fromTime = null; + public $toTime = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -11669,8 +15082,12 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( - 'var' => 'applicationId', - 'type' => TType::STRING, + 'var' => 'fromTime', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'toTime', + 'type' => TType::I64, ), ); } @@ -11681,14 +15098,17 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['applicationId'])) { - $this->applicationId = $vals['applicationId']; + if (isset($vals['fromTime'])) { + $this->fromTime = $vals['fromTime']; + } + if (isset($vals['toTime'])) { + $this->toTime = $vals['toTime']; } } } public function getName() { - return 'Airavata_searchExperimentsByApplication_args'; + return 'Airavata_searchExperimentsByCreationTime_args'; } public function read($input) @@ -11721,8 +15141,15 @@ public function read($input) } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->applicationId); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->fromTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->toTime); } else { $xfer += $input->skip($ftype); } @@ -11739,7 +15166,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_args'); if ($this->gatewayId !== null) { $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); $xfer += $output->writeString($this->gatewayId); @@ -11750,9 +15177,14 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->applicationId !== null) { - $xfer += $output->writeFieldBegin('applicationId', TType::STRING, 3); - $xfer += $output->writeString($this->applicationId); + if ($this->fromTime !== null) { + $xfer += $output->writeFieldBegin('fromTime', TType::I64, 3); + $xfer += $output->writeI64($this->fromTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->toTime !== null) { + $xfer += $output->writeFieldBegin('toTime', TType::I64, 4); + $xfer += $output->writeI64($this->toTime); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -11762,7 +15194,7 @@ public function write($output) { } -class Airavata_searchExperimentsByApplication_result { +class Airavata_searchExperimentsByCreationTime_result { static $_TSPEC; public $success = null; @@ -11816,7 +15248,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByApplication_result'; + return 'Airavata_searchExperimentsByCreationTime_result'; } public function read($input) @@ -11837,15 +15269,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size51 = 0; - $_etype54 = 0; - $xfer += $input->readListBegin($_etype54, $_size51); - for ($_i55 = 0; $_i55 < $_size51; ++$_i55) + $_size114 = 0; + $_etype117 = 0; + $xfer += $input->readListBegin($_etype117, $_size114); + for ($_i118 = 0; $_i118 < $_size114; ++$_i118) { - $elem56 = null; - $elem56 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); - $xfer += $elem56->read($input); - $this->success []= $elem56; + $elem119 = null; + $elem119 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem119->read($input); + $this->success []= $elem119; } $xfer += $input->readListEnd(); } else { @@ -11888,7 +15320,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -11897,9 +15329,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter57) + foreach ($this->success as $iter120) { - $xfer += $iter57->write($output); + $xfer += $iter120->write($output); } } $output->writeListEnd(); @@ -11928,12 +15360,15 @@ public function write($output) { } -class Airavata_searchExperimentsByStatus_args { +class Airavata_searchExperimentsByCreationTimeWithPagination_args { static $_TSPEC; public $gatewayId = null; public $userName = null; - public $experimentState = null; + public $fromTime = null; + public $toTime = null; + public $limit = null; + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -11947,7 +15382,19 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( - 'var' => 'experimentState', + 'var' => 'fromTime', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'toTime', + 'type' => TType::I64, + ), + 5 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'offset', 'type' => TType::I32, ), ); @@ -11959,14 +15406,23 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['experimentState'])) { - $this->experimentState = $vals['experimentState']; + if (isset($vals['fromTime'])) { + $this->fromTime = $vals['fromTime']; + } + if (isset($vals['toTime'])) { + $this->toTime = $vals['toTime']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; } } } public function getName() { - return 'Airavata_searchExperimentsByStatus_args'; + return 'Airavata_searchExperimentsByCreationTimeWithPagination_args'; } public function read($input) @@ -11999,8 +15455,29 @@ public function read($input) } break; case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->fromTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->toTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: if ($ftype == TType::I32) { - $xfer += $input->readI32($this->experimentState); + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); } else { $xfer += $input->skip($ftype); } @@ -12017,7 +15494,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTimeWithPagination_args'); if ($this->gatewayId !== null) { $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); $xfer += $output->writeString($this->gatewayId); @@ -12028,9 +15505,24 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->experimentState !== null) { - $xfer += $output->writeFieldBegin('experimentState', TType::I32, 3); - $xfer += $output->writeI32($this->experimentState); + if ($this->fromTime !== null) { + $xfer += $output->writeFieldBegin('fromTime', TType::I64, 3); + $xfer += $output->writeI64($this->fromTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->toTime !== null) { + $xfer += $output->writeFieldBegin('toTime', TType::I64, 4); + $xfer += $output->writeI64($this->toTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 5); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 6); + $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -12040,7 +15532,7 @@ public function write($output) { } -class Airavata_searchExperimentsByStatus_result { +class Airavata_searchExperimentsByCreationTimeWithPagination_result { static $_TSPEC; public $success = null; @@ -12094,7 +15586,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByStatus_result'; + return 'Airavata_searchExperimentsByCreationTimeWithPagination_result'; } public function read($input) @@ -12115,15 +15607,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size58 = 0; - $_etype61 = 0; - $xfer += $input->readListBegin($_etype61, $_size58); - for ($_i62 = 0; $_i62 < $_size58; ++$_i62) + $_size121 = 0; + $_etype124 = 0; + $xfer += $input->readListBegin($_etype124, $_size121); + for ($_i125 = 0; $_i125 < $_size121; ++$_i125) { - $elem63 = null; - $elem63 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); - $xfer += $elem63->read($input); - $this->success []= $elem63; + $elem126 = null; + $elem126 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); + $xfer += $elem126->read($input); + $this->success []= $elem126; } $xfer += $input->readListEnd(); } else { @@ -12166,7 +15658,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTimeWithPagination_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -12175,9 +15667,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter64) + foreach ($this->success as $iter127) { - $xfer += $iter64->write($output); + $xfer += $iter127->write($output); } } $output->writeListEnd(); @@ -12206,53 +15698,29 @@ public function write($output) { } -class Airavata_searchExperimentsByCreationTime_args { +class Airavata_getAllExperimentsInProject_args { static $_TSPEC; - public $gatewayId = null; - public $userName = null; - public $fromTime = null; - public $toTime = null; + public $projectId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'userName', + 'var' => 'projectId', 'type' => TType::STRING, ), - 3 => array( - 'var' => 'fromTime', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'toTime', - 'type' => TType::I64, - ), ); } if (is_array($vals)) { - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['fromTime'])) { - $this->fromTime = $vals['fromTime']; - } - if (isset($vals['toTime'])) { - $this->toTime = $vals['toTime']; + if (isset($vals['projectId'])) { + $this->projectId = $vals['projectId']; } } } public function getName() { - return 'Airavata_searchExperimentsByCreationTime_args'; + return 'Airavata_getAllExperimentsInProject_args'; } public function read($input) @@ -12272,28 +15740,7 @@ public function read($input) { case 1: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->fromTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->toTime); + $xfer += $input->readString($this->projectId); } else { $xfer += $input->skip($ftype); } @@ -12310,25 +15757,10 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_args'); - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->fromTime !== null) { - $xfer += $output->writeFieldBegin('fromTime', TType::I64, 3); - $xfer += $output->writeI64($this->fromTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->toTime !== null) { - $xfer += $output->writeFieldBegin('toTime', TType::I64, 4); - $xfer += $output->writeI64($this->toTime); + $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_args'); + if ($this->projectId !== null) { + $xfer += $output->writeFieldBegin('projectId', TType::STRING, 1); + $xfer += $output->writeString($this->projectId); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -12338,13 +15770,14 @@ public function write($output) { } -class Airavata_searchExperimentsByCreationTime_result { +class Airavata_getAllExperimentsInProject_result { static $_TSPEC; public $success = null; public $ire = null; public $ace = null; public $ase = null; + public $pnfe = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -12355,7 +15788,7 @@ public function __construct($vals=null) { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Experiment\ExperimentSummary', + 'class' => '\Airavata\Model\Workspace\Experiment\Experiment', ), ), 1 => array( @@ -12373,6 +15806,11 @@ public function __construct($vals=null) { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), + 4 => array( + 'var' => 'pnfe', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\ProjectNotFoundException', + ), ); } if (is_array($vals)) { @@ -12388,11 +15826,14 @@ public function __construct($vals=null) { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } + if (isset($vals['pnfe'])) { + $this->pnfe = $vals['pnfe']; + } } } public function getName() { - return 'Airavata_searchExperimentsByCreationTime_result'; + return 'Airavata_getAllExperimentsInProject_result'; } public function read($input) @@ -12413,15 +15854,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size65 = 0; - $_etype68 = 0; - $xfer += $input->readListBegin($_etype68, $_size65); - for ($_i69 = 0; $_i69 < $_size65; ++$_i69) + $_size128 = 0; + $_etype131 = 0; + $xfer += $input->readListBegin($_etype131, $_size128); + for ($_i132 = 0; $_i132 < $_size128; ++$_i132) { - $elem70 = null; - $elem70 = new \Airavata\Model\Workspace\Experiment\ExperimentSummary(); - $xfer += $elem70->read($input); - $this->success []= $elem70; + $elem133 = null; + $elem133 = new \Airavata\Model\Workspace\Experiment\Experiment(); + $xfer += $elem133->read($input); + $this->success []= $elem133; } $xfer += $input->readListEnd(); } else { @@ -12452,6 +15893,14 @@ public function read($input) $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRUCT) { + $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); + $xfer += $this->pnfe->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -12464,7 +15913,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_result'); + $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -12473,9 +15922,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter71) + foreach ($this->success as $iter134) { - $xfer += $iter71->write($output); + $xfer += $iter134->write($output); } } $output->writeListEnd(); @@ -12497,6 +15946,11 @@ public function write($output) { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->pnfe !== null) { + $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); + $xfer += $this->pnfe->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -12504,10 +15958,12 @@ public function write($output) { } -class Airavata_getAllExperimentsInProject_args { +class Airavata_getAllExperimentsInProjectWithPagination_args { static $_TSPEC; public $projectId = null; + public $limit = null; + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -12516,17 +15972,31 @@ public function __construct($vals=null) { 'var' => 'projectId', 'type' => TType::STRING, ), + 2 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 3 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { if (isset($vals['projectId'])) { $this->projectId = $vals['projectId']; } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } } } public function getName() { - return 'Airavata_getAllExperimentsInProject_args'; + return 'Airavata_getAllExperimentsInProjectWithPagination_args'; } public function read($input) @@ -12551,6 +16021,20 @@ public function read($input) $xfer += $input->skip($ftype); } break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -12563,12 +16047,22 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_args'); + $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProjectWithPagination_args'); if ($this->projectId !== null) { $xfer += $output->writeFieldBegin('projectId', TType::STRING, 1); $xfer += $output->writeString($this->projectId); $xfer += $output->writeFieldEnd(); } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 2); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 3); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -12576,7 +16070,7 @@ public function write($output) { } -class Airavata_getAllExperimentsInProject_result { +class Airavata_getAllExperimentsInProjectWithPagination_result { static $_TSPEC; public $success = null; @@ -12639,7 +16133,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getAllExperimentsInProject_result'; + return 'Airavata_getAllExperimentsInProjectWithPagination_result'; } public function read($input) @@ -12660,15 +16154,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size72 = 0; - $_etype75 = 0; - $xfer += $input->readListBegin($_etype75, $_size72); - for ($_i76 = 0; $_i76 < $_size72; ++$_i76) + $_size135 = 0; + $_etype138 = 0; + $xfer += $input->readListBegin($_etype138, $_size135); + for ($_i139 = 0; $_i139 < $_size135; ++$_i139) { - $elem77 = null; - $elem77 = new \Airavata\Model\Workspace\Experiment\Experiment(); - $xfer += $elem77->read($input); - $this->success []= $elem77; + $elem140 = null; + $elem140 = new \Airavata\Model\Workspace\Experiment\Experiment(); + $xfer += $elem140->read($input); + $this->success []= $elem140; } $xfer += $input->readListEnd(); } else { @@ -12719,7 +16213,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_result'); + $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProjectWithPagination_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -12728,9 +16222,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter78) + foreach ($this->success as $iter141) { - $xfer += $iter78->write($output); + $xfer += $iter141->write($output); } } $output->writeListEnd(); @@ -12931,15 +16425,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size79 = 0; - $_etype82 = 0; - $xfer += $input->readListBegin($_etype82, $_size79); - for ($_i83 = 0; $_i83 < $_size79; ++$_i83) + $_size142 = 0; + $_etype145 = 0; + $xfer += $input->readListBegin($_etype145, $_size142); + for ($_i146 = 0; $_i146 < $_size142; ++$_i146) { - $elem84 = null; - $elem84 = new \Airavata\Model\Workspace\Experiment\Experiment(); - $xfer += $elem84->read($input); - $this->success []= $elem84; + $elem147 = null; + $elem147 = new \Airavata\Model\Workspace\Experiment\Experiment(); + $xfer += $elem147->read($input); + $this->success []= $elem147; } $xfer += $input->readListEnd(); } else { @@ -12991,9 +16485,307 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter85) + foreach ($this->success as $iter148) { - $xfer += $iter85->write($output); + $xfer += $iter148->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_getAllUserExperimentsWithPagination_args { + static $_TSPEC; + + public $gatewayId = null; + public $userName = null; + public $limit = null; + public $offset = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 4 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } + } + } + + public function getName() { + return 'Airavata_getAllUserExperimentsWithPagination_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_getAllUserExperimentsWithPagination_args'); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 3); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 4); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_getAllUserExperimentsWithPagination_result { + static $_TSPEC; + + public $success = null; + public $ire = null; + public $ace = null; + public $ase = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Experiment\Experiment', + ), + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 3 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + } + } + + public function getName() { + return 'Airavata_getAllUserExperimentsWithPagination_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size149 = 0; + $_etype152 = 0; + $xfer += $input->readListBegin($_etype152, $_size149); + for ($_i153 = 0; $_i153 < $_size149; ++$_i153) + { + $elem154 = null; + $elem154 = new \Airavata\Model\Workspace\Experiment\Experiment(); + $xfer += $elem154->read($input); + $this->success []= $elem154; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_getAllUserExperimentsWithPagination_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter155) + { + $xfer += $iter155->write($output); } } $output->writeListEnd(); @@ -14904,15 +18696,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size86 = 0; - $_etype89 = 0; - $xfer += $input->readListBegin($_etype89, $_size86); - for ($_i90 = 0; $_i90 < $_size86; ++$_i90) + $_size156 = 0; + $_etype159 = 0; + $xfer += $input->readListBegin($_etype159, $_size156); + for ($_i160 = 0; $_i160 < $_size156; ++$_i160) { - $elem91 = null; - $elem91 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType(); - $xfer += $elem91->read($input); - $this->success []= $elem91; + $elem161 = null; + $elem161 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType(); + $xfer += $elem161->read($input); + $this->success []= $elem161; } $xfer += $input->readListEnd(); } else { @@ -14972,9 +18764,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter92) + foreach ($this->success as $iter162) { - $xfer += $iter92->write($output); + $xfer += $iter162->write($output); } } $output->writeListEnd(); @@ -15164,15 +18956,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size93 = 0; - $_etype96 = 0; - $xfer += $input->readListBegin($_etype96, $_size93); - for ($_i97 = 0; $_i97 < $_size93; ++$_i97) + $_size163 = 0; + $_etype166 = 0; + $xfer += $input->readListBegin($_etype166, $_size163); + for ($_i167 = 0; $_i167 < $_size163; ++$_i167) { - $elem98 = null; - $elem98 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType(); - $xfer += $elem98->read($input); - $this->success []= $elem98; + $elem168 = null; + $elem168 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType(); + $xfer += $elem168->read($input); + $this->success []= $elem168; } $xfer += $input->readListEnd(); } else { @@ -15232,9 +19024,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter99) + foreach ($this->success as $iter169) { - $xfer += $iter99->write($output); + $xfer += $iter169->write($output); } } $output->writeListEnd(); @@ -15428,18 +19220,18 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size100 = 0; - $_ktype101 = 0; - $_vtype102 = 0; - $xfer += $input->readMapBegin($_ktype101, $_vtype102, $_size100); - for ($_i104 = 0; $_i104 < $_size100; ++$_i104) + $_size170 = 0; + $_ktype171 = 0; + $_vtype172 = 0; + $xfer += $input->readMapBegin($_ktype171, $_vtype172, $_size170); + for ($_i174 = 0; $_i174 < $_size170; ++$_i174) { - $key105 = ''; - $val106 = new \Airavata\Model\Workspace\Experiment\JobStatus(); - $xfer += $input->readString($key105); - $val106 = new \Airavata\Model\Workspace\Experiment\JobStatus(); - $xfer += $val106->read($input); - $this->success[$key105] = $val106; + $key175 = ''; + $val176 = new \Airavata\Model\Workspace\Experiment\JobStatus(); + $xfer += $input->readString($key175); + $val176 = new \Airavata\Model\Workspace\Experiment\JobStatus(); + $xfer += $val176->read($input); + $this->success[$key175] = $val176; } $xfer += $input->readMapEnd(); } else { @@ -15499,10 +19291,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter107 => $viter108) + foreach ($this->success as $kiter177 => $viter178) { - $xfer += $output->writeString($kiter107); - $xfer += $viter108->write($output); + $xfer += $output->writeString($kiter177); + $xfer += $viter178->write($output); } } $output->writeMapEnd(); @@ -15692,15 +19484,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size109 = 0; - $_etype112 = 0; - $xfer += $input->readListBegin($_etype112, $_size109); - for ($_i113 = 0; $_i113 < $_size109; ++$_i113) + $_size179 = 0; + $_etype182 = 0; + $xfer += $input->readListBegin($_etype182, $_size179); + for ($_i183 = 0; $_i183 < $_size179; ++$_i183) { - $elem114 = null; - $elem114 = new \Airavata\Model\Workspace\Experiment\JobDetails(); - $xfer += $elem114->read($input); - $this->success []= $elem114; + $elem184 = null; + $elem184 = new \Airavata\Model\Workspace\Experiment\JobDetails(); + $xfer += $elem184->read($input); + $this->success []= $elem184; } $xfer += $input->readListEnd(); } else { @@ -15760,9 +19552,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter115) + foreach ($this->success as $iter185) { - $xfer += $iter115->write($output); + $xfer += $iter185->write($output); } } $output->writeListEnd(); @@ -15952,15 +19744,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size116 = 0; - $_etype119 = 0; - $xfer += $input->readListBegin($_etype119, $_size116); - for ($_i120 = 0; $_i120 < $_size116; ++$_i120) + $_size186 = 0; + $_etype189 = 0; + $xfer += $input->readListBegin($_etype189, $_size186); + for ($_i190 = 0; $_i190 < $_size186; ++$_i190) { - $elem121 = null; - $elem121 = new \Airavata\Model\Workspace\Experiment\DataTransferDetails(); - $xfer += $elem121->read($input); - $this->success []= $elem121; + $elem191 = null; + $elem191 = new \Airavata\Model\Workspace\Experiment\DataTransferDetails(); + $xfer += $elem191->read($input); + $this->success []= $elem191; } $xfer += $input->readListEnd(); } else { @@ -16020,9 +19812,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter122) + foreach ($this->success as $iter192) { - $xfer += $iter122->write($output); + $xfer += $iter192->write($output); } } $output->writeListEnd(); @@ -17372,15 +21164,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size123 = 0; - $_etype126 = 0; - $xfer += $input->readListBegin($_etype126, $_size123); - for ($_i127 = 0; $_i127 < $_size123; ++$_i127) + $_size193 = 0; + $_etype196 = 0; + $xfer += $input->readListBegin($_etype196, $_size193); + for ($_i197 = 0; $_i197 < $_size193; ++$_i197) { - $elem128 = null; - $elem128 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule(); - $xfer += $elem128->read($input); - $this->success []= $elem128; + $elem198 = null; + $elem198 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule(); + $xfer += $elem198->read($input); + $this->success []= $elem198; } $xfer += $input->readListEnd(); } else { @@ -17432,9 +21224,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter129) + foreach ($this->success as $iter199) { - $xfer += $iter129->write($output); + $xfer += $iter199->write($output); } } $output->writeListEnd(); @@ -18715,15 +22507,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size130 = 0; - $_etype133 = 0; - $xfer += $input->readListBegin($_etype133, $_size130); - for ($_i134 = 0; $_i134 < $_size130; ++$_i134) + $_size200 = 0; + $_etype203 = 0; + $xfer += $input->readListBegin($_etype203, $_size200); + for ($_i204 = 0; $_i204 < $_size200; ++$_i204) { - $elem135 = null; - $elem135 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription(); - $xfer += $elem135->read($input); - $this->success []= $elem135; + $elem205 = null; + $elem205 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription(); + $xfer += $elem205->read($input); + $this->success []= $elem205; } $xfer += $input->readListEnd(); } else { @@ -18775,9 +22567,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter136) + foreach ($this->success as $iter206) { - $xfer += $iter136->write($output); + $xfer += $iter206->write($output); } } $output->writeListEnd(); @@ -18952,14 +22744,14 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size137 = 0; - $_etype140 = 0; - $xfer += $input->readListBegin($_etype140, $_size137); - for ($_i141 = 0; $_i141 < $_size137; ++$_i141) + $_size207 = 0; + $_etype210 = 0; + $xfer += $input->readListBegin($_etype210, $_size207); + for ($_i211 = 0; $_i211 < $_size207; ++$_i211) { - $elem142 = null; - $xfer += $input->readString($elem142); - $this->success []= $elem142; + $elem212 = null; + $xfer += $input->readString($elem212); + $this->success []= $elem212; } $xfer += $input->readListEnd(); } else { @@ -19011,9 +22803,9 @@ public function write($output) { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter143) + foreach ($this->success as $iter213) { - $xfer += $output->writeString($iter143); + $xfer += $output->writeString($iter213); } } $output->writeListEnd(); @@ -20087,17 +23879,17 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size144 = 0; - $_ktype145 = 0; - $_vtype146 = 0; - $xfer += $input->readMapBegin($_ktype145, $_vtype146, $_size144); - for ($_i148 = 0; $_i148 < $_size144; ++$_i148) + $_size214 = 0; + $_ktype215 = 0; + $_vtype216 = 0; + $xfer += $input->readMapBegin($_ktype215, $_vtype216, $_size214); + for ($_i218 = 0; $_i218 < $_size214; ++$_i218) { - $key149 = ''; - $val150 = ''; - $xfer += $input->readString($key149); - $xfer += $input->readString($val150); - $this->success[$key149] = $val150; + $key219 = ''; + $val220 = ''; + $xfer += $input->readString($key219); + $xfer += $input->readString($val220); + $this->success[$key219] = $val220; } $xfer += $input->readMapEnd(); } else { @@ -20149,10 +23941,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter151 => $viter152) + foreach ($this->success as $kiter221 => $viter222) { - $xfer += $output->writeString($kiter151); - $xfer += $output->writeString($viter152); + $xfer += $output->writeString($kiter221); + $xfer += $output->writeString($viter222); } } $output->writeMapEnd(); @@ -20328,15 +24120,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size153 = 0; - $_etype156 = 0; - $xfer += $input->readListBegin($_etype156, $_size153); - for ($_i157 = 0; $_i157 < $_size153; ++$_i157) + $_size223 = 0; + $_etype226 = 0; + $xfer += $input->readListBegin($_etype226, $_size223); + for ($_i227 = 0; $_i227 < $_size223; ++$_i227) { - $elem158 = null; - $elem158 = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription(); - $xfer += $elem158->read($input); - $this->success []= $elem158; + $elem228 = null; + $elem228 = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription(); + $xfer += $elem228->read($input); + $this->success []= $elem228; } $xfer += $input->readListEnd(); } else { @@ -20388,9 +24180,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter159) + foreach ($this->success as $iter229) { - $xfer += $iter159->write($output); + $xfer += $iter229->write($output); } } $output->writeListEnd(); @@ -20566,15 +24358,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size160 = 0; - $_etype163 = 0; - $xfer += $input->readListBegin($_etype163, $_size160); - for ($_i164 = 0; $_i164 < $_size160; ++$_i164) + $_size230 = 0; + $_etype233 = 0; + $xfer += $input->readListBegin($_etype233, $_size230); + for ($_i234 = 0; $_i234 < $_size230; ++$_i234) { - $elem165 = null; - $elem165 = new \Airavata\Model\AppCatalog\AppInterface\InputDataObjectType(); - $xfer += $elem165->read($input); - $this->success []= $elem165; + $elem235 = null; + $elem235 = new \Airavata\Model\AppCatalog\AppInterface\InputDataObjectType(); + $xfer += $elem235->read($input); + $this->success []= $elem235; } $xfer += $input->readListEnd(); } else { @@ -20626,9 +24418,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter166) + foreach ($this->success as $iter236) { - $xfer += $iter166->write($output); + $xfer += $iter236->write($output); } } $output->writeListEnd(); @@ -20804,15 +24596,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size167 = 0; - $_etype170 = 0; - $xfer += $input->readListBegin($_etype170, $_size167); - for ($_i171 = 0; $_i171 < $_size167; ++$_i171) + $_size237 = 0; + $_etype240 = 0; + $xfer += $input->readListBegin($_etype240, $_size237); + for ($_i241 = 0; $_i241 < $_size237; ++$_i241) { - $elem172 = null; - $elem172 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType(); - $xfer += $elem172->read($input); - $this->success []= $elem172; + $elem242 = null; + $elem242 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType(); + $xfer += $elem242->read($input); + $this->success []= $elem242; } $xfer += $input->readListEnd(); } else { @@ -20864,9 +24656,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter173) + foreach ($this->success as $iter243) { - $xfer += $iter173->write($output); + $xfer += $iter243->write($output); } } $output->writeListEnd(); @@ -21045,17 +24837,17 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size174 = 0; - $_ktype175 = 0; - $_vtype176 = 0; - $xfer += $input->readMapBegin($_ktype175, $_vtype176, $_size174); - for ($_i178 = 0; $_i178 < $_size174; ++$_i178) + $_size244 = 0; + $_ktype245 = 0; + $_vtype246 = 0; + $xfer += $input->readMapBegin($_ktype245, $_vtype246, $_size244); + for ($_i248 = 0; $_i248 < $_size244; ++$_i248) { - $key179 = ''; - $val180 = ''; - $xfer += $input->readString($key179); - $xfer += $input->readString($val180); - $this->success[$key179] = $val180; + $key249 = ''; + $val250 = ''; + $xfer += $input->readString($key249); + $xfer += $input->readString($val250); + $this->success[$key249] = $val250; } $xfer += $input->readMapEnd(); } else { @@ -21107,10 +24899,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter181 => $viter182) + foreach ($this->success as $kiter251 => $viter252) { - $xfer += $output->writeString($kiter181); - $xfer += $output->writeString($viter182); + $xfer += $output->writeString($kiter251); + $xfer += $output->writeString($viter252); } } $output->writeMapEnd(); @@ -21697,17 +25489,17 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size183 = 0; - $_ktype184 = 0; - $_vtype185 = 0; - $xfer += $input->readMapBegin($_ktype184, $_vtype185, $_size183); - for ($_i187 = 0; $_i187 < $_size183; ++$_i187) + $_size253 = 0; + $_ktype254 = 0; + $_vtype255 = 0; + $xfer += $input->readMapBegin($_ktype254, $_vtype255, $_size253); + for ($_i257 = 0; $_i257 < $_size253; ++$_i257) { - $key188 = ''; - $val189 = ''; - $xfer += $input->readString($key188); - $xfer += $input->readString($val189); - $this->success[$key188] = $val189; + $key258 = ''; + $val259 = ''; + $xfer += $input->readString($key258); + $xfer += $input->readString($val259); + $this->success[$key258] = $val259; } $xfer += $input->readMapEnd(); } else { @@ -21759,10 +25551,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter190 => $viter191) + foreach ($this->success as $kiter260 => $viter261) { - $xfer += $output->writeString($kiter190); - $xfer += $output->writeString($viter191); + $xfer += $output->writeString($kiter260); + $xfer += $output->writeString($viter261); } } $output->writeMapEnd(); @@ -28387,17 +32179,17 @@ public function read($input) case 1: if ($ftype == TType::MAP) { $this->jobSubmissionPriorityMap = array(); - $_size192 = 0; - $_ktype193 = 0; - $_vtype194 = 0; - $xfer += $input->readMapBegin($_ktype193, $_vtype194, $_size192); - for ($_i196 = 0; $_i196 < $_size192; ++$_i196) + $_size262 = 0; + $_ktype263 = 0; + $_vtype264 = 0; + $xfer += $input->readMapBegin($_ktype263, $_vtype264, $_size262); + for ($_i266 = 0; $_i266 < $_size262; ++$_i266) { - $key197 = ''; - $val198 = 0; - $xfer += $input->readString($key197); - $xfer += $input->readI32($val198); - $this->jobSubmissionPriorityMap[$key197] = $val198; + $key267 = ''; + $val268 = 0; + $xfer += $input->readString($key267); + $xfer += $input->readI32($val268); + $this->jobSubmissionPriorityMap[$key267] = $val268; } $xfer += $input->readMapEnd(); } else { @@ -28425,10 +32217,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::I32, count($this->jobSubmissionPriorityMap)); { - foreach ($this->jobSubmissionPriorityMap as $kiter199 => $viter200) + foreach ($this->jobSubmissionPriorityMap as $kiter269 => $viter270) { - $xfer += $output->writeString($kiter199); - $xfer += $output->writeI32($viter200); + $xfer += $output->writeString($kiter269); + $xfer += $output->writeI32($viter270); } } $output->writeMapEnd(); @@ -28631,17 +32423,17 @@ public function read($input) case 1: if ($ftype == TType::MAP) { $this->dataMovementPriorityMap = array(); - $_size201 = 0; - $_ktype202 = 0; - $_vtype203 = 0; - $xfer += $input->readMapBegin($_ktype202, $_vtype203, $_size201); - for ($_i205 = 0; $_i205 < $_size201; ++$_i205) + $_size271 = 0; + $_ktype272 = 0; + $_vtype273 = 0; + $xfer += $input->readMapBegin($_ktype272, $_vtype273, $_size271); + for ($_i275 = 0; $_i275 < $_size271; ++$_i275) { - $key206 = ''; - $val207 = 0; - $xfer += $input->readString($key206); - $xfer += $input->readI32($val207); - $this->dataMovementPriorityMap[$key206] = $val207; + $key276 = ''; + $val277 = 0; + $xfer += $input->readString($key276); + $xfer += $input->readI32($val277); + $this->dataMovementPriorityMap[$key276] = $val277; } $xfer += $input->readMapEnd(); } else { @@ -28669,10 +32461,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::I32, count($this->dataMovementPriorityMap)); { - foreach ($this->dataMovementPriorityMap as $kiter208 => $viter209) + foreach ($this->dataMovementPriorityMap as $kiter278 => $viter279) { - $xfer += $output->writeString($kiter208); - $xfer += $output->writeI32($viter209); + $xfer += $output->writeString($kiter278); + $xfer += $output->writeI32($viter279); } } $output->writeMapEnd(); @@ -31901,15 +35693,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size210 = 0; - $_etype213 = 0; - $xfer += $input->readListBegin($_etype213, $_size210); - for ($_i214 = 0; $_i214 < $_size210; ++$_i214) + $_size280 = 0; + $_etype283 = 0; + $xfer += $input->readListBegin($_etype283, $_size280); + for ($_i284 = 0; $_i284 < $_size280; ++$_i284) { - $elem215 = null; - $elem215 = new \Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference(); - $xfer += $elem215->read($input); - $this->success []= $elem215; + $elem285 = null; + $elem285 = new \Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference(); + $xfer += $elem285->read($input); + $this->success []= $elem285; } $xfer += $input->readListEnd(); } else { @@ -31961,9 +35753,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter216) + foreach ($this->success as $iter286) { - $xfer += $iter216->write($output); + $xfer += $iter286->write($output); } } $output->writeListEnd(); @@ -32117,15 +35909,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size217 = 0; - $_etype220 = 0; - $xfer += $input->readListBegin($_etype220, $_size217); - for ($_i221 = 0; $_i221 < $_size217; ++$_i221) + $_size287 = 0; + $_etype290 = 0; + $xfer += $input->readListBegin($_etype290, $_size287); + for ($_i291 = 0; $_i291 < $_size287; ++$_i291) { - $elem222 = null; - $elem222 = new \Airavata\Model\AppCatalog\GatewayProfile\GatewayResourceProfile(); - $xfer += $elem222->read($input); - $this->success []= $elem222; + $elem292 = null; + $elem292 = new \Airavata\Model\AppCatalog\GatewayProfile\GatewayResourceProfile(); + $xfer += $elem292->read($input); + $this->success []= $elem292; } $xfer += $input->readListEnd(); } else { @@ -32177,9 +35969,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter223) + foreach ($this->success as $iter293) { - $xfer += $iter223->write($output); + $xfer += $iter293->write($output); } } $output->writeListEnd(); @@ -32839,14 +36631,14 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size224 = 0; - $_etype227 = 0; - $xfer += $input->readListBegin($_etype227, $_size224); - for ($_i228 = 0; $_i228 < $_size224; ++$_i228) + $_size294 = 0; + $_etype297 = 0; + $xfer += $input->readListBegin($_etype297, $_size294); + for ($_i298 = 0; $_i298 < $_size294; ++$_i298) { - $elem229 = null; - $xfer += $input->readString($elem229); - $this->success []= $elem229; + $elem299 = null; + $xfer += $input->readString($elem299); + $this->success []= $elem299; } $xfer += $input->readListEnd(); } else { @@ -32898,9 +36690,9 @@ public function write($output) { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter230) + foreach ($this->success as $iter300) { - $xfer += $output->writeString($iter230); + $xfer += $output->writeString($iter300); } } $output->writeListEnd(); diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote index 240a5c7e9a..bba4dff299 100755 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote @@ -38,15 +38,25 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print ' Project getProject(string projectId)' print ' bool deleteProject(string projectId)' print ' getAllUserProjects(string gatewayId, string userName)' + print ' getAllUserProjectsWithPagination(string gatewayId, string userName, i32 limit, i32 offset)' print ' searchProjectsByProjectName(string gatewayId, string userName, string projectName)' + print ' searchProjectsByProjectNameWithPagination(string gatewayId, string userName, string projectName, i32 limit, i32 offset)' print ' searchProjectsByProjectDesc(string gatewayId, string userName, string description)' + print ' searchProjectsByProjectDescWithPagination(string gatewayId, string userName, string description, i32 limit, i32 offset)' print ' searchExperimentsByName(string gatewayId, string userName, string expName)' + print ' searchExperimentsByNameWithPagination(string gatewayId, string userName, string expName, i32 limit, i32 offset)' print ' searchExperimentsByDesc(string gatewayId, string userName, string description)' + print ' searchExperimentsByDescWithPagination(string gatewayId, string userName, string description, i32 limit, i32 offset)' print ' searchExperimentsByApplication(string gatewayId, string userName, string applicationId)' + print ' searchExperimentsByApplicationWithPagination(string gatewayId, string userName, string applicationId, i32 limit, i32 offset)' print ' searchExperimentsByStatus(string gatewayId, string userName, ExperimentState experimentState)' + print ' searchExperimentsByStatusWithPagination(string gatewayId, string userName, ExperimentState experimentState, i32 limit, i32 offset)' print ' searchExperimentsByCreationTime(string gatewayId, string userName, i64 fromTime, i64 toTime)' + print ' searchExperimentsByCreationTimeWithPagination(string gatewayId, string userName, i64 fromTime, i64 toTime, i32 limit, i32 offset)' print ' getAllExperimentsInProject(string projectId)' + print ' getAllExperimentsInProjectWithPagination(string projectId, i32 limit, i32 offset)' print ' getAllUserExperiments(string gatewayId, string userName)' + print ' getAllUserExperimentsWithPagination(string gatewayId, string userName, i32 limit, i32 offset)' print ' string createExperiment(string gatewayId, Experiment experiment)' print ' Experiment getExperiment(string airavataExperimentId)' print ' void updateExperiment(string airavataExperimentId, Experiment experiment)' @@ -280,60 +290,120 @@ elif cmd == 'getAllUserProjects': sys.exit(1) pp.pprint(client.getAllUserProjects(args[0],args[1],)) +elif cmd == 'getAllUserProjectsWithPagination': + if len(args) != 4: + print 'getAllUserProjectsWithPagination requires 4 args' + sys.exit(1) + pp.pprint(client.getAllUserProjectsWithPagination(args[0],args[1],eval(args[2]),eval(args[3]),)) + elif cmd == 'searchProjectsByProjectName': if len(args) != 3: print 'searchProjectsByProjectName requires 3 args' sys.exit(1) pp.pprint(client.searchProjectsByProjectName(args[0],args[1],args[2],)) +elif cmd == 'searchProjectsByProjectNameWithPagination': + if len(args) != 5: + print 'searchProjectsByProjectNameWithPagination requires 5 args' + sys.exit(1) + pp.pprint(client.searchProjectsByProjectNameWithPagination(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) + elif cmd == 'searchProjectsByProjectDesc': if len(args) != 3: print 'searchProjectsByProjectDesc requires 3 args' sys.exit(1) pp.pprint(client.searchProjectsByProjectDesc(args[0],args[1],args[2],)) +elif cmd == 'searchProjectsByProjectDescWithPagination': + if len(args) != 5: + print 'searchProjectsByProjectDescWithPagination requires 5 args' + sys.exit(1) + pp.pprint(client.searchProjectsByProjectDescWithPagination(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) + elif cmd == 'searchExperimentsByName': if len(args) != 3: print 'searchExperimentsByName requires 3 args' sys.exit(1) pp.pprint(client.searchExperimentsByName(args[0],args[1],args[2],)) +elif cmd == 'searchExperimentsByNameWithPagination': + if len(args) != 5: + print 'searchExperimentsByNameWithPagination requires 5 args' + sys.exit(1) + pp.pprint(client.searchExperimentsByNameWithPagination(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) + elif cmd == 'searchExperimentsByDesc': if len(args) != 3: print 'searchExperimentsByDesc requires 3 args' sys.exit(1) pp.pprint(client.searchExperimentsByDesc(args[0],args[1],args[2],)) +elif cmd == 'searchExperimentsByDescWithPagination': + if len(args) != 5: + print 'searchExperimentsByDescWithPagination requires 5 args' + sys.exit(1) + pp.pprint(client.searchExperimentsByDescWithPagination(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) + elif cmd == 'searchExperimentsByApplication': if len(args) != 3: print 'searchExperimentsByApplication requires 3 args' sys.exit(1) pp.pprint(client.searchExperimentsByApplication(args[0],args[1],args[2],)) +elif cmd == 'searchExperimentsByApplicationWithPagination': + if len(args) != 5: + print 'searchExperimentsByApplicationWithPagination requires 5 args' + sys.exit(1) + pp.pprint(client.searchExperimentsByApplicationWithPagination(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) + elif cmd == 'searchExperimentsByStatus': if len(args) != 3: print 'searchExperimentsByStatus requires 3 args' sys.exit(1) pp.pprint(client.searchExperimentsByStatus(args[0],args[1],eval(args[2]),)) +elif cmd == 'searchExperimentsByStatusWithPagination': + if len(args) != 5: + print 'searchExperimentsByStatusWithPagination requires 5 args' + sys.exit(1) + pp.pprint(client.searchExperimentsByStatusWithPagination(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),)) + elif cmd == 'searchExperimentsByCreationTime': if len(args) != 4: print 'searchExperimentsByCreationTime requires 4 args' sys.exit(1) pp.pprint(client.searchExperimentsByCreationTime(args[0],args[1],eval(args[2]),eval(args[3]),)) +elif cmd == 'searchExperimentsByCreationTimeWithPagination': + if len(args) != 6: + print 'searchExperimentsByCreationTimeWithPagination requires 6 args' + sys.exit(1) + pp.pprint(client.searchExperimentsByCreationTimeWithPagination(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),)) + elif cmd == 'getAllExperimentsInProject': if len(args) != 1: print 'getAllExperimentsInProject requires 1 args' sys.exit(1) pp.pprint(client.getAllExperimentsInProject(args[0],)) +elif cmd == 'getAllExperimentsInProjectWithPagination': + if len(args) != 3: + print 'getAllExperimentsInProjectWithPagination requires 3 args' + sys.exit(1) + pp.pprint(client.getAllExperimentsInProjectWithPagination(args[0],eval(args[1]),eval(args[2]),)) + elif cmd == 'getAllUserExperiments': if len(args) != 2: print 'getAllUserExperiments requires 2 args' sys.exit(1) pp.pprint(client.getAllUserExperiments(args[0],args[1],)) +elif cmd == 'getAllUserExperimentsWithPagination': + if len(args) != 4: + print 'getAllUserExperimentsWithPagination requires 4 args' + sys.exit(1) + pp.pprint(client.getAllUserExperimentsWithPagination(args[0],args[1],eval(args[2]),eval(args[3]),)) + elif cmd == 'createExperiment': if len(args) != 2: print 'createExperiment requires 2 args' diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py index cab0463431..a5562891c4 100644 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py @@ -155,12 +155,35 @@ def getAllUserProjects(self, gatewayId, userName): * * @param userName * The Project Object described in the workspaceModel + * @deprecated Instead use getAllUserProjectsWithPagination + * + + Parameters: + - gatewayId + - userName + """ + pass + + def getAllUserProjectsWithPagination(self, gatewayId, userName, limit, offset): + """ + * Get all Project by user with pagination. Results will be ordered based + * on creation time DESC * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched * Parameters: - gatewayId - userName + - limit + - offset """ pass @@ -168,23 +191,86 @@ def searchProjectsByProjectName(self, gatewayId, userName, projectName): """ Get all Project for user by project name + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param projectName + The name of the project on which the results to be fetched + @deprecated Instead use searchProjectsByProjectNameWithPagination + + Parameters: + - gatewayId + - userName + - projectName + """ + pass + + def searchProjectsByProjectNameWithPagination(self, gatewayId, userName, projectName, limit, offset): + """ + Get all Project for user by project name with pagination.Results will be ordered based + on creation time DESC + + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param projectName + The name of the project on which the results to be fetched + @param limit + The amount results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - projectName + - limit + - offset """ pass def searchProjectsByProjectDesc(self, gatewayId, userName, description): """ Get all Project for user by project description + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param description + The description to be matched + @deprecated Instead use searchProjectsByProjectDescWithPagination + + Parameters: + - gatewayId + - userName + - description + """ + pass + + def searchProjectsByProjectDescWithPagination(self, gatewayId, userName, description, limit, offset): + """ + Search and get all Projects for user by project description with pagination. Results + will be ordered based on creation time DESC + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param description + The description to be matched + @param limit + The amount results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - description + - limit + - offset """ pass @@ -192,11 +278,45 @@ def searchExperimentsByName(self, gatewayId, userName, expName): """ Search Experiments by experiment name + @param gatewayId + Identifier of the requested gateway + @param useNname + Username of the requested user + @param expName + Experiment name to be matched + @deprecated + Instead use searchExperimentsByNameWithPagination + + + Parameters: + - gatewayId + - userName + - expName + """ + pass + + def searchExperimentsByNameWithPagination(self, gatewayId, userName, expName, limit, offset): + """ + Search Experiments by experiment name with pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param expName + Experiment name to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - expName + - limit + - offset """ pass @@ -204,11 +324,44 @@ def searchExperimentsByDesc(self, gatewayId, userName, description): """ Search Experiments by experiment name + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param description + Experiment description to be matched + @deprecated + Instead use searchExperimentsByDescWithPagination + + Parameters: + - gatewayId + - userName + - description + """ + pass + + def searchExperimentsByDescWithPagination(self, gatewayId, userName, description, limit, offset): + """ + Search Experiments by experiment name with pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param description + Experiment description to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - description + - limit + - offset """ pass @@ -216,11 +369,44 @@ def searchExperimentsByApplication(self, gatewayId, userName, applicationId): """ Search Experiments by application id + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param applicationId + Application id to be matched + @deprecated + Instead use searchExperimentsByApplicationWithPagination + + Parameters: + - gatewayId + - userName + - applicationId + """ + pass + + def searchExperimentsByApplicationWithPagination(self, gatewayId, userName, applicationId, limit, offset): + """ + Search Experiments by application id with pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param applicationId + Application id to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - applicationId + - limit + - offset """ pass @@ -228,24 +414,95 @@ def searchExperimentsByStatus(self, gatewayId, userName, experimentState): """ Search Experiments by experiment status + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param experimentState + Experiement state to be matched + @deprecated + Instead use searchExperimentsByStatusWithPagination + + Parameters: + - gatewayId + - userName + - experimentState + """ + pass + + def searchExperimentsByStatusWithPagination(self, gatewayId, userName, experimentState, limit, offset): + """ + Search Experiments by experiment status with pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param experimentState + Experiement state to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - experimentState + - limit + - offset """ pass def searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): """ - Search Experiments by experiment status + Search Experiments by experiment creation time + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param fromTime + Start time of the experiments creation time + @param toTime + End time of the experiement creation time + @deprecated + Instead use searchExperimentsByCreationTimeWithPagination + + Parameters: + - gatewayId + - userName + - fromTime + - toTime + """ + pass + + def searchExperimentsByCreationTimeWithPagination(self, gatewayId, userName, fromTime, toTime, limit, offset): + """ + Search Experiments by experiment creation time with pagination. Results will be sorted + based on creation time DESC + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param fromTime + Start time of the experiments creation time + @param toTime + End time of the experiement creation time + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - fromTime - toTime + - limit + - offset """ pass @@ -253,9 +510,32 @@ def getAllExperimentsInProject(self, projectId): """ Get all Experiments within a Project + @param projectId + Identifier of the project + @deprecated + Instead use getAllExperimentsInProjectWithPagination + + Parameters: + - projectId + """ + pass + + def getAllExperimentsInProjectWithPagination(self, projectId, limit, offset): + """ + Get all Experiments within project with pagination. Results will be sorted + based on creation time DESC + + @param projectId + Identifier of the project + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - projectId + - limit + - offset """ pass @@ -263,10 +543,38 @@ def getAllUserExperiments(self, gatewayId, userName): """ Get all Experiments by user + @param gatewayId + Identifier of the requesting gateway + @param userName + Username of the requested user + @deprecated + Instead use getAllUserExperimentsWithPagination + + Parameters: + - gatewayId + - userName + """ + pass + + def getAllUserExperimentsWithPagination(self, gatewayId, userName, limit, offset): + """ + Get all Experiments by user pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requesting gateway + @param userName + Username of the requested user + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName + - limit + - offset """ pass @@ -2358,7 +2666,7 @@ def getAllUserProjects(self, gatewayId, userName): * * @param userName * The Project Object described in the workspaceModel - * + * @deprecated Instead use getAllUserProjectsWithPagination * Parameters: @@ -2397,37 +2705,49 @@ def recv_getAllUserProjects(self): raise result.ase raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserProjects failed: unknown result"); - def searchProjectsByProjectName(self, gatewayId, userName, projectName): + def getAllUserProjectsWithPagination(self, gatewayId, userName, limit, offset): """ - Get all Project for user by project name - + * Get all Project by user with pagination. Results will be ordered based + * on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + * Parameters: - gatewayId - userName - - projectName + - limit + - offset """ - self.send_searchProjectsByProjectName(gatewayId, userName, projectName) - return self.recv_searchProjectsByProjectName() + self.send_getAllUserProjectsWithPagination(gatewayId, userName, limit, offset) + return self.recv_getAllUserProjectsWithPagination() - def send_searchProjectsByProjectName(self, gatewayId, userName, projectName): - self._oprot.writeMessageBegin('searchProjectsByProjectName', TMessageType.CALL, self._seqid) - args = searchProjectsByProjectName_args() + def send_getAllUserProjectsWithPagination(self, gatewayId, userName, limit, offset): + self._oprot.writeMessageBegin('getAllUserProjectsWithPagination', TMessageType.CALL, self._seqid) + args = getAllUserProjectsWithPagination_args() args.gatewayId = gatewayId args.userName = userName - args.projectName = projectName + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchProjectsByProjectName(self): + def recv_getAllUserProjectsWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = searchProjectsByProjectName_result() + result = getAllUserProjectsWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2438,39 +2758,46 @@ def recv_searchProjectsByProjectName(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserProjectsWithPagination failed: unknown result"); - def searchProjectsByProjectDesc(self, gatewayId, userName, description): + def searchProjectsByProjectName(self, gatewayId, userName, projectName): """ - Get all Project for user by project description + Get all Project for user by project name + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param projectName + The name of the project on which the results to be fetched + @deprecated Instead use searchProjectsByProjectNameWithPagination Parameters: - gatewayId - userName - - description + - projectName """ - self.send_searchProjectsByProjectDesc(gatewayId, userName, description) - return self.recv_searchProjectsByProjectDesc() + self.send_searchProjectsByProjectName(gatewayId, userName, projectName) + return self.recv_searchProjectsByProjectName() - def send_searchProjectsByProjectDesc(self, gatewayId, userName, description): - self._oprot.writeMessageBegin('searchProjectsByProjectDesc', TMessageType.CALL, self._seqid) - args = searchProjectsByProjectDesc_args() + def send_searchProjectsByProjectName(self, gatewayId, userName, projectName): + self._oprot.writeMessageBegin('searchProjectsByProjectName', TMessageType.CALL, self._seqid) + args = searchProjectsByProjectName_args() args.gatewayId = gatewayId args.userName = userName - args.description = description + args.projectName = projectName args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchProjectsByProjectDesc(self): + def recv_searchProjectsByProjectName(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = searchProjectsByProjectDesc_result() + result = searchProjectsByProjectName_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2481,39 +2808,54 @@ def recv_searchProjectsByProjectDesc(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); - def searchExperimentsByName(self, gatewayId, userName, expName): + def searchProjectsByProjectNameWithPagination(self, gatewayId, userName, projectName, limit, offset): """ - Search Experiments by experiment name + Get all Project for user by project name with pagination.Results will be ordered based + on creation time DESC + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param projectName + The name of the project on which the results to be fetched + @param limit + The amount results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - - expName + - projectName + - limit + - offset """ - self.send_searchExperimentsByName(gatewayId, userName, expName) - return self.recv_searchExperimentsByName() + self.send_searchProjectsByProjectNameWithPagination(gatewayId, userName, projectName, limit, offset) + return self.recv_searchProjectsByProjectNameWithPagination() - def send_searchExperimentsByName(self, gatewayId, userName, expName): - self._oprot.writeMessageBegin('searchExperimentsByName', TMessageType.CALL, self._seqid) - args = searchExperimentsByName_args() + def send_searchProjectsByProjectNameWithPagination(self, gatewayId, userName, projectName, limit, offset): + self._oprot.writeMessageBegin('searchProjectsByProjectNameWithPagination', TMessageType.CALL, self._seqid) + args = searchProjectsByProjectNameWithPagination_args() args.gatewayId = gatewayId args.userName = userName - args.expName = expName + args.projectName = projectName + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByName(self): + def recv_searchProjectsByProjectNameWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = searchExperimentsByName_result() + result = searchProjectsByProjectNameWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2524,24 +2866,30 @@ def recv_searchExperimentsByName(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByName failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectNameWithPagination failed: unknown result"); - def searchExperimentsByDesc(self, gatewayId, userName, description): + def searchProjectsByProjectDesc(self, gatewayId, userName, description): """ - Search Experiments by experiment name - + Get all Project for user by project description + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param description + The description to be matched + @deprecated Instead use searchProjectsByProjectDescWithPagination Parameters: - gatewayId - userName - description """ - self.send_searchExperimentsByDesc(gatewayId, userName, description) - return self.recv_searchExperimentsByDesc() + self.send_searchProjectsByProjectDesc(gatewayId, userName, description) + return self.recv_searchProjectsByProjectDesc() - def send_searchExperimentsByDesc(self, gatewayId, userName, description): - self._oprot.writeMessageBegin('searchExperimentsByDesc', TMessageType.CALL, self._seqid) - args = searchExperimentsByDesc_args() + def send_searchProjectsByProjectDesc(self, gatewayId, userName, description): + self._oprot.writeMessageBegin('searchProjectsByProjectDesc', TMessageType.CALL, self._seqid) + args = searchProjectsByProjectDesc_args() args.gatewayId = gatewayId args.userName = userName args.description = description @@ -2549,14 +2897,14 @@ def send_searchExperimentsByDesc(self, gatewayId, userName, description): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByDesc(self): + def recv_searchProjectsByProjectDesc(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = searchExperimentsByDesc_result() + result = searchProjectsByProjectDesc_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2567,39 +2915,54 @@ def recv_searchExperimentsByDesc(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); - def searchExperimentsByApplication(self, gatewayId, userName, applicationId): + def searchProjectsByProjectDescWithPagination(self, gatewayId, userName, description, limit, offset): """ - Search Experiments by application id + Search and get all Projects for user by project description with pagination. Results + will be ordered based on creation time DESC + @param gatewayId + The identifier for the requested gateway. + @param userName + The identifier of the user + @param description + The description to be matched + @param limit + The amount results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - - applicationId + - description + - limit + - offset """ - self.send_searchExperimentsByApplication(gatewayId, userName, applicationId) - return self.recv_searchExperimentsByApplication() + self.send_searchProjectsByProjectDescWithPagination(gatewayId, userName, description, limit, offset) + return self.recv_searchProjectsByProjectDescWithPagination() - def send_searchExperimentsByApplication(self, gatewayId, userName, applicationId): - self._oprot.writeMessageBegin('searchExperimentsByApplication', TMessageType.CALL, self._seqid) - args = searchExperimentsByApplication_args() + def send_searchProjectsByProjectDescWithPagination(self, gatewayId, userName, description, limit, offset): + self._oprot.writeMessageBegin('searchProjectsByProjectDescWithPagination', TMessageType.CALL, self._seqid) + args = searchProjectsByProjectDescWithPagination_args() args.gatewayId = gatewayId args.userName = userName - args.applicationId = applicationId + args.description = description + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByApplication(self): + def recv_searchProjectsByProjectDescWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = searchExperimentsByApplication_result() + result = searchProjectsByProjectDescWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2610,39 +2973,48 @@ def recv_searchExperimentsByApplication(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectDescWithPagination failed: unknown result"); - def searchExperimentsByStatus(self, gatewayId, userName, experimentState): + def searchExperimentsByName(self, gatewayId, userName, expName): """ - Search Experiments by experiment status + Search Experiments by experiment name + + @param gatewayId + Identifier of the requested gateway + @param useNname + Username of the requested user + @param expName + Experiment name to be matched + @deprecated + Instead use searchExperimentsByNameWithPagination Parameters: - gatewayId - userName - - experimentState + - expName """ - self.send_searchExperimentsByStatus(gatewayId, userName, experimentState) - return self.recv_searchExperimentsByStatus() + self.send_searchExperimentsByName(gatewayId, userName, expName) + return self.recv_searchExperimentsByName() - def send_searchExperimentsByStatus(self, gatewayId, userName, experimentState): - self._oprot.writeMessageBegin('searchExperimentsByStatus', TMessageType.CALL, self._seqid) - args = searchExperimentsByStatus_args() - args.gatewayId = gatewayId + def send_searchExperimentsByName(self, gatewayId, userName, expName): + self._oprot.writeMessageBegin('searchExperimentsByName', TMessageType.CALL, self._seqid) + args = searchExperimentsByName_args() + args.gatewayId = gatewayId args.userName = userName - args.experimentState = experimentState + args.expName = expName args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByStatus(self): + def recv_searchExperimentsByName(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = searchExperimentsByStatus_result() + result = searchExperimentsByName_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2653,41 +3025,54 @@ def recv_searchExperimentsByStatus(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByName failed: unknown result"); - def searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): + def searchExperimentsByNameWithPagination(self, gatewayId, userName, expName, limit, offset): """ - Search Experiments by experiment status + Search Experiments by experiment name with pagination. Results will be sorted + based on creation time DESC + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param expName + Experiment name to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName - - fromTime - - toTime + - expName + - limit + - offset """ - self.send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime) - return self.recv_searchExperimentsByCreationTime() + self.send_searchExperimentsByNameWithPagination(gatewayId, userName, expName, limit, offset) + return self.recv_searchExperimentsByNameWithPagination() - def send_searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): - self._oprot.writeMessageBegin('searchExperimentsByCreationTime', TMessageType.CALL, self._seqid) - args = searchExperimentsByCreationTime_args() + def send_searchExperimentsByNameWithPagination(self, gatewayId, userName, expName, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByNameWithPagination', TMessageType.CALL, self._seqid) + args = searchExperimentsByNameWithPagination_args() args.gatewayId = gatewayId args.userName = userName - args.fromTime = fromTime - args.toTime = toTime + args.expName = expName + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByCreationTime(self): + def recv_searchExperimentsByNameWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = searchExperimentsByCreationTime_result() + result = searchExperimentsByNameWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2698,35 +3083,47 @@ def recv_searchExperimentsByCreationTime(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByNameWithPagination failed: unknown result"); - def getAllExperimentsInProject(self, projectId): + def searchExperimentsByDesc(self, gatewayId, userName, description): """ - Get all Experiments within a Project + Search Experiments by experiment name + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param description + Experiment description to be matched + @deprecated + Instead use searchExperimentsByDescWithPagination Parameters: - - projectId + - gatewayId + - userName + - description """ - self.send_getAllExperimentsInProject(projectId) - return self.recv_getAllExperimentsInProject() + self.send_searchExperimentsByDesc(gatewayId, userName, description) + return self.recv_searchExperimentsByDesc() - def send_getAllExperimentsInProject(self, projectId): - self._oprot.writeMessageBegin('getAllExperimentsInProject', TMessageType.CALL, self._seqid) - args = getAllExperimentsInProject_args() - args.projectId = projectId + def send_searchExperimentsByDesc(self, gatewayId, userName, description): + self._oprot.writeMessageBegin('searchExperimentsByDesc', TMessageType.CALL, self._seqid) + args = searchExperimentsByDesc_args() + args.gatewayId = gatewayId + args.userName = userName + args.description = description args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllExperimentsInProject(self): + def recv_searchExperimentsByDesc(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllExperimentsInProject_result() + result = searchExperimentsByDesc_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2737,39 +3134,54 @@ def recv_getAllExperimentsInProject(self): raise result.ace if result.ase is not None: raise result.ase - if result.pnfe is not None: - raise result.pnfe - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); - def getAllUserExperiments(self, gatewayId, userName): + def searchExperimentsByDescWithPagination(self, gatewayId, userName, description, limit, offset): """ - Get all Experiments by user + Search Experiments by experiment name with pagination. Results will be sorted + based on creation time DESC + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param description + Experiment description to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - gatewayId - userName + - description + - limit + - offset """ - self.send_getAllUserExperiments(gatewayId, userName) - return self.recv_getAllUserExperiments() + self.send_searchExperimentsByDescWithPagination(gatewayId, userName, description, limit, offset) + return self.recv_searchExperimentsByDescWithPagination() - def send_getAllUserExperiments(self, gatewayId, userName): - self._oprot.writeMessageBegin('getAllUserExperiments', TMessageType.CALL, self._seqid) - args = getAllUserExperiments_args() + def send_searchExperimentsByDescWithPagination(self, gatewayId, userName, description, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByDescWithPagination', TMessageType.CALL, self._seqid) + args = searchExperimentsByDescWithPagination_args() args.gatewayId = gatewayId args.userName = userName + args.description = description + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllUserExperiments(self): + def recv_searchExperimentsByDescWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllUserExperiments_result() + result = searchExperimentsByDescWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2780,68 +3192,47 @@ def recv_getAllUserExperiments(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserExperiments failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByDescWithPagination failed: unknown result"); - def createExperiment(self, gatewayId, experiment): + def searchExperimentsByApplication(self, gatewayId, userName, applicationId): """ - Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed - but inferred from the authentication header. This experiment is just a persistent place holder. The client - has to subsequently configure and launch the created experiment. No action is taken on Airavata Server except - registering the experiment in a persistent store. - - @param basicExperimentMetadata - The create experiment will require the basic experiment metadata like the name and description, intended user, - the gateway identifer and if the experiment should be shared public by defualt. During the creation of an experiment - the ExperimentMetadata is a required field. - - @return - The server-side generated airavata experiment globally unique identifier. - - @throws org.apache.airavata.model.error.InvalidRequestException - For any incorrect forming of the request itself. - - @throws org.apache.airavata.model.error.AiravataClientException - The following list of exceptions are thrown which Airavata Client can take corrective actions to resolve: - - UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time administrative - step, then Airavata Registry will not have a provenance area setup. The client has to follow - gateway registration steps and retry this request. - - AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined. - For now this is a place holder. - - INVALID_AUTHORIZATION - This will throw an authorization exception. When a more robust security hand-shake - is implemented, the authorization will be more substantial. - - @throws org.apache.airavata.model.error.AiravataSystemException - This exception will be thrown for any Airavata Server side issues and if the problem cannot be corrected by the client - rather an Airavata Administrator will be notified to take corrective action. + Search Experiments by application id + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param applicationId + Application id to be matched + @deprecated + Instead use searchExperimentsByApplicationWithPagination Parameters: - gatewayId - - experiment + - userName + - applicationId """ - self.send_createExperiment(gatewayId, experiment) - return self.recv_createExperiment() + self.send_searchExperimentsByApplication(gatewayId, userName, applicationId) + return self.recv_searchExperimentsByApplication() - def send_createExperiment(self, gatewayId, experiment): - self._oprot.writeMessageBegin('createExperiment', TMessageType.CALL, self._seqid) - args = createExperiment_args() + def send_searchExperimentsByApplication(self, gatewayId, userName, applicationId): + self._oprot.writeMessageBegin('searchExperimentsByApplication', TMessageType.CALL, self._seqid) + args = searchExperimentsByApplication_args() args.gatewayId = gatewayId - args.experiment = experiment + args.userName = userName + args.applicationId = applicationId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_createExperiment(self): + def recv_searchExperimentsByApplication(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = createExperiment_result() + result = searchExperimentsByApplication_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2852,585 +3243,571 @@ def recv_createExperiment(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "createExperiment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); - def getExperiment(self, airavataExperimentId): + def searchExperimentsByApplicationWithPagination(self, gatewayId, userName, applicationId, limit, offset): """ - Fetch previously created experiment metadata. - - @param airavataExperimentId - The identifier for the requested experiment. This is returned during the create experiment step. - - @return experimentMetada - This method will return the previously stored experiment metadata. - - @throws org.apache.airavata.model.error.InvalidRequestException - For any incorrect forming of the request itself. - - @throws org.apache.airavata.model.error.ExperimentNotFoundException - If the specified experiment is not previously created, then an Experiment Not Found Exception is thrown. - - @throws org.apache.airavata.model.error.AiravataClientException - The following list of exceptions are thrown which Airavata Client can take corrective actions to resolve: - - UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time administrative - step, then Airavata Registry will not have a provenance area setup. The client has to follow - gateway registration steps and retry this request. - - AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined. - For now this is a place holder. - - INVALID_AUTHORIZATION - This will throw an authorization exception. When a more robust security hand-shake - is implemented, the authorization will be more substantial. - - @throws org.apache.airavata.model.error.AiravataSystemException - This exception will be thrown for any Airavata Server side issues and if the problem cannot be corrected by the client - rather an Airavata Administrator will be notified to take corrective action. + Search Experiments by application id with pagination. Results will be sorted + based on creation time DESC + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param applicationId + Application id to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - - airavataExperimentId + - gatewayId + - userName + - applicationId + - limit + - offset """ - self.send_getExperiment(airavataExperimentId) - return self.recv_getExperiment() + self.send_searchExperimentsByApplicationWithPagination(gatewayId, userName, applicationId, limit, offset) + return self.recv_searchExperimentsByApplicationWithPagination() - def send_getExperiment(self, airavataExperimentId): - self._oprot.writeMessageBegin('getExperiment', TMessageType.CALL, self._seqid) - args = getExperiment_args() - args.airavataExperimentId = airavataExperimentId + def send_searchExperimentsByApplicationWithPagination(self, gatewayId, userName, applicationId, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByApplicationWithPagination', TMessageType.CALL, self._seqid) + args = searchExperimentsByApplicationWithPagination_args() + args.gatewayId = gatewayId + args.userName = userName + args.applicationId = applicationId + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getExperiment(self): + def recv_searchExperimentsByApplicationWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getExperiment_result() + result = searchExperimentsByApplicationWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperiment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByApplicationWithPagination failed: unknown result"); - def updateExperiment(self, airavataExperimentId, experiment): + def searchExperimentsByStatus(self, gatewayId, userName, experimentState): """ - Configure a previously created experiment with required inputs, scheduling and other quality of service - parameters. This method only updates the experiment object within the registry. The experiment has to be launched - to make it actionable by the server. - - @param airavataExperimentId - The identifier for the requested experiment. This is returned during the create experiment step. - - @param experimentConfigurationData - The configuration information of the experiment with application input parameters, computational resource scheduling - information, special input output handling and additional quality of service parameters. - - @return - This method call does not have a return value. - - @throws org.apache.airavata.model.error.InvalidRequestException - For any incorrect forming of the request itself. - - @throws org.apache.airavata.model.error.ExperimentNotFoundException - If the specified experiment is not previously created, then an Experiment Not Found Exception is thrown. - - @throws org.apache.airavata.model.error.AiravataClientException - The following list of exceptions are thrown which Airavata Client can take corrective actions to resolve: - - UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time administrative - step, then Airavata Registry will not have a provenance area setup. The client has to follow - gateway registration steps and retry this request. - - AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined. - For now this is a place holder. - - INVALID_AUTHORIZATION - This will throw an authorization exception. When a more robust security hand-shake - is implemented, the authorization will be more substantial. - - @throws org.apache.airavata.model.error.AiravataSystemException - This exception will be thrown for any Airavata Server side issues and if the problem cannot be corrected by the client - rather an Airavata Administrator will be notified to take corrective action. + Search Experiments by experiment status + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param experimentState + Experiement state to be matched + @deprecated + Instead use searchExperimentsByStatusWithPagination Parameters: - - airavataExperimentId - - experiment + - gatewayId + - userName + - experimentState """ - self.send_updateExperiment(airavataExperimentId, experiment) - self.recv_updateExperiment() + self.send_searchExperimentsByStatus(gatewayId, userName, experimentState) + return self.recv_searchExperimentsByStatus() - def send_updateExperiment(self, airavataExperimentId, experiment): - self._oprot.writeMessageBegin('updateExperiment', TMessageType.CALL, self._seqid) - args = updateExperiment_args() - args.airavataExperimentId = airavataExperimentId - args.experiment = experiment + def send_searchExperimentsByStatus(self, gatewayId, userName, experimentState): + self._oprot.writeMessageBegin('searchExperimentsByStatus', TMessageType.CALL, self._seqid) + args = searchExperimentsByStatus_args() + args.gatewayId = gatewayId + args.userName = userName + args.experimentState = experimentState args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateExperiment(self): + def recv_searchExperimentsByStatus(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateExperiment_result() + result = searchExperimentsByStatus_result() result.read(self._iprot) self._iprot.readMessageEnd() + if result.success is not None: + return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - return + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); - def updateExperimentConfiguration(self, airavataExperimentId, userConfiguration): + def searchExperimentsByStatusWithPagination(self, gatewayId, userName, experimentState, limit, offset): """ + Search Experiments by experiment status with pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param experimentState + Experiement state to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched + Parameters: - - airavataExperimentId - - userConfiguration + - gatewayId + - userName + - experimentState + - limit + - offset """ - self.send_updateExperimentConfiguration(airavataExperimentId, userConfiguration) - self.recv_updateExperimentConfiguration() + self.send_searchExperimentsByStatusWithPagination(gatewayId, userName, experimentState, limit, offset) + return self.recv_searchExperimentsByStatusWithPagination() - def send_updateExperimentConfiguration(self, airavataExperimentId, userConfiguration): - self._oprot.writeMessageBegin('updateExperimentConfiguration', TMessageType.CALL, self._seqid) - args = updateExperimentConfiguration_args() - args.airavataExperimentId = airavataExperimentId - args.userConfiguration = userConfiguration + def send_searchExperimentsByStatusWithPagination(self, gatewayId, userName, experimentState, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByStatusWithPagination', TMessageType.CALL, self._seqid) + args = searchExperimentsByStatusWithPagination_args() + args.gatewayId = gatewayId + args.userName = userName + args.experimentState = experimentState + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateExperimentConfiguration(self): + def recv_searchExperimentsByStatusWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateExperimentConfiguration_result() + result = searchExperimentsByStatusWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() - return + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByStatusWithPagination failed: unknown result"); - def updateResourceScheduleing(self, airavataExperimentId, resourceScheduling): + def searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): """ + Search Experiments by experiment creation time + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param fromTime + Start time of the experiments creation time + @param toTime + End time of the experiement creation time + @deprecated + Instead use searchExperimentsByCreationTimeWithPagination + Parameters: - - airavataExperimentId - - resourceScheduling + - gatewayId + - userName + - fromTime + - toTime """ - self.send_updateResourceScheduleing(airavataExperimentId, resourceScheduling) - self.recv_updateResourceScheduleing() + self.send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime) + return self.recv_searchExperimentsByCreationTime() - def send_updateResourceScheduleing(self, airavataExperimentId, resourceScheduling): - self._oprot.writeMessageBegin('updateResourceScheduleing', TMessageType.CALL, self._seqid) - args = updateResourceScheduleing_args() - args.airavataExperimentId = airavataExperimentId - args.resourceScheduling = resourceScheduling + def send_searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): + self._oprot.writeMessageBegin('searchExperimentsByCreationTime', TMessageType.CALL, self._seqid) + args = searchExperimentsByCreationTime_args() + args.gatewayId = gatewayId + args.userName = userName + args.fromTime = fromTime + args.toTime = toTime args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateResourceScheduleing(self): + def recv_searchExperimentsByCreationTime(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateResourceScheduleing_result() + result = searchExperimentsByCreationTime_result() result.read(self._iprot) self._iprot.readMessageEnd() - return + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); - def validateExperiment(self, airavataExperimentId): + def searchExperimentsByCreationTimeWithPagination(self, gatewayId, userName, fromTime, toTime, limit, offset): """ - * - * Validate experiment configuration. A true in general indicates, the experiment is ready to be launched. - * - * @param experimentID - * @return sucess/failure - * - * + Search Experiments by experiment creation time with pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requested gateway + @param userName + Username of the requested user + @param fromTime + Start time of the experiments creation time + @param toTime + End time of the experiement creation time + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: - - airavataExperimentId + - gatewayId + - userName + - fromTime + - toTime + - limit + - offset """ - self.send_validateExperiment(airavataExperimentId) - return self.recv_validateExperiment() + self.send_searchExperimentsByCreationTimeWithPagination(gatewayId, userName, fromTime, toTime, limit, offset) + return self.recv_searchExperimentsByCreationTimeWithPagination() - def send_validateExperiment(self, airavataExperimentId): - self._oprot.writeMessageBegin('validateExperiment', TMessageType.CALL, self._seqid) - args = validateExperiment_args() - args.airavataExperimentId = airavataExperimentId + def send_searchExperimentsByCreationTimeWithPagination(self, gatewayId, userName, fromTime, toTime, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByCreationTimeWithPagination', TMessageType.CALL, self._seqid) + args = searchExperimentsByCreationTimeWithPagination_args() + args.gatewayId = gatewayId + args.userName = userName + args.fromTime = fromTime + args.toTime = toTime + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_validateExperiment(self): + def recv_searchExperimentsByCreationTimeWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = validateExperiment_result() + result = searchExperimentsByCreationTimeWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "validateExperiment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTimeWithPagination failed: unknown result"); - def launchExperiment(self, airavataExperimentId, airavataCredStoreToken): + def getAllExperimentsInProject(self, projectId): """ - Launch a previously created and configured experiment. Airavata Server will then start processing the request and appropriate - notifications and intermediate and output data will be subsequently available for this experiment. - - @param airavataExperimentId - The identifier for the requested experiment. This is returned during the create experiment step. - - @param airavataCredStoreToken: - A requirement to execute experiments within Airavata is to first register the targeted remote computational account - credentials with Airavata Credential Store. The administrative API (related to credential store) will return a - generated token associated with the registered credentials. The client has to security posses this token id and is - required to pass it to Airavata Server for all execution requests. - Note: At this point only the credential store token is required so the string is directly passed here. In future if - if more security credentials are enables, then the structure ExecutionSecurityParameters should be used. - Note: This parameter is not persisted within Airavata Registry for security reasons. - - @return - This method call does not have a return value. - - @throws org.apache.airavata.model.error.InvalidRequestException - For any incorrect forming of the request itself. - - @throws org.apache.airavata.model.error.ExperimentNotFoundException - If the specified experiment is not previously created, then an Experiment Not Found Exception is thrown. - - @throws org.apache.airavata.model.error.AiravataClientException - The following list of exceptions are thrown which Airavata Client can take corrective actions to resolve: - - UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time administrative - step, then Airavata Registry will not have a provenance area setup. The client has to follow - gateway registration steps and retry this request. - - AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined. - For now this is a place holder. - - INVALID_AUTHORIZATION - This will throw an authorization exception. When a more robust security hand-shake - is implemented, the authorization will be more substantial. - - @throws org.apache.airavata.model.error.AiravataSystemException - This exception will be thrown for any Airavata Server side issues and if the problem cannot be corrected by the client - rather an Airavata Administrator will be notified to take corrective action. + Get all Experiments within a Project + @param projectId + Identifier of the project + @deprecated + Instead use getAllExperimentsInProjectWithPagination Parameters: - - airavataExperimentId - - airavataCredStoreToken + - projectId """ - self.send_launchExperiment(airavataExperimentId, airavataCredStoreToken) - self.recv_launchExperiment() + self.send_getAllExperimentsInProject(projectId) + return self.recv_getAllExperimentsInProject() - def send_launchExperiment(self, airavataExperimentId, airavataCredStoreToken): - self._oprot.writeMessageBegin('launchExperiment', TMessageType.CALL, self._seqid) - args = launchExperiment_args() - args.airavataExperimentId = airavataExperimentId - args.airavataCredStoreToken = airavataCredStoreToken + def send_getAllExperimentsInProject(self, projectId): + self._oprot.writeMessageBegin('getAllExperimentsInProject', TMessageType.CALL, self._seqid) + args = getAllExperimentsInProject_args() + args.projectId = projectId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_launchExperiment(self): + def recv_getAllExperimentsInProject(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = launchExperiment_result() + result = getAllExperimentsInProject_result() result.read(self._iprot) self._iprot.readMessageEnd() + if result.success is not None: + return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - if result.lve is not None: - raise result.lve - return + if result.pnfe is not None: + raise result.pnfe + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); - def getExperimentStatus(self, airavataExperimentId): + def getAllExperimentsInProjectWithPagination(self, projectId, limit, offset): """ + Get all Experiments within project with pagination. Results will be sorted + based on creation time DESC + + @param projectId + Identifier of the project + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched + Parameters: - - airavataExperimentId + - projectId + - limit + - offset """ - self.send_getExperimentStatus(airavataExperimentId) - return self.recv_getExperimentStatus() + self.send_getAllExperimentsInProjectWithPagination(projectId, limit, offset) + return self.recv_getAllExperimentsInProjectWithPagination() - def send_getExperimentStatus(self, airavataExperimentId): - self._oprot.writeMessageBegin('getExperimentStatus', TMessageType.CALL, self._seqid) - args = getExperimentStatus_args() - args.airavataExperimentId = airavataExperimentId + def send_getAllExperimentsInProjectWithPagination(self, projectId, limit, offset): + self._oprot.writeMessageBegin('getAllExperimentsInProjectWithPagination', TMessageType.CALL, self._seqid) + args = getAllExperimentsInProjectWithPagination_args() + args.projectId = projectId + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getExperimentStatus(self): + def recv_getAllExperimentsInProjectWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getExperimentStatus_result() + result = getAllExperimentsInProjectWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperimentStatus failed: unknown result"); + if result.pnfe is not None: + raise result.pnfe + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllExperimentsInProjectWithPagination failed: unknown result"); - def getExperimentOutputs(self, airavataExperimentId): + def getAllUserExperiments(self, gatewayId, userName): """ + Get all Experiments by user + + @param gatewayId + Identifier of the requesting gateway + @param userName + Username of the requested user + @deprecated + Instead use getAllUserExperimentsWithPagination + Parameters: - - airavataExperimentId + - gatewayId + - userName """ - self.send_getExperimentOutputs(airavataExperimentId) - return self.recv_getExperimentOutputs() + self.send_getAllUserExperiments(gatewayId, userName) + return self.recv_getAllUserExperiments() - def send_getExperimentOutputs(self, airavataExperimentId): - self._oprot.writeMessageBegin('getExperimentOutputs', TMessageType.CALL, self._seqid) - args = getExperimentOutputs_args() - args.airavataExperimentId = airavataExperimentId + def send_getAllUserExperiments(self, gatewayId, userName): + self._oprot.writeMessageBegin('getAllUserExperiments', TMessageType.CALL, self._seqid) + args = getAllUserExperiments_args() + args.gatewayId = gatewayId + args.userName = userName args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getExperimentOutputs(self): + def recv_getAllUserExperiments(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getExperimentOutputs_result() + result = getAllUserExperiments_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperimentOutputs failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserExperiments failed: unknown result"); - def getIntermediateOutputs(self, airavataExperimentId): + def getAllUserExperimentsWithPagination(self, gatewayId, userName, limit, offset): """ + Get all Experiments by user pagination. Results will be sorted + based on creation time DESC + + @param gatewayId + Identifier of the requesting gateway + @param userName + Username of the requested user + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched + Parameters: - - airavataExperimentId + - gatewayId + - userName + - limit + - offset """ - self.send_getIntermediateOutputs(airavataExperimentId) - return self.recv_getIntermediateOutputs() + self.send_getAllUserExperimentsWithPagination(gatewayId, userName, limit, offset) + return self.recv_getAllUserExperimentsWithPagination() - def send_getIntermediateOutputs(self, airavataExperimentId): - self._oprot.writeMessageBegin('getIntermediateOutputs', TMessageType.CALL, self._seqid) - args = getIntermediateOutputs_args() - args.airavataExperimentId = airavataExperimentId + def send_getAllUserExperimentsWithPagination(self, gatewayId, userName, limit, offset): + self._oprot.writeMessageBegin('getAllUserExperimentsWithPagination', TMessageType.CALL, self._seqid) + args = getAllUserExperimentsWithPagination_args() + args.gatewayId = gatewayId + args.userName = userName + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getIntermediateOutputs(self): + def recv_getAllUserExperimentsWithPagination(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getIntermediateOutputs_result() + result = getAllUserExperimentsWithPagination_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getIntermediateOutputs failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserExperimentsWithPagination failed: unknown result"); - def getJobStatuses(self, airavataExperimentId): - """ - Parameters: - - airavataExperimentId + def createExperiment(self, gatewayId, experiment): """ - self.send_getJobStatuses(airavataExperimentId) - return self.recv_getJobStatuses() + Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed + but inferred from the authentication header. This experiment is just a persistent place holder. The client + has to subsequently configure and launch the created experiment. No action is taken on Airavata Server except + registering the experiment in a persistent store. - def send_getJobStatuses(self, airavataExperimentId): - self._oprot.writeMessageBegin('getJobStatuses', TMessageType.CALL, self._seqid) - args = getJobStatuses_args() - args.airavataExperimentId = airavataExperimentId - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() + @param basicExperimentMetadata + The create experiment will require the basic experiment metadata like the name and description, intended user, + the gateway identifer and if the experiment should be shared public by defualt. During the creation of an experiment + the ExperimentMetadata is a required field. - def recv_getJobStatuses(self): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = getJobStatuses_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.enf is not None: - raise result.enf - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getJobStatuses failed: unknown result"); + @return + The server-side generated airavata experiment globally unique identifier. - def getJobDetails(self, airavataExperimentId): - """ - Parameters: - - airavataExperimentId - """ - self.send_getJobDetails(airavataExperimentId) - return self.recv_getJobDetails() + @throws org.apache.airavata.model.error.InvalidRequestException + For any incorrect forming of the request itself. - def send_getJobDetails(self, airavataExperimentId): - self._oprot.writeMessageBegin('getJobDetails', TMessageType.CALL, self._seqid) - args = getJobDetails_args() - args.airavataExperimentId = airavataExperimentId - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() + @throws org.apache.airavata.model.error.AiravataClientException + The following list of exceptions are thrown which Airavata Client can take corrective actions to resolve: + + UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time administrative + step, then Airavata Registry will not have a provenance area setup. The client has to follow + gateway registration steps and retry this request. + + AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined. + For now this is a place holder. + + INVALID_AUTHORIZATION - This will throw an authorization exception. When a more robust security hand-shake + is implemented, the authorization will be more substantial. + + @throws org.apache.airavata.model.error.AiravataSystemException + This exception will be thrown for any Airavata Server side issues and if the problem cannot be corrected by the client + rather an Airavata Administrator will be notified to take corrective action. - def recv_getJobDetails(self): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = getJobDetails_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.enf is not None: - raise result.enf - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getJobDetails failed: unknown result"); - def getDataTransferDetails(self, airavataExperimentId): - """ Parameters: - - airavataExperimentId + - gatewayId + - experiment """ - self.send_getDataTransferDetails(airavataExperimentId) - return self.recv_getDataTransferDetails() + self.send_createExperiment(gatewayId, experiment) + return self.recv_createExperiment() - def send_getDataTransferDetails(self, airavataExperimentId): - self._oprot.writeMessageBegin('getDataTransferDetails', TMessageType.CALL, self._seqid) - args = getDataTransferDetails_args() - args.airavataExperimentId = airavataExperimentId + def send_createExperiment(self, gatewayId, experiment): + self._oprot.writeMessageBegin('createExperiment', TMessageType.CALL, self._seqid) + args = createExperiment_args() + args.gatewayId = gatewayId + args.experiment = experiment args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getDataTransferDetails(self): + def recv_createExperiment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getDataTransferDetails_result() + result = createExperiment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire - if result.enf is not None: - raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getDataTransferDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "createExperiment failed: unknown result"); - def cloneExperiment(self, existingExperimentID, newExperimentName): + def getExperiment(self, airavataExperimentId): """ - Clone an specified experiment with a new name. A copy of the experiment configuration is made and is persisted with new metadata. - The client has to subsequently update this configuration if needed and launch the cloned experiment. - - @param newExperimentName - experiment name that should be used in the cloned experiment + Fetch previously created experiment metadata. - @param updatedExperiment - Once an experiment is cloned, to disambiguate, the users are suggested to provide new metadata. This will again require - the basic experiment metadata like the name and description, intended user, the gateway identifier and if the experiment - should be shared public by default. + @param airavataExperimentId + The identifier for the requested experiment. This is returned during the create experiment step. - @return - The server-side generated airavata experiment globally unique identifier for the newly cloned experiment. + @return experimentMetada + This method will return the previously stored experiment metadata. @throws org.apache.airavata.model.error.InvalidRequestException For any incorrect forming of the request itself. @@ -3457,29 +3834,27 @@ def cloneExperiment(self, existingExperimentID, newExperimentName): Parameters: - - existingExperimentID - - newExperimentName + - airavataExperimentId """ - self.send_cloneExperiment(existingExperimentID, newExperimentName) - return self.recv_cloneExperiment() + self.send_getExperiment(airavataExperimentId) + return self.recv_getExperiment() - def send_cloneExperiment(self, existingExperimentID, newExperimentName): - self._oprot.writeMessageBegin('cloneExperiment', TMessageType.CALL, self._seqid) - args = cloneExperiment_args() - args.existingExperimentID = existingExperimentID - args.newExperimentName = newExperimentName + def send_getExperiment(self, airavataExperimentId): + self._oprot.writeMessageBegin('getExperiment', TMessageType.CALL, self._seqid) + args = getExperiment_args() + args.airavataExperimentId = airavataExperimentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_cloneExperiment(self): + def recv_getExperiment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = cloneExperiment_result() + result = getExperiment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -3492,15 +3867,21 @@ def recv_cloneExperiment(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "cloneExperiment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperiment failed: unknown result"); - def terminateExperiment(self, airavataExperimentId, tokenId): + def updateExperiment(self, airavataExperimentId, experiment): """ - Terminate a running experiment. + Configure a previously created experiment with required inputs, scheduling and other quality of service + parameters. This method only updates the experiment object within the registry. The experiment has to be launched + to make it actionable by the server. @param airavataExperimentId The identifier for the requested experiment. This is returned during the create experiment step. + @param experimentConfigurationData + The configuration information of the experiment with application input parameters, computational resource scheduling + information, special input output handling and additional quality of service parameters. + @return This method call does not have a return value. @@ -3530,28 +3911,28 @@ def terminateExperiment(self, airavataExperimentId, tokenId): Parameters: - airavataExperimentId - - tokenId + - experiment """ - self.send_terminateExperiment(airavataExperimentId, tokenId) - self.recv_terminateExperiment() + self.send_updateExperiment(airavataExperimentId, experiment) + self.recv_updateExperiment() - def send_terminateExperiment(self, airavataExperimentId, tokenId): - self._oprot.writeMessageBegin('terminateExperiment', TMessageType.CALL, self._seqid) - args = terminateExperiment_args() + def send_updateExperiment(self, airavataExperimentId, experiment): + self._oprot.writeMessageBegin('updateExperiment', TMessageType.CALL, self._seqid) + args = updateExperiment_args() args.airavataExperimentId = airavataExperimentId - args.tokenId = tokenId + args.experiment = experiment args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_terminateExperiment(self): + def recv_updateExperiment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = terminateExperiment_result() + result = updateExperiment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.ire is not None: @@ -3564,538 +3945,605 @@ def recv_terminateExperiment(self): raise result.ase return - def registerApplicationModule(self, gatewayId, applicationModule): + def updateExperimentConfiguration(self, airavataExperimentId, userConfiguration): """ - Register a Application Module. - - @param applicationModule - Application Module Object created from the datamodel. - - @return appModuleId - Returns a server-side generated airavata appModule globally unique identifier. - - Parameters: - - gatewayId - - applicationModule + - airavataExperimentId + - userConfiguration """ - self.send_registerApplicationModule(gatewayId, applicationModule) - return self.recv_registerApplicationModule() + self.send_updateExperimentConfiguration(airavataExperimentId, userConfiguration) + self.recv_updateExperimentConfiguration() - def send_registerApplicationModule(self, gatewayId, applicationModule): - self._oprot.writeMessageBegin('registerApplicationModule', TMessageType.CALL, self._seqid) - args = registerApplicationModule_args() - args.gatewayId = gatewayId - args.applicationModule = applicationModule + def send_updateExperimentConfiguration(self, airavataExperimentId, userConfiguration): + self._oprot.writeMessageBegin('updateExperimentConfiguration', TMessageType.CALL, self._seqid) + args = updateExperimentConfiguration_args() + args.airavataExperimentId = airavataExperimentId + args.userConfiguration = userConfiguration args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_registerApplicationModule(self): + def recv_updateExperimentConfiguration(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = registerApplicationModule_result() + result = updateExperimentConfiguration_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "registerApplicationModule failed: unknown result"); + return - def getApplicationModule(self, appModuleId): + def updateResourceScheduleing(self, airavataExperimentId, resourceScheduling): """ - Fetch a Application Module. - - @param appModuleId - The identifier for the requested application module - - @return applicationModule - Returns a application Module Object. - - Parameters: - - appModuleId + - airavataExperimentId + - resourceScheduling """ - self.send_getApplicationModule(appModuleId) - return self.recv_getApplicationModule() + self.send_updateResourceScheduleing(airavataExperimentId, resourceScheduling) + self.recv_updateResourceScheduleing() - def send_getApplicationModule(self, appModuleId): - self._oprot.writeMessageBegin('getApplicationModule', TMessageType.CALL, self._seqid) - args = getApplicationModule_args() - args.appModuleId = appModuleId + def send_updateResourceScheduleing(self, airavataExperimentId, resourceScheduling): + self._oprot.writeMessageBegin('updateResourceScheduleing', TMessageType.CALL, self._seqid) + args = updateResourceScheduleing_args() + args.airavataExperimentId = airavataExperimentId + args.resourceScheduling = resourceScheduling args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getApplicationModule(self): + def recv_updateResourceScheduleing(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getApplicationModule_result() + result = updateResourceScheduleing_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + return + + def validateExperiment(self, airavataExperimentId): + """ + * + * Validate experiment configuration. A true in general indicates, the experiment is ready to be launched. + * + * @param experimentID + * @return sucess/failure + * + * + + Parameters: + - airavataExperimentId + """ + self.send_validateExperiment(airavataExperimentId) + return self.recv_validateExperiment() + + def send_validateExperiment(self, airavataExperimentId): + self._oprot.writeMessageBegin('validateExperiment', TMessageType.CALL, self._seqid) + args = validateExperiment_args() + args.airavataExperimentId = airavataExperimentId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_validateExperiment(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = validateExperiment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationModule failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "validateExperiment failed: unknown result"); - def updateApplicationModule(self, appModuleId, applicationModule): + def launchExperiment(self, airavataExperimentId, airavataCredStoreToken): """ - Update a Application Module. + Launch a previously created and configured experiment. Airavata Server will then start processing the request and appropriate + notifications and intermediate and output data will be subsequently available for this experiment. - @param appModuleId - The identifier for the requested application module to be updated. + @param airavataExperimentId + The identifier for the requested experiment. This is returned during the create experiment step. - @param applicationModule - Application Module Object created from the datamodel. + @param airavataCredStoreToken: + A requirement to execute experiments within Airavata is to first register the targeted remote computational account + credentials with Airavata Credential Store. The administrative API (related to credential store) will return a + generated token associated with the registered credentials. The client has to security posses this token id and is + required to pass it to Airavata Server for all execution requests. + Note: At this point only the credential store token is required so the string is directly passed here. In future if + if more security credentials are enables, then the structure ExecutionSecurityParameters should be used. + Note: This parameter is not persisted within Airavata Registry for security reasons. - @return status - Returns a success/failure of the update. + @return + This method call does not have a return value. + + @throws org.apache.airavata.model.error.InvalidRequestException + For any incorrect forming of the request itself. + + @throws org.apache.airavata.model.error.ExperimentNotFoundException + If the specified experiment is not previously created, then an Experiment Not Found Exception is thrown. + + @throws org.apache.airavata.model.error.AiravataClientException + The following list of exceptions are thrown which Airavata Client can take corrective actions to resolve: + + UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time administrative + step, then Airavata Registry will not have a provenance area setup. The client has to follow + gateway registration steps and retry this request. + + AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined. + For now this is a place holder. + + INVALID_AUTHORIZATION - This will throw an authorization exception. When a more robust security hand-shake + is implemented, the authorization will be more substantial. + + @throws org.apache.airavata.model.error.AiravataSystemException + This exception will be thrown for any Airavata Server side issues and if the problem cannot be corrected by the client + rather an Airavata Administrator will be notified to take corrective action. Parameters: - - appModuleId - - applicationModule + - airavataExperimentId + - airavataCredStoreToken """ - self.send_updateApplicationModule(appModuleId, applicationModule) - return self.recv_updateApplicationModule() + self.send_launchExperiment(airavataExperimentId, airavataCredStoreToken) + self.recv_launchExperiment() - def send_updateApplicationModule(self, appModuleId, applicationModule): - self._oprot.writeMessageBegin('updateApplicationModule', TMessageType.CALL, self._seqid) - args = updateApplicationModule_args() - args.appModuleId = appModuleId - args.applicationModule = applicationModule + def send_launchExperiment(self, airavataExperimentId, airavataCredStoreToken): + self._oprot.writeMessageBegin('launchExperiment', TMessageType.CALL, self._seqid) + args = launchExperiment_args() + args.airavataExperimentId = airavataExperimentId + args.airavataCredStoreToken = airavataCredStoreToken args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateApplicationModule(self): + def recv_launchExperiment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateApplicationModule_result() + result = launchExperiment_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success is not None: - return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateApplicationModule failed: unknown result"); + if result.lve is not None: + raise result.lve + return - def getAllAppModules(self, gatewayId): + def getExperimentStatus(self, airavataExperimentId): """ Parameters: - - gatewayId + - airavataExperimentId """ - self.send_getAllAppModules(gatewayId) - return self.recv_getAllAppModules() + self.send_getExperimentStatus(airavataExperimentId) + return self.recv_getExperimentStatus() - def send_getAllAppModules(self, gatewayId): - self._oprot.writeMessageBegin('getAllAppModules', TMessageType.CALL, self._seqid) - args = getAllAppModules_args() - args.gatewayId = gatewayId + def send_getExperimentStatus(self, airavataExperimentId): + self._oprot.writeMessageBegin('getExperimentStatus', TMessageType.CALL, self._seqid) + args = getExperimentStatus_args() + args.airavataExperimentId = airavataExperimentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllAppModules(self): + def recv_getExperimentStatus(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllAppModules_result() + result = getExperimentStatus_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAppModules failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperimentStatus failed: unknown result"); - def deleteApplicationModule(self, appModuleId): + def getExperimentOutputs(self, airavataExperimentId): """ - Delete a Application Module. - - @param appModuleId - The identifier for the requested application module to be deleted. - - @return status - Returns a success/failure of the deletion. - - Parameters: - - appModuleId + - airavataExperimentId """ - self.send_deleteApplicationModule(appModuleId) - return self.recv_deleteApplicationModule() + self.send_getExperimentOutputs(airavataExperimentId) + return self.recv_getExperimentOutputs() - def send_deleteApplicationModule(self, appModuleId): - self._oprot.writeMessageBegin('deleteApplicationModule', TMessageType.CALL, self._seqid) - args = deleteApplicationModule_args() - args.appModuleId = appModuleId + def send_getExperimentOutputs(self, airavataExperimentId): + self._oprot.writeMessageBegin('getExperimentOutputs', TMessageType.CALL, self._seqid) + args = getExperimentOutputs_args() + args.airavataExperimentId = airavataExperimentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteApplicationModule(self): + def recv_getExperimentOutputs(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteApplicationModule_result() + result = getExperimentOutputs_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteApplicationModule failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperimentOutputs failed: unknown result"); - def registerApplicationDeployment(self, gatewayId, applicationDeployment): + def getIntermediateOutputs(self, airavataExperimentId): """ - Register a Application Deployment. - - @param applicationModule - Application Module Object created from the datamodel. - - @return appDeploymentId - Returns a server-side generated airavata appDeployment globally unique identifier. - - Parameters: - - gatewayId - - applicationDeployment + - airavataExperimentId """ - self.send_registerApplicationDeployment(gatewayId, applicationDeployment) - return self.recv_registerApplicationDeployment() + self.send_getIntermediateOutputs(airavataExperimentId) + return self.recv_getIntermediateOutputs() - def send_registerApplicationDeployment(self, gatewayId, applicationDeployment): - self._oprot.writeMessageBegin('registerApplicationDeployment', TMessageType.CALL, self._seqid) - args = registerApplicationDeployment_args() - args.gatewayId = gatewayId - args.applicationDeployment = applicationDeployment + def send_getIntermediateOutputs(self, airavataExperimentId): + self._oprot.writeMessageBegin('getIntermediateOutputs', TMessageType.CALL, self._seqid) + args = getIntermediateOutputs_args() + args.airavataExperimentId = airavataExperimentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_registerApplicationDeployment(self): + def recv_getIntermediateOutputs(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = registerApplicationDeployment_result() + result = getIntermediateOutputs_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "registerApplicationDeployment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getIntermediateOutputs failed: unknown result"); - def getApplicationDeployment(self, appDeploymentId): + def getJobStatuses(self, airavataExperimentId): """ - Fetch a Application Deployment. - - @param appDeploymentId - The identifier for the requested application module - - @return applicationDeployment - Returns a application Deployment Object. - - Parameters: - - appDeploymentId + - airavataExperimentId """ - self.send_getApplicationDeployment(appDeploymentId) - return self.recv_getApplicationDeployment() + self.send_getJobStatuses(airavataExperimentId) + return self.recv_getJobStatuses() - def send_getApplicationDeployment(self, appDeploymentId): - self._oprot.writeMessageBegin('getApplicationDeployment', TMessageType.CALL, self._seqid) - args = getApplicationDeployment_args() - args.appDeploymentId = appDeploymentId + def send_getJobStatuses(self, airavataExperimentId): + self._oprot.writeMessageBegin('getJobStatuses', TMessageType.CALL, self._seqid) + args = getJobStatuses_args() + args.airavataExperimentId = airavataExperimentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getApplicationDeployment(self): + def recv_getJobStatuses(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getApplicationDeployment_result() + result = getJobStatuses_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationDeployment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getJobStatuses failed: unknown result"); - def updateApplicationDeployment(self, appDeploymentId, applicationDeployment): + def getJobDetails(self, airavataExperimentId): """ - Update a Application Deployment. - - @param appDeploymentId - The identifier for the requested application deployment to be updated. + Parameters: + - airavataExperimentId + """ + self.send_getJobDetails(airavataExperimentId) + return self.recv_getJobDetails() - @param appDeployment - Application Deployment Object created from the datamodel. - - @return status - Returns a success/failure of the update. - - - Parameters: - - appDeploymentId - - applicationDeployment - """ - self.send_updateApplicationDeployment(appDeploymentId, applicationDeployment) - return self.recv_updateApplicationDeployment() - - def send_updateApplicationDeployment(self, appDeploymentId, applicationDeployment): - self._oprot.writeMessageBegin('updateApplicationDeployment', TMessageType.CALL, self._seqid) - args = updateApplicationDeployment_args() - args.appDeploymentId = appDeploymentId - args.applicationDeployment = applicationDeployment + def send_getJobDetails(self, airavataExperimentId): + self._oprot.writeMessageBegin('getJobDetails', TMessageType.CALL, self._seqid) + args = getJobDetails_args() + args.airavataExperimentId = airavataExperimentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateApplicationDeployment(self): + def recv_getJobDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateApplicationDeployment_result() + result = getJobDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateApplicationDeployment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getJobDetails failed: unknown result"); - def deleteApplicationDeployment(self, appDeploymentId): + def getDataTransferDetails(self, airavataExperimentId): """ - Delete a Application deployment. - - @param appDeploymentId - The identifier for the requested application deployment to be deleted. - - @return status - Returns a success/failure of the deletion. - - Parameters: - - appDeploymentId + - airavataExperimentId """ - self.send_deleteApplicationDeployment(appDeploymentId) - return self.recv_deleteApplicationDeployment() + self.send_getDataTransferDetails(airavataExperimentId) + return self.recv_getDataTransferDetails() - def send_deleteApplicationDeployment(self, appDeploymentId): - self._oprot.writeMessageBegin('deleteApplicationDeployment', TMessageType.CALL, self._seqid) - args = deleteApplicationDeployment_args() - args.appDeploymentId = appDeploymentId + def send_getDataTransferDetails(self, airavataExperimentId): + self._oprot.writeMessageBegin('getDataTransferDetails', TMessageType.CALL, self._seqid) + args = getDataTransferDetails_args() + args.airavataExperimentId = airavataExperimentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteApplicationDeployment(self): + def recv_getDataTransferDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteApplicationDeployment_result() + result = getDataTransferDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteApplicationDeployment failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getDataTransferDetails failed: unknown result"); - def getAllApplicationDeployments(self, gatewayId): + def cloneExperiment(self, existingExperimentID, newExperimentName): """ - Fetch all Application Deployment Descriptions. + Clone an specified experiment with a new name. A copy of the experiment configuration is made and is persisted with new metadata. + The client has to subsequently update this configuration if needed and launch the cloned experiment. - @return list - Returns a list of Deployed Resources. + @return + This method call does not have a return value. + + @throws org.apache.airavata.model.error.InvalidRequestException + For any incorrect forming of the request itself. + + @throws org.apache.airavata.model.error.ExperimentNotFoundException + If the specified experiment is not previously created, then an Experiment Not Found Exception is thrown. + + @throws org.apache.airavata.model.error.AiravataClientException + The following list of exceptions are thrown which Airavata Client can take corrective actions to resolve: + + UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time administrative + step, then Airavata Registry will not have a provenance area setup. The client has to follow + gateway registration steps and retry this request. + + AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined. + For now this is a place holder. + + INVALID_AUTHORIZATION - This will throw an authorization exception. When a more robust security hand-shake + is implemented, the authorization will be more substantial. + + @throws org.apache.airavata.model.error.AiravataSystemException + This exception will be thrown for any Airavata Server side issues and if the problem cannot be corrected by the client + rather an Airavata Administrator will be notified to take corrective action. Parameters: - - appModuleId + - airavataExperimentId + - tokenId """ - self.send_getAppModuleDeployedResources(appModuleId) - return self.recv_getAppModuleDeployedResources() + self.send_terminateExperiment(airavataExperimentId, tokenId) + self.recv_terminateExperiment() - def send_getAppModuleDeployedResources(self, appModuleId): - self._oprot.writeMessageBegin('getAppModuleDeployedResources', TMessageType.CALL, self._seqid) - args = getAppModuleDeployedResources_args() - args.appModuleId = appModuleId + def send_terminateExperiment(self, airavataExperimentId, tokenId): + self._oprot.writeMessageBegin('terminateExperiment', TMessageType.CALL, self._seqid) + args = terminateExperiment_args() + args.airavataExperimentId = airavataExperimentId + args.tokenId = tokenId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAppModuleDeployedResources(self): + def recv_terminateExperiment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAppModuleDeployedResources_result() + result = terminateExperiment_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success is not None: - return result.success if result.ire is not None: raise result.ire + if result.enf is not None: + raise result.enf if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAppModuleDeployedResources failed: unknown result"); + return - def registerApplicationInterface(self, gatewayId, applicationInterface): + def registerApplicationModule(self, gatewayId, applicationModule): """ - Register a Application Interface. + Register a Application Module. @param applicationModule Application Module Object created from the datamodel. - @return appInterfaceId - Returns a server-side generated airavata application interface globally unique identifier. + @return appModuleId + Returns a server-side generated airavata appModule globally unique identifier. Parameters: - gatewayId - - applicationInterface + - applicationModule """ - self.send_registerApplicationInterface(gatewayId, applicationInterface) - return self.recv_registerApplicationInterface() + self.send_registerApplicationModule(gatewayId, applicationModule) + return self.recv_registerApplicationModule() - def send_registerApplicationInterface(self, gatewayId, applicationInterface): - self._oprot.writeMessageBegin('registerApplicationInterface', TMessageType.CALL, self._seqid) - args = registerApplicationInterface_args() + def send_registerApplicationModule(self, gatewayId, applicationModule): + self._oprot.writeMessageBegin('registerApplicationModule', TMessageType.CALL, self._seqid) + args = registerApplicationModule_args() args.gatewayId = gatewayId - args.applicationInterface = applicationInterface + args.applicationModule = applicationModule args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_registerApplicationInterface(self): + def recv_registerApplicationModule(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = registerApplicationInterface_result() + result = registerApplicationModule_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4106,42 +4554,41 @@ def recv_registerApplicationInterface(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "registerApplicationInterface failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "registerApplicationModule failed: unknown result"); - def getApplicationInterface(self, appInterfaceId): + def getApplicationModule(self, appModuleId): """ - Fetch a Application Interface. + Fetch a Application Module. - @param appInterfaceId + @param appModuleId The identifier for the requested application module - @return applicationInterface - Returns a application Interface Object. - + @return applicationModule + Returns a application Module Object. Parameters: - - appInterfaceId + - appModuleId """ - self.send_getApplicationInterface(appInterfaceId) - return self.recv_getApplicationInterface() + self.send_getApplicationModule(appModuleId) + return self.recv_getApplicationModule() - def send_getApplicationInterface(self, appInterfaceId): - self._oprot.writeMessageBegin('getApplicationInterface', TMessageType.CALL, self._seqid) - args = getApplicationInterface_args() - args.appInterfaceId = appInterfaceId + def send_getApplicationModule(self, appModuleId): + self._oprot.writeMessageBegin('getApplicationModule', TMessageType.CALL, self._seqid) + args = getApplicationModule_args() + args.appModuleId = appModuleId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getApplicationInterface(self): + def recv_getApplicationModule(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getApplicationInterface_result() + result = getApplicationModule_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4152,47 +4599,46 @@ def recv_getApplicationInterface(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationInterface failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationModule failed: unknown result"); - def updateApplicationInterface(self, appInterfaceId, applicationInterface): + def updateApplicationModule(self, appModuleId, applicationModule): """ - Update a Application Interface. + Update a Application Module. - @param appInterfaceId - The identifier for the requested application deployment to be updated. + @param appModuleId + The identifier for the requested application module to be updated. - @param appInterface - Application Interface Object created from the datamodel. + @param applicationModule + Application Module Object created from the datamodel. @return status Returns a success/failure of the update. - Parameters: - - appInterfaceId - - applicationInterface + - appModuleId + - applicationModule """ - self.send_updateApplicationInterface(appInterfaceId, applicationInterface) - return self.recv_updateApplicationInterface() + self.send_updateApplicationModule(appModuleId, applicationModule) + return self.recv_updateApplicationModule() - def send_updateApplicationInterface(self, appInterfaceId, applicationInterface): - self._oprot.writeMessageBegin('updateApplicationInterface', TMessageType.CALL, self._seqid) - args = updateApplicationInterface_args() - args.appInterfaceId = appInterfaceId - args.applicationInterface = applicationInterface + def send_updateApplicationModule(self, appModuleId, applicationModule): + self._oprot.writeMessageBegin('updateApplicationModule', TMessageType.CALL, self._seqid) + args = updateApplicationModule_args() + args.appModuleId = appModuleId + args.applicationModule = applicationModule args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateApplicationInterface(self): + def recv_updateApplicationModule(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateApplicationInterface_result() + result = updateApplicationModule_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4203,42 +4649,32 @@ def recv_updateApplicationInterface(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateApplicationInterface failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateApplicationModule failed: unknown result"); - def deleteApplicationInterface(self, appInterfaceId): + def getAllAppModules(self, gatewayId): """ - Delete a Application Interface. - - @param appInterfaceId - The identifier for the requested application interface to be deleted. - - @return status - Returns a success/failure of the deletion. - - - Parameters: - - appInterfaceId + - gatewayId """ - self.send_deleteApplicationInterface(appInterfaceId) - return self.recv_deleteApplicationInterface() + self.send_getAllAppModules(gatewayId) + return self.recv_getAllAppModules() - def send_deleteApplicationInterface(self, appInterfaceId): - self._oprot.writeMessageBegin('deleteApplicationInterface', TMessageType.CALL, self._seqid) - args = deleteApplicationInterface_args() - args.appInterfaceId = appInterfaceId + def send_getAllAppModules(self, gatewayId): + self._oprot.writeMessageBegin('getAllAppModules', TMessageType.CALL, self._seqid) + args = getAllAppModules_args() + args.gatewayId = gatewayId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteApplicationInterface(self): + def recv_getAllAppModules(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteApplicationInterface_result() + result = getAllAppModules_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4249,39 +4685,41 @@ def recv_deleteApplicationInterface(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteApplicationInterface failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAppModules failed: unknown result"); - def getAllApplicationInterfaceNames(self, gatewayId): + def deleteApplicationModule(self, appModuleId): """ - Fetch name and id of Application Interface documents. + Delete a Application Module. + @param appModuleId + The identifier for the requested application module to be deleted. - @return map - Returns a list of application interfaces with corresponsing id's + @return status + Returns a success/failure of the deletion. Parameters: - - gatewayId + - appModuleId """ - self.send_getAllApplicationInterfaceNames(gatewayId) - return self.recv_getAllApplicationInterfaceNames() + self.send_deleteApplicationModule(appModuleId) + return self.recv_deleteApplicationModule() - def send_getAllApplicationInterfaceNames(self, gatewayId): - self._oprot.writeMessageBegin('getAllApplicationInterfaceNames', TMessageType.CALL, self._seqid) - args = getAllApplicationInterfaceNames_args() - args.gatewayId = gatewayId + def send_deleteApplicationModule(self, appModuleId): + self._oprot.writeMessageBegin('deleteApplicationModule', TMessageType.CALL, self._seqid) + args = deleteApplicationModule_args() + args.appModuleId = appModuleId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllApplicationInterfaceNames(self): + def recv_deleteApplicationModule(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllApplicationInterfaceNames_result() + result = deleteApplicationModule_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4292,39 +4730,43 @@ def recv_getAllApplicationInterfaceNames(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllApplicationInterfaceNames failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteApplicationModule failed: unknown result"); - def getAllApplicationInterfaces(self, gatewayId): + def registerApplicationDeployment(self, gatewayId, applicationDeployment): """ - Fetch all Application Interface documents. + Register a Application Deployment. + @param applicationModule + Application Module Object created from the datamodel. - @return map - Returns a list of application interfaces documents + @return appDeploymentId + Returns a server-side generated airavata appDeployment globally unique identifier. Parameters: - gatewayId + - applicationDeployment """ - self.send_getAllApplicationInterfaces(gatewayId) - return self.recv_getAllApplicationInterfaces() + self.send_registerApplicationDeployment(gatewayId, applicationDeployment) + return self.recv_registerApplicationDeployment() - def send_getAllApplicationInterfaces(self, gatewayId): - self._oprot.writeMessageBegin('getAllApplicationInterfaces', TMessageType.CALL, self._seqid) - args = getAllApplicationInterfaces_args() + def send_registerApplicationDeployment(self, gatewayId, applicationDeployment): + self._oprot.writeMessageBegin('registerApplicationDeployment', TMessageType.CALL, self._seqid) + args = registerApplicationDeployment_args() args.gatewayId = gatewayId + args.applicationDeployment = applicationDeployment args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllApplicationInterfaces(self): + def recv_registerApplicationDeployment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllApplicationInterfaces_result() + result = registerApplicationDeployment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4335,41 +4777,41 @@ def recv_getAllApplicationInterfaces(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllApplicationInterfaces failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "registerApplicationDeployment failed: unknown result"); - def getApplicationInputs(self, appInterfaceId): + def getApplicationDeployment(self, appDeploymentId): """ - Fetch the list of Application Inputs. + Fetch a Application Deployment. - @param appInterfaceId - The identifier for the requested application interface + @param appDeploymentId + The identifier for the requested application module - @return list - Returns a list of application inputs. + @return applicationDeployment + Returns a application Deployment Object. Parameters: - - appInterfaceId + - appDeploymentId """ - self.send_getApplicationInputs(appInterfaceId) - return self.recv_getApplicationInputs() + self.send_getApplicationDeployment(appDeploymentId) + return self.recv_getApplicationDeployment() - def send_getApplicationInputs(self, appInterfaceId): - self._oprot.writeMessageBegin('getApplicationInputs', TMessageType.CALL, self._seqid) - args = getApplicationInputs_args() - args.appInterfaceId = appInterfaceId + def send_getApplicationDeployment(self, appDeploymentId): + self._oprot.writeMessageBegin('getApplicationDeployment', TMessageType.CALL, self._seqid) + args = getApplicationDeployment_args() + args.appDeploymentId = appDeploymentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getApplicationInputs(self): + def recv_getApplicationDeployment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getApplicationInputs_result() + result = getApplicationDeployment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4380,41 +4822,46 @@ def recv_getApplicationInputs(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationInputs failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationDeployment failed: unknown result"); - def getApplicationOutputs(self, appInterfaceId): + def updateApplicationDeployment(self, appDeploymentId, applicationDeployment): """ - Fetch the list of Application Outputs. + Update a Application Deployment. - @param appInterfaceId - The identifier for the requested application interface + @param appDeploymentId + The identifier for the requested application deployment to be updated. - @return list - Returns a list of application outputs. + @param appDeployment + Application Deployment Object created from the datamodel. + + @return status + Returns a success/failure of the update. Parameters: - - appInterfaceId + - appDeploymentId + - applicationDeployment """ - self.send_getApplicationOutputs(appInterfaceId) - return self.recv_getApplicationOutputs() + self.send_updateApplicationDeployment(appDeploymentId, applicationDeployment) + return self.recv_updateApplicationDeployment() - def send_getApplicationOutputs(self, appInterfaceId): - self._oprot.writeMessageBegin('getApplicationOutputs', TMessageType.CALL, self._seqid) - args = getApplicationOutputs_args() - args.appInterfaceId = appInterfaceId + def send_updateApplicationDeployment(self, appDeploymentId, applicationDeployment): + self._oprot.writeMessageBegin('updateApplicationDeployment', TMessageType.CALL, self._seqid) + args = updateApplicationDeployment_args() + args.appDeploymentId = appDeploymentId + args.applicationDeployment = applicationDeployment args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getApplicationOutputs(self): + def recv_updateApplicationDeployment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getApplicationOutputs_result() + result = updateApplicationDeployment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4425,42 +4872,41 @@ def recv_getApplicationOutputs(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationOutputs failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateApplicationDeployment failed: unknown result"); - def getAvailableAppInterfaceComputeResources(self, appInterfaceId): + def deleteApplicationDeployment(self, appDeploymentId): """ - Fetch a list of all deployed Compute Hosts for a given application interfaces. + Delete a Application deployment. - @param appInterfaceId - The identifier for the requested application interface + @param appDeploymentId + The identifier for the requested application deployment to be deleted. - @return map - A map of registered compute resource id's and their corresponding hostnames. - Deployments of each modules listed within the interfaces will be listed. + @return status + Returns a success/failure of the deletion. Parameters: - - appInterfaceId + - appDeploymentId """ - self.send_getAvailableAppInterfaceComputeResources(appInterfaceId) - return self.recv_getAvailableAppInterfaceComputeResources() + self.send_deleteApplicationDeployment(appDeploymentId) + return self.recv_deleteApplicationDeployment() - def send_getAvailableAppInterfaceComputeResources(self, appInterfaceId): - self._oprot.writeMessageBegin('getAvailableAppInterfaceComputeResources', TMessageType.CALL, self._seqid) - args = getAvailableAppInterfaceComputeResources_args() - args.appInterfaceId = appInterfaceId + def send_deleteApplicationDeployment(self, appDeploymentId): + self._oprot.writeMessageBegin('deleteApplicationDeployment', TMessageType.CALL, self._seqid) + args = deleteApplicationDeployment_args() + args.appDeploymentId = appDeploymentId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAvailableAppInterfaceComputeResources(self): + def recv_deleteApplicationDeployment(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAvailableAppInterfaceComputeResources_result() + result = deleteApplicationDeployment_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4471,41 +4917,38 @@ def recv_getAvailableAppInterfaceComputeResources(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAvailableAppInterfaceComputeResources failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteApplicationDeployment failed: unknown result"); - def registerComputeResource(self, computeResourceDescription): + def getAllApplicationDeployments(self, gatewayId): """ - Register a Compute Resource. - - @param computeResourceDescription - Compute Resource Object created from the datamodel. + Fetch all Application Deployment Descriptions. - @return computeResourceId - Returns a server-side generated airavata compute resource globally unique identifier. + @return list + Returns a list of Deployed Resources. Parameters: - - computeResourceId + - appModuleId """ - self.send_getComputeResource(computeResourceId) - return self.recv_getComputeResource() + self.send_getAppModuleDeployedResources(appModuleId) + return self.recv_getAppModuleDeployedResources() - def send_getComputeResource(self, computeResourceId): - self._oprot.writeMessageBegin('getComputeResource', TMessageType.CALL, self._seqid) - args = getComputeResource_args() - args.computeResourceId = computeResourceId + def send_getAppModuleDeployedResources(self, appModuleId): + self._oprot.writeMessageBegin('getAppModuleDeployedResources', TMessageType.CALL, self._seqid) + args = getAppModuleDeployedResources_args() + args.appModuleId = appModuleId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getComputeResource(self): + def recv_getAppModuleDeployedResources(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getComputeResource_result() + result = getAppModuleDeployedResources_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4561,34 +5004,43 @@ def recv_getComputeResource(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getComputeResource failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAppModuleDeployedResources failed: unknown result"); - def getAllComputeResourceNames(self): + def registerApplicationInterface(self, gatewayId, applicationInterface): """ - Fetch all registered Compute Resources. + Register a Application Interface. - @return A map of registered compute resource id's and thier corresponding hostnames. - Compute Resource Object created from the datamodel.. + @param applicationModule + Application Module Object created from the datamodel. + + @return appInterfaceId + Returns a server-side generated airavata application interface globally unique identifier. + + Parameters: + - gatewayId + - applicationInterface """ - self.send_getAllComputeResourceNames() - return self.recv_getAllComputeResourceNames() + self.send_registerApplicationInterface(gatewayId, applicationInterface) + return self.recv_registerApplicationInterface() - def send_getAllComputeResourceNames(self): - self._oprot.writeMessageBegin('getAllComputeResourceNames', TMessageType.CALL, self._seqid) - args = getAllComputeResourceNames_args() + def send_registerApplicationInterface(self, gatewayId, applicationInterface): + self._oprot.writeMessageBegin('registerApplicationInterface', TMessageType.CALL, self._seqid) + args = registerApplicationInterface_args() + args.gatewayId = gatewayId + args.applicationInterface = applicationInterface args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllComputeResourceNames(self): + def recv_registerApplicationInterface(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllComputeResourceNames_result() + result = registerApplicationInterface_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4599,46 +5051,42 @@ def recv_getAllComputeResourceNames(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllComputeResourceNames failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "registerApplicationInterface failed: unknown result"); - def updateComputeResource(self, computeResourceId, computeResourceDescription): + def getApplicationInterface(self, appInterfaceId): """ - Update a Compute Resource. + Fetch a Application Interface. - @param computeResourceId - The identifier for the requested compute resource to be updated. + @param appInterfaceId + The identifier for the requested application module - @param computeResourceDescription - Compute Resource Object created from the datamodel. + @return applicationInterface + Returns a application Interface Object. - @return status - Returns a success/failure of the update. Parameters: - - computeResourceId - - computeResourceDescription + - appInterfaceId """ - self.send_updateComputeResource(computeResourceId, computeResourceDescription) - return self.recv_updateComputeResource() + self.send_getApplicationInterface(appInterfaceId) + return self.recv_getApplicationInterface() - def send_updateComputeResource(self, computeResourceId, computeResourceDescription): - self._oprot.writeMessageBegin('updateComputeResource', TMessageType.CALL, self._seqid) - args = updateComputeResource_args() - args.computeResourceId = computeResourceId - args.computeResourceDescription = computeResourceDescription + def send_getApplicationInterface(self, appInterfaceId): + self._oprot.writeMessageBegin('getApplicationInterface', TMessageType.CALL, self._seqid) + args = getApplicationInterface_args() + args.appInterfaceId = appInterfaceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateComputeResource(self): + def recv_getApplicationInterface(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateComputeResource_result() + result = getApplicationInterface_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4649,41 +5097,47 @@ def recv_updateComputeResource(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateComputeResource failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationInterface failed: unknown result"); - def deleteComputeResource(self, computeResourceId): + def updateApplicationInterface(self, appInterfaceId, applicationInterface): """ - Delete a Compute Resource. + Update a Application Interface. - @param computeResourceId - The identifier for the requested compute resource to be deleted. + @param appInterfaceId + The identifier for the requested application deployment to be updated. + + @param appInterface + Application Interface Object created from the datamodel. @return status - Returns a success/failure of the deletion. + Returns a success/failure of the update. + Parameters: - - computeResourceId + - appInterfaceId + - applicationInterface """ - self.send_deleteComputeResource(computeResourceId) - return self.recv_deleteComputeResource() + self.send_updateApplicationInterface(appInterfaceId, applicationInterface) + return self.recv_updateApplicationInterface() - def send_deleteComputeResource(self, computeResourceId): - self._oprot.writeMessageBegin('deleteComputeResource', TMessageType.CALL, self._seqid) - args = deleteComputeResource_args() - args.computeResourceId = computeResourceId + def send_updateApplicationInterface(self, appInterfaceId, applicationInterface): + self._oprot.writeMessageBegin('updateApplicationInterface', TMessageType.CALL, self._seqid) + args = updateApplicationInterface_args() + args.appInterfaceId = appInterfaceId + args.applicationInterface = applicationInterface args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteComputeResource(self): + def recv_updateApplicationInterface(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteComputeResource_result() + result = updateApplicationInterface_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4694,52 +5148,42 @@ def recv_deleteComputeResource(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteComputeResource failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateApplicationInterface failed: unknown result"); - def addLocalSubmissionDetails(self, computeResourceId, priorityOrder, localSubmission): + def deleteApplicationInterface(self, appInterfaceId): """ - Add a Local Job Submission details to a compute resource - App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. - - @param computeResourceId - The identifier of the compute resource to which JobSubmission protocol to be added - - @param priorityOrder - Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + Delete a Application Interface. - @param localSubmission - The LOCALSubmission object to be added to the resource. + @param appInterfaceId + The identifier for the requested application interface to be deleted. @return status - Returns the unique job submission id. + Returns a success/failure of the deletion. + Parameters: - - computeResourceId - - priorityOrder - - localSubmission + - appInterfaceId """ - self.send_addLocalSubmissionDetails(computeResourceId, priorityOrder, localSubmission) - return self.recv_addLocalSubmissionDetails() + self.send_deleteApplicationInterface(appInterfaceId) + return self.recv_deleteApplicationInterface() - def send_addLocalSubmissionDetails(self, computeResourceId, priorityOrder, localSubmission): - self._oprot.writeMessageBegin('addLocalSubmissionDetails', TMessageType.CALL, self._seqid) - args = addLocalSubmissionDetails_args() - args.computeResourceId = computeResourceId - args.priorityOrder = priorityOrder - args.localSubmission = localSubmission + def send_deleteApplicationInterface(self, appInterfaceId): + self._oprot.writeMessageBegin('deleteApplicationInterface', TMessageType.CALL, self._seqid) + args = deleteApplicationInterface_args() + args.appInterfaceId = appInterfaceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addLocalSubmissionDetails(self): + def recv_deleteApplicationInterface(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addLocalSubmissionDetails_result() + result = deleteApplicationInterface_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4750,46 +5194,39 @@ def recv_addLocalSubmissionDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addLocalSubmissionDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteApplicationInterface failed: unknown result"); - def updateLocalSubmissionDetails(self, jobSubmissionInterfaceId, localSubmission): + def getAllApplicationInterfaceNames(self, gatewayId): """ - Update the given Local Job Submission details - - @param jobSubmissionInterfaceId - The identifier of the JobSubmission Interface to be updated. + Fetch name and id of Application Interface documents. - @param localSubmission - The LOCALSubmission object to be updated. - @return status - Returns a success/failure of the deletion. + @return map + Returns a list of application interfaces with corresponsing id's Parameters: - - jobSubmissionInterfaceId - - localSubmission + - gatewayId """ - self.send_updateLocalSubmissionDetails(jobSubmissionInterfaceId, localSubmission) - return self.recv_updateLocalSubmissionDetails() + self.send_getAllApplicationInterfaceNames(gatewayId) + return self.recv_getAllApplicationInterfaceNames() - def send_updateLocalSubmissionDetails(self, jobSubmissionInterfaceId, localSubmission): - self._oprot.writeMessageBegin('updateLocalSubmissionDetails', TMessageType.CALL, self._seqid) - args = updateLocalSubmissionDetails_args() - args.jobSubmissionInterfaceId = jobSubmissionInterfaceId - args.localSubmission = localSubmission + def send_getAllApplicationInterfaceNames(self, gatewayId): + self._oprot.writeMessageBegin('getAllApplicationInterfaceNames', TMessageType.CALL, self._seqid) + args = getAllApplicationInterfaceNames_args() + args.gatewayId = gatewayId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateLocalSubmissionDetails(self): + def recv_getAllApplicationInterfaceNames(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateLocalSubmissionDetails_result() + result = getAllApplicationInterfaceNames_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4800,38 +5237,39 @@ def recv_updateLocalSubmissionDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateLocalSubmissionDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllApplicationInterfaceNames failed: unknown result"); - def getLocalJobSubmission(self, jobSubmissionId): + def getAllApplicationInterfaces(self, gatewayId): """ - This method returns localJobSubmission object - @param jobSubmissionInterfaceId - The identifier of the JobSubmission Interface to be retrieved. - @return LOCALSubmission instance + Fetch all Application Interface documents. + + + @return map + Returns a list of application interfaces documents Parameters: - - jobSubmissionId + - gatewayId """ - self.send_getLocalJobSubmission(jobSubmissionId) - return self.recv_getLocalJobSubmission() + self.send_getAllApplicationInterfaces(gatewayId) + return self.recv_getAllApplicationInterfaces() - def send_getLocalJobSubmission(self, jobSubmissionId): - self._oprot.writeMessageBegin('getLocalJobSubmission', TMessageType.CALL, self._seqid) - args = getLocalJobSubmission_args() - args.jobSubmissionId = jobSubmissionId + def send_getAllApplicationInterfaces(self, gatewayId): + self._oprot.writeMessageBegin('getAllApplicationInterfaces', TMessageType.CALL, self._seqid) + args = getAllApplicationInterfaces_args() + args.gatewayId = gatewayId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getLocalJobSubmission(self): + def recv_getAllApplicationInterfaces(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getLocalJobSubmission_result() + result = getAllApplicationInterfaces_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4842,52 +5280,41 @@ def recv_getLocalJobSubmission(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getLocalJobSubmission failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllApplicationInterfaces failed: unknown result"); - def addSSHJobSubmissionDetails(self, computeResourceId, priorityOrder, sshJobSubmission): + def getApplicationInputs(self, appInterfaceId): """ - Add a SSH Job Submission details to a compute resource - App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. + Fetch the list of Application Inputs. - @param computeResourceId - The identifier of the compute resource to which JobSubmission protocol to be added + @param appInterfaceId + The identifier for the requested application interface - @param priorityOrder - Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. - - @param sshJobSubmission - The SSHJobSubmission object to be added to the resource. - - @return status - Returns the unique job submission id. + @return list + Returns a list of application inputs. Parameters: - - computeResourceId - - priorityOrder - - sshJobSubmission + - appInterfaceId """ - self.send_addSSHJobSubmissionDetails(computeResourceId, priorityOrder, sshJobSubmission) - return self.recv_addSSHJobSubmissionDetails() + self.send_getApplicationInputs(appInterfaceId) + return self.recv_getApplicationInputs() - def send_addSSHJobSubmissionDetails(self, computeResourceId, priorityOrder, sshJobSubmission): - self._oprot.writeMessageBegin('addSSHJobSubmissionDetails', TMessageType.CALL, self._seqid) - args = addSSHJobSubmissionDetails_args() - args.computeResourceId = computeResourceId - args.priorityOrder = priorityOrder - args.sshJobSubmission = sshJobSubmission + def send_getApplicationInputs(self, appInterfaceId): + self._oprot.writeMessageBegin('getApplicationInputs', TMessageType.CALL, self._seqid) + args = getApplicationInputs_args() + args.appInterfaceId = appInterfaceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addSSHJobSubmissionDetails(self): + def recv_getApplicationInputs(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addSSHJobSubmissionDetails_result() + result = getApplicationInputs_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4898,38 +5325,41 @@ def recv_addSSHJobSubmissionDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addSSHJobSubmissionDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationInputs failed: unknown result"); - def getSSHJobSubmission(self, jobSubmissionId): + def getApplicationOutputs(self, appInterfaceId): """ - This method returns SSHJobSubmission object - @param jobSubmissionInterfaceId - The identifier of the JobSubmission Interface to be retrieved. - @return SSHJobSubmission instance + Fetch the list of Application Outputs. + + @param appInterfaceId + The identifier for the requested application interface + + @return list + Returns a list of application outputs. Parameters: - - jobSubmissionId + - appInterfaceId """ - self.send_getSSHJobSubmission(jobSubmissionId) - return self.recv_getSSHJobSubmission() + self.send_getApplicationOutputs(appInterfaceId) + return self.recv_getApplicationOutputs() - def send_getSSHJobSubmission(self, jobSubmissionId): - self._oprot.writeMessageBegin('getSSHJobSubmission', TMessageType.CALL, self._seqid) - args = getSSHJobSubmission_args() - args.jobSubmissionId = jobSubmissionId + def send_getApplicationOutputs(self, appInterfaceId): + self._oprot.writeMessageBegin('getApplicationOutputs', TMessageType.CALL, self._seqid) + args = getApplicationOutputs_args() + args.appInterfaceId = appInterfaceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getSSHJobSubmission(self): + def recv_getApplicationOutputs(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getSSHJobSubmission_result() + result = getApplicationOutputs_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4940,52 +5370,42 @@ def recv_getSSHJobSubmission(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getSSHJobSubmission failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getApplicationOutputs failed: unknown result"); - def addUNICOREJobSubmissionDetails(self, computeResourceId, priorityOrder, unicoreJobSubmission): + def getAvailableAppInterfaceComputeResources(self, appInterfaceId): """ - Add a UNICORE Job Submission details to a compute resource - App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. - - @param computeResourceId - The identifier of the compute resource to which JobSubmission protocol to be added - - @param priorityOrder - Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + Fetch a list of all deployed Compute Hosts for a given application interfaces. - @param unicoreJobSubmission - The UnicoreJobSubmission object to be added to the resource. + @param appInterfaceId + The identifier for the requested application interface - @return status - Returns the unique job submission id. + @return map + A map of registered compute resource id's and their corresponding hostnames. + Deployments of each modules listed within the interfaces will be listed. Parameters: - - computeResourceId - - priorityOrder - - unicoreJobSubmission + - appInterfaceId """ - self.send_addUNICOREJobSubmissionDetails(computeResourceId, priorityOrder, unicoreJobSubmission) - return self.recv_addUNICOREJobSubmissionDetails() + self.send_getAvailableAppInterfaceComputeResources(appInterfaceId) + return self.recv_getAvailableAppInterfaceComputeResources() - def send_addUNICOREJobSubmissionDetails(self, computeResourceId, priorityOrder, unicoreJobSubmission): - self._oprot.writeMessageBegin('addUNICOREJobSubmissionDetails', TMessageType.CALL, self._seqid) - args = addUNICOREJobSubmissionDetails_args() - args.computeResourceId = computeResourceId - args.priorityOrder = priorityOrder - args.unicoreJobSubmission = unicoreJobSubmission + def send_getAvailableAppInterfaceComputeResources(self, appInterfaceId): + self._oprot.writeMessageBegin('getAvailableAppInterfaceComputeResources', TMessageType.CALL, self._seqid) + args = getAvailableAppInterfaceComputeResources_args() + args.appInterfaceId = appInterfaceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addUNICOREJobSubmissionDetails(self): + def recv_getAvailableAppInterfaceComputeResources(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addUNICOREJobSubmissionDetails_result() + result = getAvailableAppInterfaceComputeResources_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -4996,38 +5416,41 @@ def recv_addUNICOREJobSubmissionDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addUNICOREJobSubmissionDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAvailableAppInterfaceComputeResources failed: unknown result"); - def getUnicoreJobSubmission(self, jobSubmissionId): + def registerComputeResource(self, computeResourceDescription): """ - * This method returns UnicoreJobSubmission object - * @param jobSubmissionInterfaceId - * The identifier of the JobSubmission Interface to be retrieved. - * @return UnicoreJobSubmission instance - * + Register a Compute Resource. + + @param computeResourceDescription + Compute Resource Object created from the datamodel. + + @return computeResourceId + Returns a server-side generated airavata compute resource globally unique identifier. + Parameters: - - jobSubmissionId + - computeResourceDescription """ - self.send_getUnicoreJobSubmission(jobSubmissionId) - return self.recv_getUnicoreJobSubmission() + self.send_registerComputeResource(computeResourceDescription) + return self.recv_registerComputeResource() - def send_getUnicoreJobSubmission(self, jobSubmissionId): - self._oprot.writeMessageBegin('getUnicoreJobSubmission', TMessageType.CALL, self._seqid) - args = getUnicoreJobSubmission_args() - args.jobSubmissionId = jobSubmissionId + def send_registerComputeResource(self, computeResourceDescription): + self._oprot.writeMessageBegin('registerComputeResource', TMessageType.CALL, self._seqid) + args = registerComputeResource_args() + args.computeResourceDescription = computeResourceDescription args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getUnicoreJobSubmission(self): + def recv_registerComputeResource(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getUnicoreJobSubmission_result() + result = registerComputeResource_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5038,52 +5461,41 @@ def recv_getUnicoreJobSubmission(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnicoreJobSubmission failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "registerComputeResource failed: unknown result"); - def addCloudJobSubmissionDetails(self, computeResourceId, priorityOrder, cloudSubmission): + def getComputeResource(self, computeResourceId): """ - * Add a Cloud Job Submission details to a compute resource - * App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. - * - * @param computeResourceId - * The identifier of the compute resource to which JobSubmission protocol to be added - * - * @param priorityOrder - * Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. - * - * @param sshJobSubmission - * The SSHJobSubmission object to be added to the resource. - * - * @return status - * Returns the unique job submission id. - * + Fetch the given Compute Resource. + + @param computeResourceId + The identifier for the requested compute resource + + @return computeResourceDescription + Compute Resource Object created from the datamodel.. + Parameters: - computeResourceId - - priorityOrder - - cloudSubmission """ - self.send_addCloudJobSubmissionDetails(computeResourceId, priorityOrder, cloudSubmission) - return self.recv_addCloudJobSubmissionDetails() + self.send_getComputeResource(computeResourceId) + return self.recv_getComputeResource() - def send_addCloudJobSubmissionDetails(self, computeResourceId, priorityOrder, cloudSubmission): - self._oprot.writeMessageBegin('addCloudJobSubmissionDetails', TMessageType.CALL, self._seqid) - args = addCloudJobSubmissionDetails_args() + def send_getComputeResource(self, computeResourceId): + self._oprot.writeMessageBegin('getComputeResource', TMessageType.CALL, self._seqid) + args = getComputeResource_args() args.computeResourceId = computeResourceId - args.priorityOrder = priorityOrder - args.cloudSubmission = cloudSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addCloudJobSubmissionDetails(self): + def recv_getComputeResource(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addCloudJobSubmissionDetails_result() + result = getComputeResource_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5094,38 +5506,34 @@ def recv_addCloudJobSubmissionDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addCloudJobSubmissionDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getComputeResource failed: unknown result"); - def getCloudJobSubmission(self, jobSubmissionId): + def getAllComputeResourceNames(self): """ - * This method returns cloudJobSubmission object - * @param jobSubmissionInterfaceI - * The identifier of the JobSubmission Interface to be retrieved. - * @return CloudJobSubmission instance - * + Fetch all registered Compute Resources. + + @return A map of registered compute resource id's and thier corresponding hostnames. + Compute Resource Object created from the datamodel.. - Parameters: - - jobSubmissionId """ - self.send_getCloudJobSubmission(jobSubmissionId) - return self.recv_getCloudJobSubmission() + self.send_getAllComputeResourceNames() + return self.recv_getAllComputeResourceNames() - def send_getCloudJobSubmission(self, jobSubmissionId): - self._oprot.writeMessageBegin('getCloudJobSubmission', TMessageType.CALL, self._seqid) - args = getCloudJobSubmission_args() - args.jobSubmissionId = jobSubmissionId + def send_getAllComputeResourceNames(self): + self._oprot.writeMessageBegin('getAllComputeResourceNames', TMessageType.CALL, self._seqid) + args = getAllComputeResourceNames_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getCloudJobSubmission(self): + def recv_getAllComputeResourceNames(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getCloudJobSubmission_result() + result = getAllComputeResourceNames_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5136,46 +5544,46 @@ def recv_getCloudJobSubmission(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getCloudJobSubmission failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllComputeResourceNames failed: unknown result"); - def updateSSHJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): + def updateComputeResource(self, computeResourceId, computeResourceDescription): """ - Update the given SSH Job Submission details + Update a Compute Resource. - @param jobSubmissionInterfaceId - The identifier of the JobSubmission Interface to be updated. + @param computeResourceId + The identifier for the requested compute resource to be updated. - @param sshJobSubmission - The SSHJobSubmission object to be updated. + @param computeResourceDescription + Compute Resource Object created from the datamodel. @return status - Returns a success/failure of the deletion. + Returns a success/failure of the update. Parameters: - - jobSubmissionInterfaceId - - sshJobSubmission + - computeResourceId + - computeResourceDescription """ - self.send_updateSSHJobSubmissionDetails(jobSubmissionInterfaceId, sshJobSubmission) - return self.recv_updateSSHJobSubmissionDetails() + self.send_updateComputeResource(computeResourceId, computeResourceDescription) + return self.recv_updateComputeResource() - def send_updateSSHJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): - self._oprot.writeMessageBegin('updateSSHJobSubmissionDetails', TMessageType.CALL, self._seqid) - args = updateSSHJobSubmissionDetails_args() - args.jobSubmissionInterfaceId = jobSubmissionInterfaceId - args.sshJobSubmission = sshJobSubmission + def send_updateComputeResource(self, computeResourceId, computeResourceDescription): + self._oprot.writeMessageBegin('updateComputeResource', TMessageType.CALL, self._seqid) + args = updateComputeResource_args() + args.computeResourceId = computeResourceId + args.computeResourceDescription = computeResourceDescription args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateSSHJobSubmissionDetails(self): + def recv_updateComputeResource(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateSSHJobSubmissionDetails_result() + result = updateComputeResource_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5186,84 +5594,41 @@ def recv_updateSSHJobSubmissionDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateSSHJobSubmissionDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateComputeResource failed: unknown result"); - def updateCloudJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): + def deleteComputeResource(self, computeResourceId): """ - Update the given SSH Job Submission details + Delete a Compute Resource. - @param jobSubmissionInterfaceId - The identifier of the JobSubmission Interface to be updated. - - @param cloudJobSubmission - The CloudJobSubmission object to be updated. + @param computeResourceId + The identifier for the requested compute resource to be deleted. @return status Returns a success/failure of the deletion. Parameters: - - jobSubmissionInterfaceId - - sshJobSubmission - """ - self.send_updateCloudJobSubmissionDetails(jobSubmissionInterfaceId, sshJobSubmission) - return self.recv_updateCloudJobSubmissionDetails() - - def send_updateCloudJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): - self._oprot.writeMessageBegin('updateCloudJobSubmissionDetails', TMessageType.CALL, self._seqid) - args = updateCloudJobSubmissionDetails_args() - args.jobSubmissionInterfaceId = jobSubmissionInterfaceId - args.sshJobSubmission = sshJobSubmission - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_updateCloudJobSubmissionDetails(self): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = updateCloudJobSubmissionDetails_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateCloudJobSubmissionDetails failed: unknown result"); - - def updateUnicoreJobSubmissionDetails(self, jobSubmissionInterfaceId, unicoreJobSubmission): - """ - Parameters: - - jobSubmissionInterfaceId - - unicoreJobSubmission + - computeResourceId """ - self.send_updateUnicoreJobSubmissionDetails(jobSubmissionInterfaceId, unicoreJobSubmission) - return self.recv_updateUnicoreJobSubmissionDetails() + self.send_deleteComputeResource(computeResourceId) + return self.recv_deleteComputeResource() - def send_updateUnicoreJobSubmissionDetails(self, jobSubmissionInterfaceId, unicoreJobSubmission): - self._oprot.writeMessageBegin('updateUnicoreJobSubmissionDetails', TMessageType.CALL, self._seqid) - args = updateUnicoreJobSubmissionDetails_args() - args.jobSubmissionInterfaceId = jobSubmissionInterfaceId - args.unicoreJobSubmission = unicoreJobSubmission + def send_deleteComputeResource(self, computeResourceId): + self._oprot.writeMessageBegin('deleteComputeResource', TMessageType.CALL, self._seqid) + args = deleteComputeResource_args() + args.computeResourceId = computeResourceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateUnicoreJobSubmissionDetails(self): + def recv_deleteComputeResource(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateUnicoreJobSubmissionDetails_result() + result = deleteComputeResource_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5274,12 +5639,12 @@ def recv_updateUnicoreJobSubmissionDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUnicoreJobSubmissionDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteComputeResource failed: unknown result"); - def addLocalDataMovementDetails(self, computeResourceId, priorityOrder, localDataMovement): + def addLocalSubmissionDetails(self, computeResourceId, priorityOrder, localSubmission): """ - Add a Local data movement details to a compute resource - App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. + Add a Local Job Submission details to a compute resource + App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. @param computeResourceId The identifier of the compute resource to which JobSubmission protocol to be added @@ -5287,8 +5652,8 @@ def addLocalDataMovementDetails(self, computeResourceId, priorityOrder, localDat @param priorityOrder Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. - @param localDataMovement - The LOCALDataMovement object to be added to the resource. + @param localSubmission + The LOCALSubmission object to be added to the resource. @return status Returns the unique job submission id. @@ -5297,29 +5662,29 @@ def addLocalDataMovementDetails(self, computeResourceId, priorityOrder, localDat Parameters: - computeResourceId - priorityOrder - - localDataMovement + - localSubmission """ - self.send_addLocalDataMovementDetails(computeResourceId, priorityOrder, localDataMovement) - return self.recv_addLocalDataMovementDetails() + self.send_addLocalSubmissionDetails(computeResourceId, priorityOrder, localSubmission) + return self.recv_addLocalSubmissionDetails() - def send_addLocalDataMovementDetails(self, computeResourceId, priorityOrder, localDataMovement): - self._oprot.writeMessageBegin('addLocalDataMovementDetails', TMessageType.CALL, self._seqid) - args = addLocalDataMovementDetails_args() + def send_addLocalSubmissionDetails(self, computeResourceId, priorityOrder, localSubmission): + self._oprot.writeMessageBegin('addLocalSubmissionDetails', TMessageType.CALL, self._seqid) + args = addLocalSubmissionDetails_args() args.computeResourceId = computeResourceId args.priorityOrder = priorityOrder - args.localDataMovement = localDataMovement + args.localSubmission = localSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addLocalDataMovementDetails(self): + def recv_addLocalSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addLocalDataMovementDetails_result() + result = addLocalSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5330,46 +5695,46 @@ def recv_addLocalDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addLocalDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addLocalSubmissionDetails failed: unknown result"); - def updateLocalDataMovementDetails(self, dataMovementInterfaceId, localDataMovement): + def updateLocalSubmissionDetails(self, jobSubmissionInterfaceId, localSubmission): """ - Update the given Local data movement details + Update the given Local Job Submission details - @param dataMovementInterfaceId - The identifier of the data movement Interface to be updated. + @param jobSubmissionInterfaceId + The identifier of the JobSubmission Interface to be updated. - @param localDataMovement - The LOCALDataMovement object to be updated. + @param localSubmission + The LOCALSubmission object to be updated. @return status - Returns a success/failure of the update. + Returns a success/failure of the deletion. Parameters: - - dataMovementInterfaceId - - localDataMovement + - jobSubmissionInterfaceId + - localSubmission """ - self.send_updateLocalDataMovementDetails(dataMovementInterfaceId, localDataMovement) - return self.recv_updateLocalDataMovementDetails() + self.send_updateLocalSubmissionDetails(jobSubmissionInterfaceId, localSubmission) + return self.recv_updateLocalSubmissionDetails() - def send_updateLocalDataMovementDetails(self, dataMovementInterfaceId, localDataMovement): - self._oprot.writeMessageBegin('updateLocalDataMovementDetails', TMessageType.CALL, self._seqid) - args = updateLocalDataMovementDetails_args() - args.dataMovementInterfaceId = dataMovementInterfaceId - args.localDataMovement = localDataMovement + def send_updateLocalSubmissionDetails(self, jobSubmissionInterfaceId, localSubmission): + self._oprot.writeMessageBegin('updateLocalSubmissionDetails', TMessageType.CALL, self._seqid) + args = updateLocalSubmissionDetails_args() + args.jobSubmissionInterfaceId = jobSubmissionInterfaceId + args.localSubmission = localSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateLocalDataMovementDetails(self): + def recv_updateLocalSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateLocalDataMovementDetails_result() + result = updateLocalSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5380,38 +5745,38 @@ def recv_updateLocalDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateLocalDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateLocalSubmissionDetails failed: unknown result"); - def getLocalDataMovement(self, dataMovementId): + def getLocalJobSubmission(self, jobSubmissionId): """ - * This method returns local datamovement object - * @param dataMovementId - * The identifier of the datamovement Interface to be retrieved. - * @return LOCALDataMovement instance - * + This method returns localJobSubmission object + @param jobSubmissionInterfaceId + The identifier of the JobSubmission Interface to be retrieved. + @return LOCALSubmission instance + Parameters: - - dataMovementId + - jobSubmissionId """ - self.send_getLocalDataMovement(dataMovementId) - return self.recv_getLocalDataMovement() + self.send_getLocalJobSubmission(jobSubmissionId) + return self.recv_getLocalJobSubmission() - def send_getLocalDataMovement(self, dataMovementId): - self._oprot.writeMessageBegin('getLocalDataMovement', TMessageType.CALL, self._seqid) - args = getLocalDataMovement_args() - args.dataMovementId = dataMovementId + def send_getLocalJobSubmission(self, jobSubmissionId): + self._oprot.writeMessageBegin('getLocalJobSubmission', TMessageType.CALL, self._seqid) + args = getLocalJobSubmission_args() + args.jobSubmissionId = jobSubmissionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getLocalDataMovement(self): + def recv_getLocalJobSubmission(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getLocalDataMovement_result() + result = getLocalJobSubmission_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5422,12 +5787,12 @@ def recv_getLocalDataMovement(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getLocalDataMovement failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getLocalJobSubmission failed: unknown result"); - def addSCPDataMovementDetails(self, computeResourceId, priorityOrder, scpDataMovement): + def addSSHJobSubmissionDetails(self, computeResourceId, priorityOrder, sshJobSubmission): """ - Add a SCP data movement details to a compute resource - App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. + Add a SSH Job Submission details to a compute resource + App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. @param computeResourceId The identifier of the compute resource to which JobSubmission protocol to be added @@ -5435,8 +5800,8 @@ def addSCPDataMovementDetails(self, computeResourceId, priorityOrder, scpDataMov @param priorityOrder Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. - @param scpDataMovement - The SCPDataMovement object to be added to the resource. + @param sshJobSubmission + The SSHJobSubmission object to be added to the resource. @return status Returns the unique job submission id. @@ -5445,29 +5810,29 @@ def addSCPDataMovementDetails(self, computeResourceId, priorityOrder, scpDataMov Parameters: - computeResourceId - priorityOrder - - scpDataMovement + - sshJobSubmission """ - self.send_addSCPDataMovementDetails(computeResourceId, priorityOrder, scpDataMovement) - return self.recv_addSCPDataMovementDetails() + self.send_addSSHJobSubmissionDetails(computeResourceId, priorityOrder, sshJobSubmission) + return self.recv_addSSHJobSubmissionDetails() - def send_addSCPDataMovementDetails(self, computeResourceId, priorityOrder, scpDataMovement): - self._oprot.writeMessageBegin('addSCPDataMovementDetails', TMessageType.CALL, self._seqid) - args = addSCPDataMovementDetails_args() + def send_addSSHJobSubmissionDetails(self, computeResourceId, priorityOrder, sshJobSubmission): + self._oprot.writeMessageBegin('addSSHJobSubmissionDetails', TMessageType.CALL, self._seqid) + args = addSSHJobSubmissionDetails_args() args.computeResourceId = computeResourceId args.priorityOrder = priorityOrder - args.scpDataMovement = scpDataMovement + args.sshJobSubmission = sshJobSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addSCPDataMovementDetails(self): + def recv_addSSHJobSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addSCPDataMovementDetails_result() + result = addSSHJobSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5478,47 +5843,38 @@ def recv_addSCPDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addSCPDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addSSHJobSubmissionDetails failed: unknown result"); - def updateSCPDataMovementDetails(self, dataMovementInterfaceId, scpDataMovement): + def getSSHJobSubmission(self, jobSubmissionId): """ - Update the given scp data movement details - App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. - - @param dataMovementInterfaceId - The identifier of the data movement Interface to be updated. - - @param scpDataMovement - The SCPDataMovement object to be updated. - - @return status - Returns a success/failure of the update. + This method returns SSHJobSubmission object + @param jobSubmissionInterfaceId + The identifier of the JobSubmission Interface to be retrieved. + @return SSHJobSubmission instance Parameters: - - dataMovementInterfaceId - - scpDataMovement + - jobSubmissionId """ - self.send_updateSCPDataMovementDetails(dataMovementInterfaceId, scpDataMovement) - return self.recv_updateSCPDataMovementDetails() + self.send_getSSHJobSubmission(jobSubmissionId) + return self.recv_getSSHJobSubmission() - def send_updateSCPDataMovementDetails(self, dataMovementInterfaceId, scpDataMovement): - self._oprot.writeMessageBegin('updateSCPDataMovementDetails', TMessageType.CALL, self._seqid) - args = updateSCPDataMovementDetails_args() - args.dataMovementInterfaceId = dataMovementInterfaceId - args.scpDataMovement = scpDataMovement + def send_getSSHJobSubmission(self, jobSubmissionId): + self._oprot.writeMessageBegin('getSSHJobSubmission', TMessageType.CALL, self._seqid) + args = getSSHJobSubmission_args() + args.jobSubmissionId = jobSubmissionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateSCPDataMovementDetails(self): + def recv_getSSHJobSubmission(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateSCPDataMovementDetails_result() + result = getSSHJobSubmission_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5529,38 +5885,52 @@ def recv_updateSCPDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateSCPDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getSSHJobSubmission failed: unknown result"); - def getSCPDataMovement(self, dataMovementId): + def addUNICOREJobSubmissionDetails(self, computeResourceId, priorityOrder, unicoreJobSubmission): """ - * This method returns SCP datamovement object - * @param dataMovementId - * The identifier of the datamovement Interface to be retrieved. - * @return SCPDataMovement instance - * + Add a UNICORE Job Submission details to a compute resource + App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. - Parameters: - - dataMovementId - """ - self.send_getSCPDataMovement(dataMovementId) - return self.recv_getSCPDataMovement() + @param computeResourceId + The identifier of the compute resource to which JobSubmission protocol to be added - def send_getSCPDataMovement(self, dataMovementId): - self._oprot.writeMessageBegin('getSCPDataMovement', TMessageType.CALL, self._seqid) - args = getSCPDataMovement_args() - args.dataMovementId = dataMovementId + @param priorityOrder + Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + + @param unicoreJobSubmission + The UnicoreJobSubmission object to be added to the resource. + + @return status + Returns the unique job submission id. + + + Parameters: + - computeResourceId + - priorityOrder + - unicoreJobSubmission + """ + self.send_addUNICOREJobSubmissionDetails(computeResourceId, priorityOrder, unicoreJobSubmission) + return self.recv_addUNICOREJobSubmissionDetails() + + def send_addUNICOREJobSubmissionDetails(self, computeResourceId, priorityOrder, unicoreJobSubmission): + self._oprot.writeMessageBegin('addUNICOREJobSubmissionDetails', TMessageType.CALL, self._seqid) + args = addUNICOREJobSubmissionDetails_args() + args.computeResourceId = computeResourceId + args.priorityOrder = priorityOrder + args.unicoreJobSubmission = unicoreJobSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getSCPDataMovement(self): + def recv_addUNICOREJobSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getSCPDataMovement_result() + result = addUNICOREJobSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5571,36 +5941,38 @@ def recv_getSCPDataMovement(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getSCPDataMovement failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addUNICOREJobSubmissionDetails failed: unknown result"); - def addUnicoreDataMovementDetails(self, computeResourceId, priorityOrder, unicoreDataMovement): + def getUnicoreJobSubmission(self, jobSubmissionId): """ + * This method returns UnicoreJobSubmission object + * @param jobSubmissionInterfaceId + * The identifier of the JobSubmission Interface to be retrieved. + * @return UnicoreJobSubmission instance + * + Parameters: - - computeResourceId - - priorityOrder - - unicoreDataMovement + - jobSubmissionId """ - self.send_addUnicoreDataMovementDetails(computeResourceId, priorityOrder, unicoreDataMovement) - return self.recv_addUnicoreDataMovementDetails() + self.send_getUnicoreJobSubmission(jobSubmissionId) + return self.recv_getUnicoreJobSubmission() - def send_addUnicoreDataMovementDetails(self, computeResourceId, priorityOrder, unicoreDataMovement): - self._oprot.writeMessageBegin('addUnicoreDataMovementDetails', TMessageType.CALL, self._seqid) - args = addUnicoreDataMovementDetails_args() - args.computeResourceId = computeResourceId - args.priorityOrder = priorityOrder - args.unicoreDataMovement = unicoreDataMovement + def send_getUnicoreJobSubmission(self, jobSubmissionId): + self._oprot.writeMessageBegin('getUnicoreJobSubmission', TMessageType.CALL, self._seqid) + args = getUnicoreJobSubmission_args() + args.jobSubmissionId = jobSubmissionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addUnicoreDataMovementDetails(self): + def recv_getUnicoreJobSubmission(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addUnicoreDataMovementDetails_result() + result = getUnicoreJobSubmission_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5611,34 +5983,52 @@ def recv_addUnicoreDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addUnicoreDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnicoreJobSubmission failed: unknown result"); - def updateUnicoreDataMovementDetails(self, dataMovementInterfaceId, unicoreDataMovement): + def addCloudJobSubmissionDetails(self, computeResourceId, priorityOrder, cloudSubmission): """ + * Add a Cloud Job Submission details to a compute resource + * App catalog will return a jobSubmissionInterfaceId which will be added to the jobSubmissionInterfaces. + * + * @param computeResourceId + * The identifier of the compute resource to which JobSubmission protocol to be added + * + * @param priorityOrder + * Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + * + * @param sshJobSubmission + * The SSHJobSubmission object to be added to the resource. + * + * @return status + * Returns the unique job submission id. + * + Parameters: - - dataMovementInterfaceId - - unicoreDataMovement + - computeResourceId + - priorityOrder + - cloudSubmission """ - self.send_updateUnicoreDataMovementDetails(dataMovementInterfaceId, unicoreDataMovement) - return self.recv_updateUnicoreDataMovementDetails() + self.send_addCloudJobSubmissionDetails(computeResourceId, priorityOrder, cloudSubmission) + return self.recv_addCloudJobSubmissionDetails() - def send_updateUnicoreDataMovementDetails(self, dataMovementInterfaceId, unicoreDataMovement): - self._oprot.writeMessageBegin('updateUnicoreDataMovementDetails', TMessageType.CALL, self._seqid) - args = updateUnicoreDataMovementDetails_args() - args.dataMovementInterfaceId = dataMovementInterfaceId - args.unicoreDataMovement = unicoreDataMovement + def send_addCloudJobSubmissionDetails(self, computeResourceId, priorityOrder, cloudSubmission): + self._oprot.writeMessageBegin('addCloudJobSubmissionDetails', TMessageType.CALL, self._seqid) + args = addCloudJobSubmissionDetails_args() + args.computeResourceId = computeResourceId + args.priorityOrder = priorityOrder + args.cloudSubmission = cloudSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateUnicoreDataMovementDetails(self): + def recv_addCloudJobSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateUnicoreDataMovementDetails_result() + result = addCloudJobSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5649,32 +6039,38 @@ def recv_updateUnicoreDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUnicoreDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addCloudJobSubmissionDetails failed: unknown result"); - def getUnicoreDataMovement(self, dataMovementId): + def getCloudJobSubmission(self, jobSubmissionId): """ + * This method returns cloudJobSubmission object + * @param jobSubmissionInterfaceI + * The identifier of the JobSubmission Interface to be retrieved. + * @return CloudJobSubmission instance + * + Parameters: - - dataMovementId + - jobSubmissionId """ - self.send_getUnicoreDataMovement(dataMovementId) - return self.recv_getUnicoreDataMovement() + self.send_getCloudJobSubmission(jobSubmissionId) + return self.recv_getCloudJobSubmission() - def send_getUnicoreDataMovement(self, dataMovementId): - self._oprot.writeMessageBegin('getUnicoreDataMovement', TMessageType.CALL, self._seqid) - args = getUnicoreDataMovement_args() - args.dataMovementId = dataMovementId + def send_getCloudJobSubmission(self, jobSubmissionId): + self._oprot.writeMessageBegin('getCloudJobSubmission', TMessageType.CALL, self._seqid) + args = getCloudJobSubmission_args() + args.jobSubmissionId = jobSubmissionId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getUnicoreDataMovement(self): + def recv_getCloudJobSubmission(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getUnicoreDataMovement_result() + result = getCloudJobSubmission_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5685,52 +6081,46 @@ def recv_getUnicoreDataMovement(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnicoreDataMovement failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getCloudJobSubmission failed: unknown result"); - def addGridFTPDataMovementDetails(self, computeResourceId, priorityOrder, gridFTPDataMovement): + def updateSSHJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): """ - Add a GridFTP data movement details to a compute resource - App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. - - @param computeResourceId - The identifier of the compute resource to which JobSubmission protocol to be added + Update the given SSH Job Submission details - @param priorityOrder - Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + @param jobSubmissionInterfaceId + The identifier of the JobSubmission Interface to be updated. - @param gridFTPDataMovement - The GridFTPDataMovement object to be added to the resource. + @param sshJobSubmission + The SSHJobSubmission object to be updated. @return status - Returns the unique job submission id. + Returns a success/failure of the deletion. Parameters: - - computeResourceId - - priorityOrder - - gridFTPDataMovement + - jobSubmissionInterfaceId + - sshJobSubmission """ - self.send_addGridFTPDataMovementDetails(computeResourceId, priorityOrder, gridFTPDataMovement) - return self.recv_addGridFTPDataMovementDetails() + self.send_updateSSHJobSubmissionDetails(jobSubmissionInterfaceId, sshJobSubmission) + return self.recv_updateSSHJobSubmissionDetails() - def send_addGridFTPDataMovementDetails(self, computeResourceId, priorityOrder, gridFTPDataMovement): - self._oprot.writeMessageBegin('addGridFTPDataMovementDetails', TMessageType.CALL, self._seqid) - args = addGridFTPDataMovementDetails_args() - args.computeResourceId = computeResourceId - args.priorityOrder = priorityOrder - args.gridFTPDataMovement = gridFTPDataMovement + def send_updateSSHJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): + self._oprot.writeMessageBegin('updateSSHJobSubmissionDetails', TMessageType.CALL, self._seqid) + args = updateSSHJobSubmissionDetails_args() + args.jobSubmissionInterfaceId = jobSubmissionInterfaceId + args.sshJobSubmission = sshJobSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addGridFTPDataMovementDetails(self): + def recv_updateSSHJobSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addGridFTPDataMovementDetails_result() + result = updateSSHJobSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5741,47 +6131,46 @@ def recv_addGridFTPDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addGridFTPDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateSSHJobSubmissionDetails failed: unknown result"); - def updateGridFTPDataMovementDetails(self, dataMovementInterfaceId, gridFTPDataMovement): + def updateCloudJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): """ - Update the given GridFTP data movement details to a compute resource - App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. + Update the given SSH Job Submission details - @param dataMovementInterfaceId - The identifier of the data movement Interface to be updated. + @param jobSubmissionInterfaceId + The identifier of the JobSubmission Interface to be updated. - @param gridFTPDataMovement - The GridFTPDataMovement object to be updated. + @param cloudJobSubmission + The CloudJobSubmission object to be updated. @return status - Returns a success/failure of the updation. + Returns a success/failure of the deletion. Parameters: - - dataMovementInterfaceId - - gridFTPDataMovement + - jobSubmissionInterfaceId + - sshJobSubmission """ - self.send_updateGridFTPDataMovementDetails(dataMovementInterfaceId, gridFTPDataMovement) - return self.recv_updateGridFTPDataMovementDetails() + self.send_updateCloudJobSubmissionDetails(jobSubmissionInterfaceId, sshJobSubmission) + return self.recv_updateCloudJobSubmissionDetails() - def send_updateGridFTPDataMovementDetails(self, dataMovementInterfaceId, gridFTPDataMovement): - self._oprot.writeMessageBegin('updateGridFTPDataMovementDetails', TMessageType.CALL, self._seqid) - args = updateGridFTPDataMovementDetails_args() - args.dataMovementInterfaceId = dataMovementInterfaceId - args.gridFTPDataMovement = gridFTPDataMovement + def send_updateCloudJobSubmissionDetails(self, jobSubmissionInterfaceId, sshJobSubmission): + self._oprot.writeMessageBegin('updateCloudJobSubmissionDetails', TMessageType.CALL, self._seqid) + args = updateCloudJobSubmissionDetails_args() + args.jobSubmissionInterfaceId = jobSubmissionInterfaceId + args.sshJobSubmission = sshJobSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateGridFTPDataMovementDetails(self): + def recv_updateCloudJobSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateGridFTPDataMovementDetails_result() + result = updateCloudJobSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5792,38 +6181,34 @@ def recv_updateGridFTPDataMovementDetails(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateGridFTPDataMovementDetails failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateCloudJobSubmissionDetails failed: unknown result"); - def getGridFTPDataMovement(self, dataMovementId): + def updateUnicoreJobSubmissionDetails(self, jobSubmissionInterfaceId, unicoreJobSubmission): """ - * This method returns GridFTP datamovement object - * @param dataMovementId - * The identifier of the datamovement Interface to be retrieved. - * @return GridFTPDataMovement instance - * - Parameters: - - dataMovementId + - jobSubmissionInterfaceId + - unicoreJobSubmission """ - self.send_getGridFTPDataMovement(dataMovementId) - return self.recv_getGridFTPDataMovement() + self.send_updateUnicoreJobSubmissionDetails(jobSubmissionInterfaceId, unicoreJobSubmission) + return self.recv_updateUnicoreJobSubmissionDetails() - def send_getGridFTPDataMovement(self, dataMovementId): - self._oprot.writeMessageBegin('getGridFTPDataMovement', TMessageType.CALL, self._seqid) - args = getGridFTPDataMovement_args() - args.dataMovementId = dataMovementId + def send_updateUnicoreJobSubmissionDetails(self, jobSubmissionInterfaceId, unicoreJobSubmission): + self._oprot.writeMessageBegin('updateUnicoreJobSubmissionDetails', TMessageType.CALL, self._seqid) + args = updateUnicoreJobSubmissionDetails_args() + args.jobSubmissionInterfaceId = jobSubmissionInterfaceId + args.unicoreJobSubmission = unicoreJobSubmission args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getGridFTPDataMovement(self): + def recv_updateUnicoreJobSubmissionDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getGridFTPDataMovement_result() + result = updateUnicoreJobSubmissionDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5834,46 +6219,52 @@ def recv_getGridFTPDataMovement(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getGridFTPDataMovement failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUnicoreJobSubmissionDetails failed: unknown result"); - def changeJobSubmissionPriority(self, jobSubmissionInterfaceId, newPriorityOrder): + def addLocalDataMovementDetails(self, computeResourceId, priorityOrder, localDataMovement): """ - Change the priority of a given job submisison interface + Add a Local data movement details to a compute resource + App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. - @param jobSubmissionInterfaceId - The identifier of the JobSubmission Interface to be changed + @param computeResourceId + The identifier of the compute resource to which JobSubmission protocol to be added @param priorityOrder - The new priority of the job manager interface. + Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + + @param localDataMovement + The LOCALDataMovement object to be added to the resource. @return status - Returns a success/failure of the change. + Returns the unique job submission id. Parameters: - - jobSubmissionInterfaceId - - newPriorityOrder + - computeResourceId + - priorityOrder + - localDataMovement """ - self.send_changeJobSubmissionPriority(jobSubmissionInterfaceId, newPriorityOrder) - return self.recv_changeJobSubmissionPriority() + self.send_addLocalDataMovementDetails(computeResourceId, priorityOrder, localDataMovement) + return self.recv_addLocalDataMovementDetails() - def send_changeJobSubmissionPriority(self, jobSubmissionInterfaceId, newPriorityOrder): - self._oprot.writeMessageBegin('changeJobSubmissionPriority', TMessageType.CALL, self._seqid) - args = changeJobSubmissionPriority_args() - args.jobSubmissionInterfaceId = jobSubmissionInterfaceId - args.newPriorityOrder = newPriorityOrder + def send_addLocalDataMovementDetails(self, computeResourceId, priorityOrder, localDataMovement): + self._oprot.writeMessageBegin('addLocalDataMovementDetails', TMessageType.CALL, self._seqid) + args = addLocalDataMovementDetails_args() + args.computeResourceId = computeResourceId + args.priorityOrder = priorityOrder + args.localDataMovement = localDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_changeJobSubmissionPriority(self): + def recv_addLocalDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = changeJobSubmissionPriority_result() + result = addLocalDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5884,46 +6275,46 @@ def recv_changeJobSubmissionPriority(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "changeJobSubmissionPriority failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addLocalDataMovementDetails failed: unknown result"); - def changeDataMovementPriority(self, dataMovementInterfaceId, newPriorityOrder): + def updateLocalDataMovementDetails(self, dataMovementInterfaceId, localDataMovement): """ - Change the priority of a given data movement interface + Update the given Local data movement details @param dataMovementInterfaceId - The identifier of the DataMovement Interface to be changed + The identifier of the data movement Interface to be updated. - @param priorityOrder - The new priority of the data movement interface. + @param localDataMovement + The LOCALDataMovement object to be updated. @return status - Returns a success/failure of the change. + Returns a success/failure of the update. Parameters: - dataMovementInterfaceId - - newPriorityOrder + - localDataMovement """ - self.send_changeDataMovementPriority(dataMovementInterfaceId, newPriorityOrder) - return self.recv_changeDataMovementPriority() + self.send_updateLocalDataMovementDetails(dataMovementInterfaceId, localDataMovement) + return self.recv_updateLocalDataMovementDetails() - def send_changeDataMovementPriority(self, dataMovementInterfaceId, newPriorityOrder): - self._oprot.writeMessageBegin('changeDataMovementPriority', TMessageType.CALL, self._seqid) - args = changeDataMovementPriority_args() + def send_updateLocalDataMovementDetails(self, dataMovementInterfaceId, localDataMovement): + self._oprot.writeMessageBegin('updateLocalDataMovementDetails', TMessageType.CALL, self._seqid) + args = updateLocalDataMovementDetails_args() args.dataMovementInterfaceId = dataMovementInterfaceId - args.newPriorityOrder = newPriorityOrder + args.localDataMovement = localDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_changeDataMovementPriority(self): + def recv_updateLocalDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = changeDataMovementPriority_result() + result = updateLocalDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5934,41 +6325,38 @@ def recv_changeDataMovementPriority(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "changeDataMovementPriority failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateLocalDataMovementDetails failed: unknown result"); - def changeJobSubmissionPriorities(self, jobSubmissionPriorityMap): + def getLocalDataMovement(self, dataMovementId): """ - Change the priorities of a given set of job submission interfaces - - @param jobSubmissionPriorityMap - A Map of identifiers of the JobSubmission Interfaces and thier associated priorities to be set. - - @return status - Returns a success/failure of the changes. - + * This method returns local datamovement object + * @param dataMovementId + * The identifier of the datamovement Interface to be retrieved. + * @return LOCALDataMovement instance + * Parameters: - - jobSubmissionPriorityMap + - dataMovementId """ - self.send_changeJobSubmissionPriorities(jobSubmissionPriorityMap) - return self.recv_changeJobSubmissionPriorities() + self.send_getLocalDataMovement(dataMovementId) + return self.recv_getLocalDataMovement() - def send_changeJobSubmissionPriorities(self, jobSubmissionPriorityMap): - self._oprot.writeMessageBegin('changeJobSubmissionPriorities', TMessageType.CALL, self._seqid) - args = changeJobSubmissionPriorities_args() - args.jobSubmissionPriorityMap = jobSubmissionPriorityMap + def send_getLocalDataMovement(self, dataMovementId): + self._oprot.writeMessageBegin('getLocalDataMovement', TMessageType.CALL, self._seqid) + args = getLocalDataMovement_args() + args.dataMovementId = dataMovementId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_changeJobSubmissionPriorities(self): + def recv_getLocalDataMovement(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = changeJobSubmissionPriorities_result() + result = getLocalDataMovement_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -5979,41 +6367,52 @@ def recv_changeJobSubmissionPriorities(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "changeJobSubmissionPriorities failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getLocalDataMovement failed: unknown result"); - def changeDataMovementPriorities(self, dataMovementPriorityMap): + def addSCPDataMovementDetails(self, computeResourceId, priorityOrder, scpDataMovement): """ - Change the priorities of a given set of data movement interfaces + Add a SCP data movement details to a compute resource + App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. - @param dataMovementPriorityMap - A Map of identifiers of the DataMovement Interfaces and thier associated priorities to be set. + @param computeResourceId + The identifier of the compute resource to which JobSubmission protocol to be added + + @param priorityOrder + Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + + @param scpDataMovement + The SCPDataMovement object to be added to the resource. @return status - Returns a success/failure of the changes. + Returns the unique job submission id. Parameters: - - dataMovementPriorityMap + - computeResourceId + - priorityOrder + - scpDataMovement """ - self.send_changeDataMovementPriorities(dataMovementPriorityMap) - return self.recv_changeDataMovementPriorities() + self.send_addSCPDataMovementDetails(computeResourceId, priorityOrder, scpDataMovement) + return self.recv_addSCPDataMovementDetails() - def send_changeDataMovementPriorities(self, dataMovementPriorityMap): - self._oprot.writeMessageBegin('changeDataMovementPriorities', TMessageType.CALL, self._seqid) - args = changeDataMovementPriorities_args() - args.dataMovementPriorityMap = dataMovementPriorityMap + def send_addSCPDataMovementDetails(self, computeResourceId, priorityOrder, scpDataMovement): + self._oprot.writeMessageBegin('addSCPDataMovementDetails', TMessageType.CALL, self._seqid) + args = addSCPDataMovementDetails_args() + args.computeResourceId = computeResourceId + args.priorityOrder = priorityOrder + args.scpDataMovement = scpDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_changeDataMovementPriorities(self): + def recv_addSCPDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = changeDataMovementPriorities_result() + result = addSCPDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6024,43 +6423,47 @@ def recv_changeDataMovementPriorities(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "changeDataMovementPriorities failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addSCPDataMovementDetails failed: unknown result"); - def deleteJobSubmissionInterface(self, computeResourceId, jobSubmissionInterfaceId): + def updateSCPDataMovementDetails(self, dataMovementInterfaceId, scpDataMovement): """ - Delete a given job submisison interface + Update the given scp data movement details + App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. - @param jobSubmissionInterfaceId - The identifier of the JobSubmission Interface to be changed + @param dataMovementInterfaceId + The identifier of the data movement Interface to be updated. + + @param scpDataMovement + The SCPDataMovement object to be updated. @return status - Returns a success/failure of the deletion. + Returns a success/failure of the update. Parameters: - - computeResourceId - - jobSubmissionInterfaceId + - dataMovementInterfaceId + - scpDataMovement """ - self.send_deleteJobSubmissionInterface(computeResourceId, jobSubmissionInterfaceId) - return self.recv_deleteJobSubmissionInterface() + self.send_updateSCPDataMovementDetails(dataMovementInterfaceId, scpDataMovement) + return self.recv_updateSCPDataMovementDetails() - def send_deleteJobSubmissionInterface(self, computeResourceId, jobSubmissionInterfaceId): - self._oprot.writeMessageBegin('deleteJobSubmissionInterface', TMessageType.CALL, self._seqid) - args = deleteJobSubmissionInterface_args() - args.computeResourceId = computeResourceId - args.jobSubmissionInterfaceId = jobSubmissionInterfaceId + def send_updateSCPDataMovementDetails(self, dataMovementInterfaceId, scpDataMovement): + self._oprot.writeMessageBegin('updateSCPDataMovementDetails', TMessageType.CALL, self._seqid) + args = updateSCPDataMovementDetails_args() + args.dataMovementInterfaceId = dataMovementInterfaceId + args.scpDataMovement = scpDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteJobSubmissionInterface(self): + def recv_updateSCPDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteJobSubmissionInterface_result() + result = updateSCPDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6071,43 +6474,38 @@ def recv_deleteJobSubmissionInterface(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteJobSubmissionInterface failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateSCPDataMovementDetails failed: unknown result"); - def deleteDataMovementInterface(self, computeResourceId, dataMovementInterfaceId): + def getSCPDataMovement(self, dataMovementId): """ - Delete a given data movement interface - - @param dataMovementInterfaceId - The identifier of the DataMovement Interface to be changed - - @return status - Returns a success/failure of the deletion. - + * This method returns SCP datamovement object + * @param dataMovementId + * The identifier of the datamovement Interface to be retrieved. + * @return SCPDataMovement instance + * Parameters: - - computeResourceId - - dataMovementInterfaceId + - dataMovementId """ - self.send_deleteDataMovementInterface(computeResourceId, dataMovementInterfaceId) - return self.recv_deleteDataMovementInterface() + self.send_getSCPDataMovement(dataMovementId) + return self.recv_getSCPDataMovement() - def send_deleteDataMovementInterface(self, computeResourceId, dataMovementInterfaceId): - self._oprot.writeMessageBegin('deleteDataMovementInterface', TMessageType.CALL, self._seqid) - args = deleteDataMovementInterface_args() - args.computeResourceId = computeResourceId - args.dataMovementInterfaceId = dataMovementInterfaceId + def send_getSCPDataMovement(self, dataMovementId): + self._oprot.writeMessageBegin('getSCPDataMovement', TMessageType.CALL, self._seqid) + args = getSCPDataMovement_args() + args.dataMovementId = dataMovementId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteDataMovementInterface(self): + def recv_getSCPDataMovement(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteDataMovementInterface_result() + result = getSCPDataMovement_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6118,32 +6516,36 @@ def recv_deleteDataMovementInterface(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteDataMovementInterface failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getSCPDataMovement failed: unknown result"); - def registerResourceJobManager(self, resourceJobManager): + def addUnicoreDataMovementDetails(self, computeResourceId, priorityOrder, unicoreDataMovement): """ Parameters: - - resourceJobManager + - computeResourceId + - priorityOrder + - unicoreDataMovement """ - self.send_registerResourceJobManager(resourceJobManager) - return self.recv_registerResourceJobManager() + self.send_addUnicoreDataMovementDetails(computeResourceId, priorityOrder, unicoreDataMovement) + return self.recv_addUnicoreDataMovementDetails() - def send_registerResourceJobManager(self, resourceJobManager): - self._oprot.writeMessageBegin('registerResourceJobManager', TMessageType.CALL, self._seqid) - args = registerResourceJobManager_args() - args.resourceJobManager = resourceJobManager + def send_addUnicoreDataMovementDetails(self, computeResourceId, priorityOrder, unicoreDataMovement): + self._oprot.writeMessageBegin('addUnicoreDataMovementDetails', TMessageType.CALL, self._seqid) + args = addUnicoreDataMovementDetails_args() + args.computeResourceId = computeResourceId + args.priorityOrder = priorityOrder + args.unicoreDataMovement = unicoreDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_registerResourceJobManager(self): + def recv_addUnicoreDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = registerResourceJobManager_result() + result = addUnicoreDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6154,34 +6556,34 @@ def recv_registerResourceJobManager(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "registerResourceJobManager failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addUnicoreDataMovementDetails failed: unknown result"); - def updateResourceJobManager(self, resourceJobManagerId, updatedResourceJobManager): + def updateUnicoreDataMovementDetails(self, dataMovementInterfaceId, unicoreDataMovement): """ Parameters: - - resourceJobManagerId - - updatedResourceJobManager + - dataMovementInterfaceId + - unicoreDataMovement """ - self.send_updateResourceJobManager(resourceJobManagerId, updatedResourceJobManager) - return self.recv_updateResourceJobManager() + self.send_updateUnicoreDataMovementDetails(dataMovementInterfaceId, unicoreDataMovement) + return self.recv_updateUnicoreDataMovementDetails() - def send_updateResourceJobManager(self, resourceJobManagerId, updatedResourceJobManager): - self._oprot.writeMessageBegin('updateResourceJobManager', TMessageType.CALL, self._seqid) - args = updateResourceJobManager_args() - args.resourceJobManagerId = resourceJobManagerId - args.updatedResourceJobManager = updatedResourceJobManager + def send_updateUnicoreDataMovementDetails(self, dataMovementInterfaceId, unicoreDataMovement): + self._oprot.writeMessageBegin('updateUnicoreDataMovementDetails', TMessageType.CALL, self._seqid) + args = updateUnicoreDataMovementDetails_args() + args.dataMovementInterfaceId = dataMovementInterfaceId + args.unicoreDataMovement = unicoreDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateResourceJobManager(self): + def recv_updateUnicoreDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateResourceJobManager_result() + result = updateUnicoreDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6192,32 +6594,32 @@ def recv_updateResourceJobManager(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateResourceJobManager failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUnicoreDataMovementDetails failed: unknown result"); - def getResourceJobManager(self, resourceJobManagerId): + def getUnicoreDataMovement(self, dataMovementId): """ Parameters: - - resourceJobManagerId + - dataMovementId """ - self.send_getResourceJobManager(resourceJobManagerId) - return self.recv_getResourceJobManager() + self.send_getUnicoreDataMovement(dataMovementId) + return self.recv_getUnicoreDataMovement() - def send_getResourceJobManager(self, resourceJobManagerId): - self._oprot.writeMessageBegin('getResourceJobManager', TMessageType.CALL, self._seqid) - args = getResourceJobManager_args() - args.resourceJobManagerId = resourceJobManagerId + def send_getUnicoreDataMovement(self, dataMovementId): + self._oprot.writeMessageBegin('getUnicoreDataMovement', TMessageType.CALL, self._seqid) + args = getUnicoreDataMovement_args() + args.dataMovementId = dataMovementId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getResourceJobManager(self): + def recv_getUnicoreDataMovement(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getResourceJobManager_result() + result = getUnicoreDataMovement_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6228,32 +6630,52 @@ def recv_getResourceJobManager(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getResourceJobManager failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnicoreDataMovement failed: unknown result"); - def deleteResourceJobManager(self, resourceJobManagerId): + def addGridFTPDataMovementDetails(self, computeResourceId, priorityOrder, gridFTPDataMovement): """ + Add a GridFTP data movement details to a compute resource + App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. + + @param computeResourceId + The identifier of the compute resource to which JobSubmission protocol to be added + + @param priorityOrder + Specify the priority of this job manager. If this is the only jobmanager, the priority can be zero. + + @param gridFTPDataMovement + The GridFTPDataMovement object to be added to the resource. + + @return status + Returns the unique job submission id. + + Parameters: - - resourceJobManagerId + - computeResourceId + - priorityOrder + - gridFTPDataMovement """ - self.send_deleteResourceJobManager(resourceJobManagerId) - return self.recv_deleteResourceJobManager() + self.send_addGridFTPDataMovementDetails(computeResourceId, priorityOrder, gridFTPDataMovement) + return self.recv_addGridFTPDataMovementDetails() - def send_deleteResourceJobManager(self, resourceJobManagerId): - self._oprot.writeMessageBegin('deleteResourceJobManager', TMessageType.CALL, self._seqid) - args = deleteResourceJobManager_args() - args.resourceJobManagerId = resourceJobManagerId + def send_addGridFTPDataMovementDetails(self, computeResourceId, priorityOrder, gridFTPDataMovement): + self._oprot.writeMessageBegin('addGridFTPDataMovementDetails', TMessageType.CALL, self._seqid) + args = addGridFTPDataMovementDetails_args() + args.computeResourceId = computeResourceId + args.priorityOrder = priorityOrder + args.gridFTPDataMovement = gridFTPDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteResourceJobManager(self): + def recv_addGridFTPDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteResourceJobManager_result() + result = addGridFTPDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6264,34 +6686,47 @@ def recv_deleteResourceJobManager(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteResourceJobManager failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addGridFTPDataMovementDetails failed: unknown result"); - def deleteBatchQueue(self, computeResourceId, queueName): + def updateGridFTPDataMovementDetails(self, dataMovementInterfaceId, gridFTPDataMovement): """ + Update the given GridFTP data movement details to a compute resource + App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces. + + @param dataMovementInterfaceId + The identifier of the data movement Interface to be updated. + + @param gridFTPDataMovement + The GridFTPDataMovement object to be updated. + + @return status + Returns a success/failure of the updation. + + Parameters: - - computeResourceId - - queueName + - dataMovementInterfaceId + - gridFTPDataMovement """ - self.send_deleteBatchQueue(computeResourceId, queueName) - return self.recv_deleteBatchQueue() + self.send_updateGridFTPDataMovementDetails(dataMovementInterfaceId, gridFTPDataMovement) + return self.recv_updateGridFTPDataMovementDetails() - def send_deleteBatchQueue(self, computeResourceId, queueName): - self._oprot.writeMessageBegin('deleteBatchQueue', TMessageType.CALL, self._seqid) - args = deleteBatchQueue_args() - args.computeResourceId = computeResourceId - args.queueName = queueName + def send_updateGridFTPDataMovementDetails(self, dataMovementInterfaceId, gridFTPDataMovement): + self._oprot.writeMessageBegin('updateGridFTPDataMovementDetails', TMessageType.CALL, self._seqid) + args = updateGridFTPDataMovementDetails_args() + args.dataMovementInterfaceId = dataMovementInterfaceId + args.gridFTPDataMovement = gridFTPDataMovement args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteBatchQueue(self): + def recv_updateGridFTPDataMovementDetails(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteBatchQueue_result() + result = updateGridFTPDataMovementDetails_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6302,43 +6737,38 @@ def recv_deleteBatchQueue(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBatchQueue failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateGridFTPDataMovementDetails failed: unknown result"); - def registerGatewayResourceProfile(self, gatewayResourceProfile): + def getGridFTPDataMovement(self, dataMovementId): """ - Register a Gateway Resource Profile. - - @param gatewayResourceProfile - Gateway Resource Profile Object. - The GatewayID should be obtained from Airavata gateway registration and passed to register a corresponding - resource profile. - - @return status - Returns a success/failure of the update. - + * This method returns GridFTP datamovement object + * @param dataMovementId + * The identifier of the datamovement Interface to be retrieved. + * @return GridFTPDataMovement instance + * Parameters: - - gatewayResourceProfile + - dataMovementId """ - self.send_registerGatewayResourceProfile(gatewayResourceProfile) - return self.recv_registerGatewayResourceProfile() + self.send_getGridFTPDataMovement(dataMovementId) + return self.recv_getGridFTPDataMovement() - def send_registerGatewayResourceProfile(self, gatewayResourceProfile): - self._oprot.writeMessageBegin('registerGatewayResourceProfile', TMessageType.CALL, self._seqid) - args = registerGatewayResourceProfile_args() - args.gatewayResourceProfile = gatewayResourceProfile + def send_getGridFTPDataMovement(self, dataMovementId): + self._oprot.writeMessageBegin('getGridFTPDataMovement', TMessageType.CALL, self._seqid) + args = getGridFTPDataMovement_args() + args.dataMovementId = dataMovementId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_registerGatewayResourceProfile(self): + def recv_getGridFTPDataMovement(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = registerGatewayResourceProfile_result() + result = getGridFTPDataMovement_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6349,41 +6779,46 @@ def recv_registerGatewayResourceProfile(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "registerGatewayResourceProfile failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getGridFTPDataMovement failed: unknown result"); - def getGatewayResourceProfile(self, gatewayID): + def changeJobSubmissionPriority(self, jobSubmissionInterfaceId, newPriorityOrder): """ - Fetch the given Gateway Resource Profile. + Change the priority of a given job submisison interface - @param gatewayID - The identifier for the requested gateway resource + @param jobSubmissionInterfaceId + The identifier of the JobSubmission Interface to be changed - @return gatewayResourceProfile - Gateway Resource Profile Object. + @param priorityOrder + The new priority of the job manager interface. + + @return status + Returns a success/failure of the change. Parameters: - - gatewayID + - jobSubmissionInterfaceId + - newPriorityOrder """ - self.send_getGatewayResourceProfile(gatewayID) - return self.recv_getGatewayResourceProfile() + self.send_changeJobSubmissionPriority(jobSubmissionInterfaceId, newPriorityOrder) + return self.recv_changeJobSubmissionPriority() - def send_getGatewayResourceProfile(self, gatewayID): - self._oprot.writeMessageBegin('getGatewayResourceProfile', TMessageType.CALL, self._seqid) - args = getGatewayResourceProfile_args() - args.gatewayID = gatewayID + def send_changeJobSubmissionPriority(self, jobSubmissionInterfaceId, newPriorityOrder): + self._oprot.writeMessageBegin('changeJobSubmissionPriority', TMessageType.CALL, self._seqid) + args = changeJobSubmissionPriority_args() + args.jobSubmissionInterfaceId = jobSubmissionInterfaceId + args.newPriorityOrder = newPriorityOrder args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getGatewayResourceProfile(self): + def recv_changeJobSubmissionPriority(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getGatewayResourceProfile_result() + result = changeJobSubmissionPriority_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6394,46 +6829,46 @@ def recv_getGatewayResourceProfile(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getGatewayResourceProfile failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "changeJobSubmissionPriority failed: unknown result"); - def updateGatewayResourceProfile(self, gatewayID, gatewayResourceProfile): + def changeDataMovementPriority(self, dataMovementInterfaceId, newPriorityOrder): """ - Update a Gateway Resource Profile. + Change the priority of a given data movement interface - @param gatewayID - The identifier for the requested gateway resource to be updated. + @param dataMovementInterfaceId + The identifier of the DataMovement Interface to be changed - @param gatewayResourceProfile - Gateway Resource Profile Object. + @param priorityOrder + The new priority of the data movement interface. @return status - Returns a success/failure of the update. + Returns a success/failure of the change. Parameters: - - gatewayID - - gatewayResourceProfile + - dataMovementInterfaceId + - newPriorityOrder """ - self.send_updateGatewayResourceProfile(gatewayID, gatewayResourceProfile) - return self.recv_updateGatewayResourceProfile() + self.send_changeDataMovementPriority(dataMovementInterfaceId, newPriorityOrder) + return self.recv_changeDataMovementPriority() - def send_updateGatewayResourceProfile(self, gatewayID, gatewayResourceProfile): - self._oprot.writeMessageBegin('updateGatewayResourceProfile', TMessageType.CALL, self._seqid) - args = updateGatewayResourceProfile_args() - args.gatewayID = gatewayID - args.gatewayResourceProfile = gatewayResourceProfile + def send_changeDataMovementPriority(self, dataMovementInterfaceId, newPriorityOrder): + self._oprot.writeMessageBegin('changeDataMovementPriority', TMessageType.CALL, self._seqid) + args = changeDataMovementPriority_args() + args.dataMovementInterfaceId = dataMovementInterfaceId + args.newPriorityOrder = newPriorityOrder args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateGatewayResourceProfile(self): + def recv_changeDataMovementPriority(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateGatewayResourceProfile_result() + result = changeDataMovementPriority_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6444,41 +6879,41 @@ def recv_updateGatewayResourceProfile(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateGatewayResourceProfile failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "changeDataMovementPriority failed: unknown result"); - def deleteGatewayResourceProfile(self, gatewayID): + def changeJobSubmissionPriorities(self, jobSubmissionPriorityMap): """ - Delete the given Gateway Resource Profile. + Change the priorities of a given set of job submission interfaces - @param gatewayID - The identifier for the requested gateway resource to be deleted. + @param jobSubmissionPriorityMap + A Map of identifiers of the JobSubmission Interfaces and thier associated priorities to be set. @return status - Returns a success/failure of the deletion. + Returns a success/failure of the changes. Parameters: - - gatewayID + - jobSubmissionPriorityMap """ - self.send_deleteGatewayResourceProfile(gatewayID) - return self.recv_deleteGatewayResourceProfile() + self.send_changeJobSubmissionPriorities(jobSubmissionPriorityMap) + return self.recv_changeJobSubmissionPriorities() - def send_deleteGatewayResourceProfile(self, gatewayID): - self._oprot.writeMessageBegin('deleteGatewayResourceProfile', TMessageType.CALL, self._seqid) - args = deleteGatewayResourceProfile_args() - args.gatewayID = gatewayID + def send_changeJobSubmissionPriorities(self, jobSubmissionPriorityMap): + self._oprot.writeMessageBegin('changeJobSubmissionPriorities', TMessageType.CALL, self._seqid) + args = changeJobSubmissionPriorities_args() + args.jobSubmissionPriorityMap = jobSubmissionPriorityMap args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteGatewayResourceProfile(self): + def recv_changeJobSubmissionPriorities(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteGatewayResourceProfile_result() + result = changeJobSubmissionPriorities_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6489,52 +6924,41 @@ def recv_deleteGatewayResourceProfile(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteGatewayResourceProfile failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "changeJobSubmissionPriorities failed: unknown result"); - def addGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): + def changeDataMovementPriorities(self, dataMovementPriorityMap): """ - Add a Compute Resource Preference to a registered gateway profile. - - @param gatewayID - The identifier for the gateway profile to be added. - - @param computeResourceId - Preferences related to a particular compute resource + Change the priorities of a given set of data movement interfaces - @param computeResourcePreference - The ComputeResourcePreference object to be added to the resource profile. + @param dataMovementPriorityMap + A Map of identifiers of the DataMovement Interfaces and thier associated priorities to be set. @return status - Returns a success/failure of the addition. If a profile already exists, this operation will fail. - Instead an update should be used. + Returns a success/failure of the changes. Parameters: - - gatewayID - - computeResourceId - - computeResourcePreference + - dataMovementPriorityMap """ - self.send_addGatewayComputeResourcePreference(gatewayID, computeResourceId, computeResourcePreference) - return self.recv_addGatewayComputeResourcePreference() + self.send_changeDataMovementPriorities(dataMovementPriorityMap) + return self.recv_changeDataMovementPriorities() - def send_addGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): - self._oprot.writeMessageBegin('addGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) - args = addGatewayComputeResourcePreference_args() - args.gatewayID = gatewayID - args.computeResourceId = computeResourceId - args.computeResourcePreference = computeResourcePreference + def send_changeDataMovementPriorities(self, dataMovementPriorityMap): + self._oprot.writeMessageBegin('changeDataMovementPriorities', TMessageType.CALL, self._seqid) + args = changeDataMovementPriorities_args() + args.dataMovementPriorityMap = dataMovementPriorityMap args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_addGatewayComputeResourcePreference(self): + def recv_changeDataMovementPriorities(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = addGatewayComputeResourcePreference_result() + result = changeDataMovementPriorities_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6545,46 +6969,43 @@ def recv_addGatewayComputeResourcePreference(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "addGatewayComputeResourcePreference failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "changeDataMovementPriorities failed: unknown result"); - def getGatewayComputeResourcePreference(self, gatewayID, computeResourceId): + def deleteJobSubmissionInterface(self, computeResourceId, jobSubmissionInterfaceId): """ - Fetch a Compute Resource Preference of a registered gateway profile. - - @param gatewayID - The identifier for the gateway profile to be requested + Delete a given job submisison interface - @param computeResourceId - Preferences related to a particular compute resource + @param jobSubmissionInterfaceId + The identifier of the JobSubmission Interface to be changed - @return computeResourcePreference - Returns the ComputeResourcePreference object. + @return status + Returns a success/failure of the deletion. Parameters: - - gatewayID - computeResourceId + - jobSubmissionInterfaceId """ - self.send_getGatewayComputeResourcePreference(gatewayID, computeResourceId) - return self.recv_getGatewayComputeResourcePreference() + self.send_deleteJobSubmissionInterface(computeResourceId, jobSubmissionInterfaceId) + return self.recv_deleteJobSubmissionInterface() - def send_getGatewayComputeResourcePreference(self, gatewayID, computeResourceId): - self._oprot.writeMessageBegin('getGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) - args = getGatewayComputeResourcePreference_args() - args.gatewayID = gatewayID + def send_deleteJobSubmissionInterface(self, computeResourceId, jobSubmissionInterfaceId): + self._oprot.writeMessageBegin('deleteJobSubmissionInterface', TMessageType.CALL, self._seqid) + args = deleteJobSubmissionInterface_args() args.computeResourceId = computeResourceId + args.jobSubmissionInterfaceId = jobSubmissionInterfaceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getGatewayComputeResourcePreference(self): + def recv_deleteJobSubmissionInterface(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getGatewayComputeResourcePreference_result() + result = deleteJobSubmissionInterface_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6595,41 +7016,43 @@ def recv_getGatewayComputeResourcePreference(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getGatewayComputeResourcePreference failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteJobSubmissionInterface failed: unknown result"); - def getAllGatewayComputeResourcePreferences(self, gatewayID): + def deleteDataMovementInterface(self, computeResourceId, dataMovementInterfaceId): """ - Fetch all Compute Resource Preferences of a registered gateway profile. + Delete a given data movement interface - @param gatewayID - The identifier for the gateway profile to be requested + @param dataMovementInterfaceId + The identifier of the DataMovement Interface to be changed - @return computeResourcePreference - Returns the ComputeResourcePreference object. + @return status + Returns a success/failure of the deletion. Parameters: - - gatewayID + - computeResourceId + - dataMovementInterfaceId """ - self.send_getAllGatewayComputeResourcePreferences(gatewayID) - return self.recv_getAllGatewayComputeResourcePreferences() + self.send_deleteDataMovementInterface(computeResourceId, dataMovementInterfaceId) + return self.recv_deleteDataMovementInterface() - def send_getAllGatewayComputeResourcePreferences(self, gatewayID): - self._oprot.writeMessageBegin('getAllGatewayComputeResourcePreferences', TMessageType.CALL, self._seqid) - args = getAllGatewayComputeResourcePreferences_args() - args.gatewayID = gatewayID + def send_deleteDataMovementInterface(self, computeResourceId, dataMovementInterfaceId): + self._oprot.writeMessageBegin('deleteDataMovementInterface', TMessageType.CALL, self._seqid) + args = deleteDataMovementInterface_args() + args.computeResourceId = computeResourceId + args.dataMovementInterfaceId = dataMovementInterfaceId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllGatewayComputeResourcePreferences(self): + def recv_deleteDataMovementInterface(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllGatewayComputeResourcePreferences_result() + result = deleteDataMovementInterface_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6640,31 +7063,32 @@ def recv_getAllGatewayComputeResourcePreferences(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllGatewayComputeResourcePreferences failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteDataMovementInterface failed: unknown result"); - def getAllGatewayComputeResources(self): + def registerResourceJobManager(self, resourceJobManager): """ - Fetch all gateway profiles registered - + Parameters: + - resourceJobManager """ - self.send_getAllGatewayComputeResources() - return self.recv_getAllGatewayComputeResources() + self.send_registerResourceJobManager(resourceJobManager) + return self.recv_registerResourceJobManager() - def send_getAllGatewayComputeResources(self): - self._oprot.writeMessageBegin('getAllGatewayComputeResources', TMessageType.CALL, self._seqid) - args = getAllGatewayComputeResources_args() + def send_registerResourceJobManager(self, resourceJobManager): + self._oprot.writeMessageBegin('registerResourceJobManager', TMessageType.CALL, self._seqid) + args = registerResourceJobManager_args() + args.resourceJobManager = resourceJobManager args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllGatewayComputeResources(self): + def recv_registerResourceJobManager(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllGatewayComputeResources_result() + result = registerResourceJobManager_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6675,51 +7099,34 @@ def recv_getAllGatewayComputeResources(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllGatewayComputeResources failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "registerResourceJobManager failed: unknown result"); - def updateGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): + def updateResourceJobManager(self, resourceJobManagerId, updatedResourceJobManager): """ - Update a Compute Resource Preference to a registered gateway profile. - - @param gatewayID - The identifier for the gateway profile to be updated. - - @param computeResourceId - Preferences related to a particular compute resource - - @param computeResourcePreference - The ComputeResourcePreference object to be updated to the resource profile. - - @return status - Returns a success/failure of the updation. - - Parameters: - - gatewayID - - computeResourceId - - computeResourcePreference + - resourceJobManagerId + - updatedResourceJobManager """ - self.send_updateGatewayComputeResourcePreference(gatewayID, computeResourceId, computeResourcePreference) - return self.recv_updateGatewayComputeResourcePreference() + self.send_updateResourceJobManager(resourceJobManagerId, updatedResourceJobManager) + return self.recv_updateResourceJobManager() - def send_updateGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): - self._oprot.writeMessageBegin('updateGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) - args = updateGatewayComputeResourcePreference_args() - args.gatewayID = gatewayID - args.computeResourceId = computeResourceId - args.computeResourcePreference = computeResourcePreference + def send_updateResourceJobManager(self, resourceJobManagerId, updatedResourceJobManager): + self._oprot.writeMessageBegin('updateResourceJobManager', TMessageType.CALL, self._seqid) + args = updateResourceJobManager_args() + args.resourceJobManagerId = resourceJobManagerId + args.updatedResourceJobManager = updatedResourceJobManager args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateGatewayComputeResourcePreference(self): + def recv_updateResourceJobManager(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateGatewayComputeResourcePreference_result() + result = updateResourceJobManager_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6730,46 +7137,32 @@ def recv_updateGatewayComputeResourcePreference(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "updateGatewayComputeResourcePreference failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateResourceJobManager failed: unknown result"); - def deleteGatewayComputeResourcePreference(self, gatewayID, computeResourceId): + def getResourceJobManager(self, resourceJobManagerId): """ - Delete the Compute Resource Preference of a registered gateway profile. - - @param gatewayID - The identifier for the gateway profile to be deleted. - - @param computeResourceId - Preferences related to a particular compute resource - - @return status - Returns a success/failure of the deletion. - - Parameters: - - gatewayID - - computeResourceId + - resourceJobManagerId """ - self.send_deleteGatewayComputeResourcePreference(gatewayID, computeResourceId) - return self.recv_deleteGatewayComputeResourcePreference() + self.send_getResourceJobManager(resourceJobManagerId) + return self.recv_getResourceJobManager() - def send_deleteGatewayComputeResourcePreference(self, gatewayID, computeResourceId): - self._oprot.writeMessageBegin('deleteGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) - args = deleteGatewayComputeResourcePreference_args() - args.gatewayID = gatewayID - args.computeResourceId = computeResourceId + def send_getResourceJobManager(self, resourceJobManagerId): + self._oprot.writeMessageBegin('getResourceJobManager', TMessageType.CALL, self._seqid) + args = getResourceJobManager_args() + args.resourceJobManagerId = resourceJobManagerId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteGatewayComputeResourcePreference(self): + def recv_getResourceJobManager(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteGatewayComputeResourcePreference_result() + result = getResourceJobManager_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6780,32 +7173,32 @@ def recv_deleteGatewayComputeResourcePreference(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteGatewayComputeResourcePreference failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getResourceJobManager failed: unknown result"); - def getAllWorkflows(self, gatewayId): + def deleteResourceJobManager(self, resourceJobManagerId): """ Parameters: - - gatewayId + - resourceJobManagerId """ - self.send_getAllWorkflows(gatewayId) - return self.recv_getAllWorkflows() + self.send_deleteResourceJobManager(resourceJobManagerId) + return self.recv_deleteResourceJobManager() - def send_getAllWorkflows(self, gatewayId): - self._oprot.writeMessageBegin('getAllWorkflows', TMessageType.CALL, self._seqid) - args = getAllWorkflows_args() - args.gatewayId = gatewayId + def send_deleteResourceJobManager(self, resourceJobManagerId): + self._oprot.writeMessageBegin('deleteResourceJobManager', TMessageType.CALL, self._seqid) + args = deleteResourceJobManager_args() + args.resourceJobManagerId = resourceJobManagerId args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllWorkflows(self): + def recv_deleteResourceJobManager(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getAllWorkflows_result() + result = deleteResourceJobManager_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6816,32 +7209,34 @@ def recv_getAllWorkflows(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWorkflows failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteResourceJobManager failed: unknown result"); - def getWorkflow(self, workflowTemplateId): + def deleteBatchQueue(self, computeResourceId, queueName): """ Parameters: - - workflowTemplateId + - computeResourceId + - queueName """ - self.send_getWorkflow(workflowTemplateId) - return self.recv_getWorkflow() + self.send_deleteBatchQueue(computeResourceId, queueName) + return self.recv_deleteBatchQueue() - def send_getWorkflow(self, workflowTemplateId): - self._oprot.writeMessageBegin('getWorkflow', TMessageType.CALL, self._seqid) - args = getWorkflow_args() - args.workflowTemplateId = workflowTemplateId + def send_deleteBatchQueue(self, computeResourceId, queueName): + self._oprot.writeMessageBegin('deleteBatchQueue', TMessageType.CALL, self._seqid) + args = deleteBatchQueue_args() + args.computeResourceId = computeResourceId + args.queueName = queueName args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getWorkflow(self): + def recv_deleteBatchQueue(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getWorkflow_result() + result = deleteBatchQueue_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6852,68 +7247,88 @@ def recv_getWorkflow(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getWorkflow failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBatchQueue failed: unknown result"); - def deleteWorkflow(self, workflowTemplateId): + def registerGatewayResourceProfile(self, gatewayResourceProfile): """ + Register a Gateway Resource Profile. + + @param gatewayResourceProfile + Gateway Resource Profile Object. + The GatewayID should be obtained from Airavata gateway registration and passed to register a corresponding + resource profile. + + @return status + Returns a success/failure of the update. + + Parameters: - - workflowTemplateId + - gatewayResourceProfile """ - self.send_deleteWorkflow(workflowTemplateId) - self.recv_deleteWorkflow() + self.send_registerGatewayResourceProfile(gatewayResourceProfile) + return self.recv_registerGatewayResourceProfile() - def send_deleteWorkflow(self, workflowTemplateId): - self._oprot.writeMessageBegin('deleteWorkflow', TMessageType.CALL, self._seqid) - args = deleteWorkflow_args() - args.workflowTemplateId = workflowTemplateId + def send_registerGatewayResourceProfile(self, gatewayResourceProfile): + self._oprot.writeMessageBegin('registerGatewayResourceProfile', TMessageType.CALL, self._seqid) + args = registerGatewayResourceProfile_args() + args.gatewayResourceProfile = gatewayResourceProfile args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_deleteWorkflow(self): + def recv_registerGatewayResourceProfile(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = deleteWorkflow_result() + result = registerGatewayResourceProfile_result() result.read(self._iprot) self._iprot.readMessageEnd() + if result.success is not None: + return result.success if result.ire is not None: raise result.ire if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - return + raise TApplicationException(TApplicationException.MISSING_RESULT, "registerGatewayResourceProfile failed: unknown result"); - def registerWorkflow(self, gatewayId, workflow): + def getGatewayResourceProfile(self, gatewayID): """ + Fetch the given Gateway Resource Profile. + + @param gatewayID + The identifier for the requested gateway resource + + @return gatewayResourceProfile + Gateway Resource Profile Object. + + Parameters: - - gatewayId - - workflow + - gatewayID """ - self.send_registerWorkflow(gatewayId, workflow) - return self.recv_registerWorkflow() + self.send_getGatewayResourceProfile(gatewayID) + return self.recv_getGatewayResourceProfile() - def send_registerWorkflow(self, gatewayId, workflow): - self._oprot.writeMessageBegin('registerWorkflow', TMessageType.CALL, self._seqid) - args = registerWorkflow_args() - args.gatewayId = gatewayId - args.workflow = workflow + def send_getGatewayResourceProfile(self, gatewayID): + self._oprot.writeMessageBegin('getGatewayResourceProfile', TMessageType.CALL, self._seqid) + args = getGatewayResourceProfile_args() + args.gatewayID = gatewayID args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_registerWorkflow(self): + def recv_getGatewayResourceProfile(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = registerWorkflow_result() + result = getGatewayResourceProfile_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6924,68 +7339,91 @@ def recv_registerWorkflow(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "registerWorkflow failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getGatewayResourceProfile failed: unknown result"); - def updateWorkflow(self, workflowTemplateId, workflow): + def updateGatewayResourceProfile(self, gatewayID, gatewayResourceProfile): """ + Update a Gateway Resource Profile. + + @param gatewayID + The identifier for the requested gateway resource to be updated. + + @param gatewayResourceProfile + Gateway Resource Profile Object. + + @return status + Returns a success/failure of the update. + + Parameters: - - workflowTemplateId - - workflow + - gatewayID + - gatewayResourceProfile """ - self.send_updateWorkflow(workflowTemplateId, workflow) - self.recv_updateWorkflow() + self.send_updateGatewayResourceProfile(gatewayID, gatewayResourceProfile) + return self.recv_updateGatewayResourceProfile() - def send_updateWorkflow(self, workflowTemplateId, workflow): - self._oprot.writeMessageBegin('updateWorkflow', TMessageType.CALL, self._seqid) - args = updateWorkflow_args() - args.workflowTemplateId = workflowTemplateId - args.workflow = workflow + def send_updateGatewayResourceProfile(self, gatewayID, gatewayResourceProfile): + self._oprot.writeMessageBegin('updateGatewayResourceProfile', TMessageType.CALL, self._seqid) + args = updateGatewayResourceProfile_args() + args.gatewayID = gatewayID + args.gatewayResourceProfile = gatewayResourceProfile args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_updateWorkflow(self): + def recv_updateGatewayResourceProfile(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = updateWorkflow_result() + result = updateGatewayResourceProfile_result() result.read(self._iprot) self._iprot.readMessageEnd() + if result.success is not None: + return result.success if result.ire is not None: raise result.ire if result.ace is not None: raise result.ace if result.ase is not None: raise result.ase - return + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateGatewayResourceProfile failed: unknown result"); - def getWorkflowTemplateId(self, workflowName): + def deleteGatewayResourceProfile(self, gatewayID): """ + Delete the given Gateway Resource Profile. + + @param gatewayID + The identifier for the requested gateway resource to be deleted. + + @return status + Returns a success/failure of the deletion. + + Parameters: - - workflowName + - gatewayID """ - self.send_getWorkflowTemplateId(workflowName) - return self.recv_getWorkflowTemplateId() + self.send_deleteGatewayResourceProfile(gatewayID) + return self.recv_deleteGatewayResourceProfile() - def send_getWorkflowTemplateId(self, workflowName): - self._oprot.writeMessageBegin('getWorkflowTemplateId', TMessageType.CALL, self._seqid) - args = getWorkflowTemplateId_args() - args.workflowName = workflowName + def send_deleteGatewayResourceProfile(self, gatewayID): + self._oprot.writeMessageBegin('deleteGatewayResourceProfile', TMessageType.CALL, self._seqid) + args = deleteGatewayResourceProfile_args() + args.gatewayID = gatewayID args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getWorkflowTemplateId(self): + def recv_deleteGatewayResourceProfile(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getWorkflowTemplateId_result() + result = deleteGatewayResourceProfile_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -6996,32 +7434,52 @@ def recv_getWorkflowTemplateId(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getWorkflowTemplateId failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteGatewayResourceProfile failed: unknown result"); - def isWorkflowExistWithName(self, workflowName): + def addGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): """ + Add a Compute Resource Preference to a registered gateway profile. + + @param gatewayID + The identifier for the gateway profile to be added. + + @param computeResourceId + Preferences related to a particular compute resource + + @param computeResourcePreference + The ComputeResourcePreference object to be added to the resource profile. + + @return status + Returns a success/failure of the addition. If a profile already exists, this operation will fail. + Instead an update should be used. + + Parameters: - - workflowName + - gatewayID + - computeResourceId + - computeResourcePreference """ - self.send_isWorkflowExistWithName(workflowName) - return self.recv_isWorkflowExistWithName() + self.send_addGatewayComputeResourcePreference(gatewayID, computeResourceId, computeResourcePreference) + return self.recv_addGatewayComputeResourcePreference() - def send_isWorkflowExistWithName(self, workflowName): - self._oprot.writeMessageBegin('isWorkflowExistWithName', TMessageType.CALL, self._seqid) - args = isWorkflowExistWithName_args() - args.workflowName = workflowName + def send_addGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): + self._oprot.writeMessageBegin('addGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) + args = addGatewayComputeResourcePreference_args() + args.gatewayID = gatewayID + args.computeResourceId = computeResourceId + args.computeResourcePreference = computeResourcePreference args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_isWorkflowExistWithName(self): + def recv_addGatewayComputeResourcePreference(self): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = isWorkflowExistWithName_result() + result = addGatewayComputeResourcePreference_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -7032,2261 +7490,4551 @@ def recv_isWorkflowExistWithName(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "isWorkflowExistWithName failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addGatewayComputeResourcePreference failed: unknown result"); + def getGatewayComputeResourcePreference(self, gatewayID, computeResourceId): + """ + Fetch a Compute Resource Preference of a registered gateway profile. -class Processor(Iface, TProcessor): - def __init__(self, handler): - self._handler = handler - self._processMap = {} - self._processMap["getAPIVersion"] = Processor.process_getAPIVersion - self._processMap["addGateway"] = Processor.process_addGateway - self._processMap["updateGateway"] = Processor.process_updateGateway - self._processMap["getGateway"] = Processor.process_getGateway - self._processMap["deleteGateway"] = Processor.process_deleteGateway - self._processMap["getAllGateways"] = Processor.process_getAllGateways - self._processMap["isGatewayExist"] = Processor.process_isGatewayExist - self._processMap["generateAndRegisterSSHKeys"] = Processor.process_generateAndRegisterSSHKeys - self._processMap["getSSHPubKey"] = Processor.process_getSSHPubKey - self._processMap["getAllUserSSHPubKeys"] = Processor.process_getAllUserSSHPubKeys - self._processMap["createProject"] = Processor.process_createProject - self._processMap["updateProject"] = Processor.process_updateProject - self._processMap["getProject"] = Processor.process_getProject - self._processMap["deleteProject"] = Processor.process_deleteProject - self._processMap["getAllUserProjects"] = Processor.process_getAllUserProjects - self._processMap["searchProjectsByProjectName"] = Processor.process_searchProjectsByProjectName - self._processMap["searchProjectsByProjectDesc"] = Processor.process_searchProjectsByProjectDesc - self._processMap["searchExperimentsByName"] = Processor.process_searchExperimentsByName - self._processMap["searchExperimentsByDesc"] = Processor.process_searchExperimentsByDesc - self._processMap["searchExperimentsByApplication"] = Processor.process_searchExperimentsByApplication - self._processMap["searchExperimentsByStatus"] = Processor.process_searchExperimentsByStatus - self._processMap["searchExperimentsByCreationTime"] = Processor.process_searchExperimentsByCreationTime - self._processMap["getAllExperimentsInProject"] = Processor.process_getAllExperimentsInProject - self._processMap["getAllUserExperiments"] = Processor.process_getAllUserExperiments - self._processMap["createExperiment"] = Processor.process_createExperiment - self._processMap["getExperiment"] = Processor.process_getExperiment - self._processMap["updateExperiment"] = Processor.process_updateExperiment - self._processMap["updateExperimentConfiguration"] = Processor.process_updateExperimentConfiguration - self._processMap["updateResourceScheduleing"] = Processor.process_updateResourceScheduleing - self._processMap["validateExperiment"] = Processor.process_validateExperiment - self._processMap["launchExperiment"] = Processor.process_launchExperiment - self._processMap["getExperimentStatus"] = Processor.process_getExperimentStatus - self._processMap["getExperimentOutputs"] = Processor.process_getExperimentOutputs - self._processMap["getIntermediateOutputs"] = Processor.process_getIntermediateOutputs - self._processMap["getJobStatuses"] = Processor.process_getJobStatuses - self._processMap["getJobDetails"] = Processor.process_getJobDetails - self._processMap["getDataTransferDetails"] = Processor.process_getDataTransferDetails - self._processMap["cloneExperiment"] = Processor.process_cloneExperiment - self._processMap["terminateExperiment"] = Processor.process_terminateExperiment - self._processMap["registerApplicationModule"] = Processor.process_registerApplicationModule - self._processMap["getApplicationModule"] = Processor.process_getApplicationModule - self._processMap["updateApplicationModule"] = Processor.process_updateApplicationModule - self._processMap["getAllAppModules"] = Processor.process_getAllAppModules - self._processMap["deleteApplicationModule"] = Processor.process_deleteApplicationModule - self._processMap["registerApplicationDeployment"] = Processor.process_registerApplicationDeployment - self._processMap["getApplicationDeployment"] = Processor.process_getApplicationDeployment - self._processMap["updateApplicationDeployment"] = Processor.process_updateApplicationDeployment - self._processMap["deleteApplicationDeployment"] = Processor.process_deleteApplicationDeployment - self._processMap["getAllApplicationDeployments"] = Processor.process_getAllApplicationDeployments - self._processMap["getAppModuleDeployedResources"] = Processor.process_getAppModuleDeployedResources - self._processMap["registerApplicationInterface"] = Processor.process_registerApplicationInterface - self._processMap["getApplicationInterface"] = Processor.process_getApplicationInterface - self._processMap["updateApplicationInterface"] = Processor.process_updateApplicationInterface - self._processMap["deleteApplicationInterface"] = Processor.process_deleteApplicationInterface - self._processMap["getAllApplicationInterfaceNames"] = Processor.process_getAllApplicationInterfaceNames - self._processMap["getAllApplicationInterfaces"] = Processor.process_getAllApplicationInterfaces - self._processMap["getApplicationInputs"] = Processor.process_getApplicationInputs - self._processMap["getApplicationOutputs"] = Processor.process_getApplicationOutputs - self._processMap["getAvailableAppInterfaceComputeResources"] = Processor.process_getAvailableAppInterfaceComputeResources - self._processMap["registerComputeResource"] = Processor.process_registerComputeResource - self._processMap["getComputeResource"] = Processor.process_getComputeResource - self._processMap["getAllComputeResourceNames"] = Processor.process_getAllComputeResourceNames - self._processMap["updateComputeResource"] = Processor.process_updateComputeResource - self._processMap["deleteComputeResource"] = Processor.process_deleteComputeResource - self._processMap["addLocalSubmissionDetails"] = Processor.process_addLocalSubmissionDetails - self._processMap["updateLocalSubmissionDetails"] = Processor.process_updateLocalSubmissionDetails - self._processMap["getLocalJobSubmission"] = Processor.process_getLocalJobSubmission - self._processMap["addSSHJobSubmissionDetails"] = Processor.process_addSSHJobSubmissionDetails - self._processMap["getSSHJobSubmission"] = Processor.process_getSSHJobSubmission - self._processMap["addUNICOREJobSubmissionDetails"] = Processor.process_addUNICOREJobSubmissionDetails - self._processMap["getUnicoreJobSubmission"] = Processor.process_getUnicoreJobSubmission - self._processMap["addCloudJobSubmissionDetails"] = Processor.process_addCloudJobSubmissionDetails - self._processMap["getCloudJobSubmission"] = Processor.process_getCloudJobSubmission - self._processMap["updateSSHJobSubmissionDetails"] = Processor.process_updateSSHJobSubmissionDetails - self._processMap["updateCloudJobSubmissionDetails"] = Processor.process_updateCloudJobSubmissionDetails - self._processMap["updateUnicoreJobSubmissionDetails"] = Processor.process_updateUnicoreJobSubmissionDetails - self._processMap["addLocalDataMovementDetails"] = Processor.process_addLocalDataMovementDetails - self._processMap["updateLocalDataMovementDetails"] = Processor.process_updateLocalDataMovementDetails - self._processMap["getLocalDataMovement"] = Processor.process_getLocalDataMovement - self._processMap["addSCPDataMovementDetails"] = Processor.process_addSCPDataMovementDetails - self._processMap["updateSCPDataMovementDetails"] = Processor.process_updateSCPDataMovementDetails - self._processMap["getSCPDataMovement"] = Processor.process_getSCPDataMovement - self._processMap["addUnicoreDataMovementDetails"] = Processor.process_addUnicoreDataMovementDetails - self._processMap["updateUnicoreDataMovementDetails"] = Processor.process_updateUnicoreDataMovementDetails - self._processMap["getUnicoreDataMovement"] = Processor.process_getUnicoreDataMovement - self._processMap["addGridFTPDataMovementDetails"] = Processor.process_addGridFTPDataMovementDetails - self._processMap["updateGridFTPDataMovementDetails"] = Processor.process_updateGridFTPDataMovementDetails - self._processMap["getGridFTPDataMovement"] = Processor.process_getGridFTPDataMovement - self._processMap["changeJobSubmissionPriority"] = Processor.process_changeJobSubmissionPriority - self._processMap["changeDataMovementPriority"] = Processor.process_changeDataMovementPriority - self._processMap["changeJobSubmissionPriorities"] = Processor.process_changeJobSubmissionPriorities - self._processMap["changeDataMovementPriorities"] = Processor.process_changeDataMovementPriorities - self._processMap["deleteJobSubmissionInterface"] = Processor.process_deleteJobSubmissionInterface - self._processMap["deleteDataMovementInterface"] = Processor.process_deleteDataMovementInterface - self._processMap["registerResourceJobManager"] = Processor.process_registerResourceJobManager - self._processMap["updateResourceJobManager"] = Processor.process_updateResourceJobManager - self._processMap["getResourceJobManager"] = Processor.process_getResourceJobManager - self._processMap["deleteResourceJobManager"] = Processor.process_deleteResourceJobManager - self._processMap["deleteBatchQueue"] = Processor.process_deleteBatchQueue - self._processMap["registerGatewayResourceProfile"] = Processor.process_registerGatewayResourceProfile - self._processMap["getGatewayResourceProfile"] = Processor.process_getGatewayResourceProfile - self._processMap["updateGatewayResourceProfile"] = Processor.process_updateGatewayResourceProfile - self._processMap["deleteGatewayResourceProfile"] = Processor.process_deleteGatewayResourceProfile - self._processMap["addGatewayComputeResourcePreference"] = Processor.process_addGatewayComputeResourcePreference - self._processMap["getGatewayComputeResourcePreference"] = Processor.process_getGatewayComputeResourcePreference - self._processMap["getAllGatewayComputeResourcePreferences"] = Processor.process_getAllGatewayComputeResourcePreferences - self._processMap["getAllGatewayComputeResources"] = Processor.process_getAllGatewayComputeResources - self._processMap["updateGatewayComputeResourcePreference"] = Processor.process_updateGatewayComputeResourcePreference - self._processMap["deleteGatewayComputeResourcePreference"] = Processor.process_deleteGatewayComputeResourcePreference - self._processMap["getAllWorkflows"] = Processor.process_getAllWorkflows - self._processMap["getWorkflow"] = Processor.process_getWorkflow - self._processMap["deleteWorkflow"] = Processor.process_deleteWorkflow - self._processMap["registerWorkflow"] = Processor.process_registerWorkflow - self._processMap["updateWorkflow"] = Processor.process_updateWorkflow - self._processMap["getWorkflowTemplateId"] = Processor.process_getWorkflowTemplateId - self._processMap["isWorkflowExistWithName"] = Processor.process_isWorkflowExistWithName + @param gatewayID + The identifier for the gateway profile to be requested - def process(self, iprot, oprot): - (name, type, seqid) = iprot.readMessageBegin() - if name not in self._processMap: - iprot.skip(TType.STRUCT) - iprot.readMessageEnd() - x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) - oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) - x.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - return - else: - self._processMap[name](self, seqid, iprot, oprot) - return True + @param computeResourceId + Preferences related to a particular compute resource - def process_getAPIVersion(self, seqid, iprot, oprot): - args = getAPIVersion_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAPIVersion_result() - try: - result.success = self._handler.getAPIVersion() - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAPIVersion", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @return computeResourcePreference + Returns the ComputeResourcePreference object. - def process_addGateway(self, seqid, iprot, oprot): - args = addGateway_args() - args.read(iprot) - iprot.readMessageEnd() - result = addGateway_result() - try: - result.success = self._handler.addGateway(args.gateway) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addGateway", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_updateGateway(self, seqid, iprot, oprot): - args = updateGateway_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateGateway_result() - try: - self._handler.updateGateway(args.gatewayId, args.updatedGateway) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateGateway", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + Parameters: + - gatewayID + - computeResourceId + """ + self.send_getGatewayComputeResourcePreference(gatewayID, computeResourceId) + return self.recv_getGatewayComputeResourcePreference() - def process_getGateway(self, seqid, iprot, oprot): - args = getGateway_args() - args.read(iprot) - iprot.readMessageEnd() - result = getGateway_result() - try: - result.success = self._handler.getGateway(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getGateway", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def send_getGatewayComputeResourcePreference(self, gatewayID, computeResourceId): + self._oprot.writeMessageBegin('getGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) + args = getGatewayComputeResourcePreference_args() + args.gatewayID = gatewayID + args.computeResourceId = computeResourceId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() - def process_deleteGateway(self, seqid, iprot, oprot): - args = deleteGateway_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteGateway_result() - try: - result.success = self._handler.deleteGateway(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteGateway", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def recv_getGatewayComputeResourcePreference(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = getGatewayComputeResourcePreference_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "getGatewayComputeResourcePreference failed: unknown result"); - def process_getAllGateways(self, seqid, iprot, oprot): - args = getAllGateways_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllGateways_result() - try: - result.success = self._handler.getAllGateways() - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllGateways", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def getAllGatewayComputeResourcePreferences(self, gatewayID): + """ + Fetch all Compute Resource Preferences of a registered gateway profile. - def process_isGatewayExist(self, seqid, iprot, oprot): - args = isGatewayExist_args() - args.read(iprot) - iprot.readMessageEnd() - result = isGatewayExist_result() - try: - result.success = self._handler.isGatewayExist(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("isGatewayExist", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @param gatewayID + The identifier for the gateway profile to be requested - def process_generateAndRegisterSSHKeys(self, seqid, iprot, oprot): - args = generateAndRegisterSSHKeys_args() - args.read(iprot) - iprot.readMessageEnd() - result = generateAndRegisterSSHKeys_result() - try: - result.success = self._handler.generateAndRegisterSSHKeys(args.gatewayId, args.userName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("generateAndRegisterSSHKeys", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @return computeResourcePreference + Returns the ComputeResourcePreference object. - def process_getSSHPubKey(self, seqid, iprot, oprot): - args = getSSHPubKey_args() - args.read(iprot) - iprot.readMessageEnd() - result = getSSHPubKey_result() - try: - result.success = self._handler.getSSHPubKey(args.airavataCredStoreToken) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getSSHPubKey", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_getAllUserSSHPubKeys(self, seqid, iprot, oprot): - args = getAllUserSSHPubKeys_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllUserSSHPubKeys_result() - try: - result.success = self._handler.getAllUserSSHPubKeys(args.userName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllUserSSHPubKeys", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + Parameters: + - gatewayID + """ + self.send_getAllGatewayComputeResourcePreferences(gatewayID) + return self.recv_getAllGatewayComputeResourcePreferences() - def process_createProject(self, seqid, iprot, oprot): - args = createProject_args() - args.read(iprot) - iprot.readMessageEnd() - result = createProject_result() - try: - result.success = self._handler.createProject(args.gatewayId, args.project) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("createProject", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def send_getAllGatewayComputeResourcePreferences(self, gatewayID): + self._oprot.writeMessageBegin('getAllGatewayComputeResourcePreferences', TMessageType.CALL, self._seqid) + args = getAllGatewayComputeResourcePreferences_args() + args.gatewayID = gatewayID + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() - def process_updateProject(self, seqid, iprot, oprot): - args = updateProject_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateProject_result() - try: - self._handler.updateProject(args.projectId, args.updatedProject) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: - result.pnfe = pnfe - oprot.writeMessageBegin("updateProject", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def recv_getAllGatewayComputeResourcePreferences(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = getAllGatewayComputeResourcePreferences_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllGatewayComputeResourcePreferences failed: unknown result"); - def process_getProject(self, seqid, iprot, oprot): - args = getProject_args() - args.read(iprot) - iprot.readMessageEnd() - result = getProject_result() - try: - result.success = self._handler.getProject(args.projectId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: - result.pnfe = pnfe - oprot.writeMessageBegin("getProject", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def getAllGatewayComputeResources(self): + """ + Fetch all gateway profiles registered - def process_deleteProject(self, seqid, iprot, oprot): - args = deleteProject_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteProject_result() - try: - result.success = self._handler.deleteProject(args.projectId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: - result.pnfe = pnfe - oprot.writeMessageBegin("deleteProject", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + """ + self.send_getAllGatewayComputeResources() + return self.recv_getAllGatewayComputeResources() - def process_getAllUserProjects(self, seqid, iprot, oprot): - args = getAllUserProjects_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllUserProjects_result() - try: - result.success = self._handler.getAllUserProjects(args.gatewayId, args.userName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllUserProjects", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def send_getAllGatewayComputeResources(self): + self._oprot.writeMessageBegin('getAllGatewayComputeResources', TMessageType.CALL, self._seqid) + args = getAllGatewayComputeResources_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() - def process_searchProjectsByProjectName(self, seqid, iprot, oprot): - args = searchProjectsByProjectName_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchProjectsByProjectName_result() - try: - result.success = self._handler.searchProjectsByProjectName(args.gatewayId, args.userName, args.projectName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchProjectsByProjectName", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def recv_getAllGatewayComputeResources(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = getAllGatewayComputeResources_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllGatewayComputeResources failed: unknown result"); - def process_searchProjectsByProjectDesc(self, seqid, iprot, oprot): - args = searchProjectsByProjectDesc_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchProjectsByProjectDesc_result() - try: - result.success = self._handler.searchProjectsByProjectDesc(args.gatewayId, args.userName, args.description) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchProjectsByProjectDesc", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def updateGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): + """ + Update a Compute Resource Preference to a registered gateway profile. - def process_searchExperimentsByName(self, seqid, iprot, oprot): - args = searchExperimentsByName_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByName_result() - try: - result.success = self._handler.searchExperimentsByName(args.gatewayId, args.userName, args.expName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByName", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @param gatewayID + The identifier for the gateway profile to be updated. - def process_searchExperimentsByDesc(self, seqid, iprot, oprot): - args = searchExperimentsByDesc_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByDesc_result() - try: - result.success = self._handler.searchExperimentsByDesc(args.gatewayId, args.userName, args.description) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByDesc", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @param computeResourceId + Preferences related to a particular compute resource - def process_searchExperimentsByApplication(self, seqid, iprot, oprot): - args = searchExperimentsByApplication_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByApplication_result() - try: - result.success = self._handler.searchExperimentsByApplication(args.gatewayId, args.userName, args.applicationId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByApplication", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @param computeResourcePreference + The ComputeResourcePreference object to be updated to the resource profile. - def process_searchExperimentsByStatus(self, seqid, iprot, oprot): - args = searchExperimentsByStatus_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByStatus_result() - try: - result.success = self._handler.searchExperimentsByStatus(args.gatewayId, args.userName, args.experimentState) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByStatus", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @return status + Returns a success/failure of the updation. - def process_searchExperimentsByCreationTime(self, seqid, iprot, oprot): - args = searchExperimentsByCreationTime_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByCreationTime_result() - try: - result.success = self._handler.searchExperimentsByCreationTime(args.gatewayId, args.userName, args.fromTime, args.toTime) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByCreationTime", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_getAllExperimentsInProject(self, seqid, iprot, oprot): - args = getAllExperimentsInProject_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllExperimentsInProject_result() - try: - result.success = self._handler.getAllExperimentsInProject(args.projectId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: - result.pnfe = pnfe - oprot.writeMessageBegin("getAllExperimentsInProject", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + Parameters: + - gatewayID + - computeResourceId + - computeResourcePreference + """ + self.send_updateGatewayComputeResourcePreference(gatewayID, computeResourceId, computeResourcePreference) + return self.recv_updateGatewayComputeResourcePreference() - def process_getAllUserExperiments(self, seqid, iprot, oprot): - args = getAllUserExperiments_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllUserExperiments_result() - try: - result.success = self._handler.getAllUserExperiments(args.gatewayId, args.userName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllUserExperiments", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def send_updateGatewayComputeResourcePreference(self, gatewayID, computeResourceId, computeResourcePreference): + self._oprot.writeMessageBegin('updateGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) + args = updateGatewayComputeResourcePreference_args() + args.gatewayID = gatewayID + args.computeResourceId = computeResourceId + args.computeResourcePreference = computeResourcePreference + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() - def process_createExperiment(self, seqid, iprot, oprot): - args = createExperiment_args() - args.read(iprot) - iprot.readMessageEnd() - result = createExperiment_result() - try: - result.success = self._handler.createExperiment(args.gatewayId, args.experiment) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("createExperiment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def recv_updateGatewayComputeResourcePreference(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = updateGatewayComputeResourcePreference_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "updateGatewayComputeResourcePreference failed: unknown result"); - def process_getExperiment(self, seqid, iprot, oprot): - args = getExperiment_args() - args.read(iprot) - iprot.readMessageEnd() - result = getExperiment_result() - try: - result.success = self._handler.getExperiment(args.airavataExperimentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getExperiment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def deleteGatewayComputeResourcePreference(self, gatewayID, computeResourceId): + """ + Delete the Compute Resource Preference of a registered gateway profile. - def process_updateExperiment(self, seqid, iprot, oprot): - args = updateExperiment_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateExperiment_result() - try: - self._handler.updateExperiment(args.airavataExperimentId, args.experiment) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateExperiment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @param gatewayID + The identifier for the gateway profile to be deleted. - def process_updateExperimentConfiguration(self, seqid, iprot, oprot): - args = updateExperimentConfiguration_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateExperimentConfiguration_result() - self._handler.updateExperimentConfiguration(args.airavataExperimentId, args.userConfiguration) - oprot.writeMessageBegin("updateExperimentConfiguration", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @param computeResourceId + Preferences related to a particular compute resource - def process_updateResourceScheduleing(self, seqid, iprot, oprot): - args = updateResourceScheduleing_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateResourceScheduleing_result() - self._handler.updateResourceScheduleing(args.airavataExperimentId, args.resourceScheduling) - oprot.writeMessageBegin("updateResourceScheduleing", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + @return status + Returns a success/failure of the deletion. - def process_validateExperiment(self, seqid, iprot, oprot): - args = validateExperiment_args() - args.read(iprot) - iprot.readMessageEnd() - result = validateExperiment_result() - try: - result.success = self._handler.validateExperiment(args.airavataExperimentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("validateExperiment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_launchExperiment(self, seqid, iprot, oprot): - args = launchExperiment_args() - args.read(iprot) - iprot.readMessageEnd() - result = launchExperiment_result() - try: - self._handler.launchExperiment(args.airavataExperimentId, args.airavataCredStoreToken) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - except apache.airavata.api.error.ttypes.LaunchValidationException, lve: - result.lve = lve - oprot.writeMessageBegin("launchExperiment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + Parameters: + - gatewayID + - computeResourceId + """ + self.send_deleteGatewayComputeResourcePreference(gatewayID, computeResourceId) + return self.recv_deleteGatewayComputeResourcePreference() - def process_getExperimentStatus(self, seqid, iprot, oprot): - args = getExperimentStatus_args() - args.read(iprot) + def send_deleteGatewayComputeResourcePreference(self, gatewayID, computeResourceId): + self._oprot.writeMessageBegin('deleteGatewayComputeResourcePreference', TMessageType.CALL, self._seqid) + args = deleteGatewayComputeResourcePreference_args() + args.gatewayID = gatewayID + args.computeResourceId = computeResourceId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_deleteGatewayComputeResourcePreference(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = deleteGatewayComputeResourcePreference_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteGatewayComputeResourcePreference failed: unknown result"); + + def getAllWorkflows(self, gatewayId): + """ + Parameters: + - gatewayId + """ + self.send_getAllWorkflows(gatewayId) + return self.recv_getAllWorkflows() + + def send_getAllWorkflows(self, gatewayId): + self._oprot.writeMessageBegin('getAllWorkflows', TMessageType.CALL, self._seqid) + args = getAllWorkflows_args() + args.gatewayId = gatewayId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getAllWorkflows(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = getAllWorkflows_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWorkflows failed: unknown result"); + + def getWorkflow(self, workflowTemplateId): + """ + Parameters: + - workflowTemplateId + """ + self.send_getWorkflow(workflowTemplateId) + return self.recv_getWorkflow() + + def send_getWorkflow(self, workflowTemplateId): + self._oprot.writeMessageBegin('getWorkflow', TMessageType.CALL, self._seqid) + args = getWorkflow_args() + args.workflowTemplateId = workflowTemplateId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getWorkflow(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = getWorkflow_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "getWorkflow failed: unknown result"); + + def deleteWorkflow(self, workflowTemplateId): + """ + Parameters: + - workflowTemplateId + """ + self.send_deleteWorkflow(workflowTemplateId) + self.recv_deleteWorkflow() + + def send_deleteWorkflow(self, workflowTemplateId): + self._oprot.writeMessageBegin('deleteWorkflow', TMessageType.CALL, self._seqid) + args = deleteWorkflow_args() + args.workflowTemplateId = workflowTemplateId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_deleteWorkflow(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = deleteWorkflow_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + return + + def registerWorkflow(self, gatewayId, workflow): + """ + Parameters: + - gatewayId + - workflow + """ + self.send_registerWorkflow(gatewayId, workflow) + return self.recv_registerWorkflow() + + def send_registerWorkflow(self, gatewayId, workflow): + self._oprot.writeMessageBegin('registerWorkflow', TMessageType.CALL, self._seqid) + args = registerWorkflow_args() + args.gatewayId = gatewayId + args.workflow = workflow + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerWorkflow(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = registerWorkflow_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "registerWorkflow failed: unknown result"); + + def updateWorkflow(self, workflowTemplateId, workflow): + """ + Parameters: + - workflowTemplateId + - workflow + """ + self.send_updateWorkflow(workflowTemplateId, workflow) + self.recv_updateWorkflow() + + def send_updateWorkflow(self, workflowTemplateId, workflow): + self._oprot.writeMessageBegin('updateWorkflow', TMessageType.CALL, self._seqid) + args = updateWorkflow_args() + args.workflowTemplateId = workflowTemplateId + args.workflow = workflow + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateWorkflow(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = updateWorkflow_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + return + + def getWorkflowTemplateId(self, workflowName): + """ + Parameters: + - workflowName + """ + self.send_getWorkflowTemplateId(workflowName) + return self.recv_getWorkflowTemplateId() + + def send_getWorkflowTemplateId(self, workflowName): + self._oprot.writeMessageBegin('getWorkflowTemplateId', TMessageType.CALL, self._seqid) + args = getWorkflowTemplateId_args() + args.workflowName = workflowName + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getWorkflowTemplateId(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = getWorkflowTemplateId_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "getWorkflowTemplateId failed: unknown result"); + + def isWorkflowExistWithName(self, workflowName): + """ + Parameters: + - workflowName + """ + self.send_isWorkflowExistWithName(workflowName) + return self.recv_isWorkflowExistWithName() + + def send_isWorkflowExistWithName(self, workflowName): + self._oprot.writeMessageBegin('isWorkflowExistWithName', TMessageType.CALL, self._seqid) + args = isWorkflowExistWithName_args() + args.workflowName = workflowName + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_isWorkflowExistWithName(self): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = isWorkflowExistWithName_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.ire is not None: + raise result.ire + if result.ace is not None: + raise result.ace + if result.ase is not None: + raise result.ase + raise TApplicationException(TApplicationException.MISSING_RESULT, "isWorkflowExistWithName failed: unknown result"); + + +class Processor(Iface, TProcessor): + def __init__(self, handler): + self._handler = handler + self._processMap = {} + self._processMap["getAPIVersion"] = Processor.process_getAPIVersion + self._processMap["addGateway"] = Processor.process_addGateway + self._processMap["updateGateway"] = Processor.process_updateGateway + self._processMap["getGateway"] = Processor.process_getGateway + self._processMap["deleteGateway"] = Processor.process_deleteGateway + self._processMap["getAllGateways"] = Processor.process_getAllGateways + self._processMap["isGatewayExist"] = Processor.process_isGatewayExist + self._processMap["generateAndRegisterSSHKeys"] = Processor.process_generateAndRegisterSSHKeys + self._processMap["getSSHPubKey"] = Processor.process_getSSHPubKey + self._processMap["getAllUserSSHPubKeys"] = Processor.process_getAllUserSSHPubKeys + self._processMap["createProject"] = Processor.process_createProject + self._processMap["updateProject"] = Processor.process_updateProject + self._processMap["getProject"] = Processor.process_getProject + self._processMap["deleteProject"] = Processor.process_deleteProject + self._processMap["getAllUserProjects"] = Processor.process_getAllUserProjects + self._processMap["getAllUserProjectsWithPagination"] = Processor.process_getAllUserProjectsWithPagination + self._processMap["searchProjectsByProjectName"] = Processor.process_searchProjectsByProjectName + self._processMap["searchProjectsByProjectNameWithPagination"] = Processor.process_searchProjectsByProjectNameWithPagination + self._processMap["searchProjectsByProjectDesc"] = Processor.process_searchProjectsByProjectDesc + self._processMap["searchProjectsByProjectDescWithPagination"] = Processor.process_searchProjectsByProjectDescWithPagination + self._processMap["searchExperimentsByName"] = Processor.process_searchExperimentsByName + self._processMap["searchExperimentsByNameWithPagination"] = Processor.process_searchExperimentsByNameWithPagination + self._processMap["searchExperimentsByDesc"] = Processor.process_searchExperimentsByDesc + self._processMap["searchExperimentsByDescWithPagination"] = Processor.process_searchExperimentsByDescWithPagination + self._processMap["searchExperimentsByApplication"] = Processor.process_searchExperimentsByApplication + self._processMap["searchExperimentsByApplicationWithPagination"] = Processor.process_searchExperimentsByApplicationWithPagination + self._processMap["searchExperimentsByStatus"] = Processor.process_searchExperimentsByStatus + self._processMap["searchExperimentsByStatusWithPagination"] = Processor.process_searchExperimentsByStatusWithPagination + self._processMap["searchExperimentsByCreationTime"] = Processor.process_searchExperimentsByCreationTime + self._processMap["searchExperimentsByCreationTimeWithPagination"] = Processor.process_searchExperimentsByCreationTimeWithPagination + self._processMap["getAllExperimentsInProject"] = Processor.process_getAllExperimentsInProject + self._processMap["getAllExperimentsInProjectWithPagination"] = Processor.process_getAllExperimentsInProjectWithPagination + self._processMap["getAllUserExperiments"] = Processor.process_getAllUserExperiments + self._processMap["getAllUserExperimentsWithPagination"] = Processor.process_getAllUserExperimentsWithPagination + self._processMap["createExperiment"] = Processor.process_createExperiment + self._processMap["getExperiment"] = Processor.process_getExperiment + self._processMap["updateExperiment"] = Processor.process_updateExperiment + self._processMap["updateExperimentConfiguration"] = Processor.process_updateExperimentConfiguration + self._processMap["updateResourceScheduleing"] = Processor.process_updateResourceScheduleing + self._processMap["validateExperiment"] = Processor.process_validateExperiment + self._processMap["launchExperiment"] = Processor.process_launchExperiment + self._processMap["getExperimentStatus"] = Processor.process_getExperimentStatus + self._processMap["getExperimentOutputs"] = Processor.process_getExperimentOutputs + self._processMap["getIntermediateOutputs"] = Processor.process_getIntermediateOutputs + self._processMap["getJobStatuses"] = Processor.process_getJobStatuses + self._processMap["getJobDetails"] = Processor.process_getJobDetails + self._processMap["getDataTransferDetails"] = Processor.process_getDataTransferDetails + self._processMap["cloneExperiment"] = Processor.process_cloneExperiment + self._processMap["terminateExperiment"] = Processor.process_terminateExperiment + self._processMap["registerApplicationModule"] = Processor.process_registerApplicationModule + self._processMap["getApplicationModule"] = Processor.process_getApplicationModule + self._processMap["updateApplicationModule"] = Processor.process_updateApplicationModule + self._processMap["getAllAppModules"] = Processor.process_getAllAppModules + self._processMap["deleteApplicationModule"] = Processor.process_deleteApplicationModule + self._processMap["registerApplicationDeployment"] = Processor.process_registerApplicationDeployment + self._processMap["getApplicationDeployment"] = Processor.process_getApplicationDeployment + self._processMap["updateApplicationDeployment"] = Processor.process_updateApplicationDeployment + self._processMap["deleteApplicationDeployment"] = Processor.process_deleteApplicationDeployment + self._processMap["getAllApplicationDeployments"] = Processor.process_getAllApplicationDeployments + self._processMap["getAppModuleDeployedResources"] = Processor.process_getAppModuleDeployedResources + self._processMap["registerApplicationInterface"] = Processor.process_registerApplicationInterface + self._processMap["getApplicationInterface"] = Processor.process_getApplicationInterface + self._processMap["updateApplicationInterface"] = Processor.process_updateApplicationInterface + self._processMap["deleteApplicationInterface"] = Processor.process_deleteApplicationInterface + self._processMap["getAllApplicationInterfaceNames"] = Processor.process_getAllApplicationInterfaceNames + self._processMap["getAllApplicationInterfaces"] = Processor.process_getAllApplicationInterfaces + self._processMap["getApplicationInputs"] = Processor.process_getApplicationInputs + self._processMap["getApplicationOutputs"] = Processor.process_getApplicationOutputs + self._processMap["getAvailableAppInterfaceComputeResources"] = Processor.process_getAvailableAppInterfaceComputeResources + self._processMap["registerComputeResource"] = Processor.process_registerComputeResource + self._processMap["getComputeResource"] = Processor.process_getComputeResource + self._processMap["getAllComputeResourceNames"] = Processor.process_getAllComputeResourceNames + self._processMap["updateComputeResource"] = Processor.process_updateComputeResource + self._processMap["deleteComputeResource"] = Processor.process_deleteComputeResource + self._processMap["addLocalSubmissionDetails"] = Processor.process_addLocalSubmissionDetails + self._processMap["updateLocalSubmissionDetails"] = Processor.process_updateLocalSubmissionDetails + self._processMap["getLocalJobSubmission"] = Processor.process_getLocalJobSubmission + self._processMap["addSSHJobSubmissionDetails"] = Processor.process_addSSHJobSubmissionDetails + self._processMap["getSSHJobSubmission"] = Processor.process_getSSHJobSubmission + self._processMap["addUNICOREJobSubmissionDetails"] = Processor.process_addUNICOREJobSubmissionDetails + self._processMap["getUnicoreJobSubmission"] = Processor.process_getUnicoreJobSubmission + self._processMap["addCloudJobSubmissionDetails"] = Processor.process_addCloudJobSubmissionDetails + self._processMap["getCloudJobSubmission"] = Processor.process_getCloudJobSubmission + self._processMap["updateSSHJobSubmissionDetails"] = Processor.process_updateSSHJobSubmissionDetails + self._processMap["updateCloudJobSubmissionDetails"] = Processor.process_updateCloudJobSubmissionDetails + self._processMap["updateUnicoreJobSubmissionDetails"] = Processor.process_updateUnicoreJobSubmissionDetails + self._processMap["addLocalDataMovementDetails"] = Processor.process_addLocalDataMovementDetails + self._processMap["updateLocalDataMovementDetails"] = Processor.process_updateLocalDataMovementDetails + self._processMap["getLocalDataMovement"] = Processor.process_getLocalDataMovement + self._processMap["addSCPDataMovementDetails"] = Processor.process_addSCPDataMovementDetails + self._processMap["updateSCPDataMovementDetails"] = Processor.process_updateSCPDataMovementDetails + self._processMap["getSCPDataMovement"] = Processor.process_getSCPDataMovement + self._processMap["addUnicoreDataMovementDetails"] = Processor.process_addUnicoreDataMovementDetails + self._processMap["updateUnicoreDataMovementDetails"] = Processor.process_updateUnicoreDataMovementDetails + self._processMap["getUnicoreDataMovement"] = Processor.process_getUnicoreDataMovement + self._processMap["addGridFTPDataMovementDetails"] = Processor.process_addGridFTPDataMovementDetails + self._processMap["updateGridFTPDataMovementDetails"] = Processor.process_updateGridFTPDataMovementDetails + self._processMap["getGridFTPDataMovement"] = Processor.process_getGridFTPDataMovement + self._processMap["changeJobSubmissionPriority"] = Processor.process_changeJobSubmissionPriority + self._processMap["changeDataMovementPriority"] = Processor.process_changeDataMovementPriority + self._processMap["changeJobSubmissionPriorities"] = Processor.process_changeJobSubmissionPriorities + self._processMap["changeDataMovementPriorities"] = Processor.process_changeDataMovementPriorities + self._processMap["deleteJobSubmissionInterface"] = Processor.process_deleteJobSubmissionInterface + self._processMap["deleteDataMovementInterface"] = Processor.process_deleteDataMovementInterface + self._processMap["registerResourceJobManager"] = Processor.process_registerResourceJobManager + self._processMap["updateResourceJobManager"] = Processor.process_updateResourceJobManager + self._processMap["getResourceJobManager"] = Processor.process_getResourceJobManager + self._processMap["deleteResourceJobManager"] = Processor.process_deleteResourceJobManager + self._processMap["deleteBatchQueue"] = Processor.process_deleteBatchQueue + self._processMap["registerGatewayResourceProfile"] = Processor.process_registerGatewayResourceProfile + self._processMap["getGatewayResourceProfile"] = Processor.process_getGatewayResourceProfile + self._processMap["updateGatewayResourceProfile"] = Processor.process_updateGatewayResourceProfile + self._processMap["deleteGatewayResourceProfile"] = Processor.process_deleteGatewayResourceProfile + self._processMap["addGatewayComputeResourcePreference"] = Processor.process_addGatewayComputeResourcePreference + self._processMap["getGatewayComputeResourcePreference"] = Processor.process_getGatewayComputeResourcePreference + self._processMap["getAllGatewayComputeResourcePreferences"] = Processor.process_getAllGatewayComputeResourcePreferences + self._processMap["getAllGatewayComputeResources"] = Processor.process_getAllGatewayComputeResources + self._processMap["updateGatewayComputeResourcePreference"] = Processor.process_updateGatewayComputeResourcePreference + self._processMap["deleteGatewayComputeResourcePreference"] = Processor.process_deleteGatewayComputeResourcePreference + self._processMap["getAllWorkflows"] = Processor.process_getAllWorkflows + self._processMap["getWorkflow"] = Processor.process_getWorkflow + self._processMap["deleteWorkflow"] = Processor.process_deleteWorkflow + self._processMap["registerWorkflow"] = Processor.process_registerWorkflow + self._processMap["updateWorkflow"] = Processor.process_updateWorkflow + self._processMap["getWorkflowTemplateId"] = Processor.process_getWorkflowTemplateId + self._processMap["isWorkflowExistWithName"] = Processor.process_isWorkflowExistWithName + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + if name not in self._processMap: + iprot.skip(TType.STRUCT) + iprot.readMessageEnd() + x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) + oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) + x.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + return + else: + self._processMap[name](self, seqid, iprot, oprot) + return True + + def process_getAPIVersion(self, seqid, iprot, oprot): + args = getAPIVersion_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAPIVersion_result() + try: + result.success = self._handler.getAPIVersion() + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAPIVersion", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addGateway(self, seqid, iprot, oprot): + args = addGateway_args() + args.read(iprot) + iprot.readMessageEnd() + result = addGateway_result() + try: + result.success = self._handler.addGateway(args.gateway) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addGateway", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateGateway(self, seqid, iprot, oprot): + args = updateGateway_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateGateway_result() + try: + self._handler.updateGateway(args.gatewayId, args.updatedGateway) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateGateway", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGateway(self, seqid, iprot, oprot): + args = getGateway_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGateway_result() + try: + result.success = self._handler.getGateway(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getGateway", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteGateway(self, seqid, iprot, oprot): + args = deleteGateway_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteGateway_result() + try: + result.success = self._handler.deleteGateway(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteGateway", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllGateways(self, seqid, iprot, oprot): + args = getAllGateways_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllGateways_result() + try: + result.success = self._handler.getAllGateways() + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllGateways", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_isGatewayExist(self, seqid, iprot, oprot): + args = isGatewayExist_args() + args.read(iprot) + iprot.readMessageEnd() + result = isGatewayExist_result() + try: + result.success = self._handler.isGatewayExist(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("isGatewayExist", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_generateAndRegisterSSHKeys(self, seqid, iprot, oprot): + args = generateAndRegisterSSHKeys_args() + args.read(iprot) + iprot.readMessageEnd() + result = generateAndRegisterSSHKeys_result() + try: + result.success = self._handler.generateAndRegisterSSHKeys(args.gatewayId, args.userName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("generateAndRegisterSSHKeys", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSSHPubKey(self, seqid, iprot, oprot): + args = getSSHPubKey_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSSHPubKey_result() + try: + result.success = self._handler.getSSHPubKey(args.airavataCredStoreToken) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getSSHPubKey", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllUserSSHPubKeys(self, seqid, iprot, oprot): + args = getAllUserSSHPubKeys_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllUserSSHPubKeys_result() + try: + result.success = self._handler.getAllUserSSHPubKeys(args.userName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllUserSSHPubKeys", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createProject(self, seqid, iprot, oprot): + args = createProject_args() + args.read(iprot) + iprot.readMessageEnd() + result = createProject_result() + try: + result.success = self._handler.createProject(args.gatewayId, args.project) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("createProject", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateProject(self, seqid, iprot, oprot): + args = updateProject_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateProject_result() + try: + self._handler.updateProject(args.projectId, args.updatedProject) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: + result.pnfe = pnfe + oprot.writeMessageBegin("updateProject", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getProject(self, seqid, iprot, oprot): + args = getProject_args() + args.read(iprot) + iprot.readMessageEnd() + result = getProject_result() + try: + result.success = self._handler.getProject(args.projectId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: + result.pnfe = pnfe + oprot.writeMessageBegin("getProject", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteProject(self, seqid, iprot, oprot): + args = deleteProject_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteProject_result() + try: + result.success = self._handler.deleteProject(args.projectId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: + result.pnfe = pnfe + oprot.writeMessageBegin("deleteProject", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllUserProjects(self, seqid, iprot, oprot): + args = getAllUserProjects_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllUserProjects_result() + try: + result.success = self._handler.getAllUserProjects(args.gatewayId, args.userName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllUserProjects", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllUserProjectsWithPagination(self, seqid, iprot, oprot): + args = getAllUserProjectsWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllUserProjectsWithPagination_result() + try: + result.success = self._handler.getAllUserProjectsWithPagination(args.gatewayId, args.userName, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllUserProjectsWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchProjectsByProjectName(self, seqid, iprot, oprot): + args = searchProjectsByProjectName_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchProjectsByProjectName_result() + try: + result.success = self._handler.searchProjectsByProjectName(args.gatewayId, args.userName, args.projectName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchProjectsByProjectName", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchProjectsByProjectNameWithPagination(self, seqid, iprot, oprot): + args = searchProjectsByProjectNameWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchProjectsByProjectNameWithPagination_result() + try: + result.success = self._handler.searchProjectsByProjectNameWithPagination(args.gatewayId, args.userName, args.projectName, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchProjectsByProjectNameWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchProjectsByProjectDesc(self, seqid, iprot, oprot): + args = searchProjectsByProjectDesc_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchProjectsByProjectDesc_result() + try: + result.success = self._handler.searchProjectsByProjectDesc(args.gatewayId, args.userName, args.description) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchProjectsByProjectDesc", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchProjectsByProjectDescWithPagination(self, seqid, iprot, oprot): + args = searchProjectsByProjectDescWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchProjectsByProjectDescWithPagination_result() + try: + result.success = self._handler.searchProjectsByProjectDescWithPagination(args.gatewayId, args.userName, args.description, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchProjectsByProjectDescWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByName(self, seqid, iprot, oprot): + args = searchExperimentsByName_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByName_result() + try: + result.success = self._handler.searchExperimentsByName(args.gatewayId, args.userName, args.expName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByName", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByNameWithPagination(self, seqid, iprot, oprot): + args = searchExperimentsByNameWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByNameWithPagination_result() + try: + result.success = self._handler.searchExperimentsByNameWithPagination(args.gatewayId, args.userName, args.expName, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByNameWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByDesc(self, seqid, iprot, oprot): + args = searchExperimentsByDesc_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByDesc_result() + try: + result.success = self._handler.searchExperimentsByDesc(args.gatewayId, args.userName, args.description) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByDesc", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByDescWithPagination(self, seqid, iprot, oprot): + args = searchExperimentsByDescWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByDescWithPagination_result() + try: + result.success = self._handler.searchExperimentsByDescWithPagination(args.gatewayId, args.userName, args.description, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByDescWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByApplication(self, seqid, iprot, oprot): + args = searchExperimentsByApplication_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByApplication_result() + try: + result.success = self._handler.searchExperimentsByApplication(args.gatewayId, args.userName, args.applicationId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByApplication", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByApplicationWithPagination(self, seqid, iprot, oprot): + args = searchExperimentsByApplicationWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByApplicationWithPagination_result() + try: + result.success = self._handler.searchExperimentsByApplicationWithPagination(args.gatewayId, args.userName, args.applicationId, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByApplicationWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByStatus(self, seqid, iprot, oprot): + args = searchExperimentsByStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByStatus_result() + try: + result.success = self._handler.searchExperimentsByStatus(args.gatewayId, args.userName, args.experimentState) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByStatus", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByStatusWithPagination(self, seqid, iprot, oprot): + args = searchExperimentsByStatusWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByStatusWithPagination_result() + try: + result.success = self._handler.searchExperimentsByStatusWithPagination(args.gatewayId, args.userName, args.experimentState, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByStatusWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByCreationTime(self, seqid, iprot, oprot): + args = searchExperimentsByCreationTime_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByCreationTime_result() + try: + result.success = self._handler.searchExperimentsByCreationTime(args.gatewayId, args.userName, args.fromTime, args.toTime) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByCreationTime", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchExperimentsByCreationTimeWithPagination(self, seqid, iprot, oprot): + args = searchExperimentsByCreationTimeWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchExperimentsByCreationTimeWithPagination_result() + try: + result.success = self._handler.searchExperimentsByCreationTimeWithPagination(args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("searchExperimentsByCreationTimeWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllExperimentsInProject(self, seqid, iprot, oprot): + args = getAllExperimentsInProject_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllExperimentsInProject_result() + try: + result.success = self._handler.getAllExperimentsInProject(args.projectId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: + result.pnfe = pnfe + oprot.writeMessageBegin("getAllExperimentsInProject", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllExperimentsInProjectWithPagination(self, seqid, iprot, oprot): + args = getAllExperimentsInProjectWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllExperimentsInProjectWithPagination_result() + try: + result.success = self._handler.getAllExperimentsInProjectWithPagination(args.projectId, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: + result.pnfe = pnfe + oprot.writeMessageBegin("getAllExperimentsInProjectWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllUserExperiments(self, seqid, iprot, oprot): + args = getAllUserExperiments_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllUserExperiments_result() + try: + result.success = self._handler.getAllUserExperiments(args.gatewayId, args.userName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllUserExperiments", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllUserExperimentsWithPagination(self, seqid, iprot, oprot): + args = getAllUserExperimentsWithPagination_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllUserExperimentsWithPagination_result() + try: + result.success = self._handler.getAllUserExperimentsWithPagination(args.gatewayId, args.userName, args.limit, args.offset) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllUserExperimentsWithPagination", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createExperiment(self, seqid, iprot, oprot): + args = createExperiment_args() + args.read(iprot) + iprot.readMessageEnd() + result = createExperiment_result() + try: + result.success = self._handler.createExperiment(args.gatewayId, args.experiment) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("createExperiment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getExperiment(self, seqid, iprot, oprot): + args = getExperiment_args() + args.read(iprot) + iprot.readMessageEnd() + result = getExperiment_result() + try: + result.success = self._handler.getExperiment(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getExperiment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateExperiment(self, seqid, iprot, oprot): + args = updateExperiment_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateExperiment_result() + try: + self._handler.updateExperiment(args.airavataExperimentId, args.experiment) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateExperiment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateExperimentConfiguration(self, seqid, iprot, oprot): + args = updateExperimentConfiguration_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateExperimentConfiguration_result() + self._handler.updateExperimentConfiguration(args.airavataExperimentId, args.userConfiguration) + oprot.writeMessageBegin("updateExperimentConfiguration", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateResourceScheduleing(self, seqid, iprot, oprot): + args = updateResourceScheduleing_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateResourceScheduleing_result() + self._handler.updateResourceScheduleing(args.airavataExperimentId, args.resourceScheduling) + oprot.writeMessageBegin("updateResourceScheduleing", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_validateExperiment(self, seqid, iprot, oprot): + args = validateExperiment_args() + args.read(iprot) + iprot.readMessageEnd() + result = validateExperiment_result() + try: + result.success = self._handler.validateExperiment(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("validateExperiment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_launchExperiment(self, seqid, iprot, oprot): + args = launchExperiment_args() + args.read(iprot) + iprot.readMessageEnd() + result = launchExperiment_result() + try: + self._handler.launchExperiment(args.airavataExperimentId, args.airavataCredStoreToken) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + except apache.airavata.api.error.ttypes.LaunchValidationException, lve: + result.lve = lve + oprot.writeMessageBegin("launchExperiment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getExperimentStatus(self, seqid, iprot, oprot): + args = getExperimentStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getExperimentStatus_result() + try: + result.success = self._handler.getExperimentStatus(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getExperimentStatus", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getExperimentOutputs(self, seqid, iprot, oprot): + args = getExperimentOutputs_args() + args.read(iprot) + iprot.readMessageEnd() + result = getExperimentOutputs_result() + try: + result.success = self._handler.getExperimentOutputs(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getExperimentOutputs", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getIntermediateOutputs(self, seqid, iprot, oprot): + args = getIntermediateOutputs_args() + args.read(iprot) + iprot.readMessageEnd() + result = getIntermediateOutputs_result() + try: + result.success = self._handler.getIntermediateOutputs(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getIntermediateOutputs", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getJobStatuses(self, seqid, iprot, oprot): + args = getJobStatuses_args() + args.read(iprot) + iprot.readMessageEnd() + result = getJobStatuses_result() + try: + result.success = self._handler.getJobStatuses(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getJobStatuses", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getJobDetails(self, seqid, iprot, oprot): + args = getJobDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = getJobDetails_result() + try: + result.success = self._handler.getJobDetails(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getJobDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getDataTransferDetails(self, seqid, iprot, oprot): + args = getDataTransferDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = getDataTransferDetails_result() + try: + result.success = self._handler.getDataTransferDetails(args.airavataExperimentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getDataTransferDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_cloneExperiment(self, seqid, iprot, oprot): + args = cloneExperiment_args() + args.read(iprot) + iprot.readMessageEnd() + result = cloneExperiment_result() + try: + result.success = self._handler.cloneExperiment(args.existingExperimentID, args.newExperimentName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("cloneExperiment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_terminateExperiment(self, seqid, iprot, oprot): + args = terminateExperiment_args() + args.read(iprot) + iprot.readMessageEnd() + result = terminateExperiment_result() + try: + self._handler.terminateExperiment(args.airavataExperimentId, args.tokenId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: + result.enf = enf + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("terminateExperiment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerApplicationModule(self, seqid, iprot, oprot): + args = registerApplicationModule_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerApplicationModule_result() + try: + result.success = self._handler.registerApplicationModule(args.gatewayId, args.applicationModule) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("registerApplicationModule", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getApplicationModule(self, seqid, iprot, oprot): + args = getApplicationModule_args() + args.read(iprot) + iprot.readMessageEnd() + result = getApplicationModule_result() + try: + result.success = self._handler.getApplicationModule(args.appModuleId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getApplicationModule", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateApplicationModule(self, seqid, iprot, oprot): + args = updateApplicationModule_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateApplicationModule_result() + try: + result.success = self._handler.updateApplicationModule(args.appModuleId, args.applicationModule) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateApplicationModule", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllAppModules(self, seqid, iprot, oprot): + args = getAllAppModules_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllAppModules_result() + try: + result.success = self._handler.getAllAppModules(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllAppModules", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteApplicationModule(self, seqid, iprot, oprot): + args = deleteApplicationModule_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteApplicationModule_result() + try: + result.success = self._handler.deleteApplicationModule(args.appModuleId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteApplicationModule", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerApplicationDeployment(self, seqid, iprot, oprot): + args = registerApplicationDeployment_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerApplicationDeployment_result() + try: + result.success = self._handler.registerApplicationDeployment(args.gatewayId, args.applicationDeployment) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("registerApplicationDeployment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getApplicationDeployment(self, seqid, iprot, oprot): + args = getApplicationDeployment_args() + args.read(iprot) + iprot.readMessageEnd() + result = getApplicationDeployment_result() + try: + result.success = self._handler.getApplicationDeployment(args.appDeploymentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getApplicationDeployment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateApplicationDeployment(self, seqid, iprot, oprot): + args = updateApplicationDeployment_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateApplicationDeployment_result() + try: + result.success = self._handler.updateApplicationDeployment(args.appDeploymentId, args.applicationDeployment) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateApplicationDeployment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteApplicationDeployment(self, seqid, iprot, oprot): + args = deleteApplicationDeployment_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteApplicationDeployment_result() + try: + result.success = self._handler.deleteApplicationDeployment(args.appDeploymentId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteApplicationDeployment", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllApplicationDeployments(self, seqid, iprot, oprot): + args = getAllApplicationDeployments_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllApplicationDeployments_result() + try: + result.success = self._handler.getAllApplicationDeployments(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllApplicationDeployments", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAppModuleDeployedResources(self, seqid, iprot, oprot): + args = getAppModuleDeployedResources_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAppModuleDeployedResources_result() + try: + result.success = self._handler.getAppModuleDeployedResources(args.appModuleId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAppModuleDeployedResources", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerApplicationInterface(self, seqid, iprot, oprot): + args = registerApplicationInterface_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerApplicationInterface_result() + try: + result.success = self._handler.registerApplicationInterface(args.gatewayId, args.applicationInterface) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("registerApplicationInterface", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getApplicationInterface(self, seqid, iprot, oprot): + args = getApplicationInterface_args() + args.read(iprot) + iprot.readMessageEnd() + result = getApplicationInterface_result() + try: + result.success = self._handler.getApplicationInterface(args.appInterfaceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getApplicationInterface", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateApplicationInterface(self, seqid, iprot, oprot): + args = updateApplicationInterface_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateApplicationInterface_result() + try: + result.success = self._handler.updateApplicationInterface(args.appInterfaceId, args.applicationInterface) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateApplicationInterface", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteApplicationInterface(self, seqid, iprot, oprot): + args = deleteApplicationInterface_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteApplicationInterface_result() + try: + result.success = self._handler.deleteApplicationInterface(args.appInterfaceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteApplicationInterface", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllApplicationInterfaceNames(self, seqid, iprot, oprot): + args = getAllApplicationInterfaceNames_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllApplicationInterfaceNames_result() + try: + result.success = self._handler.getAllApplicationInterfaceNames(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllApplicationInterfaceNames", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllApplicationInterfaces(self, seqid, iprot, oprot): + args = getAllApplicationInterfaces_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllApplicationInterfaces_result() + try: + result.success = self._handler.getAllApplicationInterfaces(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllApplicationInterfaces", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getApplicationInputs(self, seqid, iprot, oprot): + args = getApplicationInputs_args() + args.read(iprot) + iprot.readMessageEnd() + result = getApplicationInputs_result() + try: + result.success = self._handler.getApplicationInputs(args.appInterfaceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getApplicationInputs", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getApplicationOutputs(self, seqid, iprot, oprot): + args = getApplicationOutputs_args() + args.read(iprot) + iprot.readMessageEnd() + result = getApplicationOutputs_result() + try: + result.success = self._handler.getApplicationOutputs(args.appInterfaceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getApplicationOutputs", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAvailableAppInterfaceComputeResources(self, seqid, iprot, oprot): + args = getAvailableAppInterfaceComputeResources_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAvailableAppInterfaceComputeResources_result() + try: + result.success = self._handler.getAvailableAppInterfaceComputeResources(args.appInterfaceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAvailableAppInterfaceComputeResources", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerComputeResource(self, seqid, iprot, oprot): + args = registerComputeResource_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerComputeResource_result() + try: + result.success = self._handler.registerComputeResource(args.computeResourceDescription) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("registerComputeResource", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getComputeResource(self, seqid, iprot, oprot): + args = getComputeResource_args() + args.read(iprot) + iprot.readMessageEnd() + result = getComputeResource_result() + try: + result.success = self._handler.getComputeResource(args.computeResourceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getComputeResource", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllComputeResourceNames(self, seqid, iprot, oprot): + args = getAllComputeResourceNames_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllComputeResourceNames_result() + try: + result.success = self._handler.getAllComputeResourceNames() + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllComputeResourceNames", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateComputeResource(self, seqid, iprot, oprot): + args = updateComputeResource_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateComputeResource_result() + try: + result.success = self._handler.updateComputeResource(args.computeResourceId, args.computeResourceDescription) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateComputeResource", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteComputeResource(self, seqid, iprot, oprot): + args = deleteComputeResource_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteComputeResource_result() + try: + result.success = self._handler.deleteComputeResource(args.computeResourceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteComputeResource", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addLocalSubmissionDetails(self, seqid, iprot, oprot): + args = addLocalSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addLocalSubmissionDetails_result() + try: + result.success = self._handler.addLocalSubmissionDetails(args.computeResourceId, args.priorityOrder, args.localSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addLocalSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateLocalSubmissionDetails(self, seqid, iprot, oprot): + args = updateLocalSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateLocalSubmissionDetails_result() + try: + result.success = self._handler.updateLocalSubmissionDetails(args.jobSubmissionInterfaceId, args.localSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateLocalSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getLocalJobSubmission(self, seqid, iprot, oprot): + args = getLocalJobSubmission_args() + args.read(iprot) + iprot.readMessageEnd() + result = getLocalJobSubmission_result() + try: + result.success = self._handler.getLocalJobSubmission(args.jobSubmissionId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getLocalJobSubmission", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addSSHJobSubmissionDetails(self, seqid, iprot, oprot): + args = addSSHJobSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addSSHJobSubmissionDetails_result() + try: + result.success = self._handler.addSSHJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.sshJobSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addSSHJobSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSSHJobSubmission(self, seqid, iprot, oprot): + args = getSSHJobSubmission_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSSHJobSubmission_result() + try: + result.success = self._handler.getSSHJobSubmission(args.jobSubmissionId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getSSHJobSubmission", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addUNICOREJobSubmissionDetails(self, seqid, iprot, oprot): + args = addUNICOREJobSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addUNICOREJobSubmissionDetails_result() + try: + result.success = self._handler.addUNICOREJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.unicoreJobSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addUNICOREJobSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getUnicoreJobSubmission(self, seqid, iprot, oprot): + args = getUnicoreJobSubmission_args() + args.read(iprot) + iprot.readMessageEnd() + result = getUnicoreJobSubmission_result() + try: + result.success = self._handler.getUnicoreJobSubmission(args.jobSubmissionId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getUnicoreJobSubmission", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addCloudJobSubmissionDetails(self, seqid, iprot, oprot): + args = addCloudJobSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addCloudJobSubmissionDetails_result() + try: + result.success = self._handler.addCloudJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.cloudSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addCloudJobSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getCloudJobSubmission(self, seqid, iprot, oprot): + args = getCloudJobSubmission_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCloudJobSubmission_result() + try: + result.success = self._handler.getCloudJobSubmission(args.jobSubmissionId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getCloudJobSubmission", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSSHJobSubmissionDetails(self, seqid, iprot, oprot): + args = updateSSHJobSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSSHJobSubmissionDetails_result() + try: + result.success = self._handler.updateSSHJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateSSHJobSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateCloudJobSubmissionDetails(self, seqid, iprot, oprot): + args = updateCloudJobSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateCloudJobSubmissionDetails_result() + try: + result.success = self._handler.updateCloudJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateCloudJobSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateUnicoreJobSubmissionDetails(self, seqid, iprot, oprot): + args = updateUnicoreJobSubmissionDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateUnicoreJobSubmissionDetails_result() + try: + result.success = self._handler.updateUnicoreJobSubmissionDetails(args.jobSubmissionInterfaceId, args.unicoreJobSubmission) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateUnicoreJobSubmissionDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addLocalDataMovementDetails(self, seqid, iprot, oprot): + args = addLocalDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addLocalDataMovementDetails_result() + try: + result.success = self._handler.addLocalDataMovementDetails(args.computeResourceId, args.priorityOrder, args.localDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addLocalDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateLocalDataMovementDetails(self, seqid, iprot, oprot): + args = updateLocalDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateLocalDataMovementDetails_result() + try: + result.success = self._handler.updateLocalDataMovementDetails(args.dataMovementInterfaceId, args.localDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateLocalDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getLocalDataMovement(self, seqid, iprot, oprot): + args = getLocalDataMovement_args() + args.read(iprot) + iprot.readMessageEnd() + result = getLocalDataMovement_result() + try: + result.success = self._handler.getLocalDataMovement(args.dataMovementId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getLocalDataMovement", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addSCPDataMovementDetails(self, seqid, iprot, oprot): + args = addSCPDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addSCPDataMovementDetails_result() + try: + result.success = self._handler.addSCPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.scpDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addSCPDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSCPDataMovementDetails(self, seqid, iprot, oprot): + args = updateSCPDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSCPDataMovementDetails_result() + try: + result.success = self._handler.updateSCPDataMovementDetails(args.dataMovementInterfaceId, args.scpDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateSCPDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSCPDataMovement(self, seqid, iprot, oprot): + args = getSCPDataMovement_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSCPDataMovement_result() + try: + result.success = self._handler.getSCPDataMovement(args.dataMovementId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getSCPDataMovement", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addUnicoreDataMovementDetails(self, seqid, iprot, oprot): + args = addUnicoreDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addUnicoreDataMovementDetails_result() + try: + result.success = self._handler.addUnicoreDataMovementDetails(args.computeResourceId, args.priorityOrder, args.unicoreDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addUnicoreDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateUnicoreDataMovementDetails(self, seqid, iprot, oprot): + args = updateUnicoreDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateUnicoreDataMovementDetails_result() + try: + result.success = self._handler.updateUnicoreDataMovementDetails(args.dataMovementInterfaceId, args.unicoreDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateUnicoreDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getUnicoreDataMovement(self, seqid, iprot, oprot): + args = getUnicoreDataMovement_args() + args.read(iprot) + iprot.readMessageEnd() + result = getUnicoreDataMovement_result() + try: + result.success = self._handler.getUnicoreDataMovement(args.dataMovementId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getUnicoreDataMovement", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addGridFTPDataMovementDetails(self, seqid, iprot, oprot): + args = addGridFTPDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = addGridFTPDataMovementDetails_result() + try: + result.success = self._handler.addGridFTPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.gridFTPDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addGridFTPDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateGridFTPDataMovementDetails(self, seqid, iprot, oprot): + args = updateGridFTPDataMovementDetails_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateGridFTPDataMovementDetails_result() + try: + result.success = self._handler.updateGridFTPDataMovementDetails(args.dataMovementInterfaceId, args.gridFTPDataMovement) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateGridFTPDataMovementDetails", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGridFTPDataMovement(self, seqid, iprot, oprot): + args = getGridFTPDataMovement_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGridFTPDataMovement_result() + try: + result.success = self._handler.getGridFTPDataMovement(args.dataMovementId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getGridFTPDataMovement", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_changeJobSubmissionPriority(self, seqid, iprot, oprot): + args = changeJobSubmissionPriority_args() + args.read(iprot) + iprot.readMessageEnd() + result = changeJobSubmissionPriority_result() + try: + result.success = self._handler.changeJobSubmissionPriority(args.jobSubmissionInterfaceId, args.newPriorityOrder) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("changeJobSubmissionPriority", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_changeDataMovementPriority(self, seqid, iprot, oprot): + args = changeDataMovementPriority_args() + args.read(iprot) + iprot.readMessageEnd() + result = changeDataMovementPriority_result() + try: + result.success = self._handler.changeDataMovementPriority(args.dataMovementInterfaceId, args.newPriorityOrder) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("changeDataMovementPriority", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_changeJobSubmissionPriorities(self, seqid, iprot, oprot): + args = changeJobSubmissionPriorities_args() + args.read(iprot) + iprot.readMessageEnd() + result = changeJobSubmissionPriorities_result() + try: + result.success = self._handler.changeJobSubmissionPriorities(args.jobSubmissionPriorityMap) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("changeJobSubmissionPriorities", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_changeDataMovementPriorities(self, seqid, iprot, oprot): + args = changeDataMovementPriorities_args() + args.read(iprot) + iprot.readMessageEnd() + result = changeDataMovementPriorities_result() + try: + result.success = self._handler.changeDataMovementPriorities(args.dataMovementPriorityMap) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("changeDataMovementPriorities", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteJobSubmissionInterface(self, seqid, iprot, oprot): + args = deleteJobSubmissionInterface_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteJobSubmissionInterface_result() + try: + result.success = self._handler.deleteJobSubmissionInterface(args.computeResourceId, args.jobSubmissionInterfaceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteJobSubmissionInterface", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteDataMovementInterface(self, seqid, iprot, oprot): + args = deleteDataMovementInterface_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteDataMovementInterface_result() + try: + result.success = self._handler.deleteDataMovementInterface(args.computeResourceId, args.dataMovementInterfaceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteDataMovementInterface", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerResourceJobManager(self, seqid, iprot, oprot): + args = registerResourceJobManager_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerResourceJobManager_result() + try: + result.success = self._handler.registerResourceJobManager(args.resourceJobManager) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("registerResourceJobManager", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateResourceJobManager(self, seqid, iprot, oprot): + args = updateResourceJobManager_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateResourceJobManager_result() + try: + result.success = self._handler.updateResourceJobManager(args.resourceJobManagerId, args.updatedResourceJobManager) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateResourceJobManager", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getResourceJobManager(self, seqid, iprot, oprot): + args = getResourceJobManager_args() + args.read(iprot) + iprot.readMessageEnd() + result = getResourceJobManager_result() + try: + result.success = self._handler.getResourceJobManager(args.resourceJobManagerId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getResourceJobManager", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteResourceJobManager(self, seqid, iprot, oprot): + args = deleteResourceJobManager_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteResourceJobManager_result() + try: + result.success = self._handler.deleteResourceJobManager(args.resourceJobManagerId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteResourceJobManager", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteBatchQueue(self, seqid, iprot, oprot): + args = deleteBatchQueue_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteBatchQueue_result() + try: + result.success = self._handler.deleteBatchQueue(args.computeResourceId, args.queueName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteBatchQueue", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerGatewayResourceProfile(self, seqid, iprot, oprot): + args = registerGatewayResourceProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerGatewayResourceProfile_result() + try: + result.success = self._handler.registerGatewayResourceProfile(args.gatewayResourceProfile) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("registerGatewayResourceProfile", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGatewayResourceProfile(self, seqid, iprot, oprot): + args = getGatewayResourceProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGatewayResourceProfile_result() + try: + result.success = self._handler.getGatewayResourceProfile(args.gatewayID) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getGatewayResourceProfile", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateGatewayResourceProfile(self, seqid, iprot, oprot): + args = updateGatewayResourceProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateGatewayResourceProfile_result() + try: + result.success = self._handler.updateGatewayResourceProfile(args.gatewayID, args.gatewayResourceProfile) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateGatewayResourceProfile", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteGatewayResourceProfile(self, seqid, iprot, oprot): + args = deleteGatewayResourceProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteGatewayResourceProfile_result() + try: + result.success = self._handler.deleteGatewayResourceProfile(args.gatewayID) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteGatewayResourceProfile", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addGatewayComputeResourcePreference(self, seqid, iprot, oprot): + args = addGatewayComputeResourcePreference_args() + args.read(iprot) + iprot.readMessageEnd() + result = addGatewayComputeResourcePreference_result() + try: + result.success = self._handler.addGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("addGatewayComputeResourcePreference", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGatewayComputeResourcePreference(self, seqid, iprot, oprot): + args = getGatewayComputeResourcePreference_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGatewayComputeResourcePreference_result() + try: + result.success = self._handler.getGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getGatewayComputeResourcePreference", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllGatewayComputeResourcePreferences(self, seqid, iprot, oprot): + args = getAllGatewayComputeResourcePreferences_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllGatewayComputeResourcePreferences_result() + try: + result.success = self._handler.getAllGatewayComputeResourcePreferences(args.gatewayID) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllGatewayComputeResourcePreferences", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllGatewayComputeResources(self, seqid, iprot, oprot): + args = getAllGatewayComputeResources_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllGatewayComputeResources_result() + try: + result.success = self._handler.getAllGatewayComputeResources() + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllGatewayComputeResources", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateGatewayComputeResourcePreference(self, seqid, iprot, oprot): + args = updateGatewayComputeResourcePreference_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateGatewayComputeResourcePreference_result() + try: + result.success = self._handler.updateGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateGatewayComputeResourcePreference", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteGatewayComputeResourcePreference(self, seqid, iprot, oprot): + args = deleteGatewayComputeResourcePreference_args() + args.read(iprot) iprot.readMessageEnd() - result = getExperimentStatus_result() + result = deleteGatewayComputeResourcePreference_result() try: - result.success = self._handler.getExperimentStatus(args.airavataExperimentId) + result.success = self._handler.deleteGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf except apache.airavata.api.error.ttypes.AiravataClientException, ace: result.ace = ace except apache.airavata.api.error.ttypes.AiravataSystemException, ase: result.ase = ase - oprot.writeMessageBegin("getExperimentStatus", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("deleteGatewayComputeResourcePreference", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllWorkflows(self, seqid, iprot, oprot): + args = getAllWorkflows_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllWorkflows_result() + try: + result.success = self._handler.getAllWorkflows(args.gatewayId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getAllWorkflows", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getWorkflow(self, seqid, iprot, oprot): + args = getWorkflow_args() + args.read(iprot) + iprot.readMessageEnd() + result = getWorkflow_result() + try: + result.success = self._handler.getWorkflow(args.workflowTemplateId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getWorkflow", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteWorkflow(self, seqid, iprot, oprot): + args = deleteWorkflow_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteWorkflow_result() + try: + self._handler.deleteWorkflow(args.workflowTemplateId) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("deleteWorkflow", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerWorkflow(self, seqid, iprot, oprot): + args = registerWorkflow_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerWorkflow_result() + try: + result.success = self._handler.registerWorkflow(args.gatewayId, args.workflow) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("registerWorkflow", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateWorkflow(self, seqid, iprot, oprot): + args = updateWorkflow_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateWorkflow_result() + try: + self._handler.updateWorkflow(args.workflowTemplateId, args.workflow) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("updateWorkflow", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getWorkflowTemplateId(self, seqid, iprot, oprot): + args = getWorkflowTemplateId_args() + args.read(iprot) + iprot.readMessageEnd() + result = getWorkflowTemplateId_result() + try: + result.success = self._handler.getWorkflowTemplateId(args.workflowName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("getWorkflowTemplateId", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_isWorkflowExistWithName(self, seqid, iprot, oprot): + args = isWorkflowExistWithName_args() + args.read(iprot) + iprot.readMessageEnd() + result = isWorkflowExistWithName_result() + try: + result.success = self._handler.isWorkflowExistWithName(args.workflowName) + except apache.airavata.api.error.ttypes.InvalidRequestException, ire: + result.ire = ire + except apache.airavata.api.error.ttypes.AiravataClientException, ace: + result.ace = ace + except apache.airavata.api.error.ttypes.AiravataSystemException, ase: + result.ase = ase + oprot.writeMessageBegin("isWorkflowExistWithName", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_getExperimentOutputs(self, seqid, iprot, oprot): - args = getExperimentOutputs_args() - args.read(iprot) - iprot.readMessageEnd() - result = getExperimentOutputs_result() - try: - result.success = self._handler.getExperimentOutputs(args.airavataExperimentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getExperimentOutputs", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_getIntermediateOutputs(self, seqid, iprot, oprot): - args = getIntermediateOutputs_args() - args.read(iprot) - iprot.readMessageEnd() - result = getIntermediateOutputs_result() - try: - result.success = self._handler.getIntermediateOutputs(args.airavataExperimentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getIntermediateOutputs", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +# HELPER FUNCTIONS AND STRUCTURES + +class getAPIVersion_args: + + thrift_spec = ( + ) + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getAPIVersion_args') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class getAPIVersion_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ + + thrift_spec = ( + (0, TType.STRING, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) + + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRING: + self.success = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getAPIVersion_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success) + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class addGateway_args: + """ + Attributes: + - gateway + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'gateway', (apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec), None, ), # 1 + ) + + def __init__(self, gateway=None,): + self.gateway = gateway + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.gateway = apache.airavata.model.workspace.ttypes.Gateway() + self.gateway.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('addGateway_args') + if self.gateway is not None: + oprot.writeFieldBegin('gateway', TType.STRUCT, 1) + self.gateway.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.gateway is None: + raise TProtocol.TProtocolException(message='Required field gateway is unset!') + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class addGateway_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ + + thrift_spec = ( + (0, TType.STRING, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) + + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRING: + self.success = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('addGateway_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success) + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class updateGateway_args: + """ + Attributes: + - gatewayId + - updatedGateway + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRUCT, 'updatedGateway', (apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec), None, ), # 2 + ) + + def __init__(self, gatewayId=None, updatedGateway=None,): + self.gatewayId = gatewayId + self.updatedGateway = updatedGateway + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.updatedGateway = apache.airavata.model.workspace.ttypes.Gateway() + self.updatedGateway.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('updateGateway_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.updatedGateway is not None: + oprot.writeFieldBegin('updatedGateway', TType.STRUCT, 2) + self.updatedGateway.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.updatedGateway is None: + raise TProtocol.TProtocolException(message='Required field updatedGateway is unset!') + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class updateGateway_result: + """ + Attributes: + - ire + - ace + - ase + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) + + def __init__(self, ire=None, ace=None, ase=None,): + self.ire = ire + self.ace = ace + self.ase = ase + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('updateGateway_result') + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class getGateway_args: + """ + Attributes: + - gatewayId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + ) + + def __init__(self, gatewayId=None,): + self.gatewayId = gatewayId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getGateway_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class getGateway_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) + + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = apache.airavata.model.workspace.ttypes.Gateway() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getGateway_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class deleteGateway_args: + """ + Attributes: + - gatewayId + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + ) + + def __init__(self, gatewayId=None,): + self.gatewayId = gatewayId + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('deleteGateway_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class deleteGateway_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ + + thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) + + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.BOOL: + self.success = iprot.readBool(); + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('deleteGateway_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class getAllGateways_args: + + thrift_spec = ( + ) + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getAllGateways_args') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return - def process_getJobStatuses(self, seqid, iprot, oprot): - args = getJobStatuses_args() - args.read(iprot) - iprot.readMessageEnd() - result = getJobStatuses_result() - try: - result.success = self._handler.getJobStatuses(args.airavataExperimentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getJobStatuses", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_getJobDetails(self, seqid, iprot, oprot): - args = getJobDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = getJobDetails_result() - try: - result.success = self._handler.getJobDetails(args.airavataExperimentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getJobDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_getDataTransferDetails(self, seqid, iprot, oprot): - args = getDataTransferDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = getDataTransferDetails_result() - try: - result.success = self._handler.getDataTransferDetails(args.airavataExperimentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getDataTransferDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_cloneExperiment(self, seqid, iprot, oprot): - args = cloneExperiment_args() - args.read(iprot) - iprot.readMessageEnd() - result = cloneExperiment_result() - try: - result.success = self._handler.cloneExperiment(args.existingExperimentID, args.newExperimentName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("cloneExperiment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_terminateExperiment(self, seqid, iprot, oprot): - args = terminateExperiment_args() - args.read(iprot) - iprot.readMessageEnd() - result = terminateExperiment_result() - try: - self._handler.terminateExperiment(args.airavataExperimentId, args.tokenId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.ExperimentNotFoundException, enf: - result.enf = enf - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("terminateExperiment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class getAllGateways_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ - def process_registerApplicationModule(self, seqid, iprot, oprot): - args = registerApplicationModule_args() - args.read(iprot) - iprot.readMessageEnd() - result = registerApplicationModule_result() - try: - result.success = self._handler.registerApplicationModule(args.gatewayId, args.applicationModule) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("registerApplicationModule", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) - def process_getApplicationModule(self, seqid, iprot, oprot): - args = getApplicationModule_args() - args.read(iprot) - iprot.readMessageEnd() - result = getApplicationModule_result() - try: - result.success = self._handler.getApplicationModule(args.appModuleId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getApplicationModule", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase - def process_updateApplicationModule(self, seqid, iprot, oprot): - args = updateApplicationModule_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateApplicationModule_result() - try: - result.success = self._handler.updateApplicationModule(args.appModuleId, args.applicationModule) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateApplicationModule", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype3, _size0) = iprot.readListBegin() + for _i4 in xrange(_size0): + _elem5 = apache.airavata.model.workspace.ttypes.Gateway() + _elem5.read(iprot) + self.success.append(_elem5) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_getAllAppModules(self, seqid, iprot, oprot): - args = getAllAppModules_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllAppModules_result() - try: - result.success = self._handler.getAllAppModules(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllAppModules", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getAllGateways_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter6 in self.success: + iter6.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_deleteApplicationModule(self, seqid, iprot, oprot): - args = deleteApplicationModule_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteApplicationModule_result() - try: - result.success = self._handler.deleteApplicationModule(args.appModuleId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteApplicationModule", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + return - def process_registerApplicationDeployment(self, seqid, iprot, oprot): - args = registerApplicationDeployment_args() - args.read(iprot) - iprot.readMessageEnd() - result = registerApplicationDeployment_result() - try: - result.success = self._handler.registerApplicationDeployment(args.gatewayId, args.applicationDeployment) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("registerApplicationDeployment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_getApplicationDeployment(self, seqid, iprot, oprot): - args = getApplicationDeployment_args() - args.read(iprot) - iprot.readMessageEnd() - result = getApplicationDeployment_result() - try: - result.success = self._handler.getApplicationDeployment(args.appDeploymentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getApplicationDeployment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_updateApplicationDeployment(self, seqid, iprot, oprot): - args = updateApplicationDeployment_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateApplicationDeployment_result() - try: - result.success = self._handler.updateApplicationDeployment(args.appDeploymentId, args.applicationDeployment) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateApplicationDeployment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_deleteApplicationDeployment(self, seqid, iprot, oprot): - args = deleteApplicationDeployment_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteApplicationDeployment_result() - try: - result.success = self._handler.deleteApplicationDeployment(args.appDeploymentId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteApplicationDeployment", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_getAllApplicationDeployments(self, seqid, iprot, oprot): - args = getAllApplicationDeployments_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllApplicationDeployments_result() - try: - result.success = self._handler.getAllApplicationDeployments(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllApplicationDeployments", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class isGatewayExist_args: + """ + Attributes: + - gatewayId + """ - def process_getAppModuleDeployedResources(self, seqid, iprot, oprot): - args = getAppModuleDeployedResources_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAppModuleDeployedResources_result() - try: - result.success = self._handler.getAppModuleDeployedResources(args.appModuleId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAppModuleDeployedResources", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + ) - def process_registerApplicationInterface(self, seqid, iprot, oprot): - args = registerApplicationInterface_args() - args.read(iprot) - iprot.readMessageEnd() - result = registerApplicationInterface_result() - try: - result.success = self._handler.registerApplicationInterface(args.gatewayId, args.applicationInterface) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("registerApplicationInterface", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, gatewayId=None,): + self.gatewayId = gatewayId - def process_getApplicationInterface(self, seqid, iprot, oprot): - args = getApplicationInterface_args() - args.read(iprot) - iprot.readMessageEnd() - result = getApplicationInterface_result() - try: - result.success = self._handler.getApplicationInterface(args.appInterfaceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getApplicationInterface", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_updateApplicationInterface(self, seqid, iprot, oprot): - args = updateApplicationInterface_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateApplicationInterface_result() - try: - result.success = self._handler.updateApplicationInterface(args.appInterfaceId, args.applicationInterface) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateApplicationInterface", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('isGatewayExist_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_deleteApplicationInterface(self, seqid, iprot, oprot): - args = deleteApplicationInterface_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteApplicationInterface_result() - try: - result.success = self._handler.deleteApplicationInterface(args.appInterfaceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteApplicationInterface", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + return - def process_getAllApplicationInterfaceNames(self, seqid, iprot, oprot): - args = getAllApplicationInterfaceNames_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllApplicationInterfaceNames_result() - try: - result.success = self._handler.getAllApplicationInterfaceNames(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllApplicationInterfaceNames", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_getAllApplicationInterfaces(self, seqid, iprot, oprot): - args = getAllApplicationInterfaces_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllApplicationInterfaces_result() - try: - result.success = self._handler.getAllApplicationInterfaces(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllApplicationInterfaces", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class isGatewayExist_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ + + thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) - def process_getApplicationInputs(self, seqid, iprot, oprot): - args = getApplicationInputs_args() - args.read(iprot) - iprot.readMessageEnd() - result = getApplicationInputs_result() - try: - result.success = self._handler.getApplicationInputs(args.appInterfaceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getApplicationInputs", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase - def process_getApplicationOutputs(self, seqid, iprot, oprot): - args = getApplicationOutputs_args() - args.read(iprot) - iprot.readMessageEnd() - result = getApplicationOutputs_result() - try: - result.success = self._handler.getApplicationOutputs(args.appInterfaceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getApplicationOutputs", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.BOOL: + self.success = iprot.readBool(); + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_getAvailableAppInterfaceComputeResources(self, seqid, iprot, oprot): - args = getAvailableAppInterfaceComputeResources_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAvailableAppInterfaceComputeResources_result() - try: - result.success = self._handler.getAvailableAppInterfaceComputeResources(args.appInterfaceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAvailableAppInterfaceComputeResources", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('isGatewayExist_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_registerComputeResource(self, seqid, iprot, oprot): - args = registerComputeResource_args() - args.read(iprot) - iprot.readMessageEnd() - result = registerComputeResource_result() - try: - result.success = self._handler.registerComputeResource(args.computeResourceDescription) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("registerComputeResource", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + return - def process_getComputeResource(self, seqid, iprot, oprot): - args = getComputeResource_args() - args.read(iprot) - iprot.readMessageEnd() - result = getComputeResource_result() - try: - result.success = self._handler.getComputeResource(args.computeResourceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getComputeResource", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_getAllComputeResourceNames(self, seqid, iprot, oprot): - args = getAllComputeResourceNames_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllComputeResourceNames_result() - try: - result.success = self._handler.getAllComputeResourceNames() - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllComputeResourceNames", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_updateComputeResource(self, seqid, iprot, oprot): - args = updateComputeResource_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateComputeResource_result() - try: - result.success = self._handler.updateComputeResource(args.computeResourceId, args.computeResourceDescription) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateComputeResource", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_deleteComputeResource(self, seqid, iprot, oprot): - args = deleteComputeResource_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteComputeResource_result() - try: - result.success = self._handler.deleteComputeResource(args.computeResourceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteComputeResource", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_addLocalSubmissionDetails(self, seqid, iprot, oprot): - args = addLocalSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addLocalSubmissionDetails_result() - try: - result.success = self._handler.addLocalSubmissionDetails(args.computeResourceId, args.priorityOrder, args.localSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addLocalSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class generateAndRegisterSSHKeys_args: + """ + Attributes: + - gatewayId + - userName + """ - def process_updateLocalSubmissionDetails(self, seqid, iprot, oprot): - args = updateLocalSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateLocalSubmissionDetails_result() - try: - result.success = self._handler.updateLocalSubmissionDetails(args.jobSubmissionInterfaceId, args.localSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateLocalSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + ) - def process_getLocalJobSubmission(self, seqid, iprot, oprot): - args = getLocalJobSubmission_args() - args.read(iprot) - iprot.readMessageEnd() - result = getLocalJobSubmission_result() - try: - result.success = self._handler.getLocalJobSubmission(args.jobSubmissionId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getLocalJobSubmission", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, gatewayId=None, userName=None,): + self.gatewayId = gatewayId + self.userName = userName - def process_addSSHJobSubmissionDetails(self, seqid, iprot, oprot): - args = addSSHJobSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addSSHJobSubmissionDetails_result() - try: - result.success = self._handler.addSSHJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.sshJobSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addSSHJobSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_getSSHJobSubmission(self, seqid, iprot, oprot): - args = getSSHJobSubmission_args() - args.read(iprot) - iprot.readMessageEnd() - result = getSSHJobSubmission_result() - try: - result.success = self._handler.getSSHJobSubmission(args.jobSubmissionId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getSSHJobSubmission", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('generateAndRegisterSSHKeys_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_addUNICOREJobSubmissionDetails(self, seqid, iprot, oprot): - args = addUNICOREJobSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addUNICOREJobSubmissionDetails_result() - try: - result.success = self._handler.addUNICOREJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.unicoreJobSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addUNICOREJobSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + return - def process_getUnicoreJobSubmission(self, seqid, iprot, oprot): - args = getUnicoreJobSubmission_args() - args.read(iprot) - iprot.readMessageEnd() - result = getUnicoreJobSubmission_result() - try: - result.success = self._handler.getUnicoreJobSubmission(args.jobSubmissionId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getUnicoreJobSubmission", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_addCloudJobSubmissionDetails(self, seqid, iprot, oprot): - args = addCloudJobSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addCloudJobSubmissionDetails_result() - try: - result.success = self._handler.addCloudJobSubmissionDetails(args.computeResourceId, args.priorityOrder, args.cloudSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addCloudJobSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_getCloudJobSubmission(self, seqid, iprot, oprot): - args = getCloudJobSubmission_args() - args.read(iprot) - iprot.readMessageEnd() - result = getCloudJobSubmission_result() - try: - result.success = self._handler.getCloudJobSubmission(args.jobSubmissionId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getCloudJobSubmission", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_updateSSHJobSubmissionDetails(self, seqid, iprot, oprot): - args = updateSSHJobSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateSSHJobSubmissionDetails_result() - try: - result.success = self._handler.updateSSHJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateSSHJobSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_updateCloudJobSubmissionDetails(self, seqid, iprot, oprot): - args = updateCloudJobSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateCloudJobSubmissionDetails_result() - try: - result.success = self._handler.updateCloudJobSubmissionDetails(args.jobSubmissionInterfaceId, args.sshJobSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateCloudJobSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class generateAndRegisterSSHKeys_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ + + thrift_spec = ( + (0, TType.STRING, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) + + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase - def process_updateUnicoreJobSubmissionDetails(self, seqid, iprot, oprot): - args = updateUnicoreJobSubmissionDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateUnicoreJobSubmissionDetails_result() - try: - result.success = self._handler.updateUnicoreJobSubmissionDetails(args.jobSubmissionInterfaceId, args.unicoreJobSubmission) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateUnicoreJobSubmissionDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRING: + self.success = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_addLocalDataMovementDetails(self, seqid, iprot, oprot): - args = addLocalDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addLocalDataMovementDetails_result() - try: - result.success = self._handler.addLocalDataMovementDetails(args.computeResourceId, args.priorityOrder, args.localDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addLocalDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('generateAndRegisterSSHKeys_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success) + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_updateLocalDataMovementDetails(self, seqid, iprot, oprot): - args = updateLocalDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateLocalDataMovementDetails_result() - try: - result.success = self._handler.updateLocalDataMovementDetails(args.dataMovementInterfaceId, args.localDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateLocalDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + return - def process_getLocalDataMovement(self, seqid, iprot, oprot): - args = getLocalDataMovement_args() - args.read(iprot) - iprot.readMessageEnd() - result = getLocalDataMovement_result() - try: - result.success = self._handler.getLocalDataMovement(args.dataMovementId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getLocalDataMovement", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_addSCPDataMovementDetails(self, seqid, iprot, oprot): - args = addSCPDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addSCPDataMovementDetails_result() - try: - result.success = self._handler.addSCPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.scpDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addSCPDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_updateSCPDataMovementDetails(self, seqid, iprot, oprot): - args = updateSCPDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateSCPDataMovementDetails_result() - try: - result.success = self._handler.updateSCPDataMovementDetails(args.dataMovementInterfaceId, args.scpDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateSCPDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_getSCPDataMovement(self, seqid, iprot, oprot): - args = getSCPDataMovement_args() - args.read(iprot) - iprot.readMessageEnd() - result = getSCPDataMovement_result() - try: - result.success = self._handler.getSCPDataMovement(args.dataMovementId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getSCPDataMovement", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_addUnicoreDataMovementDetails(self, seqid, iprot, oprot): - args = addUnicoreDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addUnicoreDataMovementDetails_result() - try: - result.success = self._handler.addUnicoreDataMovementDetails(args.computeResourceId, args.priorityOrder, args.unicoreDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addUnicoreDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class getSSHPubKey_args: + """ + Attributes: + - airavataCredStoreToken + """ - def process_updateUnicoreDataMovementDetails(self, seqid, iprot, oprot): - args = updateUnicoreDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateUnicoreDataMovementDetails_result() - try: - result.success = self._handler.updateUnicoreDataMovementDetails(args.dataMovementInterfaceId, args.unicoreDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateUnicoreDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'airavataCredStoreToken', None, None, ), # 1 + ) - def process_getUnicoreDataMovement(self, seqid, iprot, oprot): - args = getUnicoreDataMovement_args() - args.read(iprot) - iprot.readMessageEnd() - result = getUnicoreDataMovement_result() - try: - result.success = self._handler.getUnicoreDataMovement(args.dataMovementId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getUnicoreDataMovement", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, airavataCredStoreToken=None,): + self.airavataCredStoreToken = airavataCredStoreToken + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.airavataCredStoreToken = iprot.readString(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_addGridFTPDataMovementDetails(self, seqid, iprot, oprot): - args = addGridFTPDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = addGridFTPDataMovementDetails_result() - try: - result.success = self._handler.addGridFTPDataMovementDetails(args.computeResourceId, args.priorityOrder, args.gridFTPDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addGridFTPDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getSSHPubKey_args') + if self.airavataCredStoreToken is not None: + oprot.writeFieldBegin('airavataCredStoreToken', TType.STRING, 1) + oprot.writeString(self.airavataCredStoreToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_updateGridFTPDataMovementDetails(self, seqid, iprot, oprot): - args = updateGridFTPDataMovementDetails_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateGridFTPDataMovementDetails_result() - try: - result.success = self._handler.updateGridFTPDataMovementDetails(args.dataMovementInterfaceId, args.gridFTPDataMovement) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateGridFTPDataMovementDetails", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + if self.airavataCredStoreToken is None: + raise TProtocol.TProtocolException(message='Required field airavataCredStoreToken is unset!') + return - def process_getGridFTPDataMovement(self, seqid, iprot, oprot): - args = getGridFTPDataMovement_args() - args.read(iprot) - iprot.readMessageEnd() - result = getGridFTPDataMovement_result() - try: - result.success = self._handler.getGridFTPDataMovement(args.dataMovementId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getGridFTPDataMovement", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_changeJobSubmissionPriority(self, seqid, iprot, oprot): - args = changeJobSubmissionPriority_args() - args.read(iprot) - iprot.readMessageEnd() - result = changeJobSubmissionPriority_result() - try: - result.success = self._handler.changeJobSubmissionPriority(args.jobSubmissionInterfaceId, args.newPriorityOrder) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("changeJobSubmissionPriority", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_changeDataMovementPriority(self, seqid, iprot, oprot): - args = changeDataMovementPriority_args() - args.read(iprot) - iprot.readMessageEnd() - result = changeDataMovementPriority_result() - try: - result.success = self._handler.changeDataMovementPriority(args.dataMovementInterfaceId, args.newPriorityOrder) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("changeDataMovementPriority", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_changeJobSubmissionPriorities(self, seqid, iprot, oprot): - args = changeJobSubmissionPriorities_args() - args.read(iprot) - iprot.readMessageEnd() - result = changeJobSubmissionPriorities_result() - try: - result.success = self._handler.changeJobSubmissionPriorities(args.jobSubmissionPriorityMap) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("changeJobSubmissionPriorities", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_changeDataMovementPriorities(self, seqid, iprot, oprot): - args = changeDataMovementPriorities_args() - args.read(iprot) - iprot.readMessageEnd() - result = changeDataMovementPriorities_result() - try: - result.success = self._handler.changeDataMovementPriorities(args.dataMovementPriorityMap) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("changeDataMovementPriorities", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class getSSHPubKey_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ - def process_deleteJobSubmissionInterface(self, seqid, iprot, oprot): - args = deleteJobSubmissionInterface_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteJobSubmissionInterface_result() - try: - result.success = self._handler.deleteJobSubmissionInterface(args.computeResourceId, args.jobSubmissionInterfaceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteJobSubmissionInterface", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + thrift_spec = ( + (0, TType.STRING, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) - def process_deleteDataMovementInterface(self, seqid, iprot, oprot): - args = deleteDataMovementInterface_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteDataMovementInterface_result() - try: - result.success = self._handler.deleteDataMovementInterface(args.computeResourceId, args.dataMovementInterfaceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteDataMovementInterface", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase - def process_registerResourceJobManager(self, seqid, iprot, oprot): - args = registerResourceJobManager_args() - args.read(iprot) - iprot.readMessageEnd() - result = registerResourceJobManager_result() - try: - result.success = self._handler.registerResourceJobManager(args.resourceJobManager) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("registerResourceJobManager", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRING: + self.success = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_updateResourceJobManager(self, seqid, iprot, oprot): - args = updateResourceJobManager_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateResourceJobManager_result() - try: - result.success = self._handler.updateResourceJobManager(args.resourceJobManagerId, args.updatedResourceJobManager) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateResourceJobManager", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getSSHPubKey_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success) + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_getResourceJobManager(self, seqid, iprot, oprot): - args = getResourceJobManager_args() - args.read(iprot) - iprot.readMessageEnd() - result = getResourceJobManager_result() - try: - result.success = self._handler.getResourceJobManager(args.resourceJobManagerId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getResourceJobManager", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + return - def process_deleteResourceJobManager(self, seqid, iprot, oprot): - args = deleteResourceJobManager_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteResourceJobManager_result() - try: - result.success = self._handler.deleteResourceJobManager(args.resourceJobManagerId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteResourceJobManager", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_deleteBatchQueue(self, seqid, iprot, oprot): - args = deleteBatchQueue_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteBatchQueue_result() - try: - result.success = self._handler.deleteBatchQueue(args.computeResourceId, args.queueName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteBatchQueue", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_registerGatewayResourceProfile(self, seqid, iprot, oprot): - args = registerGatewayResourceProfile_args() - args.read(iprot) - iprot.readMessageEnd() - result = registerGatewayResourceProfile_result() - try: - result.success = self._handler.registerGatewayResourceProfile(args.gatewayResourceProfile) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("registerGatewayResourceProfile", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_getGatewayResourceProfile(self, seqid, iprot, oprot): - args = getGatewayResourceProfile_args() - args.read(iprot) - iprot.readMessageEnd() - result = getGatewayResourceProfile_result() - try: - result.success = self._handler.getGatewayResourceProfile(args.gatewayID) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getGatewayResourceProfile", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_updateGatewayResourceProfile(self, seqid, iprot, oprot): - args = updateGatewayResourceProfile_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateGatewayResourceProfile_result() - try: - result.success = self._handler.updateGatewayResourceProfile(args.gatewayID, args.gatewayResourceProfile) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateGatewayResourceProfile", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class getAllUserSSHPubKeys_args: + """ + Attributes: + - userName + """ - def process_deleteGatewayResourceProfile(self, seqid, iprot, oprot): - args = deleteGatewayResourceProfile_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteGatewayResourceProfile_result() - try: - result.success = self._handler.deleteGatewayResourceProfile(args.gatewayID) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteGatewayResourceProfile", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'userName', None, None, ), # 1 + ) - def process_addGatewayComputeResourcePreference(self, seqid, iprot, oprot): - args = addGatewayComputeResourcePreference_args() - args.read(iprot) - iprot.readMessageEnd() - result = addGatewayComputeResourcePreference_result() - try: - result.success = self._handler.addGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("addGatewayComputeResourcePreference", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, userName=None,): + self.userName = userName - def process_getGatewayComputeResourcePreference(self, seqid, iprot, oprot): - args = getGatewayComputeResourcePreference_args() - args.read(iprot) - iprot.readMessageEnd() - result = getGatewayComputeResourcePreference_result() - try: - result.success = self._handler.getGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getGatewayComputeResourcePreference", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() - def process_getAllGatewayComputeResourcePreferences(self, seqid, iprot, oprot): - args = getAllGatewayComputeResourcePreferences_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllGatewayComputeResourcePreferences_result() - try: - result.success = self._handler.getAllGatewayComputeResourcePreferences(args.gatewayID) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllGatewayComputeResourcePreferences", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getAllUserSSHPubKeys_args') + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 1) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_getAllGatewayComputeResources(self, seqid, iprot, oprot): - args = getAllGatewayComputeResources_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllGatewayComputeResources_result() - try: - result.success = self._handler.getAllGatewayComputeResources() - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllGatewayComputeResources", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + return - def process_updateGatewayComputeResourcePreference(self, seqid, iprot, oprot): - args = updateGatewayComputeResourcePreference_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateGatewayComputeResourcePreference_result() - try: - result.success = self._handler.updateGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId, args.computeResourcePreference) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateGatewayComputeResourcePreference", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_deleteGatewayComputeResourcePreference(self, seqid, iprot, oprot): - args = deleteGatewayComputeResourcePreference_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteGatewayComputeResourcePreference_result() - try: - result.success = self._handler.deleteGatewayComputeResourcePreference(args.gatewayID, args.computeResourceId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteGatewayComputeResourcePreference", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - def process_getAllWorkflows(self, seqid, iprot, oprot): - args = getAllWorkflows_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllWorkflows_result() - try: - result.success = self._handler.getAllWorkflows(args.gatewayId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllWorkflows", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - def process_getWorkflow(self, seqid, iprot, oprot): - args = getWorkflow_args() - args.read(iprot) - iprot.readMessageEnd() - result = getWorkflow_result() - try: - result.success = self._handler.getWorkflow(args.workflowTemplateId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getWorkflow", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __ne__(self, other): + return not (self == other) - def process_deleteWorkflow(self, seqid, iprot, oprot): - args = deleteWorkflow_args() - args.read(iprot) - iprot.readMessageEnd() - result = deleteWorkflow_result() - try: - self._handler.deleteWorkflow(args.workflowTemplateId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("deleteWorkflow", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() +class getAllUserSSHPubKeys_result: + """ + Attributes: + - success + - ire + - ace + - ase + """ - def process_registerWorkflow(self, seqid, iprot, oprot): - args = registerWorkflow_args() - args.read(iprot) - iprot.readMessageEnd() - result = registerWorkflow_result() - try: - result.success = self._handler.registerWorkflow(args.gatewayId, args.workflow) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("registerWorkflow", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 + (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + ) - def process_updateWorkflow(self, seqid, iprot, oprot): - args = updateWorkflow_args() - args.read(iprot) - iprot.readMessageEnd() - result = updateWorkflow_result() - try: - self._handler.updateWorkflow(args.workflowTemplateId, args.workflow) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("updateWorkflow", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success + self.ire = ire + self.ace = ace + self.ase = ase - def process_getWorkflowTemplateId(self, seqid, iprot, oprot): - args = getWorkflowTemplateId_args() - args.read(iprot) - iprot.readMessageEnd() - result = getWorkflowTemplateId_result() - try: - result.success = self._handler.getWorkflowTemplateId(args.workflowName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getWorkflowTemplateId", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.MAP: + self.success = {} + (_ktype8, _vtype9, _size7 ) = iprot.readMapBegin() + for _i11 in xrange(_size7): + _key12 = iprot.readString(); + _val13 = iprot.readString(); + self.success[_key12] = _val13 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() + self.ire.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.ace = apache.airavata.api.error.ttypes.AiravataClientException() + self.ace.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() + self.ase.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('getAllUserSSHPubKeys_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter14,viter15 in self.success.items(): + oprot.writeString(kiter14) + oprot.writeString(viter15) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.ire is not None: + oprot.writeFieldBegin('ire', TType.STRUCT, 1) + self.ire.write(oprot) + oprot.writeFieldEnd() + if self.ace is not None: + oprot.writeFieldBegin('ace', TType.STRUCT, 2) + self.ace.write(oprot) + oprot.writeFieldEnd() + if self.ase is not None: + oprot.writeFieldBegin('ase', TType.STRUCT, 3) + self.ase.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() - def process_isWorkflowExistWithName(self, seqid, iprot, oprot): - args = isWorkflowExistWithName_args() - args.read(iprot) - iprot.readMessageEnd() - result = isWorkflowExistWithName_result() - try: - result.success = self._handler.isWorkflowExistWithName(args.workflowName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("isWorkflowExistWithName", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() + def validate(self): + return -# HELPER FUNCTIONS AND STRUCTURES + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) -class getAPIVersion_args: + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class createProject_args: + """ + Attributes: + - gatewayId + - project + """ thrift_spec = ( + None, # 0 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRUCT, 'project', (apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec), None, ), # 2 ) + def __init__(self, gatewayId=None, project=None,): + self.gatewayId = gatewayId + self.project = project + def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) @@ -9296,6 +12044,17 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.project = apache.airavata.model.workspace.ttypes.Project() + self.project.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9305,11 +12064,23 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAPIVersion_args') + oprot.writeStructBegin('createProject_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.project is not None: + oprot.writeFieldBegin('project', TType.STRUCT, 2) + self.project.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.project is None: + raise TProtocol.TProtocolException(message='Required field project is unset!') return @@ -9324,7 +12095,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAPIVersion_result: +class createProject_result: """ Attributes: - success @@ -9387,7 +12158,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAPIVersion_result') + oprot.writeStructBegin('createProject_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) @@ -9422,19 +12193,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class addGateway_args: +class updateProject_args: """ Attributes: - - gateway + - projectId + - updatedProject """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'gateway', (apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec), None, ), # 1 + (1, TType.STRING, 'projectId', None, None, ), # 1 + (2, TType.STRUCT, 'updatedProject', (apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec), None, ), # 2 ) - def __init__(self, gateway=None,): - self.gateway = gateway + def __init__(self, projectId=None, updatedProject=None,): + self.projectId = projectId + self.updatedProject = updatedProject def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9446,9 +12220,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRING: + self.projectId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRUCT: - self.gateway = apache.airavata.model.workspace.ttypes.Gateway() - self.gateway.read(iprot) + self.updatedProject = apache.airavata.model.workspace.ttypes.Project() + self.updatedProject.read(iprot) else: iprot.skip(ftype) else: @@ -9460,17 +12239,23 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('addGateway_args') - if self.gateway is not None: - oprot.writeFieldBegin('gateway', TType.STRUCT, 1) - self.gateway.write(oprot) + oprot.writeStructBegin('updateProject_args') + if self.projectId is not None: + oprot.writeFieldBegin('projectId', TType.STRING, 1) + oprot.writeString(self.projectId) + oprot.writeFieldEnd() + if self.updatedProject is not None: + oprot.writeFieldBegin('updatedProject', TType.STRUCT, 2) + self.updatedProject.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.gateway is None: - raise TProtocol.TProtocolException(message='Required field gateway is unset!') + if self.projectId is None: + raise TProtocol.TProtocolException(message='Required field projectId is unset!') + if self.updatedProject is None: + raise TProtocol.TProtocolException(message='Required field updatedProject is unset!') return @@ -9485,27 +12270,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class addGateway_result: +class updateProject_result: """ Attributes: - - success - ire - ace - ase + - pnfe """ thrift_spec = ( - (0, TType.STRING, 'success', None, None, ), # 0 + None, # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): - self.success = success + def __init__(self, ire=None, ace=None, ase=None, pnfe=None,): self.ire = ire self.ace = ace self.ase = ase + self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9516,12 +12302,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRING: - self.success = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() self.ire.read(iprot) @@ -9539,6 +12320,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() + self.pnfe.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9548,11 +12335,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('addGateway_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success) - oprot.writeFieldEnd() + oprot.writeStructBegin('updateProject_result') if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) self.ire.write(oprot) @@ -9565,6 +12348,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.pnfe is not None: + oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) + self.pnfe.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9583,22 +12370,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class updateGateway_args: +class getProject_args: """ Attributes: - - gatewayId - - updatedGateway + - projectId """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRUCT, 'updatedGateway', (apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec), None, ), # 2 + (1, TType.STRING, 'projectId', None, None, ), # 1 ) - def __init__(self, gatewayId=None, updatedGateway=None,): - self.gatewayId = gatewayId - self.updatedGateway = updatedGateway + def __init__(self, projectId=None,): + self.projectId = projectId def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9611,13 +12395,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.updatedGateway = apache.airavata.model.workspace.ttypes.Gateway() - self.updatedGateway.read(iprot) + self.projectId = iprot.readString(); else: iprot.skip(ftype) else: @@ -9629,23 +12407,17 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('updateGateway_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.updatedGateway is not None: - oprot.writeFieldBegin('updatedGateway', TType.STRUCT, 2) - self.updatedGateway.write(oprot) + oprot.writeStructBegin('getProject_args') + if self.projectId is not None: + oprot.writeFieldBegin('projectId', TType.STRING, 1) + oprot.writeString(self.projectId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.updatedGateway is None: - raise TProtocol.TProtocolException(message='Required field updatedGateway is unset!') + if self.projectId is None: + raise TProtocol.TProtocolException(message='Required field projectId is unset!') return @@ -9660,25 +12432,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class updateGateway_result: +class getProject_result: """ Attributes: + - success - ire - ace - ase + - pnfe """ thrift_spec = ( - None, # 0 + (0, TType.STRUCT, 'success', (apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): + self.success = success self.ire = ire self.ace = ace self.ase = ase + self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9689,7 +12466,13 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.STRUCT: + self.success = apache.airavata.model.workspace.ttypes.Project() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() self.ire.read(iprot) @@ -9707,6 +12490,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() + self.pnfe.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9716,7 +12505,11 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('updateGateway_result') + oprot.writeStructBegin('getProject_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) self.ire.write(oprot) @@ -9729,6 +12522,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.pnfe is not None: + oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) + self.pnfe.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9747,19 +12544,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getGateway_args: +class deleteProject_args: """ Attributes: - - gatewayId + - projectId """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (1, TType.STRING, 'projectId', None, None, ), # 1 ) - def __init__(self, gatewayId=None,): - self.gatewayId = gatewayId + def __init__(self, projectId=None,): + self.projectId = projectId def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9772,7 +12569,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.gatewayId = iprot.readString(); + self.projectId = iprot.readString(); else: iprot.skip(ftype) else: @@ -9784,17 +12581,17 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getGateway_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) + oprot.writeStructBegin('deleteProject_args') + if self.projectId is not None: + oprot.writeFieldBegin('projectId', TType.STRING, 1) + oprot.writeString(self.projectId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.projectId is None: + raise TProtocol.TProtocolException(message='Required field projectId is unset!') return @@ -9809,27 +12606,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getGateway_result: +class deleteProject_result: """ Attributes: - success - ire - ace - ase + - pnfe """ thrift_spec = ( - (0, TType.STRUCT, 'success', (apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec), None, ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase + self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9841,9 +12641,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = apache.airavata.model.workspace.ttypes.Gateway() - self.success.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -9864,6 +12663,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() + self.pnfe.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9873,10 +12678,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getGateway_result') + oprot.writeStructBegin('deleteProject_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -9890,6 +12695,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.pnfe is not None: + oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) + self.pnfe.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9908,19 +12717,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class deleteGateway_args: +class getAllUserProjects_args: """ Attributes: - gatewayId + - userName """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 ) - def __init__(self, gatewayId=None,): + def __init__(self, gatewayId=None, userName=None,): self.gatewayId = gatewayId + self.userName = userName def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9936,6 +12748,11 @@ def read(self, iprot): self.gatewayId = iprot.readString(); else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9945,17 +12762,23 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('deleteGateway_args') + oprot.writeStructBegin('getAllUserProjects_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') return @@ -9970,7 +12793,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class deleteGateway_result: +class getAllUserProjects_result: """ Attributes: - success @@ -9980,7 +12803,7 @@ class deleteGateway_result: """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -10002,8 +12825,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool(); + if ftype == TType.LIST: + self.success = [] + (_etype19, _size16) = iprot.readListBegin() + for _i20 in xrange(_size16): + _elem21 = apache.airavata.model.workspace.ttypes.Project() + _elem21.read(iprot) + self.success.append(_elem21) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -10033,10 +12862,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('deleteGateway_result') + oprot.writeStructBegin('getAllUserProjects_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter22 in self.success: + iter22.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -10068,11 +12900,29 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllGateways_args: +class getAllUserProjectsWithPagination_args: + """ + Attributes: + - gatewayId + - userName + - limit + - offset + """ thrift_spec = ( + None, # 0 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.I32, 'limit', None, None, ), # 3 + (4, TType.I32, 'offset', None, None, ), # 4 ) + def __init__(self, gatewayId=None, userName=None, limit=None, offset=None,): + self.gatewayId = gatewayId + self.userName = userName + self.limit = limit + self.offset = offset + def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) @@ -10082,6 +12932,26 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.offset = iprot.readI32(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -10091,11 +12961,35 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllGateways_args') + oprot.writeStructBegin('getAllUserProjectsWithPagination_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 3) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 4) + oprot.writeI32(self.offset) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -10110,7 +13004,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllGateways_result: +class getAllUserProjectsWithPagination_result: """ Attributes: - success @@ -10120,7 +13014,7 @@ class getAllGateways_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Gateway, apache.airavata.model.workspace.ttypes.Gateway.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -10144,11 +13038,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype3, _size0) = iprot.readListBegin() - for _i4 in xrange(_size0): - _elem5 = apache.airavata.model.workspace.ttypes.Gateway() - _elem5.read(iprot) - self.success.append(_elem5) + (_etype26, _size23) = iprot.readListBegin() + for _i27 in xrange(_size23): + _elem28 = apache.airavata.model.workspace.ttypes.Project() + _elem28.read(iprot) + self.success.append(_elem28) iprot.readListEnd() else: iprot.skip(ftype) @@ -10179,12 +13073,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllGateways_result') + oprot.writeStructBegin('getAllUserProjectsWithPagination_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter6 in self.success: - iter6.write(oprot) + for iter29 in self.success: + iter29.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -10217,19 +13111,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class isGatewayExist_args: +class searchProjectsByProjectName_args: """ Attributes: - gatewayId + - userName + - projectName """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'projectName', None, None, ), # 3 ) - def __init__(self, gatewayId=None,): + def __init__(self, gatewayId=None, userName=None, projectName=None,): self.gatewayId = gatewayId + self.userName = userName + self.projectName = projectName def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -10245,6 +13145,16 @@ def read(self, iprot): self.gatewayId = iprot.readString(); else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.projectName = iprot.readString(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -10254,17 +13164,29 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('isGatewayExist_args') + oprot.writeStructBegin('searchProjectsByProjectName_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.projectName is not None: + oprot.writeFieldBegin('projectName', TType.STRING, 3) + oprot.writeString(self.projectName) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.projectName is None: + raise TProtocol.TProtocolException(message='Required field projectName is unset!') return @@ -10279,7 +13201,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class isGatewayExist_result: +class searchProjectsByProjectName_result: """ Attributes: - success @@ -10289,7 +13211,7 @@ class isGatewayExist_result: """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -10311,8 +13233,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool(); + if ftype == TType.LIST: + self.success = [] + (_etype33, _size30) = iprot.readListBegin() + for _i34 in xrange(_size30): + _elem35 = apache.airavata.model.workspace.ttypes.Project() + _elem35.read(iprot) + self.success.append(_elem35) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -10342,10 +13270,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('isGatewayExist_result') + oprot.writeStructBegin('searchProjectsByProjectName_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter36 in self.success: + iter36.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -10377,22 +13308,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class generateAndRegisterSSHKeys_args: +class searchProjectsByProjectNameWithPagination_args: """ Attributes: - gatewayId - userName + - projectName + - limit + - offset """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'projectName', None, None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'offset', None, None, ), # 5 ) - def __init__(self, gatewayId=None, userName=None,): + def __init__(self, gatewayId=None, userName=None, projectName=None, limit=None, offset=None,): self.gatewayId = gatewayId self.userName = userName + self.projectName = projectName + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -10413,6 +13353,21 @@ def read(self, iprot): self.userName = iprot.readString(); else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.projectName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.offset = iprot.readI32(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -10422,7 +13377,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('generateAndRegisterSSHKeys_args') + oprot.writeStructBegin('searchProjectsByProjectNameWithPagination_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -10431,6 +13386,18 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() + if self.projectName is not None: + oprot.writeFieldBegin('projectName', TType.STRING, 3) + oprot.writeString(self.projectName) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 5) + oprot.writeI32(self.offset) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10439,6 +13406,12 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.projectName is None: + raise TProtocol.TProtocolException(message='Required field projectName is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -10453,7 +13426,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class generateAndRegisterSSHKeys_result: +class searchProjectsByProjectNameWithPagination_result: """ Attributes: - success @@ -10463,7 +13436,7 @@ class generateAndRegisterSSHKeys_result: """ thrift_spec = ( - (0, TType.STRING, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -10485,8 +13458,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRING: - self.success = iprot.readString(); + if ftype == TType.LIST: + self.success = [] + (_etype40, _size37) = iprot.readListBegin() + for _i41 in xrange(_size37): + _elem42 = apache.airavata.model.workspace.ttypes.Project() + _elem42.read(iprot) + self.success.append(_elem42) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -10516,10 +13495,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('generateAndRegisterSSHKeys_result') + oprot.writeStructBegin('searchProjectsByProjectNameWithPagination_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter43 in self.success: + iter43.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -10551,19 +13533,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getSSHPubKey_args: +class searchProjectsByProjectDesc_args: """ Attributes: - - airavataCredStoreToken + - gatewayId + - userName + - description """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'airavataCredStoreToken', None, None, ), # 1 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'description', None, None, ), # 3 ) - def __init__(self, airavataCredStoreToken=None,): - self.airavataCredStoreToken = airavataCredStoreToken + def __init__(self, gatewayId=None, userName=None, description=None,): + self.gatewayId = gatewayId + self.userName = userName + self.description = description def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -10576,7 +13564,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.airavataCredStoreToken = iprot.readString(); + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.description = iprot.readString(); else: iprot.skip(ftype) else: @@ -10588,17 +13586,29 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getSSHPubKey_args') - if self.airavataCredStoreToken is not None: - oprot.writeFieldBegin('airavataCredStoreToken', TType.STRING, 1) - oprot.writeString(self.airavataCredStoreToken) + oprot.writeStructBegin('searchProjectsByProjectDesc_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.description is not None: + oprot.writeFieldBegin('description', TType.STRING, 3) + oprot.writeString(self.description) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.airavataCredStoreToken is None: - raise TProtocol.TProtocolException(message='Required field airavataCredStoreToken is unset!') + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.description is None: + raise TProtocol.TProtocolException(message='Required field description is unset!') return @@ -10613,7 +13623,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getSSHPubKey_result: +class searchProjectsByProjectDesc_result: """ Attributes: - success @@ -10623,7 +13633,7 @@ class getSSHPubKey_result: """ thrift_spec = ( - (0, TType.STRING, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -10645,8 +13655,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRING: - self.success = iprot.readString(); + if ftype == TType.LIST: + self.success = [] + (_etype47, _size44) = iprot.readListBegin() + for _i48 in xrange(_size44): + _elem49 = apache.airavata.model.workspace.ttypes.Project() + _elem49.read(iprot) + self.success.append(_elem49) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -10676,10 +13692,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getSSHPubKey_result') + oprot.writeStructBegin('searchProjectsByProjectDesc_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter50 in self.success: + iter50.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -10711,19 +13730,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserSSHPubKeys_args: +class searchProjectsByProjectDescWithPagination_args: """ Attributes: + - gatewayId - userName + - description + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'userName', None, None, ), # 1 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'description', None, None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'offset', None, None, ), # 5 ) - def __init__(self, userName=None,): + def __init__(self, gatewayId=None, userName=None, description=None, limit=None, offset=None,): + self.gatewayId = gatewayId self.userName = userName + self.description = description + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -10735,10 +13766,30 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRING: + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRING: self.userName = iprot.readString(); else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.description = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.offset = iprot.readI32(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -10748,17 +13799,41 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserSSHPubKeys_args') + oprot.writeStructBegin('searchProjectsByProjectDescWithPagination_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 1) + oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() + if self.description is not None: + oprot.writeFieldBegin('description', TType.STRING, 3) + oprot.writeString(self.description) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 5) + oprot.writeI32(self.offset) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.description is None: + raise TProtocol.TProtocolException(message='Required field description is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -10773,7 +13848,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserSSHPubKeys_result: +class searchProjectsByProjectDescWithPagination_result: """ Attributes: - success @@ -10783,7 +13858,7 @@ class getAllUserSSHPubKeys_result: """ thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -10805,14 +13880,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.MAP: - self.success = {} - (_ktype8, _vtype9, _size7 ) = iprot.readMapBegin() - for _i11 in xrange(_size7): - _key12 = iprot.readString(); - _val13 = iprot.readString(); - self.success[_key12] = _val13 - iprot.readMapEnd() + if ftype == TType.LIST: + self.success = [] + (_etype54, _size51) = iprot.readListBegin() + for _i55 in xrange(_size51): + _elem56 = apache.airavata.model.workspace.ttypes.Project() + _elem56.read(iprot) + self.success.append(_elem56) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -10842,14 +13917,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserSSHPubKeys_result') + oprot.writeStructBegin('searchProjectsByProjectDescWithPagination_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter14,viter15 in self.success.items(): - oprot.writeString(kiter14) - oprot.writeString(viter15) - oprot.writeMapEnd() + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter57 in self.success: + iter57.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -10881,22 +13955,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class createProject_args: +class searchExperimentsByName_args: """ Attributes: - gatewayId - - project + - userName + - expName """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRUCT, 'project', (apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec), None, ), # 2 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'expName', None, None, ), # 3 ) - def __init__(self, gatewayId=None, project=None,): + def __init__(self, gatewayId=None, userName=None, expName=None,): self.gatewayId = gatewayId - self.project = project + self.userName = userName + self.expName = expName def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -10913,9 +13990,13 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRUCT: - self.project = apache.airavata.model.workspace.ttypes.Project() - self.project.read(iprot) + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.expName = iprot.readString(); else: iprot.skip(ftype) else: @@ -10927,14 +14008,18 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('createProject_args') + oprot.writeStructBegin('searchExperimentsByName_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() - if self.project is not None: - oprot.writeFieldBegin('project', TType.STRUCT, 2) - self.project.write(oprot) + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.expName is not None: + oprot.writeFieldBegin('expName', TType.STRING, 3) + oprot.writeString(self.expName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10942,8 +14027,10 @@ def write(self, oprot): def validate(self): if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.project is None: - raise TProtocol.TProtocolException(message='Required field project is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.expName is None: + raise TProtocol.TProtocolException(message='Required field expName is unset!') return @@ -10958,7 +14045,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class createProject_result: +class searchExperimentsByName_result: """ Attributes: - success @@ -10968,7 +14055,7 @@ class createProject_result: """ thrift_spec = ( - (0, TType.STRING, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -10990,8 +14077,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRING: - self.success = iprot.readString(); + if ftype == TType.LIST: + self.success = [] + (_etype61, _size58) = iprot.readListBegin() + for _i62 in xrange(_size58): + _elem63 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem63.read(iprot) + self.success.append(_elem63) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -11021,10 +14114,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('createProject_result') + oprot.writeStructBegin('searchExperimentsByName_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter64 in self.success: + iter64.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -11056,22 +14152,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class updateProject_args: +class searchExperimentsByNameWithPagination_args: """ Attributes: - - projectId - - updatedProject + - gatewayId + - userName + - expName + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'projectId', None, None, ), # 1 - (2, TType.STRUCT, 'updatedProject', (apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec), None, ), # 2 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'expName', None, None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'offset', None, None, ), # 5 ) - def __init__(self, projectId=None, updatedProject=None,): - self.projectId = projectId - self.updatedProject = updatedProject + def __init__(self, gatewayId=None, userName=None, expName=None, limit=None, offset=None,): + self.gatewayId = gatewayId + self.userName = userName + self.expName = expName + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11084,13 +14189,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.projectId = iprot.readString(); + self.gatewayId = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRUCT: - self.updatedProject = apache.airavata.model.workspace.ttypes.Project() - self.updatedProject.read(iprot) + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.expName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -11102,23 +14221,41 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('updateProject_args') - if self.projectId is not None: - oprot.writeFieldBegin('projectId', TType.STRING, 1) - oprot.writeString(self.projectId) + oprot.writeStructBegin('searchExperimentsByNameWithPagination_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) oprot.writeFieldEnd() - if self.updatedProject is not None: - oprot.writeFieldBegin('updatedProject', TType.STRUCT, 2) - self.updatedProject.write(oprot) + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.expName is not None: + oprot.writeFieldBegin('expName', TType.STRING, 3) + oprot.writeString(self.expName) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 5) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.projectId is None: - raise TProtocol.TProtocolException(message='Required field projectId is unset!') - if self.updatedProject is None: - raise TProtocol.TProtocolException(message='Required field updatedProject is unset!') + oprot.writeStructEnd() + + def validate(self): + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.expName is None: + raise TProtocol.TProtocolException(message='Required field expName is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -11133,28 +14270,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class updateProject_result: +class searchExperimentsByNameWithPagination_result: """ Attributes: + - success - ire - ace - ase - - pnfe """ thrift_spec = ( - None, # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, ire=None, ace=None, ase=None, pnfe=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None,): + self.success = success self.ire = ire self.ace = ace self.ase = ase - self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11165,7 +14301,18 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype68, _size65) = iprot.readListBegin() + for _i69 in xrange(_size65): + _elem70 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem70.read(iprot) + self.success.append(_elem70) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() self.ire.read(iprot) @@ -11183,12 +14330,6 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() - self.pnfe.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11198,7 +14339,14 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('updateProject_result') + oprot.writeStructBegin('searchExperimentsByNameWithPagination_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter71 in self.success: + iter71.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) self.ire.write(oprot) @@ -11211,10 +14359,6 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() - if self.pnfe is not None: - oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) - self.pnfe.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11233,19 +14377,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getProject_args: +class searchExperimentsByDesc_args: """ Attributes: - - projectId + - gatewayId + - userName + - description """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'projectId', None, None, ), # 1 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'description', None, None, ), # 3 ) - def __init__(self, projectId=None,): - self.projectId = projectId + def __init__(self, gatewayId=None, userName=None, description=None,): + self.gatewayId = gatewayId + self.userName = userName + self.description = description def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11258,7 +14408,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.projectId = iprot.readString(); + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.description = iprot.readString(); else: iprot.skip(ftype) else: @@ -11270,17 +14430,29 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getProject_args') - if self.projectId is not None: - oprot.writeFieldBegin('projectId', TType.STRING, 1) - oprot.writeString(self.projectId) + oprot.writeStructBegin('searchExperimentsByDesc_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.description is not None: + oprot.writeFieldBegin('description', TType.STRING, 3) + oprot.writeString(self.description) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.projectId is None: - raise TProtocol.TProtocolException(message='Required field projectId is unset!') + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.description is None: + raise TProtocol.TProtocolException(message='Required field description is unset!') return @@ -11295,30 +14467,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getProject_result: +class searchExperimentsByDesc_result: """ Attributes: - success - ire - ace - ase - - pnfe """ thrift_spec = ( - (0, TType.STRUCT, 'success', (apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase - self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11330,9 +14499,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = apache.airavata.model.workspace.ttypes.Project() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype75, _size72) = iprot.readListBegin() + for _i76 in xrange(_size72): + _elem77 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem77.read(iprot) + self.success.append(_elem77) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -11353,12 +14527,6 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() - self.pnfe.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11368,10 +14536,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getProject_result') + oprot.writeStructBegin('searchExperimentsByDesc_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter78 in self.success: + iter78.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -11385,10 +14556,6 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() - if self.pnfe is not None: - oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) - self.pnfe.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11407,19 +14574,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class deleteProject_args: +class searchExperimentsByDescWithPagination_args: """ Attributes: - - projectId + - gatewayId + - userName + - description + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'projectId', None, None, ), # 1 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'description', None, None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'offset', None, None, ), # 5 ) - def __init__(self, projectId=None,): - self.projectId = projectId + def __init__(self, gatewayId=None, userName=None, description=None, limit=None, offset=None,): + self.gatewayId = gatewayId + self.userName = userName + self.description = description + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11432,7 +14611,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.projectId = iprot.readString(); + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.description = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -11444,17 +14643,41 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('deleteProject_args') - if self.projectId is not None: - oprot.writeFieldBegin('projectId', TType.STRING, 1) - oprot.writeString(self.projectId) + oprot.writeStructBegin('searchExperimentsByDescWithPagination_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.description is not None: + oprot.writeFieldBegin('description', TType.STRING, 3) + oprot.writeString(self.description) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 5) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.projectId is None: - raise TProtocol.TProtocolException(message='Required field projectId is unset!') + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.description is None: + raise TProtocol.TProtocolException(message='Required field description is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -11469,30 +14692,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class deleteProject_result: +class searchExperimentsByDescWithPagination_result: """ Attributes: - success - ire - ace - ase - - pnfe """ thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase - self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11504,8 +14724,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool(); + if ftype == TType.LIST: + self.success = [] + (_etype82, _size79) = iprot.readListBegin() + for _i83 in xrange(_size79): + _elem84 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem84.read(iprot) + self.success.append(_elem84) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -11526,12 +14752,6 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() - self.pnfe.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11541,10 +14761,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('deleteProject_result') + oprot.writeStructBegin('searchExperimentsByDescWithPagination_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter85 in self.success: + iter85.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -11558,10 +14781,6 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() - if self.pnfe is not None: - oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) - self.pnfe.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11580,22 +14799,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserProjects_args: +class searchExperimentsByApplication_args: """ Attributes: - gatewayId - userName + - applicationId """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.STRING, 'applicationId', None, None, ), # 3 ) - def __init__(self, gatewayId=None, userName=None,): + def __init__(self, gatewayId=None, userName=None, applicationId=None,): self.gatewayId = gatewayId self.userName = userName + self.applicationId = applicationId def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11616,6 +14838,11 @@ def read(self, iprot): self.userName = iprot.readString(); else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.applicationId = iprot.readString(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11625,7 +14852,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserProjects_args') + oprot.writeStructBegin('searchExperimentsByApplication_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -11634,6 +14861,10 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() + if self.applicationId is not None: + oprot.writeFieldBegin('applicationId', TType.STRING, 3) + oprot.writeString(self.applicationId) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11642,6 +14873,8 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.applicationId is None: + raise TProtocol.TProtocolException(message='Required field applicationId is unset!') return @@ -11656,7 +14889,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserProjects_result: +class searchExperimentsByApplication_result: """ Attributes: - success @@ -11666,7 +14899,7 @@ class getAllUserProjects_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -11690,11 +14923,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype19, _size16) = iprot.readListBegin() - for _i20 in xrange(_size16): - _elem21 = apache.airavata.model.workspace.ttypes.Project() - _elem21.read(iprot) - self.success.append(_elem21) + (_etype89, _size86) = iprot.readListBegin() + for _i90 in xrange(_size86): + _elem91 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem91.read(iprot) + self.success.append(_elem91) iprot.readListEnd() else: iprot.skip(ftype) @@ -11725,12 +14958,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserProjects_result') + oprot.writeStructBegin('searchExperimentsByApplication_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter22 in self.success: - iter22.write(oprot) + for iter92 in self.success: + iter92.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -11763,25 +14996,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchProjectsByProjectName_args: +class searchExperimentsByApplicationWithPagination_args: """ Attributes: - gatewayId - userName - - projectName + - applicationId + - limit + - offset """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'projectName', None, None, ), # 3 + (3, TType.STRING, 'applicationId', None, None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'offset', None, None, ), # 5 ) - def __init__(self, gatewayId=None, userName=None, projectName=None,): + def __init__(self, gatewayId=None, userName=None, applicationId=None, limit=None, offset=None,): self.gatewayId = gatewayId self.userName = userName - self.projectName = projectName + self.applicationId = applicationId + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -11804,7 +15043,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.projectName = iprot.readString(); + self.applicationId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -11816,7 +15065,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchProjectsByProjectName_args') + oprot.writeStructBegin('searchExperimentsByApplicationWithPagination_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -11825,9 +15074,17 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.projectName is not None: - oprot.writeFieldBegin('projectName', TType.STRING, 3) - oprot.writeString(self.projectName) + if self.applicationId is not None: + oprot.writeFieldBegin('applicationId', TType.STRING, 3) + oprot.writeString(self.applicationId) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 5) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11837,8 +15094,12 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.projectName is None: - raise TProtocol.TProtocolException(message='Required field projectName is unset!') + if self.applicationId is None: + raise TProtocol.TProtocolException(message='Required field applicationId is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -11853,7 +15114,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchProjectsByProjectName_result: +class searchExperimentsByApplicationWithPagination_result: """ Attributes: - success @@ -11863,7 +15124,7 @@ class searchProjectsByProjectName_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -11887,11 +15148,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype26, _size23) = iprot.readListBegin() - for _i27 in xrange(_size23): - _elem28 = apache.airavata.model.workspace.ttypes.Project() - _elem28.read(iprot) - self.success.append(_elem28) + (_etype96, _size93) = iprot.readListBegin() + for _i97 in xrange(_size93): + _elem98 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem98.read(iprot) + self.success.append(_elem98) iprot.readListEnd() else: iprot.skip(ftype) @@ -11922,12 +15183,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchProjectsByProjectName_result') + oprot.writeStructBegin('searchExperimentsByApplicationWithPagination_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter29 in self.success: - iter29.write(oprot) + for iter99 in self.success: + iter99.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -11960,25 +15221,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchProjectsByProjectDesc_args: +class searchExperimentsByStatus_args: """ Attributes: - gatewayId - userName - - description + - experimentState """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'description', None, None, ), # 3 + (3, TType.I32, 'experimentState', None, None, ), # 3 ) - def __init__(self, gatewayId=None, userName=None, description=None,): + def __init__(self, gatewayId=None, userName=None, experimentState=None,): self.gatewayId = gatewayId self.userName = userName - self.description = description + self.experimentState = experimentState def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -12000,8 +15261,8 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.description = iprot.readString(); + if ftype == TType.I32: + self.experimentState = iprot.readI32(); else: iprot.skip(ftype) else: @@ -12013,7 +15274,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchProjectsByProjectDesc_args') + oprot.writeStructBegin('searchExperimentsByStatus_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -12022,9 +15283,9 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 3) - oprot.writeString(self.description) + if self.experimentState is not None: + oprot.writeFieldBegin('experimentState', TType.I32, 3) + oprot.writeI32(self.experimentState) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12034,8 +15295,8 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.description is None: - raise TProtocol.TProtocolException(message='Required field description is unset!') + if self.experimentState is None: + raise TProtocol.TProtocolException(message='Required field experimentState is unset!') return @@ -12050,7 +15311,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchProjectsByProjectDesc_result: +class searchExperimentsByStatus_result: """ Attributes: - success @@ -12060,7 +15321,7 @@ class searchProjectsByProjectDesc_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -12084,11 +15345,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype33, _size30) = iprot.readListBegin() - for _i34 in xrange(_size30): - _elem35 = apache.airavata.model.workspace.ttypes.Project() - _elem35.read(iprot) - self.success.append(_elem35) + (_etype103, _size100) = iprot.readListBegin() + for _i104 in xrange(_size100): + _elem105 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem105.read(iprot) + self.success.append(_elem105) iprot.readListEnd() else: iprot.skip(ftype) @@ -12119,12 +15380,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchProjectsByProjectDesc_result') + oprot.writeStructBegin('searchExperimentsByStatus_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter36 in self.success: - iter36.write(oprot) + for iter106 in self.success: + iter106.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -12157,25 +15418,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByName_args: +class searchExperimentsByStatusWithPagination_args: """ Attributes: - gatewayId - userName - - expName + - experimentState + - limit + - offset """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'expName', None, None, ), # 3 + (3, TType.I32, 'experimentState', None, None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'offset', None, None, ), # 5 ) - def __init__(self, gatewayId=None, userName=None, expName=None,): + def __init__(self, gatewayId=None, userName=None, experimentState=None, limit=None, offset=None,): self.gatewayId = gatewayId self.userName = userName - self.expName = expName + self.experimentState = experimentState + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -12197,8 +15464,18 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.expName = iprot.readString(); + if ftype == TType.I32: + self.experimentState = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -12210,7 +15487,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByName_args') + oprot.writeStructBegin('searchExperimentsByStatusWithPagination_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -12219,9 +15496,17 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.expName is not None: - oprot.writeFieldBegin('expName', TType.STRING, 3) - oprot.writeString(self.expName) + if self.experimentState is not None: + oprot.writeFieldBegin('experimentState', TType.I32, 3) + oprot.writeI32(self.experimentState) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 5) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12231,8 +15516,12 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.expName is None: - raise TProtocol.TProtocolException(message='Required field expName is unset!') + if self.experimentState is None: + raise TProtocol.TProtocolException(message='Required field experimentState is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -12247,7 +15536,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByName_result: +class searchExperimentsByStatusWithPagination_result: """ Attributes: - success @@ -12281,11 +15570,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype40, _size37) = iprot.readListBegin() - for _i41 in xrange(_size37): - _elem42 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() - _elem42.read(iprot) - self.success.append(_elem42) + (_etype110, _size107) = iprot.readListBegin() + for _i111 in xrange(_size107): + _elem112 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem112.read(iprot) + self.success.append(_elem112) iprot.readListEnd() else: iprot.skip(ftype) @@ -12316,12 +15605,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByName_result') + oprot.writeStructBegin('searchExperimentsByStatusWithPagination_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter43 in self.success: - iter43.write(oprot) + for iter113 in self.success: + iter113.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -12354,25 +15643,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByDesc_args: +class searchExperimentsByCreationTime_args: """ Attributes: - gatewayId - userName - - description + - fromTime + - toTime """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'description', None, None, ), # 3 + (3, TType.I64, 'fromTime', None, None, ), # 3 + (4, TType.I64, 'toTime', None, None, ), # 4 ) - def __init__(self, gatewayId=None, userName=None, description=None,): + def __init__(self, gatewayId=None, userName=None, fromTime=None, toTime=None,): self.gatewayId = gatewayId self.userName = userName - self.description = description + self.fromTime = fromTime + self.toTime = toTime def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -12394,8 +15686,13 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.description = iprot.readString(); + if ftype == TType.I64: + self.fromTime = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.toTime = iprot.readI64(); else: iprot.skip(ftype) else: @@ -12407,7 +15704,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByDesc_args') + oprot.writeStructBegin('searchExperimentsByCreationTime_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -12416,9 +15713,13 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 3) - oprot.writeString(self.description) + if self.fromTime is not None: + oprot.writeFieldBegin('fromTime', TType.I64, 3) + oprot.writeI64(self.fromTime) + oprot.writeFieldEnd() + if self.toTime is not None: + oprot.writeFieldBegin('toTime', TType.I64, 4) + oprot.writeI64(self.toTime) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12428,8 +15729,10 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.description is None: - raise TProtocol.TProtocolException(message='Required field description is unset!') + if self.fromTime is None: + raise TProtocol.TProtocolException(message='Required field fromTime is unset!') + if self.toTime is None: + raise TProtocol.TProtocolException(message='Required field toTime is unset!') return @@ -12444,7 +15747,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByDesc_result: +class searchExperimentsByCreationTime_result: """ Attributes: - success @@ -12478,11 +15781,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype47, _size44) = iprot.readListBegin() - for _i48 in xrange(_size44): - _elem49 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() - _elem49.read(iprot) - self.success.append(_elem49) + (_etype117, _size114) = iprot.readListBegin() + for _i118 in xrange(_size114): + _elem119 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem119.read(iprot) + self.success.append(_elem119) iprot.readListEnd() else: iprot.skip(ftype) @@ -12513,12 +15816,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByDesc_result') + oprot.writeStructBegin('searchExperimentsByCreationTime_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter50 in self.success: - iter50.write(oprot) + for iter120 in self.success: + iter120.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -12551,25 +15854,34 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByApplication_args: +class searchExperimentsByCreationTimeWithPagination_args: """ Attributes: - gatewayId - userName - - applicationId + - fromTime + - toTime + - limit + - offset """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'applicationId', None, None, ), # 3 + (3, TType.I64, 'fromTime', None, None, ), # 3 + (4, TType.I64, 'toTime', None, None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 + (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, gatewayId=None, userName=None, applicationId=None,): + def __init__(self, gatewayId=None, userName=None, fromTime=None, toTime=None, limit=None, offset=None,): self.gatewayId = gatewayId self.userName = userName - self.applicationId = applicationId + self.fromTime = fromTime + self.toTime = toTime + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -12591,8 +15903,23 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.applicationId = iprot.readString(); + if ftype == TType.I64: + self.fromTime = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.toTime = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -12604,7 +15931,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByApplication_args') + oprot.writeStructBegin('searchExperimentsByCreationTimeWithPagination_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -12613,9 +15940,21 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.applicationId is not None: - oprot.writeFieldBegin('applicationId', TType.STRING, 3) - oprot.writeString(self.applicationId) + if self.fromTime is not None: + oprot.writeFieldBegin('fromTime', TType.I64, 3) + oprot.writeI64(self.fromTime) + oprot.writeFieldEnd() + if self.toTime is not None: + oprot.writeFieldBegin('toTime', TType.I64, 4) + oprot.writeI64(self.toTime) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 5) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 6) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12625,8 +15964,14 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.applicationId is None: - raise TProtocol.TProtocolException(message='Required field applicationId is unset!') + if self.fromTime is None: + raise TProtocol.TProtocolException(message='Required field fromTime is unset!') + if self.toTime is None: + raise TProtocol.TProtocolException(message='Required field toTime is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -12641,7 +15986,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByApplication_result: +class searchExperimentsByCreationTimeWithPagination_result: """ Attributes: - success @@ -12675,11 +16020,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype54, _size51) = iprot.readListBegin() - for _i55 in xrange(_size51): - _elem56 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() - _elem56.read(iprot) - self.success.append(_elem56) + (_etype124, _size121) = iprot.readListBegin() + for _i125 in xrange(_size121): + _elem126 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() + _elem126.read(iprot) + self.success.append(_elem126) iprot.readListEnd() else: iprot.skip(ftype) @@ -12710,12 +16055,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByApplication_result') + oprot.writeStructBegin('searchExperimentsByCreationTimeWithPagination_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter57 in self.success: - iter57.write(oprot) + for iter127 in self.success: + iter127.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -12748,25 +16093,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByStatus_args: +class getAllExperimentsInProject_args: """ - Attributes: - - gatewayId - - userName - - experimentState + Attributes: + - projectId """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.I32, 'experimentState', None, None, ), # 3 + (1, TType.STRING, 'projectId', None, None, ), # 1 ) - def __init__(self, gatewayId=None, userName=None, experimentState=None,): - self.gatewayId = gatewayId - self.userName = userName - self.experimentState = experimentState + def __init__(self, projectId=None,): + self.projectId = projectId def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -12779,17 +16118,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I32: - self.experimentState = iprot.readI32(); + self.projectId = iprot.readString(); else: iprot.skip(ftype) else: @@ -12801,29 +16130,17 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByStatus_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.experimentState is not None: - oprot.writeFieldBegin('experimentState', TType.I32, 3) - oprot.writeI32(self.experimentState) + oprot.writeStructBegin('getAllExperimentsInProject_args') + if self.projectId is not None: + oprot.writeFieldBegin('projectId', TType.STRING, 1) + oprot.writeString(self.projectId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.experimentState is None: - raise TProtocol.TProtocolException(message='Required field experimentState is unset!') + if self.projectId is None: + raise TProtocol.TProtocolException(message='Required field projectId is unset!') return @@ -12838,27 +16155,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByStatus_result: +class getAllExperimentsInProject_result: """ Attributes: - success - ire - ace - ase + - pnfe """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.Experiment, apache.airavata.model.workspace.experiment.ttypes.Experiment.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase + self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -12872,11 +16192,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype61, _size58) = iprot.readListBegin() - for _i62 in xrange(_size58): - _elem63 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() - _elem63.read(iprot) - self.success.append(_elem63) + (_etype131, _size128) = iprot.readListBegin() + for _i132 in xrange(_size128): + _elem133 = apache.airavata.model.workspace.experiment.ttypes.Experiment() + _elem133.read(iprot) + self.success.append(_elem133) iprot.readListEnd() else: iprot.skip(ftype) @@ -12898,6 +16218,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() + self.pnfe.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -12907,12 +16233,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByStatus_result') + oprot.writeStructBegin('getAllExperimentsInProject_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter64 in self.success: - iter64.write(oprot) + for iter134 in self.success: + iter134.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -12927,6 +16253,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.pnfe is not None: + oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) + self.pnfe.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12945,28 +16275,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByCreationTime_args: +class getAllExperimentsInProjectWithPagination_args: """ Attributes: - - gatewayId - - userName - - fromTime - - toTime + - projectId + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.I64, 'fromTime', None, None, ), # 3 - (4, TType.I64, 'toTime', None, None, ), # 4 + (1, TType.STRING, 'projectId', None, None, ), # 1 + (2, TType.I32, 'limit', None, None, ), # 2 + (3, TType.I32, 'offset', None, None, ), # 3 ) - def __init__(self, gatewayId=None, userName=None, fromTime=None, toTime=None,): - self.gatewayId = gatewayId - self.userName = userName - self.fromTime = fromTime - self.toTime = toTime + def __init__(self, projectId=None, limit=None, offset=None,): + self.projectId = projectId + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -12979,22 +16306,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.gatewayId = iprot.readString(); + self.projectId = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRING: - self.userName = iprot.readString(); + if ftype == TType.I32: + self.limit = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.fromTime = iprot.readI64(); - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I64: - self.toTime = iprot.readI64(); + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -13006,35 +16328,29 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByCreationTime_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) + oprot.writeStructBegin('getAllExperimentsInProjectWithPagination_args') + if self.projectId is not None: + oprot.writeFieldBegin('projectId', TType.STRING, 1) + oprot.writeString(self.projectId) oprot.writeFieldEnd() - if self.fromTime is not None: - oprot.writeFieldBegin('fromTime', TType.I64, 3) - oprot.writeI64(self.fromTime) + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 2) + oprot.writeI32(self.limit) oprot.writeFieldEnd() - if self.toTime is not None: - oprot.writeFieldBegin('toTime', TType.I64, 4) - oprot.writeI64(self.toTime) + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 3) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.fromTime is None: - raise TProtocol.TProtocolException(message='Required field fromTime is unset!') - if self.toTime is None: - raise TProtocol.TProtocolException(message='Required field toTime is unset!') + if self.projectId is None: + raise TProtocol.TProtocolException(message='Required field projectId is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -13049,27 +16365,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByCreationTime_result: +class getAllExperimentsInProjectWithPagination_result: """ Attributes: - success - ire - ace - ase + - pnfe """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary, apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.experiment.ttypes.Experiment, apache.airavata.model.workspace.experiment.ttypes.Experiment.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase + self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -13083,11 +16402,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype68, _size65) = iprot.readListBegin() - for _i69 in xrange(_size65): - _elem70 = apache.airavata.model.workspace.experiment.ttypes.ExperimentSummary() - _elem70.read(iprot) - self.success.append(_elem70) + (_etype138, _size135) = iprot.readListBegin() + for _i139 in xrange(_size135): + _elem140 = apache.airavata.model.workspace.experiment.ttypes.Experiment() + _elem140.read(iprot) + self.success.append(_elem140) iprot.readListEnd() else: iprot.skip(ftype) @@ -13109,6 +16428,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() + self.pnfe.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -13118,12 +16443,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByCreationTime_result') + oprot.writeStructBegin('getAllExperimentsInProjectWithPagination_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter71 in self.success: - iter71.write(oprot) + for iter141 in self.success: + iter141.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -13138,6 +16463,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.pnfe is not None: + oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) + self.pnfe.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13156,19 +16485,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllExperimentsInProject_args: +class getAllUserExperiments_args: """ Attributes: - - projectId + - gatewayId + - userName """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'projectId', None, None, ), # 1 + (1, TType.STRING, 'gatewayId', None, None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 ) - def __init__(self, projectId=None,): - self.projectId = projectId + def __init__(self, gatewayId=None, userName=None,): + self.gatewayId = gatewayId + self.userName = userName def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -13181,7 +16513,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.projectId = iprot.readString(); + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.userName = iprot.readString(); else: iprot.skip(ftype) else: @@ -13193,17 +16530,23 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllExperimentsInProject_args') - if self.projectId is not None: - oprot.writeFieldBegin('projectId', TType.STRING, 1) - oprot.writeString(self.projectId) + oprot.writeStructBegin('getAllUserExperiments_args') + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeString(self.userName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.projectId is None: - raise TProtocol.TProtocolException(message='Required field projectId is unset!') + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') return @@ -13218,14 +16561,13 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllExperimentsInProject_result: +class getAllUserExperiments_result: """ Attributes: - success - ire - ace - ase - - pnfe """ thrift_spec = ( @@ -13233,15 +16575,13 @@ class getAllExperimentsInProject_result: (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase - self.pnfe = pnfe def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -13255,11 +16595,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype75, _size72) = iprot.readListBegin() - for _i76 in xrange(_size72): - _elem77 = apache.airavata.model.workspace.experiment.ttypes.Experiment() - _elem77.read(iprot) - self.success.append(_elem77) + (_etype145, _size142) = iprot.readListBegin() + for _i146 in xrange(_size142): + _elem147 = apache.airavata.model.workspace.experiment.ttypes.Experiment() + _elem147.read(iprot) + self.success.append(_elem147) iprot.readListEnd() else: iprot.skip(ftype) @@ -13281,12 +16621,6 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() - self.pnfe.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -13296,12 +16630,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllExperimentsInProject_result') + oprot.writeStructBegin('getAllUserExperiments_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter78 in self.success: - iter78.write(oprot) + for iter148 in self.success: + iter148.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -13316,10 +16650,6 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() - if self.pnfe is not None: - oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) - self.pnfe.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13338,22 +16668,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserExperiments_args: +class getAllUserExperimentsWithPagination_args: """ Attributes: - gatewayId - userName + - limit + - offset """ thrift_spec = ( None, # 0 (1, TType.STRING, 'gatewayId', None, None, ), # 1 (2, TType.STRING, 'userName', None, None, ), # 2 + (3, TType.I32, 'limit', None, None, ), # 3 + (4, TType.I32, 'offset', None, None, ), # 4 ) - def __init__(self, gatewayId=None, userName=None,): + def __init__(self, gatewayId=None, userName=None, limit=None, offset=None,): self.gatewayId = gatewayId self.userName = userName + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -13374,6 +16710,16 @@ def read(self, iprot): self.userName = iprot.readString(); else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.offset = iprot.readI32(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -13383,7 +16729,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserExperiments_args') + oprot.writeStructBegin('getAllUserExperimentsWithPagination_args') if self.gatewayId is not None: oprot.writeFieldBegin('gatewayId', TType.STRING, 1) oprot.writeString(self.gatewayId) @@ -13392,6 +16738,14 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 3) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 4) + oprot.writeI32(self.offset) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13400,6 +16754,10 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -13414,7 +16772,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserExperiments_result: +class getAllUserExperimentsWithPagination_result: """ Attributes: - success @@ -13448,11 +16806,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype82, _size79) = iprot.readListBegin() - for _i83 in xrange(_size79): - _elem84 = apache.airavata.model.workspace.experiment.ttypes.Experiment() - _elem84.read(iprot) - self.success.append(_elem84) + (_etype152, _size149) = iprot.readListBegin() + for _i153 in xrange(_size149): + _elem154 = apache.airavata.model.workspace.experiment.ttypes.Experiment() + _elem154.read(iprot) + self.success.append(_elem154) iprot.readListEnd() else: iprot.skip(ftype) @@ -13483,12 +16841,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserExperiments_result') + oprot.writeStructBegin('getAllUserExperimentsWithPagination_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter85 in self.success: - iter85.write(oprot) + for iter155 in self.success: + iter155.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -14920,11 +18278,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype89, _size86) = iprot.readListBegin() - for _i90 in xrange(_size86): - _elem91 = apache.airavata.model.appcatalog.appinterface.ttypes.OutputDataObjectType() - _elem91.read(iprot) - self.success.append(_elem91) + (_etype159, _size156) = iprot.readListBegin() + for _i160 in xrange(_size156): + _elem161 = apache.airavata.model.appcatalog.appinterface.ttypes.OutputDataObjectType() + _elem161.read(iprot) + self.success.append(_elem161) iprot.readListEnd() else: iprot.skip(ftype) @@ -14965,8 +18323,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter92 in self.success: - iter92.write(oprot) + for iter162 in self.success: + iter162.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -15102,11 +18460,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype96, _size93) = iprot.readListBegin() - for _i97 in xrange(_size93): - _elem98 = apache.airavata.model.appcatalog.appinterface.ttypes.OutputDataObjectType() - _elem98.read(iprot) - self.success.append(_elem98) + (_etype166, _size163) = iprot.readListBegin() + for _i167 in xrange(_size163): + _elem168 = apache.airavata.model.appcatalog.appinterface.ttypes.OutputDataObjectType() + _elem168.read(iprot) + self.success.append(_elem168) iprot.readListEnd() else: iprot.skip(ftype) @@ -15147,8 +18505,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter99 in self.success: - iter99.write(oprot) + for iter169 in self.success: + iter169.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -15284,12 +18642,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype101, _vtype102, _size100 ) = iprot.readMapBegin() - for _i104 in xrange(_size100): - _key105 = iprot.readString(); - _val106 = apache.airavata.model.workspace.experiment.ttypes.JobStatus() - _val106.read(iprot) - self.success[_key105] = _val106 + (_ktype171, _vtype172, _size170 ) = iprot.readMapBegin() + for _i174 in xrange(_size170): + _key175 = iprot.readString(); + _val176 = apache.airavata.model.workspace.experiment.ttypes.JobStatus() + _val176.read(iprot) + self.success[_key175] = _val176 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15330,9 +18688,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter107,viter108 in self.success.items(): - oprot.writeString(kiter107) - viter108.write(oprot) + for kiter177,viter178 in self.success.items(): + oprot.writeString(kiter177) + viter178.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -15468,11 +18826,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype112, _size109) = iprot.readListBegin() - for _i113 in xrange(_size109): - _elem114 = apache.airavata.model.workspace.experiment.ttypes.JobDetails() - _elem114.read(iprot) - self.success.append(_elem114) + (_etype182, _size179) = iprot.readListBegin() + for _i183 in xrange(_size179): + _elem184 = apache.airavata.model.workspace.experiment.ttypes.JobDetails() + _elem184.read(iprot) + self.success.append(_elem184) iprot.readListEnd() else: iprot.skip(ftype) @@ -15513,8 +18871,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter115 in self.success: - iter115.write(oprot) + for iter185 in self.success: + iter185.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -15650,11 +19008,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype119, _size116) = iprot.readListBegin() - for _i120 in xrange(_size116): - _elem121 = apache.airavata.model.workspace.experiment.ttypes.DataTransferDetails() - _elem121.read(iprot) - self.success.append(_elem121) + (_etype189, _size186) = iprot.readListBegin() + for _i190 in xrange(_size186): + _elem191 = apache.airavata.model.workspace.experiment.ttypes.DataTransferDetails() + _elem191.read(iprot) + self.success.append(_elem191) iprot.readListEnd() else: iprot.skip(ftype) @@ -15695,8 +19053,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter122 in self.success: - iter122.write(oprot) + for iter192 in self.success: + iter192.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -16695,11 +20053,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype126, _size123) = iprot.readListBegin() - for _i127 in xrange(_size123): - _elem128 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationModule() - _elem128.read(iprot) - self.success.append(_elem128) + (_etype196, _size193) = iprot.readListBegin() + for _i197 in xrange(_size193): + _elem198 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationModule() + _elem198.read(iprot) + self.success.append(_elem198) iprot.readListEnd() else: iprot.skip(ftype) @@ -16734,8 +20092,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter129 in self.success: - iter129.write(oprot) + for iter199 in self.success: + iter199.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -17695,11 +21053,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype133, _size130) = iprot.readListBegin() - for _i134 in xrange(_size130): - _elem135 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationDeploymentDescription() - _elem135.read(iprot) - self.success.append(_elem135) + (_etype203, _size200) = iprot.readListBegin() + for _i204 in xrange(_size200): + _elem205 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationDeploymentDescription() + _elem205.read(iprot) + self.success.append(_elem205) iprot.readListEnd() else: iprot.skip(ftype) @@ -17734,8 +21092,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter136 in self.success: - iter136.write(oprot) + for iter206 in self.success: + iter206.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -17864,10 +21222,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype140, _size137) = iprot.readListBegin() - for _i141 in xrange(_size137): - _elem142 = iprot.readString(); - self.success.append(_elem142) + (_etype210, _size207) = iprot.readListBegin() + for _i211 in xrange(_size207): + _elem212 = iprot.readString(); + self.success.append(_elem212) iprot.readListEnd() else: iprot.skip(ftype) @@ -17902,8 +21260,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter143 in self.success: - oprot.writeString(iter143) + for iter213 in self.success: + oprot.writeString(iter213) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -18703,11 +22061,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype145, _vtype146, _size144 ) = iprot.readMapBegin() - for _i148 in xrange(_size144): - _key149 = iprot.readString(); - _val150 = iprot.readString(); - self.success[_key149] = _val150 + (_ktype215, _vtype216, _size214 ) = iprot.readMapBegin() + for _i218 in xrange(_size214): + _key219 = iprot.readString(); + _val220 = iprot.readString(); + self.success[_key219] = _val220 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18742,9 +22100,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter151,viter152 in self.success.items(): - oprot.writeString(kiter151) - oprot.writeString(viter152) + for kiter221,viter222 in self.success.items(): + oprot.writeString(kiter221) + oprot.writeString(viter222) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -18873,11 +22231,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype156, _size153) = iprot.readListBegin() - for _i157 in xrange(_size153): - _elem158 = apache.airavata.model.appcatalog.appinterface.ttypes.ApplicationInterfaceDescription() - _elem158.read(iprot) - self.success.append(_elem158) + (_etype226, _size223) = iprot.readListBegin() + for _i227 in xrange(_size223): + _elem228 = apache.airavata.model.appcatalog.appinterface.ttypes.ApplicationInterfaceDescription() + _elem228.read(iprot) + self.success.append(_elem228) iprot.readListEnd() else: iprot.skip(ftype) @@ -18912,8 +22270,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter159 in self.success: - iter159.write(oprot) + for iter229 in self.success: + iter229.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -19042,11 +22400,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype163, _size160) = iprot.readListBegin() - for _i164 in xrange(_size160): - _elem165 = apache.airavata.model.appcatalog.appinterface.ttypes.InputDataObjectType() - _elem165.read(iprot) - self.success.append(_elem165) + (_etype233, _size230) = iprot.readListBegin() + for _i234 in xrange(_size230): + _elem235 = apache.airavata.model.appcatalog.appinterface.ttypes.InputDataObjectType() + _elem235.read(iprot) + self.success.append(_elem235) iprot.readListEnd() else: iprot.skip(ftype) @@ -19081,8 +22439,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter166 in self.success: - iter166.write(oprot) + for iter236 in self.success: + iter236.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -19211,11 +22569,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype170, _size167) = iprot.readListBegin() - for _i171 in xrange(_size167): - _elem172 = apache.airavata.model.appcatalog.appinterface.ttypes.OutputDataObjectType() - _elem172.read(iprot) - self.success.append(_elem172) + (_etype240, _size237) = iprot.readListBegin() + for _i241 in xrange(_size237): + _elem242 = apache.airavata.model.appcatalog.appinterface.ttypes.OutputDataObjectType() + _elem242.read(iprot) + self.success.append(_elem242) iprot.readListEnd() else: iprot.skip(ftype) @@ -19250,8 +22608,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter173 in self.success: - iter173.write(oprot) + for iter243 in self.success: + iter243.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -19380,11 +22738,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() - for _i178 in xrange(_size174): - _key179 = iprot.readString(); - _val180 = iprot.readString(); - self.success[_key179] = _val180 + (_ktype245, _vtype246, _size244 ) = iprot.readMapBegin() + for _i248 in xrange(_size244): + _key249 = iprot.readString(); + _val250 = iprot.readString(); + self.success[_key249] = _val250 iprot.readMapEnd() else: iprot.skip(ftype) @@ -19419,9 +22777,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter181,viter182 in self.success.items(): - oprot.writeString(kiter181) - oprot.writeString(viter182) + for kiter251,viter252 in self.success.items(): + oprot.writeString(kiter251) + oprot.writeString(viter252) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -19852,11 +23210,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype184, _vtype185, _size183 ) = iprot.readMapBegin() - for _i187 in xrange(_size183): - _key188 = iprot.readString(); - _val189 = iprot.readString(); - self.success[_key188] = _val189 + (_ktype254, _vtype255, _size253 ) = iprot.readMapBegin() + for _i257 in xrange(_size253): + _key258 = iprot.readString(); + _val259 = iprot.readString(); + self.success[_key258] = _val259 iprot.readMapEnd() else: iprot.skip(ftype) @@ -19891,9 +23249,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter190,viter191 in self.success.items(): - oprot.writeString(kiter190) - oprot.writeString(viter191) + for kiter260,viter261 in self.success.items(): + oprot.writeString(kiter260) + oprot.writeString(viter261) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -24835,11 +28193,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.jobSubmissionPriorityMap = {} - (_ktype193, _vtype194, _size192 ) = iprot.readMapBegin() - for _i196 in xrange(_size192): - _key197 = iprot.readString(); - _val198 = iprot.readI32(); - self.jobSubmissionPriorityMap[_key197] = _val198 + (_ktype263, _vtype264, _size262 ) = iprot.readMapBegin() + for _i266 in xrange(_size262): + _key267 = iprot.readString(); + _val268 = iprot.readI32(); + self.jobSubmissionPriorityMap[_key267] = _val268 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24856,9 +28214,9 @@ def write(self, oprot): if self.jobSubmissionPriorityMap is not None: oprot.writeFieldBegin('jobSubmissionPriorityMap', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.I32, len(self.jobSubmissionPriorityMap)) - for kiter199,viter200 in self.jobSubmissionPriorityMap.items(): - oprot.writeString(kiter199) - oprot.writeI32(viter200) + for kiter269,viter270 in self.jobSubmissionPriorityMap.items(): + oprot.writeString(kiter269) + oprot.writeI32(viter270) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25005,11 +28363,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.dataMovementPriorityMap = {} - (_ktype202, _vtype203, _size201 ) = iprot.readMapBegin() - for _i205 in xrange(_size201): - _key206 = iprot.readString(); - _val207 = iprot.readI32(); - self.dataMovementPriorityMap[_key206] = _val207 + (_ktype272, _vtype273, _size271 ) = iprot.readMapBegin() + for _i275 in xrange(_size271): + _key276 = iprot.readString(); + _val277 = iprot.readI32(); + self.dataMovementPriorityMap[_key276] = _val277 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25026,9 +28384,9 @@ def write(self, oprot): if self.dataMovementPriorityMap is not None: oprot.writeFieldBegin('dataMovementPriorityMap', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.I32, len(self.dataMovementPriorityMap)) - for kiter208,viter209 in self.dataMovementPriorityMap.items(): - oprot.writeString(kiter208) - oprot.writeI32(viter209) + for kiter278,viter279 in self.dataMovementPriorityMap.items(): + oprot.writeString(kiter278) + oprot.writeI32(viter279) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27445,11 +30803,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype213, _size210) = iprot.readListBegin() - for _i214 in xrange(_size210): - _elem215 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.ComputeResourcePreference() - _elem215.read(iprot) - self.success.append(_elem215) + (_etype283, _size280) = iprot.readListBegin() + for _i284 in xrange(_size280): + _elem285 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.ComputeResourcePreference() + _elem285.read(iprot) + self.success.append(_elem285) iprot.readListEnd() else: iprot.skip(ftype) @@ -27484,8 +30842,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter216 in self.success: - iter216.write(oprot) + for iter286 in self.success: + iter286.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -27594,11 +30952,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype220, _size217) = iprot.readListBegin() - for _i221 in xrange(_size217): - _elem222 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.GatewayResourceProfile() - _elem222.read(iprot) - self.success.append(_elem222) + (_etype290, _size287) = iprot.readListBegin() + for _i291 in xrange(_size287): + _elem292 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.GatewayResourceProfile() + _elem292.read(iprot) + self.success.append(_elem292) iprot.readListEnd() else: iprot.skip(ftype) @@ -27633,8 +30991,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter223 in self.success: - iter223.write(oprot) + for iter293 in self.success: + iter293.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -28126,10 +31484,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype227, _size224) = iprot.readListBegin() - for _i228 in xrange(_size224): - _elem229 = iprot.readString(); - self.success.append(_elem229) + (_etype297, _size294) = iprot.readListBegin() + for _i298 in xrange(_size294): + _elem299 = iprot.readString(); + self.success.append(_elem299) iprot.readListEnd() else: iprot.skip(ftype) @@ -28164,8 +31522,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter230 in self.success: - oprot.writeString(iter230) + for iter300 in self.success: + oprot.writeString(iter300) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: diff --git a/airavata-api/thrift-interface-descriptions/airavataAPI.thrift b/airavata-api/thrift-interface-descriptions/airavataAPI.thrift index b1f644beac..7f027f570c 100644 --- a/airavata-api/thrift-interface-descriptions/airavataAPI.thrift +++ b/airavata-api/thrift-interface-descriptions/airavataAPI.thrift @@ -190,7 +190,7 @@ service Airavata { * * @param userName * The Project Object described in the workspaceModel - * + * @deprecated Instead use getAllUserProjectsWithPagination **/ list getAllUserProjects (1: required string gatewayId, 2: required string userName) @@ -198,19 +198,75 @@ service Airavata { 2: airavataErrors.AiravataClientException ace, 3: airavataErrors.AiravataSystemException ase) + /** + * Get all Project by user with pagination. Results will be ordered based + * on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + **/ + list getAllUserProjectsWithPagination (1: required string gatewayId, + 2: required string userName, + 3: required i32 limit, + 4: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + /** - * Get all Project for user by project name - * - */ + * Get all Project for user by project name + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param projectName + * The name of the project on which the results to be fetched + * @deprecated Instead use searchProjectsByProjectNameWithPagination + */ list searchProjectsByProjectName (1: required string gatewayId, 2: required string userName, 3: required string projectName) throws (1: airavataErrors.InvalidRequestException ire, 2: airavataErrors.AiravataClientException ace, 3: airavataErrors.AiravataSystemException ase) + /** + * Get all Project for user by project name with pagination.Results will be ordered based + * on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param projectName + * The name of the project on which the results to be fetched + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list searchProjectsByProjectNameWithPagination (1: required string gatewayId, + 2: required string userName, 3: required string projectName,4: required i32 limit, + 5: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + /** * Get all Project for user by project description - * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param description + * The description to be matched + * @deprecated Instead use searchProjectsByProjectDescWithPagination */ list searchProjectsByProjectDesc (1: required string gatewayId, 2: required string userName, 3: required string description) @@ -218,10 +274,41 @@ service Airavata { 2: airavataErrors.AiravataClientException ace, 3: airavataErrors.AiravataSystemException ase) + /** + * Search and get all Projects for user by project description with pagination. Results + * will be ordered based on creation time DESC + * + * @param gatewayId + * The identifier for the requested gateway. + * @param userName + * The identifier of the user + * @param description + * The description to be matched + * @param limit + * The amount results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list searchProjectsByProjectDescWithPagination (1: required string gatewayId, + 2: required string userName, 3: required string description, 4: required i32 limit, + 5: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + /** - * Search Experiments by experiment name - * + * Search Experiments by experiment name + * + * @param gatewayId + * Identifier of the requested gateway + * @param useNname + * Username of the requested user + * @param expName + * Experiment name to be matched + * @deprecated + * Instead use searchExperimentsByNameWithPagination + * */ list searchExperimentsByName (1: required string gatewayId, 2: required string userName, 3: required string expName) @@ -230,8 +317,38 @@ service Airavata { 3: airavataErrors.AiravataSystemException ase) /** - * Search Experiments by experiment name - * + * Search Experiments by experiment name with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param expName + * Experiment name to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list searchExperimentsByNameWithPagination (1: required string gatewayId, + 2: required string userName, 3: required string expName, 4: required i32 limit, + 5: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + + /** + * Search Experiments by experiment name + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param description + * Experiment description to be matched + * @deprecated + * Instead use searchExperimentsByDescWithPagination */ list searchExperimentsByDesc (1: required string gatewayId, 2: required string userName, 3: required string description) @@ -240,18 +357,77 @@ service Airavata { 3: airavataErrors.AiravataSystemException ase) /** - * Search Experiments by application id - * - */ + * Search Experiments by experiment name with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param description + * Experiment description to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list searchExperimentsByDescWithPagination (1: required string gatewayId, + 2: required string userName, 3: required string description, 4: required i32 limit, + 5: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + + + /** + * Search Experiments by application id + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param applicationId + * Application id to be matched + * @deprecated + * Instead use searchExperimentsByApplicationWithPagination + */ list searchExperimentsByApplication (1: required string gatewayId, 2: required string userName, 3: required string applicationId) throws (1: airavataErrors.InvalidRequestException ire, 2: airavataErrors.AiravataClientException ace, 3: airavataErrors.AiravataSystemException ase) - - /** - * Search Experiments by experiment status - * + /** + * Search Experiments by application id with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param applicationId + * Application id to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list searchExperimentsByApplicationWithPagination (1: required string gatewayId, + 2: required string userName, 3: required string applicationId, 4: required i32 limit, + 5: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + /** + * Search Experiments by experiment status + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param experimentState + * Experiement state to be matched + * @deprecated + * Instead use searchExperimentsByStatusWithPagination */ list searchExperimentsByStatus (1: required string gatewayId, 2: required string userName, 3: required experimentModel.ExperimentState experimentState) @@ -259,10 +435,42 @@ service Airavata { 2: airavataErrors.AiravataClientException ace, 3: airavataErrors.AiravataSystemException ase) - /** - * Search Experiments by experiment status - * - */ + /** + * Search Experiments by experiment status with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param experimentState + * Experiement state to be matched + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list searchExperimentsByStatusWithPagination (1: required string gatewayId, + 2: required string userName, 3: required experimentModel.ExperimentState experimentState, + 4: required i32 limit, 5: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + + /** + * Search Experiments by experiment creation time + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param fromTime + * Start time of the experiments creation time + * @param toTime + * End time of the experiement creation time + * @deprecated + * Instead use searchExperimentsByCreationTimeWithPagination + */ list searchExperimentsByCreationTime (1: required string gatewayId, 2: required string userName, 3: required i64 fromTime, 4: required i64 toTime) throws (1: airavataErrors.InvalidRequestException ire, @@ -270,9 +478,37 @@ service Airavata { 3: airavataErrors.AiravataSystemException ase) /** - * Get all Experiments within a Project - * - */ + * Search Experiments by experiment creation time with pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requested gateway + * @param userName + * Username of the requested user + * @param fromTime + * Start time of the experiments creation time + * @param toTime + * End time of the experiement creation time + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list searchExperimentsByCreationTimeWithPagination (1: required string gatewayId, + 2: required string userName, 3: required i64 fromTime, 4: required i64 toTime, + 5: required i32 limit, 6: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + + /** + * Get all Experiments within a Project + * + * @param projectId + * Identifier of the project + * @deprecated + * Instead use getAllExperimentsInProjectWithPagination + */ list getAllExperimentsInProject(1: required string projectId) throws (1: airavataErrors.InvalidRequestException ire, 2: airavataErrors.AiravataClientException ace, @@ -280,15 +516,59 @@ service Airavata { 4: airavataErrors.ProjectNotFoundException pnfe) /** - * Get all Experiments by user - * - */ + * Get all Experiments within project with pagination. Results will be sorted + * based on creation time DESC + * + * @param projectId + * Identifier of the project + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list getAllExperimentsInProjectWithPagination(1: required string projectId, + 2: required i32 limit, 3: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase, + 4: airavataErrors.ProjectNotFoundException pnfe) + + + /** + * Get all Experiments by user + * + * @param gatewayId + * Identifier of the requesting gateway + * @param userName + * Username of the requested user + * @deprecated + * Instead use getAllUserExperimentsWithPagination + */ list getAllUserExperiments(1: required string gatewayId, 2: required string userName) throws (1: airavataErrors.InvalidRequestException ire, 2: airavataErrors.AiravataClientException ace, 3: airavataErrors.AiravataSystemException ase) + /** + * Get all Experiments by user pagination. Results will be sorted + * based on creation time DESC + * + * @param gatewayId + * Identifier of the requesting gateway + * @param userName + * Username of the requested user + * @param limit + * Amount of results to be fetched + * @param offset + * The starting point of the results to be fetched + */ + list getAllUserExperimentsWithPagination(1: required string gatewayId, + 2: required string userName, 3: required i32 limit, 4: required i32 offset) + throws (1: airavataErrors.InvalidRequestException ire, + 2: airavataErrors.AiravataClientException ace, + 3: airavataErrors.AiravataSystemException ase) + /** * Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed * but inferred from the authentication header. This experiment is just a persistent place holder. The client diff --git a/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/Registry.java b/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/Registry.java index c0bb0594fc..523cc736db 100644 --- a/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/Registry.java +++ b/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/Registry.java @@ -102,6 +102,23 @@ public interface Registry { */ public List get(RegistryModelType dataType, String fieldName, Object value) throws RegistryException; + /** + * This method is to retrieve list of objects according to a given criteria with pagination and ordering + * + * @param dataType Data type is a predefined type which the programmer should choose according to the object he + * is going to save in to registry + * @param fieldName FieldName is the field that filtering should be done. For example, if we want to retrieve all + * the experiments for a given user, filterBy will be "userName" + * @param value value for the filtering field. In the experiment case, value for "userName" can be "admin" + * @param limit Size of the results to be returned + * @param offset Start position of the results to be retrieved + * @param orderByIdentifier Named of the column in which the ordering is based + * @param resultOrderType Type of ordering i.e ASC or DESC + * @return + * @throws RegistryException + */ + public List get(RegistryModelType dataType, String fieldName, Object value, int limit, + int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException ; /** * This method is to retrieve list of objects according to a given criteria * @param dataType Data type is a predefined type which the programmer should choose according to the object he @@ -123,7 +140,7 @@ public interface Registry { * @param resultOrderType The type of ordering (i.e ASC or DESC) that has to be used when retrieving the results * @return List of objects according to the given criteria */ - public List searchWithPagination(RegistryModelType dataType, Map filters, + public List search(RegistryModelType dataType, Map filters, int limit, int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException; diff --git a/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/utils/Constants.java b/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/utils/Constants.java index 5defafe49e..034ee7723a 100644 --- a/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/utils/Constants.java +++ b/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/utils/Constants.java @@ -29,6 +29,7 @@ public final class ProjectConstants { public static final String OWNER = "owner"; public static final String PROJECT_NAME = "name"; public static final String DESCRIPTION = "description"; + public static final String CREATION_TIME = "creationTime"; } public final class ExperimentConstants { From c6ee5ce892a560432dbe800debebeeeb58dbb0ba Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Mon, 27 Apr 2015 20:57:47 +0530 Subject: [PATCH 3/5] Adding registry script files as resources in airavata-api-server module for testing --- .../src/main/resources/registry-derby.sql | 391 +++++++++++++++++ .../src/main/resources/registry-mysql.sql | 392 ++++++++++++++++++ 2 files changed, 783 insertions(+) create mode 100644 airavata-api/airavata-api-server/src/main/resources/registry-derby.sql create mode 100644 airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql diff --git a/airavata-api/airavata-api-server/src/main/resources/registry-derby.sql b/airavata-api/airavata-api-server/src/main/resources/registry-derby.sql new file mode 100644 index 0000000000..7ab3755c02 --- /dev/null +++ b/airavata-api/airavata-api-server/src/main/resources/registry-derby.sql @@ -0,0 +1,391 @@ +/* + * + * 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. + * + */ +CREATE TABLE GATEWAY +( + GATEWAY_ID VARCHAR (255), + GATEWAY_NAME VARCHAR(255), + DOMAIN VARCHAR(255), + EMAIL_ADDRESS VARCHAR(255), + PRIMARY KEY (GATEWAY_ID) +); + +CREATE TABLE CONFIGURATION +( + CONFIG_KEY VARCHAR(255), + CONFIG_VAL VARCHAR(255), + EXPIRE_DATE TIMESTAMP DEFAULT '0000-00-00 00:00:00', + CATEGORY_ID VARCHAR (255), + PRIMARY KEY(CONFIG_KEY, CONFIG_VAL, CATEGORY_ID) +); + +INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.15', CURRENT_TIMESTAMP ,'SYSTEM'); + +CREATE TABLE USERS +( + USER_NAME VARCHAR(255), + PASSWORD VARCHAR(255), + PRIMARY KEY(USER_NAME) +); + +CREATE TABLE GATEWAY_WORKER +( + GATEWAY_ID VARCHAR(255), + USER_NAME VARCHAR(255), + PRIMARY KEY (GATEWAY_ID, USER_NAME), + FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, + FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE +); + +CREATE TABLE PROJECT +( + GATEWAY_ID VARCHAR(255), + USER_NAME VARCHAR(255) NOT NULL, + PROJECT_ID VARCHAR(255), + PROJECT_NAME VARCHAR(255) NOT NULL, + DESCRIPTION VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (PROJECT_ID), + FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, + FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE +); + +CREATE TABLE PROJECT_USER +( + PROJECT_ID VARCHAR(255), + USER_NAME VARCHAR(255), + PRIMARY KEY (PROJECT_ID,USER_NAME), + FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE, + FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE +); + +CREATE TABLE EXPERIMENT +( + EXPERIMENT_ID VARCHAR(255), + GATEWAY_ID VARCHAR(255), + EXECUTION_USER VARCHAR(255) NOT NULL, + PROJECT_ID VARCHAR(255) NOT NULL, + CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + EXPERIMENT_NAME VARCHAR(255) NOT NULL, + EXPERIMENT_DESCRIPTION VARCHAR(255), + APPLICATION_ID VARCHAR(255), + APPLICATION_VERSION VARCHAR(255), + WORKFLOW_TEMPLATE_ID VARCHAR(255), + WORKFLOW_TEMPLATE_VERSION VARCHAR(255), + WORKFLOW_EXECUTION_ID VARCHAR(255), + ALLOW_NOTIFICATION SMALLINT, + GATEWAY_EXECUTION_ID VARCHAR(255), + PRIMARY KEY(EXPERIMENT_ID), + FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, + FOREIGN KEY (EXECUTION_USER) REFERENCES USERS(USER_NAME) ON DELETE CASCADE, + FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE +); + +CREATE TABLE EXPERIMENT_INPUT +( + EXPERIMENT_ID VARCHAR(255), + INPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + METADATA VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + STANDARD_INPUT SMALLINT, + USER_FRIENDLY_DESC VARCHAR(255), + VALUE CLOB, + INPUT_ORDER INTEGER, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_STAGED SMALLINT, + PRIMARY KEY(EXPERIMENT_ID,INPUT_KEY), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE +); + +CREATE TABLE EXPERIMENT_OUTPUT +( + EXPERIMENT_ID VARCHAR(255), + OUTPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + VALUE CLOB, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_MOVEMENT SMALLINT, + DATA_NAME_LOCATION VARCHAR(255), + SEARCH_QUERY VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + PRIMARY KEY(EXPERIMENT_ID,OUTPUT_KEY), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE +); + + +CREATE TABLE WORKFLOW_NODE_DETAIL +( + EXPERIMENT_ID VARCHAR(255) NOT NULL, + NODE_INSTANCE_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + NODE_NAME VARCHAR(255) NOT NULL, + EXECUTION_UNIT VARCHAR(255) NOT NULL, + EXECUTION_UNIT_DATA VARCHAR(255), + PRIMARY KEY(NODE_INSTANCE_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE +); + +CREATE TABLE TASK_DETAIL +( + TASK_ID VARCHAR(255), + NODE_INSTANCE_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + APPLICATION_ID VARCHAR(255), + APPLICATION_VERSION VARCHAR(255), + APPLICATION_DEPLOYMENT_ID VARCHAR(255), + ALLOW_NOTIFICATION SMALLINT, + PRIMARY KEY(TASK_ID), + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE NOTIFICATION_EMAIL +( + EMAIL_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + EMAIL_ADDRESS VARCHAR(255), + PRIMARY KEY(EMAIL_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE ERROR_DETAIL +( + ERROR_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + NODE_INSTANCE_ID VARCHAR(255), + JOB_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + ACTUAL_ERROR_MESSAGE CLOB, + USER_FRIEDNLY_ERROR_MSG VARCHAR(255), + TRANSIENT_OR_PERSISTENT SMALLINT, + ERROR_CATEGORY VARCHAR(255), + CORRECTIVE_ACTION VARCHAR(255), + ACTIONABLE_GROUP VARCHAR(255), + PRIMARY KEY(ERROR_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE APPLICATION_INPUT +( + TASK_ID VARCHAR(255), + INPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + METADATA VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + STANDARD_INPUT SMALLINT, + USER_FRIENDLY_DESC VARCHAR(255), + VALUE CLOB, + INPUT_ORDER INTEGER, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_STAGED SMALLINT, + PRIMARY KEY(TASK_ID,INPUT_KEY), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE APPLICATION_OUTPUT +( + TASK_ID VARCHAR(255), + OUTPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + VALUE CLOB, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_MOVEMENT SMALLINT, + DATA_NAME_LOCATION VARCHAR(255), + SEARCH_QUERY VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + PRIMARY KEY(TASK_ID,OUTPUT_KEY), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE NODE_INPUT +( + NODE_INSTANCE_ID VARCHAR(255), + INPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + METADATA VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + STANDARD_INPUT SMALLINT, + USER_FRIENDLY_DESC VARCHAR(255), + VALUE VARCHAR(255), + INPUT_ORDER INTEGER, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_STAGED SMALLINT, + PRIMARY KEY(NODE_INSTANCE_ID,INPUT_KEY), + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE NODE_OUTPUT +( + NODE_INSTANCE_ID VARCHAR(255), + OUTPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + VALUE VARCHAR(255), + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_MOVEMENT SMALLINT, + DATA_NAME_LOCATION VARCHAR(255), + SEARCH_QUERY VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + PRIMARY KEY(NODE_INSTANCE_ID,OUTPUT_KEY), + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE JOB_DETAIL +( + JOB_ID VARCHAR(255), + TASK_ID VARCHAR(255), + JOB_DESCRIPTION CLOB NOT NULL, + CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + COMPUTE_RESOURCE_CONSUMED VARCHAR(255), + JOBNAME VARCHAR (255), + WORKING_DIR VARCHAR(255), + PRIMARY KEY (TASK_ID, JOB_ID), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE DATA_TRANSFER_DETAIL +( + TRANSFER_ID VARCHAR(255), + TASK_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + TRANSFER_DESC VARCHAR(255) NOT NULL, + PRIMARY KEY(TRANSFER_ID), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE STATUS +( + STATUS_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, + EXPERIMENT_ID VARCHAR(255), + NODE_INSTANCE_ID VARCHAR(255), + TRANSFER_ID VARCHAR(255), + TASK_ID VARCHAR(255), + JOB_ID VARCHAR(255), + STATE VARCHAR(255), + STATUS_UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', + STATUS_TYPE VARCHAR(255), + PRIMARY KEY(STATUS_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE, + FOREIGN KEY (TRANSFER_ID) REFERENCES DATA_TRANSFER_DETAIL(TRANSFER_ID) ON DELETE CASCADE +); + +CREATE TABLE CONFIG_DATA +( + EXPERIMENT_ID VARCHAR(255), + AIRAVATA_AUTO_SCHEDULE SMALLINT NOT NULL, + OVERRIDE_MANUAL_SCHEDULE_PARAMS SMALLINT NOT NULL, + SHARE_EXPERIMENT SMALLINT, + USER_DN VARCHAR(255), + GENERATE_CERT SMALLINT, + PRIMARY KEY(EXPERIMENT_ID) +); + +CREATE TABLE COMPUTATIONAL_RESOURCE_SCHEDULING +( + RESOURCE_SCHEDULING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + RESOURCE_HOST_ID VARCHAR(255), + CPU_COUNT INTEGER, + NODE_COUNT INTEGER, + NO_OF_THREADS INTEGER, + QUEUE_NAME VARCHAR(255), + WALLTIME_LIMIT INTEGER, + JOB_START_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', + TOTAL_PHYSICAL_MEMORY INTEGER, + COMPUTATIONAL_PROJECT_ACCOUNT VARCHAR(255), + CHESSIS_NAME VARCHAR(255), + PRIMARY KEY(RESOURCE_SCHEDULING_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE ADVANCE_INPUT_DATA_HANDLING +( + INPUT_DATA_HANDLING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + WORKING_DIR_PARENT VARCHAR(255), + UNIQUE_WORKING_DIR VARCHAR(255), + STAGE_INPUT_FILES_TO_WORKING_DIR SMALLINT, + CLEAN_AFTER_JOB SMALLINT, + PRIMARY KEY(INPUT_DATA_HANDLING_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE ADVANCE_OUTPUT_DATA_HANDLING +( + OUTPUT_DATA_HANDLING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + OUTPUT_DATA_DIR VARCHAR(255), + DATA_REG_URL VARCHAR (255), + PERSIST_OUTPUT_DATA SMALLINT, + PRIMARY KEY(OUTPUT_DATA_HANDLING_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE QOS_PARAM +( + QOS_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + START_EXECUTION_AT VARCHAR(255), + EXECUTE_BEFORE VARCHAR(255), + NO_OF_RETRIES INTEGER, + PRIMARY KEY(QOS_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE COMMUNITY_USER +( + GATEWAY_ID VARCHAR(256) NOT NULL, + COMMUNITY_USER_NAME VARCHAR(256) NOT NULL, + TOKEN_ID VARCHAR(256) NOT NULL, + COMMUNITY_USER_EMAIL VARCHAR(256) NOT NULL, + PRIMARY KEY (GATEWAY_ID, COMMUNITY_USER_NAME, TOKEN_ID) +); + +CREATE TABLE CREDENTIALS +( + GATEWAY_ID VARCHAR(256) NOT NULL, + TOKEN_ID VARCHAR(256) NOT NULL, + CREDENTIAL BLOB NOT NULL, + PORTAL_USER_ID VARCHAR(256) NOT NULL, + TIME_PERSISTED TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (GATEWAY_ID, TOKEN_ID) +); + + diff --git a/airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql b/airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql new file mode 100644 index 0000000000..14d7fc8fa3 --- /dev/null +++ b/airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql @@ -0,0 +1,392 @@ +/* + * + * 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. + * + */ +CREATE TABLE GATEWAY +( + GATEWAY_ID VARCHAR(255), + GATEWAY_NAME VARCHAR(255), + DOMAIN VARCHAR(255), + EMAIL_ADDRESS VARCHAR(255), + PRIMARY KEY (GATEWAY_ID) +); + +CREATE TABLE CONFIGURATION +( + CONFIG_KEY VARCHAR(255), + CONFIG_VAL VARCHAR(255), + EXPIRE_DATE TIMESTAMP DEFAULT '0000-00-00 00:00:00', + CATEGORY_ID VARCHAR (255), + PRIMARY KEY(CONFIG_KEY, CONFIG_VAL, CATEGORY_ID) +); + +INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.15', CURRENT_TIMESTAMP ,'SYSTEM'); + +CREATE TABLE USERS +( + USER_NAME VARCHAR(255), + PASSWORD VARCHAR(255), + PRIMARY KEY(USER_NAME) +); + +CREATE TABLE GATEWAY_WORKER +( + GATEWAY_ID VARCHAR(255), + USER_NAME VARCHAR(255), + PRIMARY KEY (GATEWAY_ID, USER_NAME), + FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, + FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE +); + +CREATE TABLE PROJECT +( + GATEWAY_ID VARCHAR(255), + USER_NAME VARCHAR(255), + PROJECT_NAME VARCHAR(255) NOT NULL, + PROJECT_ID VARCHAR(255), + DESCRIPTION VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT NOW(), + PRIMARY KEY (PROJECT_ID), + FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, + FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE +); + +CREATE TABLE PROJECT_USER +( + PROJECT_ID VARCHAR(255), + USER_NAME VARCHAR(255), + PRIMARY KEY (PROJECT_ID,USER_NAME), + FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE, + FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE +); + +CREATE TABLE EXPERIMENT +( + EXPERIMENT_ID VARCHAR(255), + GATEWAY_ID VARCHAR(255), + EXECUTION_USER VARCHAR(255) NOT NULL, + PROJECT_ID VARCHAR(255) NOT NULL, + CREATION_TIME TIMESTAMP DEFAULT NOW(), + EXPERIMENT_NAME VARCHAR(255) NOT NULL, + EXPERIMENT_DESCRIPTION VARCHAR(255), + APPLICATION_ID VARCHAR(255), + APPLICATION_VERSION VARCHAR(255), + WORKFLOW_TEMPLATE_ID VARCHAR(255), + WORKFLOW_TEMPLATE_VERSION VARCHAR(255), + WORKFLOW_EXECUTION_ID VARCHAR(255), + ALLOW_NOTIFICATION SMALLINT, + GATEWAY_EXECUTION_ID VARCHAR(255), + PRIMARY KEY(EXPERIMENT_ID), + FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, + FOREIGN KEY (EXECUTION_USER) REFERENCES USERS(USER_NAME) ON DELETE CASCADE, + FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE +); + +CREATE TABLE EXPERIMENT_INPUT +( + EXPERIMENT_ID VARCHAR(255), + INPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + STANDARD_INPUT SMALLINT, + USER_FRIENDLY_DESC VARCHAR(255), + METADATA VARCHAR(255), + VALUE LONGTEXT, + INPUT_ORDER INTEGER, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_STAGED SMALLINT, + PRIMARY KEY(EXPERIMENT_ID,INPUT_KEY), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE +); + +CREATE TABLE EXPERIMENT_OUTPUT +( + EXPERIMENT_ID VARCHAR(255), + OUTPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + VALUE LONGTEXT, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_MOVEMENT SMALLINT, + DATA_NAME_LOCATION VARCHAR(255), + SEARCH_QUERY VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + PRIMARY KEY(EXPERIMENT_ID,OUTPUT_KEY), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE +); + +CREATE TABLE WORKFLOW_NODE_DETAIL +( + EXPERIMENT_ID VARCHAR(255) NOT NULL, + NODE_INSTANCE_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT NOW(), + NODE_NAME VARCHAR(255) NOT NULL, + EXECUTION_UNIT VARCHAR(255) NOT NULL, + EXECUTION_UNIT_DATA VARCHAR(255), + PRIMARY KEY(NODE_INSTANCE_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE +); + +CREATE TABLE TASK_DETAIL +( + TASK_ID VARCHAR(255), + NODE_INSTANCE_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT NOW(), + APPLICATION_ID VARCHAR(255), + APPLICATION_VERSION VARCHAR(255), + APPLICATION_DEPLOYMENT_ID VARCHAR(255), + ALLOW_NOTIFICATION SMALLINT, + PRIMARY KEY(TASK_ID), + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE NOTIFICATION_EMAIL +( + EMAIL_ID INTEGER NOT NULL AUTO_INCREMENT, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + EMAIL_ADDRESS VARCHAR(255), + PRIMARY KEY(EMAIL_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE APPLICATION_INPUT +( + TASK_ID VARCHAR(255), + INPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + STANDARD_INPUT SMALLINT, + USER_FRIENDLY_DESC VARCHAR(255), + METADATA VARCHAR(255), + VALUE LONGTEXT, + INPUT_ORDER INTEGER, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_STAGED SMALLINT, + PRIMARY KEY(TASK_ID,INPUT_KEY), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE APPLICATION_OUTPUT +( + TASK_ID VARCHAR(255), + OUTPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + VALUE LONGTEXT, + DATA_MOVEMENT SMALLINT, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_NAME_LOCATION VARCHAR(255), + SEARCH_QUERY VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + PRIMARY KEY(TASK_ID,OUTPUT_KEY), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE NODE_INPUT +( + NODE_INSTANCE_ID VARCHAR(255), + INPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + STANDARD_INPUT SMALLINT, + USER_FRIENDLY_DESC VARCHAR(255), + METADATA VARCHAR(255), + VALUE VARCHAR(255), + INPUT_ORDER INTEGER, + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_STAGED SMALLINT, + PRIMARY KEY(NODE_INSTANCE_ID,INPUT_KEY), + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE NODE_OUTPUT +( + NODE_INSTANCE_ID VARCHAR(255), + OUTPUT_KEY VARCHAR(255) NOT NULL, + DATA_TYPE VARCHAR(255), + VALUE VARCHAR(255), + IS_REQUIRED SMALLINT, + REQUIRED_TO_COMMANDLINE SMALLINT, + DATA_MOVEMENT SMALLINT, + DATA_NAME_LOCATION VARCHAR(255), + SEARCH_QUERY VARCHAR(255), + APP_ARGUMENT VARCHAR(255), + PRIMARY KEY(NODE_INSTANCE_ID,OUTPUT_KEY), + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE JOB_DETAIL +( + JOB_ID VARCHAR(255), + TASK_ID VARCHAR(255), + JOB_DESCRIPTION LONGTEXT NOT NULL, + CREATION_TIME TIMESTAMP DEFAULT NOW(), + COMPUTE_RESOURCE_CONSUMED VARCHAR(255), + JOBNAME VARCHAR (255), + WORKING_DIR VARCHAR(255), + PRIMARY KEY (TASK_ID, JOB_ID), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE DATA_TRANSFER_DETAIL +( + TRANSFER_ID VARCHAR(255), + TASK_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT NOW(), + TRANSFER_DESC VARCHAR(255) NOT NULL, + PRIMARY KEY(TRANSFER_ID), + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE ERROR_DETAIL +( + ERROR_ID INTEGER NOT NULL AUTO_INCREMENT, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + NODE_INSTANCE_ID VARCHAR(255), + JOB_ID VARCHAR(255), + CREATION_TIME TIMESTAMP DEFAULT NOW(), + ACTUAL_ERROR_MESSAGE LONGTEXT, + USER_FRIEDNLY_ERROR_MSG VARCHAR(255), + TRANSIENT_OR_PERSISTENT SMALLINT, + ERROR_CATEGORY VARCHAR(255), + CORRECTIVE_ACTION VARCHAR(255), + ACTIONABLE_GROUP VARCHAR(255), + PRIMARY KEY(ERROR_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE +); + +CREATE TABLE STATUS +( + STATUS_ID INTEGER NOT NULL AUTO_INCREMENT, + EXPERIMENT_ID VARCHAR(255), + NODE_INSTANCE_ID VARCHAR(255), + TRANSFER_ID VARCHAR(255), + TASK_ID VARCHAR(255), + JOB_ID VARCHAR(255), + STATE VARCHAR(255), + STATUS_UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00' ON UPDATE now(), + STATUS_TYPE VARCHAR(255), + PRIMARY KEY(STATUS_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, + FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE, + FOREIGN KEY (TRANSFER_ID) REFERENCES DATA_TRANSFER_DETAIL(TRANSFER_ID) ON DELETE CASCADE +); + +CREATE TABLE CONFIG_DATA +( + EXPERIMENT_ID VARCHAR(255), + AIRAVATA_AUTO_SCHEDULE SMALLINT NOT NULL, + OVERRIDE_MANUAL_SCHEDULE_PARAMS SMALLINT NOT NULL, + SHARE_EXPERIMENT SMALLINT, + USER_DN VARCHAR(255), + GENERATE_CERT SMALLINT, + PRIMARY KEY(EXPERIMENT_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE + +); + +CREATE TABLE COMPUTATIONAL_RESOURCE_SCHEDULING +( + RESOURCE_SCHEDULING_ID INTEGER NOT NULL AUTO_INCREMENT, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + RESOURCE_HOST_ID VARCHAR(255), + CPU_COUNT INTEGER, + NODE_COUNT INTEGER, + NO_OF_THREADS INTEGER, + QUEUE_NAME VARCHAR(255), + WALLTIME_LIMIT INTEGER, + JOB_START_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', + TOTAL_PHYSICAL_MEMORY INTEGER, + COMPUTATIONAL_PROJECT_ACCOUNT VARCHAR(255), + CHESSIS_NAME VARCHAR(255), + PRIMARY KEY(RESOURCE_SCHEDULING_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE ADVANCE_INPUT_DATA_HANDLING +( + INPUT_DATA_HANDLING_ID INTEGER NOT NULL AUTO_INCREMENT, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + WORKING_DIR_PARENT VARCHAR(255), + UNIQUE_WORKING_DIR VARCHAR(255), + STAGE_INPUT_FILES_TO_WORKING_DIR SMALLINT, + CLEAN_AFTER_JOB SMALLINT, + PRIMARY KEY(INPUT_DATA_HANDLING_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE ADVANCE_OUTPUT_DATA_HANDLING +( + OUTPUT_DATA_HANDLING_ID INTEGER NOT NULL AUTO_INCREMENT, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + OUTPUT_DATA_DIR VARCHAR(255), + DATA_REG_URL VARCHAR (255), + PERSIST_OUTPUT_DATA SMALLINT, + PRIMARY KEY(OUTPUT_DATA_HANDLING_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE QOS_PARAM +( + QOS_ID INTEGER NOT NULL AUTO_INCREMENT, + EXPERIMENT_ID VARCHAR(255), + TASK_ID VARCHAR(255), + START_EXECUTION_AT VARCHAR(255), + EXECUTE_BEFORE VARCHAR(255), + NO_OF_RETRIES INTEGER, + PRIMARY KEY(QOS_ID), + FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, + FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE +); + +CREATE TABLE COMMUNITY_USER +( + GATEWAY_ID VARCHAR(256) NOT NULL, + COMMUNITY_USER_NAME VARCHAR(256) NOT NULL, + TOKEN_ID VARCHAR(256) NOT NULL, + COMMUNITY_USER_EMAIL VARCHAR(256) NOT NULL, + PRIMARY KEY (GATEWAY_ID, COMMUNITY_USER_NAME, TOKEN_ID) +); + +CREATE TABLE CREDENTIALS +( + GATEWAY_ID VARCHAR(256) NOT NULL, + TOKEN_ID VARCHAR(256) NOT NULL, + CREDENTIAL BLOB NOT NULL, + PORTAL_USER_ID VARCHAR(256) NOT NULL, + TIME_PERSISTED TIMESTAMP DEFAULT NOW() ON UPDATE NOW(), + PRIMARY KEY (GATEWAY_ID, TOKEN_ID) +); + + From 0b572c28208f0d185cafb9f15fd617752f2517d9 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Mon, 27 Apr 2015 22:53:51 +0530 Subject: [PATCH 4/5] updating AiravataServerHandlerTest --- .../api/server/handler/AiravataServerHandlerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java index 799f8e9016..1094563f54 100644 --- a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java +++ b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java @@ -44,7 +44,7 @@ public class AiravataServerHandlerTest { private final static Logger logger = LoggerFactory.getLogger(AiravataServerHandlerTest.class); private static AiravataServerHandler airavataServerHandler; - private static String gatewayId = "default"; + private static String gatewayId = "php_reference_gateway"; @BeforeClass public static void setupBeforeClass() throws Exception{ @@ -272,7 +272,7 @@ public void testExperiment(){ ExperimentState experimentState = ExperimentState.findByValue(0); results = airavataServerHandler.searchExperimentsByStatus( gatewayId, "TestUser" + TAG, experimentState); - Assert.assertTrue(results.size() > 0); + Assert.assertTrue(results.size() == 3); //with pagination results = airavataServerHandler.searchExperimentsByStatusWithPagination( gatewayId, "TestUser" + TAG, experimentState, 2, 0); @@ -281,7 +281,7 @@ public void testExperiment(){ //searching based on application results = airavataServerHandler.searchExperimentsByApplication( gatewayId, "TestUser" + TAG, "Ech"); - Assert.assertTrue(results.size() > 0); + Assert.assertTrue(results.size() == 3); //with pagination results = airavataServerHandler.searchExperimentsByApplicationWithPagination( gatewayId, "TestUser" + TAG, "Ech", 2, 0); @@ -290,7 +290,7 @@ public void testExperiment(){ //searching experiments by description results = airavataServerHandler.searchExperimentsByDesc( gatewayId, "TestUser" + TAG, "exp"); - Assert.assertTrue(results.size() > 0); + Assert.assertTrue(results.size() == 3); //with pagination results = airavataServerHandler.searchExperimentsByDescWithPagination( gatewayId, "TestUser" + TAG, "exp", 2, 0); From 6e94c35c0e9e01321aff2b0ce64eca74f3dc249a Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Wed, 29 Apr 2015 15:55:31 +0530 Subject: [PATCH 5/5] Removing use of duplicate database scripts in tests --- .../api/server/util/DatabaseCreator.java | 6 +- .../src/main/resources/registry-derby.sql | 391 ----------------- .../src/main/resources/registry-mysql.sql | 392 ------------------ 3 files changed, 4 insertions(+), 785 deletions(-) delete mode 100644 airavata-api/airavata-api-server/src/main/resources/registry-derby.sql delete mode 100644 airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java index 4bc3c725d5..0d857bacab 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/DatabaseCreator.java @@ -265,9 +265,11 @@ private static void executeSQLScript(String dbscriptName, Connection conn) throw logger.info("Script file not found at " + dbscriptName + ". Uses default database script file"); DatabaseType databaseType = DatabaseCreator.getDatabaseType(conn); if(databaseType.equals(DatabaseType.derby)){ - is = DatabaseCreator.class.getClassLoader().getResourceAsStream("registry-derby.sql"); + is = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("registry-derby.sql"); }else if(databaseType.equals(DatabaseType.derby)){ - is = DatabaseCreator.class.getClassLoader().getResourceAsStream("registry-mysql.sql"); + is = Thread.currentThread().getContextClassLoader() + .getResourceAsStream("registry-mysql.sql"); } } reader = new BufferedReader(new InputStreamReader(is)); diff --git a/airavata-api/airavata-api-server/src/main/resources/registry-derby.sql b/airavata-api/airavata-api-server/src/main/resources/registry-derby.sql deleted file mode 100644 index 7ab3755c02..0000000000 --- a/airavata-api/airavata-api-server/src/main/resources/registry-derby.sql +++ /dev/null @@ -1,391 +0,0 @@ -/* - * - * 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. - * - */ -CREATE TABLE GATEWAY -( - GATEWAY_ID VARCHAR (255), - GATEWAY_NAME VARCHAR(255), - DOMAIN VARCHAR(255), - EMAIL_ADDRESS VARCHAR(255), - PRIMARY KEY (GATEWAY_ID) -); - -CREATE TABLE CONFIGURATION -( - CONFIG_KEY VARCHAR(255), - CONFIG_VAL VARCHAR(255), - EXPIRE_DATE TIMESTAMP DEFAULT '0000-00-00 00:00:00', - CATEGORY_ID VARCHAR (255), - PRIMARY KEY(CONFIG_KEY, CONFIG_VAL, CATEGORY_ID) -); - -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.15', CURRENT_TIMESTAMP ,'SYSTEM'); - -CREATE TABLE USERS -( - USER_NAME VARCHAR(255), - PASSWORD VARCHAR(255), - PRIMARY KEY(USER_NAME) -); - -CREATE TABLE GATEWAY_WORKER -( - GATEWAY_ID VARCHAR(255), - USER_NAME VARCHAR(255), - PRIMARY KEY (GATEWAY_ID, USER_NAME), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE PROJECT -( - GATEWAY_ID VARCHAR(255), - USER_NAME VARCHAR(255) NOT NULL, - PROJECT_ID VARCHAR(255), - PROJECT_NAME VARCHAR(255) NOT NULL, - DESCRIPTION VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (PROJECT_ID), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE PROJECT_USER -( - PROJECT_ID VARCHAR(255), - USER_NAME VARCHAR(255), - PRIMARY KEY (PROJECT_ID,USER_NAME), - FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT -( - EXPERIMENT_ID VARCHAR(255), - GATEWAY_ID VARCHAR(255), - EXECUTION_USER VARCHAR(255) NOT NULL, - PROJECT_ID VARCHAR(255) NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - EXPERIMENT_NAME VARCHAR(255) NOT NULL, - EXPERIMENT_DESCRIPTION VARCHAR(255), - APPLICATION_ID VARCHAR(255), - APPLICATION_VERSION VARCHAR(255), - WORKFLOW_TEMPLATE_ID VARCHAR(255), - WORKFLOW_TEMPLATE_VERSION VARCHAR(255), - WORKFLOW_EXECUTION_ID VARCHAR(255), - ALLOW_NOTIFICATION SMALLINT, - GATEWAY_EXECUTION_ID VARCHAR(255), - PRIMARY KEY(EXPERIMENT_ID), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (EXECUTION_USER) REFERENCES USERS(USER_NAME) ON DELETE CASCADE, - FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT_INPUT -( - EXPERIMENT_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - VALUE CLOB, - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(EXPERIMENT_ID,INPUT_KEY), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT_OUTPUT -( - EXPERIMENT_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE CLOB, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(EXPERIMENT_ID,OUTPUT_KEY), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - - -CREATE TABLE WORKFLOW_NODE_DETAIL -( - EXPERIMENT_ID VARCHAR(255) NOT NULL, - NODE_INSTANCE_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - NODE_NAME VARCHAR(255) NOT NULL, - EXECUTION_UNIT VARCHAR(255) NOT NULL, - EXECUTION_UNIT_DATA VARCHAR(255), - PRIMARY KEY(NODE_INSTANCE_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE TASK_DETAIL -( - TASK_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - APPLICATION_ID VARCHAR(255), - APPLICATION_VERSION VARCHAR(255), - APPLICATION_DEPLOYMENT_ID VARCHAR(255), - ALLOW_NOTIFICATION SMALLINT, - PRIMARY KEY(TASK_ID), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE NOTIFICATION_EMAIL -( - EMAIL_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - EMAIL_ADDRESS VARCHAR(255), - PRIMARY KEY(EMAIL_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ERROR_DETAIL -( - ERROR_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - JOB_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - ACTUAL_ERROR_MESSAGE CLOB, - USER_FRIEDNLY_ERROR_MSG VARCHAR(255), - TRANSIENT_OR_PERSISTENT SMALLINT, - ERROR_CATEGORY VARCHAR(255), - CORRECTIVE_ACTION VARCHAR(255), - ACTIONABLE_GROUP VARCHAR(255), - PRIMARY KEY(ERROR_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_INPUT -( - TASK_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - VALUE CLOB, - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(TASK_ID,INPUT_KEY), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_OUTPUT -( - TASK_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE CLOB, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(TASK_ID,OUTPUT_KEY), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE NODE_INPUT -( - NODE_INSTANCE_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - VALUE VARCHAR(255), - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(NODE_INSTANCE_ID,INPUT_KEY), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE NODE_OUTPUT -( - NODE_INSTANCE_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE VARCHAR(255), - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(NODE_INSTANCE_ID,OUTPUT_KEY), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE JOB_DETAIL -( - JOB_ID VARCHAR(255), - TASK_ID VARCHAR(255), - JOB_DESCRIPTION CLOB NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - COMPUTE_RESOURCE_CONSUMED VARCHAR(255), - JOBNAME VARCHAR (255), - WORKING_DIR VARCHAR(255), - PRIMARY KEY (TASK_ID, JOB_ID), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE DATA_TRANSFER_DETAIL -( - TRANSFER_ID VARCHAR(255), - TASK_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - TRANSFER_DESC VARCHAR(255) NOT NULL, - PRIMARY KEY(TRANSFER_ID), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE STATUS -( - STATUS_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - TRANSFER_ID VARCHAR(255), - TASK_ID VARCHAR(255), - JOB_ID VARCHAR(255), - STATE VARCHAR(255), - STATUS_UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - STATUS_TYPE VARCHAR(255), - PRIMARY KEY(STATUS_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE, - FOREIGN KEY (TRANSFER_ID) REFERENCES DATA_TRANSFER_DETAIL(TRANSFER_ID) ON DELETE CASCADE -); - -CREATE TABLE CONFIG_DATA -( - EXPERIMENT_ID VARCHAR(255), - AIRAVATA_AUTO_SCHEDULE SMALLINT NOT NULL, - OVERRIDE_MANUAL_SCHEDULE_PARAMS SMALLINT NOT NULL, - SHARE_EXPERIMENT SMALLINT, - USER_DN VARCHAR(255), - GENERATE_CERT SMALLINT, - PRIMARY KEY(EXPERIMENT_ID) -); - -CREATE TABLE COMPUTATIONAL_RESOURCE_SCHEDULING -( - RESOURCE_SCHEDULING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - RESOURCE_HOST_ID VARCHAR(255), - CPU_COUNT INTEGER, - NODE_COUNT INTEGER, - NO_OF_THREADS INTEGER, - QUEUE_NAME VARCHAR(255), - WALLTIME_LIMIT INTEGER, - JOB_START_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - TOTAL_PHYSICAL_MEMORY INTEGER, - COMPUTATIONAL_PROJECT_ACCOUNT VARCHAR(255), - CHESSIS_NAME VARCHAR(255), - PRIMARY KEY(RESOURCE_SCHEDULING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ADVANCE_INPUT_DATA_HANDLING -( - INPUT_DATA_HANDLING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - WORKING_DIR_PARENT VARCHAR(255), - UNIQUE_WORKING_DIR VARCHAR(255), - STAGE_INPUT_FILES_TO_WORKING_DIR SMALLINT, - CLEAN_AFTER_JOB SMALLINT, - PRIMARY KEY(INPUT_DATA_HANDLING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ADVANCE_OUTPUT_DATA_HANDLING -( - OUTPUT_DATA_HANDLING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - OUTPUT_DATA_DIR VARCHAR(255), - DATA_REG_URL VARCHAR (255), - PERSIST_OUTPUT_DATA SMALLINT, - PRIMARY KEY(OUTPUT_DATA_HANDLING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE QOS_PARAM -( - QOS_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - START_EXECUTION_AT VARCHAR(255), - EXECUTE_BEFORE VARCHAR(255), - NO_OF_RETRIES INTEGER, - PRIMARY KEY(QOS_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE COMMUNITY_USER -( - GATEWAY_ID VARCHAR(256) NOT NULL, - COMMUNITY_USER_NAME VARCHAR(256) NOT NULL, - TOKEN_ID VARCHAR(256) NOT NULL, - COMMUNITY_USER_EMAIL VARCHAR(256) NOT NULL, - PRIMARY KEY (GATEWAY_ID, COMMUNITY_USER_NAME, TOKEN_ID) -); - -CREATE TABLE CREDENTIALS -( - GATEWAY_ID VARCHAR(256) NOT NULL, - TOKEN_ID VARCHAR(256) NOT NULL, - CREDENTIAL BLOB NOT NULL, - PORTAL_USER_ID VARCHAR(256) NOT NULL, - TIME_PERSISTED TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (GATEWAY_ID, TOKEN_ID) -); - - diff --git a/airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql b/airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql deleted file mode 100644 index 14d7fc8fa3..0000000000 --- a/airavata-api/airavata-api-server/src/main/resources/registry-mysql.sql +++ /dev/null @@ -1,392 +0,0 @@ -/* - * - * 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. - * - */ -CREATE TABLE GATEWAY -( - GATEWAY_ID VARCHAR(255), - GATEWAY_NAME VARCHAR(255), - DOMAIN VARCHAR(255), - EMAIL_ADDRESS VARCHAR(255), - PRIMARY KEY (GATEWAY_ID) -); - -CREATE TABLE CONFIGURATION -( - CONFIG_KEY VARCHAR(255), - CONFIG_VAL VARCHAR(255), - EXPIRE_DATE TIMESTAMP DEFAULT '0000-00-00 00:00:00', - CATEGORY_ID VARCHAR (255), - PRIMARY KEY(CONFIG_KEY, CONFIG_VAL, CATEGORY_ID) -); - -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.15', CURRENT_TIMESTAMP ,'SYSTEM'); - -CREATE TABLE USERS -( - USER_NAME VARCHAR(255), - PASSWORD VARCHAR(255), - PRIMARY KEY(USER_NAME) -); - -CREATE TABLE GATEWAY_WORKER -( - GATEWAY_ID VARCHAR(255), - USER_NAME VARCHAR(255), - PRIMARY KEY (GATEWAY_ID, USER_NAME), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE PROJECT -( - GATEWAY_ID VARCHAR(255), - USER_NAME VARCHAR(255), - PROJECT_NAME VARCHAR(255) NOT NULL, - PROJECT_ID VARCHAR(255), - DESCRIPTION VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT NOW(), - PRIMARY KEY (PROJECT_ID), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE PROJECT_USER -( - PROJECT_ID VARCHAR(255), - USER_NAME VARCHAR(255), - PRIMARY KEY (PROJECT_ID,USER_NAME), - FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT -( - EXPERIMENT_ID VARCHAR(255), - GATEWAY_ID VARCHAR(255), - EXECUTION_USER VARCHAR(255) NOT NULL, - PROJECT_ID VARCHAR(255) NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT NOW(), - EXPERIMENT_NAME VARCHAR(255) NOT NULL, - EXPERIMENT_DESCRIPTION VARCHAR(255), - APPLICATION_ID VARCHAR(255), - APPLICATION_VERSION VARCHAR(255), - WORKFLOW_TEMPLATE_ID VARCHAR(255), - WORKFLOW_TEMPLATE_VERSION VARCHAR(255), - WORKFLOW_EXECUTION_ID VARCHAR(255), - ALLOW_NOTIFICATION SMALLINT, - GATEWAY_EXECUTION_ID VARCHAR(255), - PRIMARY KEY(EXPERIMENT_ID), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (EXECUTION_USER) REFERENCES USERS(USER_NAME) ON DELETE CASCADE, - FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT_INPUT -( - EXPERIMENT_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - METADATA VARCHAR(255), - VALUE LONGTEXT, - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(EXPERIMENT_ID,INPUT_KEY), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT_OUTPUT -( - EXPERIMENT_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE LONGTEXT, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(EXPERIMENT_ID,OUTPUT_KEY), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE WORKFLOW_NODE_DETAIL -( - EXPERIMENT_ID VARCHAR(255) NOT NULL, - NODE_INSTANCE_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT NOW(), - NODE_NAME VARCHAR(255) NOT NULL, - EXECUTION_UNIT VARCHAR(255) NOT NULL, - EXECUTION_UNIT_DATA VARCHAR(255), - PRIMARY KEY(NODE_INSTANCE_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE TASK_DETAIL -( - TASK_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT NOW(), - APPLICATION_ID VARCHAR(255), - APPLICATION_VERSION VARCHAR(255), - APPLICATION_DEPLOYMENT_ID VARCHAR(255), - ALLOW_NOTIFICATION SMALLINT, - PRIMARY KEY(TASK_ID), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE NOTIFICATION_EMAIL -( - EMAIL_ID INTEGER NOT NULL AUTO_INCREMENT, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - EMAIL_ADDRESS VARCHAR(255), - PRIMARY KEY(EMAIL_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_INPUT -( - TASK_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - METADATA VARCHAR(255), - VALUE LONGTEXT, - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(TASK_ID,INPUT_KEY), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_OUTPUT -( - TASK_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE LONGTEXT, - DATA_MOVEMENT SMALLINT, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(TASK_ID,OUTPUT_KEY), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE NODE_INPUT -( - NODE_INSTANCE_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - METADATA VARCHAR(255), - VALUE VARCHAR(255), - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(NODE_INSTANCE_ID,INPUT_KEY), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE NODE_OUTPUT -( - NODE_INSTANCE_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE VARCHAR(255), - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(NODE_INSTANCE_ID,OUTPUT_KEY), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE JOB_DETAIL -( - JOB_ID VARCHAR(255), - TASK_ID VARCHAR(255), - JOB_DESCRIPTION LONGTEXT NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT NOW(), - COMPUTE_RESOURCE_CONSUMED VARCHAR(255), - JOBNAME VARCHAR (255), - WORKING_DIR VARCHAR(255), - PRIMARY KEY (TASK_ID, JOB_ID), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE DATA_TRANSFER_DETAIL -( - TRANSFER_ID VARCHAR(255), - TASK_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT NOW(), - TRANSFER_DESC VARCHAR(255) NOT NULL, - PRIMARY KEY(TRANSFER_ID), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ERROR_DETAIL -( - ERROR_ID INTEGER NOT NULL AUTO_INCREMENT, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - JOB_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT NOW(), - ACTUAL_ERROR_MESSAGE LONGTEXT, - USER_FRIEDNLY_ERROR_MSG VARCHAR(255), - TRANSIENT_OR_PERSISTENT SMALLINT, - ERROR_CATEGORY VARCHAR(255), - CORRECTIVE_ACTION VARCHAR(255), - ACTIONABLE_GROUP VARCHAR(255), - PRIMARY KEY(ERROR_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE STATUS -( - STATUS_ID INTEGER NOT NULL AUTO_INCREMENT, - EXPERIMENT_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - TRANSFER_ID VARCHAR(255), - TASK_ID VARCHAR(255), - JOB_ID VARCHAR(255), - STATE VARCHAR(255), - STATUS_UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00' ON UPDATE now(), - STATUS_TYPE VARCHAR(255), - PRIMARY KEY(STATUS_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE, - FOREIGN KEY (TRANSFER_ID) REFERENCES DATA_TRANSFER_DETAIL(TRANSFER_ID) ON DELETE CASCADE -); - -CREATE TABLE CONFIG_DATA -( - EXPERIMENT_ID VARCHAR(255), - AIRAVATA_AUTO_SCHEDULE SMALLINT NOT NULL, - OVERRIDE_MANUAL_SCHEDULE_PARAMS SMALLINT NOT NULL, - SHARE_EXPERIMENT SMALLINT, - USER_DN VARCHAR(255), - GENERATE_CERT SMALLINT, - PRIMARY KEY(EXPERIMENT_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE - -); - -CREATE TABLE COMPUTATIONAL_RESOURCE_SCHEDULING -( - RESOURCE_SCHEDULING_ID INTEGER NOT NULL AUTO_INCREMENT, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - RESOURCE_HOST_ID VARCHAR(255), - CPU_COUNT INTEGER, - NODE_COUNT INTEGER, - NO_OF_THREADS INTEGER, - QUEUE_NAME VARCHAR(255), - WALLTIME_LIMIT INTEGER, - JOB_START_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - TOTAL_PHYSICAL_MEMORY INTEGER, - COMPUTATIONAL_PROJECT_ACCOUNT VARCHAR(255), - CHESSIS_NAME VARCHAR(255), - PRIMARY KEY(RESOURCE_SCHEDULING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ADVANCE_INPUT_DATA_HANDLING -( - INPUT_DATA_HANDLING_ID INTEGER NOT NULL AUTO_INCREMENT, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - WORKING_DIR_PARENT VARCHAR(255), - UNIQUE_WORKING_DIR VARCHAR(255), - STAGE_INPUT_FILES_TO_WORKING_DIR SMALLINT, - CLEAN_AFTER_JOB SMALLINT, - PRIMARY KEY(INPUT_DATA_HANDLING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ADVANCE_OUTPUT_DATA_HANDLING -( - OUTPUT_DATA_HANDLING_ID INTEGER NOT NULL AUTO_INCREMENT, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - OUTPUT_DATA_DIR VARCHAR(255), - DATA_REG_URL VARCHAR (255), - PERSIST_OUTPUT_DATA SMALLINT, - PRIMARY KEY(OUTPUT_DATA_HANDLING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE QOS_PARAM -( - QOS_ID INTEGER NOT NULL AUTO_INCREMENT, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - START_EXECUTION_AT VARCHAR(255), - EXECUTE_BEFORE VARCHAR(255), - NO_OF_RETRIES INTEGER, - PRIMARY KEY(QOS_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE COMMUNITY_USER -( - GATEWAY_ID VARCHAR(256) NOT NULL, - COMMUNITY_USER_NAME VARCHAR(256) NOT NULL, - TOKEN_ID VARCHAR(256) NOT NULL, - COMMUNITY_USER_EMAIL VARCHAR(256) NOT NULL, - PRIMARY KEY (GATEWAY_ID, COMMUNITY_USER_NAME, TOKEN_ID) -); - -CREATE TABLE CREDENTIALS -( - GATEWAY_ID VARCHAR(256) NOT NULL, - TOKEN_ID VARCHAR(256) NOT NULL, - CREDENTIAL BLOB NOT NULL, - PORTAL_USER_ID VARCHAR(256) NOT NULL, - TIME_PERSISTED TIMESTAMP DEFAULT NOW() ON UPDATE NOW(), - PRIMARY KEY (GATEWAY_ID, TOKEN_ID) -); - -