Repository: stratos
Updated Branches:
  refs/heads/master c4627b6a2 -> d3c9fab03


Remove networkPartitionIdToClusterLevelNetworkPartitionCtxts strored directly 
in Cluster Monitor


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

Branch: refs/heads/master
Commit: d3c9fab03b51d28cbb707032d608fd98596339d3
Parents: c4627b6
Author: Lahiru Sandaruwan <[email protected]>
Authored: Fri Apr 24 16:38:37 2015 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Fri Apr 24 16:38:37 2015 +0530

----------------------------------------------------------------------
 .../autoscaler/monitor/cluster/ClusterMonitor.java       | 11 -----------
 1 file changed, 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/d3c9fab0/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
index cba4871..4154493 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java
@@ -24,7 +24,6 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.stratos.autoscaler.context.AutoscalerContext;
 import org.apache.stratos.autoscaler.context.InstanceContext;
-import org.apache.stratos.autoscaler.context.cluster.AbstractClusterContext;
 import org.apache.stratos.autoscaler.context.cluster.ClusterContext;
 import org.apache.stratos.autoscaler.context.cluster.ClusterContextFactory;
 import org.apache.stratos.autoscaler.context.cluster.ClusterInstanceContext;
@@ -113,7 +112,6 @@ public class ClusterMonitor extends Monitor implements 
Runnable {
     private boolean groupScalingEnabledSubtree;
 
     private static final Log log = LogFactory.getLog(ClusterMonitor.class);
-        private Map<String, ClusterLevelNetworkPartitionContext> 
networkPartitionIdToClusterLevelNetworkPartitionCtxts;
     private boolean hasPrimary;
     private float scalingFactorBasedOnDependencies = 1.0f;
     private String deploymentPolicyId;
@@ -127,7 +125,6 @@ public class ClusterMonitor extends Monitor implements 
Runnable {
         executorService = StratosThreadPool.getExecutorService(
                 AutoscalerConstants.CLUSTER_MONITOR_THREAD_POOL_ID, 
threadPoolSize);
 
-        networkPartitionIdToClusterLevelNetworkPartitionCtxts = new 
HashMap<String, ClusterLevelNetworkPartitionContext>();
         readConfigurations();
         autoscalerRuleEvaluator = new AutoscalerRuleEvaluator();
         
autoscalerRuleEvaluator.parseAndBuildKnowledgeBaseForDroolsFile(StratosConstants.OBSOLETE_CHECK_DROOL_FILE);
@@ -395,14 +392,6 @@ public class ClusterMonitor extends Monitor implements 
Runnable {
 
     }
 
-    public void 
addClusterLevelNWPartitionContext(ClusterLevelNetworkPartitionContext 
clusterLevelNWPartitionCtxt) {
-        
networkPartitionIdToClusterLevelNetworkPartitionCtxts.put(clusterLevelNWPartitionCtxt.getId(),
 clusterLevelNWPartitionCtxt);
-    }
-
-    public ClusterLevelNetworkPartitionContext 
getClusterLevelNWPartitionContext(String nwPartitionId) {
-        return 
networkPartitionIdToClusterLevelNetworkPartitionCtxts.get(nwPartitionId);
-    }
-
     public void handleAverageLoadAverageEvent(
             AverageLoadAverageEvent averageLoadAverageEvent) {
 

Reply via email to