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 <[email protected]> Authored: Sat Dec 14 15:49:39 2013 +0530 Committer: Nirmal Fernando <[email protected]> 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());
