Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D4FB1093F for ; Tue, 1 Jul 2014 10:25:35 +0000 (UTC) Received: (qmail 46145 invoked by uid 500); 1 Jul 2014 10:25:35 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 46063 invoked by uid 500); 1 Jul 2014 10:25:35 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 45870 invoked by uid 99); 1 Jul 2014 10:25:35 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 10:25:35 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E926F990CFE; Tue, 1 Jul 2014 10:25:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: smarru@apache.org To: commits@airavata.apache.org Date: Tue, 01 Jul 2014 10:25:38 -0000 Message-Id: <3917322a35c1448f9473bd79608d789f@git.apache.org> In-Reply-To: <485e20a10b7a4d4c8d34c620fe7f495d@git.apache.org> References: <485e20a10b7a4d4c8d34c620fe7f495d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [5/6] Pointing libs to airavata SDK - AIRAVATA-1274 http://git-wip-us.apache.org/repos/asf/airavata/blob/01f648a5/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java ---------------------------------------------------------------------- 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 3698fec..ab7ab2a 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 @@ -423,6 +423,70 @@ import org.slf4j.LoggerFactory; */ public void terminateExperiment(String airavataExperimentId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.ExperimentNotFoundException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + /** + * 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. + * + * + * + * @param applicationModule + */ + public String registerAppicationModule(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + + /** + * Fetch a Application Module. + * + * @param appModuleId + * The identifier for the requested application module + * + * @return applicationModule + * Returns a application Module Object. + * + * + * + * @param appModuleId + */ + public org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule getAppicationModule(String appModuleId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + + /** + * Update a Application Module. + * + * @param appModuleId + * The identifier for the requested application module to be updated. + * + * @param applicationModule + * Application Module Object created from the datamodel. + * + * @return status + * Returns a success/failure of the update. + * + * + * + * @param appModuleId + * @param applicationModule + */ + public boolean updateAppicationModule(String appModuleId, org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + + /** + * 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. + * + * + * + * @param appModuleId + */ + public boolean deleteAppicationModule(String appModuleId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + } public interface AsyncIface { @@ -475,6 +539,14 @@ import org.slf4j.LoggerFactory; public void terminateExperiment(String airavataExperimentId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void registerAppicationModule(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void getAppicationModule(String appModuleId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void updateAppicationModule(String appModuleId, org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void deleteAppicationModule(String appModuleId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } public static class Client extends org.apache.thrift.TServiceClient implements Iface { @@ -1254,6 +1326,135 @@ import org.slf4j.LoggerFactory; return; } + public String registerAppicationModule(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_registerAppicationModule(applicationModule); + return recv_registerAppicationModule(); + } + + public void send_registerAppicationModule(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule) throws org.apache.thrift.TException + { + registerAppicationModule_args args = new registerAppicationModule_args(); + args.setApplicationModule(applicationModule); + sendBase("registerAppicationModule", args); + } + + public String recv_registerAppicationModule() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + registerAppicationModule_result result = new registerAppicationModule_result(); + receiveBase(result, "registerAppicationModule"); + 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, "registerAppicationModule failed: unknown result"); + } + + public org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule getAppicationModule(String appModuleId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_getAppicationModule(appModuleId); + return recv_getAppicationModule(); + } + + public void send_getAppicationModule(String appModuleId) throws org.apache.thrift.TException + { + getAppicationModule_args args = new getAppicationModule_args(); + args.setAppModuleId(appModuleId); + sendBase("getAppicationModule", args); + } + + public org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule recv_getAppicationModule() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + getAppicationModule_result result = new getAppicationModule_result(); + receiveBase(result, "getAppicationModule"); + 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, "getAppicationModule failed: unknown result"); + } + + public boolean updateAppicationModule(String appModuleId, org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_updateAppicationModule(appModuleId, applicationModule); + return recv_updateAppicationModule(); + } + + public void send_updateAppicationModule(String appModuleId, org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule) throws org.apache.thrift.TException + { + updateAppicationModule_args args = new updateAppicationModule_args(); + args.setAppModuleId(appModuleId); + args.setApplicationModule(applicationModule); + sendBase("updateAppicationModule", args); + } + + public boolean recv_updateAppicationModule() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + updateAppicationModule_result result = new updateAppicationModule_result(); + receiveBase(result, "updateAppicationModule"); + 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, "updateAppicationModule failed: unknown result"); + } + + public boolean deleteAppicationModule(String appModuleId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + send_deleteAppicationModule(appModuleId); + return recv_deleteAppicationModule(); + } + + public void send_deleteAppicationModule(String appModuleId) throws org.apache.thrift.TException + { + deleteAppicationModule_args args = new deleteAppicationModule_args(); + args.setAppModuleId(appModuleId); + sendBase("deleteAppicationModule", args); + } + + public boolean recv_deleteAppicationModule() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + { + deleteAppicationModule_result result = new deleteAppicationModule_result(); + receiveBase(result, "deleteAppicationModule"); + 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, "deleteAppicationModule failed: unknown result"); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -2070,6 +2271,137 @@ import org.slf4j.LoggerFactory; } } + public void registerAppicationModule(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + registerAppicationModule_call method_call = new registerAppicationModule_call(applicationModule, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class registerAppicationModule_call extends org.apache.thrift.async.TAsyncMethodCall { + private org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule; + public registerAppicationModule_call(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule, 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.applicationModule = applicationModule; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("registerAppicationModule", org.apache.thrift.protocol.TMessageType.CALL, 0)); + registerAppicationModule_args args = new registerAppicationModule_args(); + args.setApplicationModule(applicationModule); + args.write(prot); + prot.writeMessageEnd(); + } + + public String 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_registerAppicationModule(); + } + } + + public void getAppicationModule(String appModuleId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getAppicationModule_call method_call = new getAppicationModule_call(appModuleId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getAppicationModule_call extends org.apache.thrift.async.TAsyncMethodCall { + private String appModuleId; + public getAppicationModule_call(String appModuleId, 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.appModuleId = appModuleId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAppicationModule", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getAppicationModule_args args = new getAppicationModule_args(); + args.setAppModuleId(appModuleId); + args.write(prot); + prot.writeMessageEnd(); + } + + public org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule 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_getAppicationModule(); + } + } + + public void updateAppicationModule(String appModuleId, org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + updateAppicationModule_call method_call = new updateAppicationModule_call(appModuleId, applicationModule, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class updateAppicationModule_call extends org.apache.thrift.async.TAsyncMethodCall { + private String appModuleId; + private org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule; + public updateAppicationModule_call(String appModuleId, org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule applicationModule, 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.appModuleId = appModuleId; + this.applicationModule = applicationModule; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAppicationModule", org.apache.thrift.protocol.TMessageType.CALL, 0)); + updateAppicationModule_args args = new updateAppicationModule_args(); + args.setAppModuleId(appModuleId); + args.setApplicationModule(applicationModule); + args.write(prot); + prot.writeMessageEnd(); + } + + public boolean 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_updateAppicationModule(); + } + } + + public void deleteAppicationModule(String appModuleId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + deleteAppicationModule_call method_call = new deleteAppicationModule_call(appModuleId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class deleteAppicationModule_call extends org.apache.thrift.async.TAsyncMethodCall { + private String appModuleId; + public deleteAppicationModule_call(String appModuleId, 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.appModuleId = appModuleId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAppicationModule", org.apache.thrift.protocol.TMessageType.CALL, 0)); + deleteAppicationModule_args args = new deleteAppicationModule_args(); + args.setAppModuleId(appModuleId); + args.write(prot); + prot.writeMessageEnd(); + } + + public boolean 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_deleteAppicationModule(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -2107,6 +2439,10 @@ import org.slf4j.LoggerFactory; processMap.put("getJobStatuses", new getJobStatuses()); processMap.put("cloneExperiment", new cloneExperiment()); processMap.put("terminateExperiment", new terminateExperiment()); + processMap.put("registerAppicationModule", new registerAppicationModule()); + processMap.put("getAppicationModule", new getAppicationModule()); + processMap.put("updateAppicationModule", new updateAppicationModule()); + processMap.put("deleteAppicationModule", new deleteAppicationModule()); return processMap; } @@ -2773,58 +3109,176 @@ import org.slf4j.LoggerFactory; } } - } - - public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); - } - - protected AsyncProcessor(I iface, Map> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static Map> getProcessMap(Map> processMap) { - processMap.put("getAPIVersion", new getAPIVersion()); - processMap.put("createProject", new createProject()); - processMap.put("updateProject", new updateProject()); - processMap.put("getProject", new getProject()); - processMap.put("getAllUserProjects", new getAllUserProjects()); - processMap.put("searchProjectsByProjectName", new searchProjectsByProjectName()); - processMap.put("searchProjectsByProjectDesc", new searchProjectsByProjectDesc()); - processMap.put("searchExperimentsByName", new searchExperimentsByName()); - processMap.put("searchExperimentsByDesc", new searchExperimentsByDesc()); - processMap.put("searchExperimentsByApplication", new searchExperimentsByApplication()); - processMap.put("getAllExperimentsInProject", new getAllExperimentsInProject()); - processMap.put("getAllUserExperiments", new getAllUserExperiments()); - processMap.put("createExperiment", new createExperiment()); - processMap.put("getExperiment", new getExperiment()); - processMap.put("updateExperiment", new updateExperiment()); - processMap.put("updateExperimentConfiguration", new updateExperimentConfiguration()); - processMap.put("updateResourceScheduleing", new updateResourceScheduleing()); - processMap.put("validateExperiment", new validateExperiment()); - processMap.put("launchExperiment", new launchExperiment()); - processMap.put("getExperimentStatus", new getExperimentStatus()); - processMap.put("getExperimentOutputs", new getExperimentOutputs()); - processMap.put("getJobStatuses", new getJobStatuses()); - processMap.put("cloneExperiment", new cloneExperiment()); - processMap.put("terminateExperiment", new terminateExperiment()); - return processMap; - } + public static class registerAppicationModule extends org.apache.thrift.ProcessFunction { + public registerAppicationModule() { + super("registerAppicationModule"); + } - public static class getAPIVersion extends org.apache.thrift.AsyncProcessFunction { - public getAPIVersion() { - super("getAPIVersion"); + public registerAppicationModule_args getEmptyArgsInstance() { + return new registerAppicationModule_args(); } - public getAPIVersion_args getEmptyArgsInstance() { - return new getAPIVersion_args(); + protected boolean isOneway() { + return false; } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + public registerAppicationModule_result getResult(I iface, registerAppicationModule_args args) throws org.apache.thrift.TException { + registerAppicationModule_result result = new registerAppicationModule_result(); + try { + result.success = iface.registerAppicationModule(args.applicationModule); + } 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 getAppicationModule extends org.apache.thrift.ProcessFunction { + public getAppicationModule() { + super("getAppicationModule"); + } + + public getAppicationModule_args getEmptyArgsInstance() { + return new getAppicationModule_args(); + } + + protected boolean isOneway() { + return false; + } + + public getAppicationModule_result getResult(I iface, getAppicationModule_args args) throws org.apache.thrift.TException { + getAppicationModule_result result = new getAppicationModule_result(); + try { + result.success = iface.getAppicationModule(args.appModuleId); + } 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 updateAppicationModule extends org.apache.thrift.ProcessFunction { + public updateAppicationModule() { + super("updateAppicationModule"); + } + + public updateAppicationModule_args getEmptyArgsInstance() { + return new updateAppicationModule_args(); + } + + protected boolean isOneway() { + return false; + } + + public updateAppicationModule_result getResult(I iface, updateAppicationModule_args args) throws org.apache.thrift.TException { + updateAppicationModule_result result = new updateAppicationModule_result(); + try { + result.success = iface.updateAppicationModule(args.appModuleId, args.applicationModule); + result.setSuccessIsSet(true); + } 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 deleteAppicationModule extends org.apache.thrift.ProcessFunction { + public deleteAppicationModule() { + super("deleteAppicationModule"); + } + + public deleteAppicationModule_args getEmptyArgsInstance() { + return new deleteAppicationModule_args(); + } + + protected boolean isOneway() { + return false; + } + + public deleteAppicationModule_result getResult(I iface, deleteAppicationModule_args args) throws org.apache.thrift.TException { + deleteAppicationModule_result result = new deleteAppicationModule_result(); + try { + result.success = iface.deleteAppicationModule(args.appModuleId); + result.setSuccessIsSet(true); + } 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 AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { + private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + public AsyncProcessor(I iface) { + super(iface, getProcessMap(new HashMap>())); + } + + protected AsyncProcessor(I iface, Map> processMap) { + super(iface, getProcessMap(processMap)); + } + + private static Map> getProcessMap(Map> processMap) { + processMap.put("getAPIVersion", new getAPIVersion()); + processMap.put("createProject", new createProject()); + processMap.put("updateProject", new updateProject()); + processMap.put("getProject", new getProject()); + processMap.put("getAllUserProjects", new getAllUserProjects()); + processMap.put("searchProjectsByProjectName", new searchProjectsByProjectName()); + processMap.put("searchProjectsByProjectDesc", new searchProjectsByProjectDesc()); + processMap.put("searchExperimentsByName", new searchExperimentsByName()); + processMap.put("searchExperimentsByDesc", new searchExperimentsByDesc()); + processMap.put("searchExperimentsByApplication", new searchExperimentsByApplication()); + processMap.put("getAllExperimentsInProject", new getAllExperimentsInProject()); + processMap.put("getAllUserExperiments", new getAllUserExperiments()); + processMap.put("createExperiment", new createExperiment()); + processMap.put("getExperiment", new getExperiment()); + processMap.put("updateExperiment", new updateExperiment()); + processMap.put("updateExperimentConfiguration", new updateExperimentConfiguration()); + processMap.put("updateResourceScheduleing", new updateResourceScheduleing()); + processMap.put("validateExperiment", new validateExperiment()); + processMap.put("launchExperiment", new launchExperiment()); + processMap.put("getExperimentStatus", new getExperimentStatus()); + processMap.put("getExperimentOutputs", new getExperimentOutputs()); + processMap.put("getJobStatuses", new getJobStatuses()); + processMap.put("cloneExperiment", new cloneExperiment()); + processMap.put("terminateExperiment", new terminateExperiment()); + processMap.put("registerAppicationModule", new registerAppicationModule()); + processMap.put("getAppicationModule", new getAppicationModule()); + processMap.put("updateAppicationModule", new updateAppicationModule()); + processMap.put("deleteAppicationModule", new deleteAppicationModule()); + return processMap; + } + + public static class getAPIVersion extends org.apache.thrift.AsyncProcessFunction { + public getAPIVersion() { + super("getAPIVersion"); + } + + public getAPIVersion_args getEmptyArgsInstance() { + return new getAPIVersion_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) { getAPIVersion_result result = new getAPIVersion_result(); result.success = o; @@ -4407,105 +4861,4571 @@ import org.slf4j.LoggerFactory; } } - } - - public static class getAPIVersion_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("getAPIVersion_args"); - - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getAPIVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAPIVersion_argsTupleSchemeFactory()); - } - - - /** 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 { -; - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } + public static class registerAppicationModule extends org.apache.thrift.AsyncProcessFunction { + public registerAppicationModule() { + super("registerAppicationModule"); } - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - default: - return null; - } + public registerAppicationModule_args getEmptyArgsInstance() { + return new registerAppicationModule_args(); } - /** - * 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; + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerAppicationModule_result result = new registerAppicationModule_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; + registerAppicationModule_result result = new registerAppicationModule_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(); + } + }; } - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); + protected boolean isOneway() { + return false; } - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; + public void start(I iface, registerAppicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerAppicationModule(args.applicationModule,resultHandler); } + } - public short getThriftFieldId() { - return _thriftId; + public static class getAppicationModule extends org.apache.thrift.AsyncProcessFunction { + public getAppicationModule() { + super("getAppicationModule"); } - public String getFieldName() { - return _fieldName; + public getAppicationModule_args getEmptyArgsInstance() { + return new getAppicationModule_args(); } - } - 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); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAPIVersion_args.class, metaDataMap); - } - - public getAPIVersion_args() { - } - - /** - * Performs a deep copy on other. - */ - public getAPIVersion_args(getAPIVersion_args other) { - } - - public getAPIVersion_args deepCopy() { - return new getAPIVersion_args(this); - } - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } + 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) { + getAppicationModule_result result = new getAppicationModule_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; + getAppicationModule_result result = new getAppicationModule_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, getAppicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getAppicationModule(args.appModuleId,resultHandler); + } + } + + public static class updateAppicationModule extends org.apache.thrift.AsyncProcessFunction { + public updateAppicationModule() { + super("updateAppicationModule"); + } + + public updateAppicationModule_args getEmptyArgsInstance() { + return new updateAppicationModule_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) { + updateAppicationModule_result result = new updateAppicationModule_result(); + result.success = o; + result.setSuccessIsSet(true); + 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; + updateAppicationModule_result result = new updateAppicationModule_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, updateAppicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateAppicationModule(args.appModuleId, args.applicationModule,resultHandler); + } + } + + public static class deleteAppicationModule extends org.apache.thrift.AsyncProcessFunction { + public deleteAppicationModule() { + super("deleteAppicationModule"); + } + + public deleteAppicationModule_args getEmptyArgsInstance() { + return new deleteAppicationModule_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) { + deleteAppicationModule_result result = new deleteAppicationModule_result(); + result.success = o; + result.setSuccessIsSet(true); + 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; + deleteAppicationModule_result result = new deleteAppicationModule_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, deleteAppicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteAppicationModule(args.appModuleId,resultHandler); + } + } + + } + + public static class getAPIVersion_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("getAPIVersion_args"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getAPIVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAPIVersion_argsTupleSchemeFactory()); + } + + + /** 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 { +; + + 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) { + 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; + } + } + 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); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAPIVersion_args.class, metaDataMap); + } + + public getAPIVersion_args() { + } + + /** + * Performs a deep copy on other. + */ + public getAPIVersion_args(getAPIVersion_args other) { + } + + public getAPIVersion_args deepCopy() { + return new getAPIVersion_args(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + 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) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getAPIVersion_args) + return this.equals((getAPIVersion_args)that); + return false; + } + + public boolean equals(getAPIVersion_args that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getAPIVersion_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + 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("getAPIVersion_args("); + boolean first = true; + + 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 getAPIVersion_argsStandardSchemeFactory implements SchemeFactory { + public getAPIVersion_argsStandardScheme getScheme() { + return new getAPIVersion_argsStandardScheme(); + } + } + + private static class getAPIVersion_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAPIVersion_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) { + 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, getAPIVersion_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getAPIVersion_argsTupleSchemeFactory implements SchemeFactory { + public getAPIVersion_argsTupleScheme getScheme() { + return new getAPIVersion_argsTupleScheme(); + } + } + + private static class getAPIVersion_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getAPIVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getAPIVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + public static class getAPIVersion_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("getAPIVersion_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (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 getAPIVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAPIVersion_resultTupleSchemeFactory()); + } + + public String 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + 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(getAPIVersion_result.class, metaDataMap); + } + + public getAPIVersion_result() { + } + + public getAPIVersion_result( + String 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 getAPIVersion_result(getAPIVersion_result other) { + if (other.isSetSuccess()) { + this.success = other.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 getAPIVersion_result deepCopy() { + return new getAPIVersion_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ire = null; + this.ace = null; + this.ase = null; + } + + public String getSuccess() { + return this.success; + } + + public getAPIVersion_result setSuccess(String 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 getAPIVersion_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 getAPIVersion_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 getAPIVersion_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((String)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 getAPIVersion_result) + return this.equals((getAPIVersion_result)that); + return false; + } + + public boolean equals(getAPIVersion_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(getAPIVersion_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("getAPIVersion_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 getAPIVersion_resultStandardSchemeFactory implements SchemeFactory { + public getAPIVersion_resultStandardScheme getScheme() { + return new getAPIVersion_resultStandardScheme(); + } + } + + private static class getAPIVersion_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAPIVersion_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.STRING) { + struct.success = iprot.readString(); + 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, getAPIVersion_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeString(struct.success); + 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 getAPIVersion_resultTupleSchemeFactory implements SchemeFactory { + public getAPIVersion_resultTupleScheme getScheme() { + return new getAPIVersion_resultTupleScheme(); + } + } + + private static class getAPIVersion_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getAPIVersion_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.writeString(struct.success); + } + 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, getAPIVersion_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.success = iprot.readString(); + 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 createProject_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("createProject_args"); + + private static final org.apache.thrift.protocol.TField PROJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("project", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new createProject_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createProject_argsTupleSchemeFactory()); + } + + public org.apache.airavata.model.workspace.Project project; // 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((short)1, "project"); + + 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 + return PROJECT; + 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, new org.apache.thrift.meta_data.FieldMetaData("project", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Project.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createProject_args.class, metaDataMap); + } + + public createProject_args() { + } + + public createProject_args( + org.apache.airavata.model.workspace.Project project) + { + this(); + this.project = project; + } + + /** + * Performs a deep copy on other. + */ + public createProject_args(createProject_args other) { + if (other.isSetProject()) { + this.project = new org.apache.airavata.model.workspace.Project(other.project); + } + } + + public createProject_args deepCopy() { + return new createProject_args(this); + } + + @Override + public void clear() { + this.project = null; + } + + public org.apache.airavata.model.workspace.Project getProject() { + return this.project; + } + + public createProject_args setProject(org.apache.airavata.model.workspace.Project project) { + this.project = project; + return this; + } + + public void unsetProject() { + this.project = null; + } + + /** Returns true if field project is set (has been assigned a value) and false otherwise */ + public boolean isSetProject() { + return this.project != null; + } + + public void setProjectIsSet(boolean value) { + if (!value) { + this.project = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PROJECT: + if (value == null) { + unsetProject(); + } else { + setProject((org.apache.airavata.model.workspace.Project)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PROJECT: + return getProject(); + + } + 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: + return isSetProject(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof createProject_args) + return this.equals((createProject_args)that); + return false; + } + + public boolean equals(createProject_args that) { + if (that == null) + return false; + + boolean this_present_project = true && this.isSetProject(); + boolean that_present_project = true && that.isSetProject(); + if (this_present_project || that_present_project) { + if (!(this_present_project && that_present_project)) + return false; + if (!this.project.equals(that.project)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(createProject_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetProject()).compareTo(other.isSetProject()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProject()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.project, other.project); + 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("createProject_args("); + boolean first = true; + + sb.append("project:"); + if (this.project == null) { + sb.append("null"); + } else { + sb.append(this.project); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (project == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'project' was not present! Struct: " + toString()); + } + // check for sub-struct validity + if (project != null) { + project.validate(); + } + } + + 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 jav