You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ni...@apache.org on 2013/12/14 11:19:58 UTC

[1/2] git commit: initializing partition ctxt

Updated Branches:
  refs/heads/master 413661e59 -> 9ce3d30bd


initializing partition ctxt


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

Branch: refs/heads/master
Commit: b8de82ee3b4277a8ba5796c83b3f91e35c326776
Parents: 413661e
Author: Nirmal Fernando <ni...@apache.org>
Authored: Sat Dec 14 15:49:06 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Sat Dec 14 15:49:06 2013 +0530

----------------------------------------------------------------------
 .../java/org/apache/stratos/autoscaler/NetworkPartitionContext.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/b8de82ee/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
index ae53601..ef621de 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
@@ -71,6 +71,7 @@ public class NetworkPartitionContext implements Serializable {
         this.setServiceToLBClusterId(new HashMap<String, String>());
         this.setClusterIdToLBClusterIdMap(new HashMap<String, String>());
         partitionToMemberCountMap = new HashMap<String, Integer>();
+        partitionCtxts = new HashMap<String, PartitionContext>();
 
     }
 


[2/2] git commit: correcting nw partition context registry resource path

Posted by ni...@apache.org.
correcting nw partition context registry resource path


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

Branch: refs/heads/master
Commit: 9ce3d30bd98019d6617efb92ffbe4b8142aa70fc
Parents: b8de82e
Author: Nirmal Fernando <ni...@apache.org>
Authored: Sat Dec 14 15:49:39 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Sat Dec 14 15:49:39 2013 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/autoscaler/registry/RegistryManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/9ce3d30b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
index c22a0dc..230b7e3 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
@@ -94,7 +94,7 @@ public class RegistryManager {
     }
     
     public void persistNetworkPartition(NetworkPartitionContext nwPartitionCtxt) {
-        String resourcePath = AutoScalerConstants.AUTOSCALER_RESOURCE + AutoScalerConstants.NETWORK_PARTITION_RESOURCE + "/";
+        String resourcePath = AutoScalerConstants.AUTOSCALER_RESOURCE + AutoScalerConstants.NETWORK_PARTITION_RESOURCE + "/"+nwPartitionCtxt.getId();
         persist(nwPartitionCtxt, resourcePath);
         if(log.isDebugEnabled()) {
             log.debug("NetworkPartitionContext written to registry: "+nwPartitionCtxt.toString());