airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject [41/50] [abbrv] airavata git commit: OrchestratorSimpleClient- Replace DataObjectType with Input and Output DataObjectType
Date Tue, 11 Nov 2014 20:12:45 GMT
OrchestratorSimpleClient- Replace DataObjectType with Input and Output DataObjectType


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/82127c7b
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/82127c7b
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/82127c7b

Branch: refs/heads/master
Commit: 82127c7b3c0afd32fdec372b60a2ca747aa13b9e
Parents: a3351b7
Author: shamrath <shameerainfo@gmail.com>
Authored: Thu Nov 6 19:10:52 2014 -0500
Committer: shamrath <shameerainfo@gmail.com>
Committed: Thu Nov 6 19:10:52 2014 -0500

----------------------------------------------------------------------
 .../sample/OrchestratorClientSample.java        | 22 +++++++++++---------
 1 file changed, 12 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/82127c7b/modules/orchestrator/airavata-orchestrator-stubs/src/main/java/org/apache/airavata/orchestrator/sample/OrchestratorClientSample.java
----------------------------------------------------------------------
diff --git a/modules/orchestrator/airavata-orchestrator-stubs/src/main/java/org/apache/airavata/orchestrator/sample/OrchestratorClientSample.java
b/modules/orchestrator/airavata-orchestrator-stubs/src/main/java/org/apache/airavata/orchestrator/sample/OrchestratorClientSample.java
index c9c862f..009d110 100644
--- a/modules/orchestrator/airavata-orchestrator-stubs/src/main/java/org/apache/airavata/orchestrator/sample/OrchestratorClientSample.java
+++ b/modules/orchestrator/airavata-orchestrator-stubs/src/main/java/org/apache/airavata/orchestrator/sample/OrchestratorClientSample.java
@@ -25,18 +25,20 @@ package org.apache.airavata.orchestrator.sample;
 //import org.apache.airavata.client.api.AiravataAPI;
 //import org.apache.airavata.client.api.exception.AiravataAPIInvocationException;
 //import org.apache.airavata.client.tools.DocumentCreator;
-import java.util.ArrayList;
-import java.util.List;
 
+import org.apache.airavata.model.appcatalog.appinterface.DataType;
+import org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType;
+import org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType;
 import org.apache.airavata.model.util.ExperimentModelUtil;
 import org.apache.airavata.model.workspace.experiment.ComputationalResourceScheduling;
-import org.apache.airavata.model.workspace.experiment.DataObjectType;
-import org.apache.airavata.model.workspace.experiment.DataType;
 import org.apache.airavata.model.workspace.experiment.Experiment;
 import org.apache.airavata.model.workspace.experiment.UserConfigurationData;
 import org.apache.airavata.orchestrator.cpi.OrchestratorService;
 import org.apache.thrift.TException;
 
+import java.util.ArrayList;
+import java.util.List;
+
 public class OrchestratorClientSample {
 //    private static DocumentCreator documentCreator;
     private static OrchestratorService.Client orchestratorClient;
@@ -86,17 +88,17 @@ public class OrchestratorClientSample {
         for (int i = 0; i < NUM_CONCURRENT_REQUESTS; i++) {
             Thread thread = new Thread() {
                 public void run() {
-                    List<DataObjectType> exInputs = new ArrayList<DataObjectType>();
-                    DataObjectType input = new DataObjectType();
-                    input.setKey("echo_input");
+                    List<InputDataObjectType> exInputs = new ArrayList<InputDataObjectType>();
+                    InputDataObjectType input = new InputDataObjectType();
+                    input.setName("echo_input");
                     input.setType(DataType.STRING);
                     input.setValue("echo_output=Hello World");
                     exInputs.add(input);
 
 
-                    List<DataObjectType> exOut = new ArrayList<DataObjectType>();
-                    DataObjectType output = new DataObjectType();
-                    output.setKey("echo_output");
+                    List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>();
+                    OutputDataObjectType output = new OutputDataObjectType();
+                    output.setName("echo_output");
                     output.setType(DataType.STRING);
                     output.setValue("");
                     exOut.add(output);


Mime
View raw message