airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [26/27] git commit: First draft for a simple mock api - AIRAVATA-1013
Date Mon, 10 Feb 2014 14:43:47 GMT
First draft for a simple mock api - AIRAVATA-1013


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

Branch: refs/heads/master
Commit: cf0d15df31e705a702641b0e44bda5bf16630f7b
Parents: fc927c6
Author: Suresh Marru <smarru@apache.org>
Authored: Mon Feb 10 09:36:06 2014 -0500
Committer: Suresh Marru <smarru@apache.org>
Committed: Mon Feb 10 09:36:06 2014 -0500

----------------------------------------------------------------------
 .../airavata/api/server/handler/MockAiravataServerHandler.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/cf0d15df/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/MockAiravataServerHandler.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/MockAiravataServerHandler.java
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/MockAiravataServerHandler.java
index b229dbc..b63b806 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/MockAiravataServerHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/MockAiravataServerHandler.java
@@ -31,6 +31,8 @@ import org.apache.airavata.model.experiment.BasicMetadata;
 import org.apache.airavata.model.experiment.ConfigurationData;
 import org.apache.thrift.TException;
 
+import java.util.UUID;
+
 public class MockAiravataServerHandler implements Airavata.Iface{
     /**
      * Query Airavata to fetch the API version
@@ -67,7 +69,8 @@ public class MockAiravataServerHandler implements Airavata.Iface{
      */
     @Override
     public String createExperiment(BasicMetadata basicExperimentMetadata) throws InvalidRequestException,
AiravataClientException, AiravataSystemException, TException {
-        return null;
+        //FIXME: this should be generated at the registry CPI level.
+        return UUID.randomUUID().toString();
     }
 
     /**


Mime
View raw message