You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by is...@apache.org on 2014/10/30 13:16:05 UTC

git commit: enabling state transition from Terminating to Created in Cluster and Group Statuses

Repository: stratos
Updated Branches:
  refs/heads/4.0.0-grouping dcf4e24f2 -> 58f42cee3


enabling state transition from Terminating to Created in Cluster and Group Statuses


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

Branch: refs/heads/4.0.0-grouping
Commit: 58f42cee3f3fbc31c4f323553851f1769e9b3aab
Parents: dcf4e24
Author: Isuru Haththotuwa <is...@apache.org>
Authored: Thu Oct 30 17:45:43 2014 +0530
Committer: Isuru Haththotuwa <is...@apache.org>
Committed: Thu Oct 30 17:45:43 2014 +0530

----------------------------------------------------------------------
 .../apache/stratos/messaging/domain/topology/ClusterStatus.java    | 2 +-
 .../org/apache/stratos/messaging/domain/topology/GroupStatus.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/58f42cee/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/ClusterStatus.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/ClusterStatus.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/ClusterStatus.java
index afc0b30..b6b4a39 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/ClusterStatus.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/ClusterStatus.java
@@ -58,7 +58,7 @@ public enum ClusterStatus implements LifeCycleState {
         @Override
         public Set<LifeCycleState> getNextStates() {
             return new HashSet<LifeCycleState>(Arrays.asList(ClusterStatus.Terminating,
-                    ClusterStatus.Terminated));
+                    ClusterStatus.Terminated, ClusterStatus.Created));
         }
     },
     Terminated(5) {

http://git-wip-us.apache.org/repos/asf/stratos/blob/58f42cee/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/GroupStatus.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/GroupStatus.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/GroupStatus.java
index 42873be..fbbaebc 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/GroupStatus.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/GroupStatus.java
@@ -50,7 +50,7 @@ public enum GroupStatus implements LifeCycleState {
         @Override
         public Set<LifeCycleState> getNextStates() {
             return new HashSet<LifeCycleState>(Arrays.asList(GroupStatus.Terminating,
-                    GroupStatus.Terminated));
+                    GroupStatus.Terminated, GroupStatus.Created));
         }
     },
     Terminated(4) {