Updated Branches:
  refs/heads/master 8ef8709a7 -> 057cb45b7

method to check whether member exists in a cluster


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

Branch: refs/heads/master
Commit: 6c76b542ce2399150c07c46955a1dea029b7cbc3
Parents: d929b37
Author: rekathiru <[email protected]>
Authored: Mon Jan 13 15:23:29 2014 +0530
Committer: rekathiru <[email protected]>
Committed: Mon Jan 13 15:23:29 2014 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/messaging/domain/topology/Cluster.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6c76b542/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
 
b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
index 4816715..dddb869 100644
--- 
a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
+++ 
b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
@@ -91,6 +91,12 @@ public class Cluster implements Serializable {
         return memberMap.values();
     }
 
+    public boolean hasMembers() {
+        return  memberMap.isEmpty();
+    }
+
+
+
     public void addMember(Member member) {
         memberMap.put(member.getMemberId(), member);
     }

Reply via email to