airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject [1/3] git commit: merging experiment resource changes
Date Thu, 20 Feb 2014 18:32:34 GMT
Repository: airavata
Updated Branches:
  refs/heads/master ed4713158 -> 59c77d353


merging experiment resource changes


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

Branch: refs/heads/master
Commit: 6cb5d825168627948806daeac827658546bebadb
Parents: a7baac5
Author: chathuri <chathuri@apache.org>
Authored: Thu Feb 20 13:00:57 2014 -0500
Committer: chathuri <chathuri@apache.org>
Committed: Thu Feb 20 13:00:57 2014 -0500

----------------------------------------------------------------------
 .../jpa/resources/ExperimentResource.java         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/6cb5d825/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentResource.java
----------------------------------------------------------------------
diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentResource.java
b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentResource.java
index 1e3273b..0273d0f 100644
--- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentResource.java
+++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentResource.java
@@ -480,6 +480,7 @@ public class ExperimentResource extends AbstractResource {
         experiment.setProject(projectmodel);
         experiment.setExpId(expID);
         experiment.setUser(user);
+        experiment.setExecutionUser(worker.getUser());
         experiment.setGateway(gateway);
         experiment.setCreationTime(creationTime);
         experiment.setExpName(expName);
@@ -493,6 +494,7 @@ public class ExperimentResource extends AbstractResource {
             existingExp.setGateway(gateway);
             existingExp.setProject(projectmodel);
             existingExp.setUser(user);
+            existingExp.setExecutionUser(worker.getUser());
             existingExp.setCreationTime(creationTime);
             existingExp.setExpName(expName);
             existingExp.setExpDesc(description);
@@ -625,4 +627,20 @@ public class ExperimentResource extends AbstractResource {
         }
         return errorDetailResources;
     }
+
+    public ComputationSchedulingResource getComputationScheduling (String expId){
+        return  (ComputationSchedulingResource)get(ResourceType.COMPUTATIONAL_RESOURCE_SCHEDULING,
expId);
+    }
+
+    public AdvanceInputDataHandlingResource getInputDataHandling (String expId){
+        return  (AdvanceInputDataHandlingResource)get(ResourceType.ADVANCE_INPUT_DATA_HANDLING,
expId);
+    }
+
+    public AdvancedOutputDataHandlingResource getOutputDataHandling (String expId){
+        return  (AdvancedOutputDataHandlingResource)get(ResourceType.ADVANCE_OUTPUT_DATA_HANDLING,
expId);
+    }
+
+    public QosParamResource getQOSparams (String expId){
+        return  (QosParamResource)get(ResourceType.QOS_PARAM, expId);
+    }
 }


Mime
View raw message