You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by re...@apache.org on 2013/11/11 08:00:06 UTC

git commit: type migration to Scope

Updated Branches:
  refs/heads/master c5cabb718 -> 8072e14f1


type migration to Scope


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

Branch: refs/heads/master
Commit: 8072e14f18cad8e631f630fd61ae6e7f08dcf96b
Parents: c5cabb7
Author: rekathiru <rt...@gmail.com>
Authored: Mon Nov 11 12:29:53 2013 +0530
Committer: rekathiru <rt...@gmail.com>
Committed: Mon Nov 11 12:29:53 2013 +0530

----------------------------------------------------------------------
 .../cloud/controller/topology/TopologyEventSender.java    |  4 ++--
 .../messaging/event/topology/PartitionCreatedEvent.java   | 10 ++++++----
 .../messaging/event/topology/PartitionUpdatedEvent.java   | 10 ++++++----
 3 files changed, 14 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8072e14f/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java
index bb879f9..09c1202 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java
@@ -60,7 +60,7 @@ public class TopologyEventSender {
      public static void sendPartitionCreatedEvent(Partition partition) {
          PartitionCreatedEvent partitionCreatedEvent =
                  new PartitionCreatedEvent(partition.getId(),
-                                           partition.getScope().toString());
+                                           partition.getScope());
          partitionCreatedEvent.setProperties(partition.getProperties());
          publishEvent(partitionCreatedEvent);
      }
@@ -68,7 +68,7 @@ public class TopologyEventSender {
     public static void sendPartitionUpdatedEvent(Partition partition, String oldPartitionId) {
         PartitionUpdatedEvent partitionUpdatedEvent =
                 new PartitionUpdatedEvent(partition.getId(),
-                                          partition.getScope().toString(),
+                                          partition.getScope(),
                                           oldPartitionId);
         partitionUpdatedEvent.setProperties(partition.getProperties());
         publishEvent(partitionUpdatedEvent);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8072e14f/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionCreatedEvent.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionCreatedEvent.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionCreatedEvent.java
index 2eaa3a4..38aacbc 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionCreatedEvent.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionCreatedEvent.java
@@ -18,16 +18,18 @@
  */
 package org.apache.stratos.messaging.event.topology;
 
+import org.apache.stratos.messaging.domain.topology.Scope;
+
 import java.io.Serializable;
 import java.util.HashMap;
 import java.util.Map;
 
 public class PartitionCreatedEvent extends TopologyEvent implements Serializable {
     private String id;
-    private String scope;
+    private Scope scope;
     private Map<String, String> properties = new HashMap<String, String>();
 
-    public PartitionCreatedEvent(String id, String scope) {
+    public PartitionCreatedEvent(String id, Scope scope) {
         this.id = id;
         this.scope = scope;
     }
@@ -40,11 +42,11 @@ public class PartitionCreatedEvent extends TopologyEvent implements Serializable
         this.id = id;
     }
 
-    public String getScope() {
+    public Scope getScope() {
         return scope;
     }
 
-    public void setScope(String scope) {
+    public void setScope(Scope scope) {
         this.scope = scope;
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8072e14f/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionUpdatedEvent.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionUpdatedEvent.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionUpdatedEvent.java
index 0dbf3d7..b1474c4 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionUpdatedEvent.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/PartitionUpdatedEvent.java
@@ -18,17 +18,19 @@
  */
 package org.apache.stratos.messaging.event.topology;
 
+import org.apache.stratos.messaging.domain.topology.Scope;
+
 import java.io.Serializable;
 import java.util.HashMap;
 import java.util.Map;
 
 public class PartitionUpdatedEvent extends TopologyEvent implements Serializable {
     private String id;
-    private String scope;
+    private Scope scope;
     private Map<String, String> properties = new HashMap<String, String>();
     private String oldPartitionId;
 
-    public PartitionUpdatedEvent(String id, String scope, String oldId) {
+    public PartitionUpdatedEvent(String id, Scope scope, String oldId) {
         this.id = id;
         this.scope = scope;
         this.oldPartitionId = oldId;
@@ -42,11 +44,11 @@ public class PartitionUpdatedEvent extends TopologyEvent implements Serializable
         this.id = id;
     }
 
-    public String getScope() {
+    public Scope getScope() {
         return scope;
     }
 
-    public void setScope(String scope) {
+    public void setScope(Scope scope) {
         this.scope = scope;
     }