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 06:51:32 UTC

git commit: adding getPartition (with id) to Toplogy

Updated Branches:
  refs/heads/master 1677d99c0 -> 39b936982


adding getPartition (with id) to Toplogy


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

Branch: refs/heads/master
Commit: 39b936982826b5859262d1ca2746c20e7091eb72
Parents: 1677d99
Author: rekathiru <rt...@gmail.com>
Authored: Mon Nov 11 11:21:15 2013 +0530
Committer: rekathiru <rt...@gmail.com>
Committed: Mon Nov 11 11:21:15 2013 +0530

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


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/39b93698/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Topology.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Topology.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Topology.java
index 2bb560a..2b93188 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Topology.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Topology.java
@@ -75,6 +75,10 @@ public class Topology implements Serializable {
         return partitionMap;
     }
 
+    public Partition getPartition(String id) {
+        return  this.partitionMap.get(id);
+    }
+
     public void setPartitionMap(Map<String, Partition> partitionMap) {
         this.partitionMap = partitionMap;
     }