airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata git commit: fixing getExperimentStatistics issue in registry
Date Sun, 30 Aug 2015 14:16:36 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 22d9b8293 -> 555b0adbf


fixing getExperimentStatistics issue in registry


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

Branch: refs/heads/master
Commit: 555b0adbfc9035d291eeb7d559a86038746724b8
Parents: 22d9b82
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Sun Aug 30 19:46:09 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Sun Aug 30 19:46:09 2015 +0530

----------------------------------------------------------------------
 .../experiment/catalog/impl/ExperimentRegistry.java   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/555b0adb/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
index 5030846..6d6864f 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
@@ -1300,6 +1300,8 @@ public class ExperimentRegistry {
             );
 
             experimentStatistics.setAllExperimentCount(experimentStatisticsResource.getAllExperimentCount());
+            experimentStatistics.setCreatedExperimentCount(experimentStatisticsResource.getCreatedExperimentCount());
+            experimentStatistics.setRunningExperimentCount(experimentStatisticsResource.getRunningExperimentCount());
             experimentStatistics.setCompletedExperimentCount(experimentStatisticsResource.getCompletedExperimentCount());
             experimentStatistics.setFailedExperimentCount(experimentStatisticsResource.getFailedExperimentCount());
             experimentStatistics.setCancelledExperimentCount(experimentStatisticsResource.getCancelledExperimentCount());
@@ -1311,6 +1313,18 @@ public class ExperimentRegistry {
             experimentStatistics.setAllExperiments(experimentSummaries);
 
             experimentSummaries = new ArrayList();
+            for (ExperimentSummaryResource ex : experimentStatisticsResource.getCreatedExperiments())
{
+                experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex));
+            }
+            experimentStatistics.setCreatedExperiments(experimentSummaries);
+
+            experimentSummaries = new ArrayList();
+            for (ExperimentSummaryResource ex : experimentStatisticsResource.getRunningExperiments())
{
+                experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex));
+            }
+            experimentStatistics.setRunningExperiments(experimentSummaries);
+
+            experimentSummaries = new ArrayList();
             for (ExperimentSummaryResource ex : experimentStatisticsResource.getCompletedExperiments())
{
                 experimentSummaries.add(ThriftDataModelConversion.getExperimentSummary(ex));
             }


Mime
View raw message