You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sh...@apache.org on 2015/07/02 22:17:42 UTC
[1/2] airavata git commit: removed state transition validation metode
call
Repository: airavata
Updated Branches:
refs/heads/master aecf79475 -> 953feec6b
removed state transition validation metode call
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/48e23d9c
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/48e23d9c
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/48e23d9c
Branch: refs/heads/master
Commit: 48e23d9c94b896d1a5bbfefa51b77d702c203cb0
Parents: 525e9e4
Author: Shameera Rathanyaka <sh...@gmail.com>
Authored: Thu Jul 2 16:17:17 2015 -0400
Committer: Shameera Rathanyaka <sh...@gmail.com>
Committed: Thu Jul 2 16:17:17 2015 -0400
----------------------------------------------------------------------
.../experiment/catalog/impl/ExperimentRegistry.java | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/48e23d9c/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 fab1a99..c1463a2 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
@@ -207,15 +207,13 @@ public class ExperimentRegistry {
if (status == null) {
status = (ExperimentStatusResource) experiment.create(ResourceType.EXPERIMENT_STATUS);
}
- if (isValidStatusTransition(ExperimentState.valueOf(status.getState()), experimentStatus.getState())) {
- status.setStatusId(getStatusID(expId));
- status.setExperimentId(expId);
- status.setTimeOfStateChange(AiravataUtils.getTime(experimentStatus.getTimeOfStateChange()));
- status.setState(experimentStatus.getState().toString());
- status.setReason(experimentStatus.getReason());
- status.save();
- logger.debug(expId, "Added experiment {} status to {}.", expId, experimentStatus.toString());
- }
+ status.setStatusId(getStatusID(expId));
+ status.setExperimentId(expId);
+ status.setTimeOfStateChange(AiravataUtils.getTime(experimentStatus.getTimeOfStateChange()));
+ status.setState(experimentStatus.getState().toString());
+ status.setReason(experimentStatus.getReason());
+ status.save();
+ logger.debug(expId, "Added experiment {} status to {}.", expId, experimentStatus.toString());
} catch (Exception e) {
logger.error(expId, "Error while adding experiment status...", e);
throw new RegistryException(e);
[2/2] airavata git commit: Merge branch 'master' of
https://git-wip-us.apache.org/repos/asf/airavata
Posted by sh...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/airavata
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/953feec6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/953feec6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/953feec6
Branch: refs/heads/master
Commit: 953feec6bbbfcb2556ab207e1dbf93293e297b20
Parents: 48e23d9 aecf794
Author: Shameera Rathanyaka <sh...@gmail.com>
Authored: Thu Jul 2 16:17:31 2015 -0400
Committer: Shameera Rathanyaka <sh...@gmail.com>
Committed: Thu Jul 2 16:17:31 2015 -0400
----------------------------------------------------------------------
.../airavata/common/utils/ServerSettings.java | 5 --
.../main/resources/airavata-server.properties | 7 +-
.../apache/airavata/gfac/server/GfacServer.java | 1 -
.../airavata/gfac/server/GfacServerHandler.java | 8 +--
.../core/context/OrchestratorContext.java | 35 ++-------
.../core/model/ExperimentConfigurationData.java | 68 ------------------
.../core/model/ExperimentRequest.java | 61 ----------------
.../core/model/ResourceScheduling.java | 75 --------------------
.../core/utils/OrchestratorUtils.java | 12 ----
.../airavata/orchestrator/cpi/Orchestrator.java | 11 ---
.../cpi/impl/AbstractOrchestrator.java | 39 +---------
.../cpi/impl/SimpleOrchestratorImpl.java | 44 +-----------
.../src/main/resources/expcatalog-mysql.sql | 30 ++++----
13 files changed, 29 insertions(+), 367 deletions(-)
----------------------------------------------------------------------