Repository: stratos
Updated Branches:
  refs/heads/master fd3962328 -> bc1b31da7


Removing commented code


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

Branch: refs/heads/master
Commit: bc1b31da790d6a48e7332e4e0840aeac39ab6ea0
Parents: fd39623
Author: Lahiru Sandaruwan <[email protected]>
Authored: Fri Nov 28 18:10:16 2014 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Fri Nov 28 18:10:16 2014 +0530

----------------------------------------------------------------------
 .../autoscaler/NetworkPartitionLbHolder.java    | 36 --------------------
 1 file changed, 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/bc1b31da/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionLbHolder.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionLbHolder.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionLbHolder.java
index 20bac91..9788cd6 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionLbHolder.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionLbHolder.java
@@ -37,48 +37,12 @@ public class NetworkPartitionLbHolder implements 
Serializable{
 
     private Map<String, String> clusterIdToLBClusterIdMap;
 
-//    private final String partitionAlgorithm;
-//
-//    //boolean values to keep whether the requests in flight parameters are 
reset or not
-//    private boolean rifReset = false, averageRifReset = false, 
gradientRifReset = false, secondDerivativeRifRest = false;
-//    //boolean values to keep whether the memory consumption parameters are 
reset or not
-//    private boolean memoryConsumptionReset = false, 
averageMemoryConsumptionReset = false,
-//            gradientMemoryConsumptionReset = false, 
secondDerivativeMemoryConsumptionRest = false;
-//    //boolean values to keep whether the load average parameters are reset 
or not
-//    private boolean loadAverageReset = false, averageLoadAverageReset = 
false, gradientLoadAverageReset = false,
-//            secondDerivativeLoadAverageRest = false;
-//
-//    //FIXME this should be populated via NetworkPartitions
-//    private int minInstanceCount = 1, maxInstanceCount = 1;
-//
-//    private final Partition[] partitions;
-
-    //Following information will keep events details
-//    private RequestsInFlight requestsInFlight;
-//    private MemoryConsumption memoryConsumption;
-//    private LoadAverage loadAverage;
-
-    //details required for partition selection algorithms
-//    private int currentPartitionIndex;
-////    private Map<String, Integer> partitionToMemberCountMap;
-//
-//    //partitions of this network partition
-//    private final Map<String, PartitionContext> partitionCtxts;
-
     public NetworkPartitionLbHolder(String networkPartitionId) {
 
         super();
         this.networkPartitionId = networkPartitionId;
-//        this.partitionAlgorithm = partitionAlgo;
-//        this.partitions = partitions;
         this.setServiceToLBClusterId(new HashMap<String, String>());
         this.setClusterIdToLBClusterIdMap(new HashMap<String, String>());
-//        partitionToMemberCountMap = new HashMap<String, Integer>();
-//        partitionCtxts = new HashMap<String, PartitionContext>();
-//        requestsInFlight = new RequestsInFlight();
-//        loadAverage = new LoadAverage();
-//        memoryConsumption = new MemoryConsumption();
-
     }
 
     public String getDefaultLbClusterId() {

Reply via email to