Repository: stratos
Updated Branches:
  refs/heads/4.0.0-grouping 297864957 -> 06e1e9ffb


updating the cluster created event


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

Branch: refs/heads/4.0.0-grouping
Commit: 06e1e9ffb25cc0e538a4009aa8318af614b845f3
Parents: 6e72374
Author: reka <[email protected]>
Authored: Tue Oct 21 10:13:11 2014 +0530
Committer: reka <[email protected]>
Committed: Tue Oct 21 10:15:36 2014 +0530

----------------------------------------------------------------------
 .../event/topology/ClusterCreatedEvent.java     | 22 ++++++++------------
 1 file changed, 9 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/06e1e9ff/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/ClusterCreatedEvent.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/ClusterCreatedEvent.java
 
b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/ClusterCreatedEvent.java
index 5d51ab8..70452ab 100644
--- 
a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/ClusterCreatedEvent.java
+++ 
b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/topology/ClusterCreatedEvent.java
@@ -28,35 +28,31 @@ import java.io.Serializable;
 public class ClusterCreatedEvent extends TopologyEvent implements Serializable 
{
     private static final long serialVersionUID = 2080623816272047762L;
 
-       private final String serviceName;
+    private final String appId;
+    private final String serviceName;
        private final String clusterId;
-    private Cluster cluster;
 
 
-    public ClusterCreatedEvent(String serviceName, String clusterId, Cluster 
cluster) {
+    public ClusterCreatedEvent(String appId, String serviceName, String 
clusterId) {
+        this.appId = appId;
         this.serviceName = serviceName;
         this.clusterId = clusterId;
-        this.cluster = cluster;
     }
 
-    public Cluster getCluster() {
-        return cluster;
-    }
-    
-    public void setCluster(Cluster cluster) {
-        this.cluster = cluster;
-    }
-    
     public String getServiceName() {
         return serviceName;
     }
     
     @Override
     public String toString() {
-        return "ClusterCreatedEvent [serviceName=" + serviceName + ", 
cluster=" + cluster + "]";
+        return "ClusterCreatedEvent [serviceName=" + serviceName + ", 
application=" + appId + "]";
     }
 
     public String getClusterId() {
         return clusterId;
     }
+
+    public String getAppId() {
+        return appId;
+    }
 }

Reply via email to