org.apache.hadoop.hbase.master.balancer
Class StochasticLoadBalancer.CostFromRegionLoadFunction

java.lang.Object
  extended by org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFunction
      extended by org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFromRegionLoadFunction
Direct Known Subclasses:
StochasticLoadBalancer.MemstoreSizeCostFunction, StochasticLoadBalancer.ReadRequestCostFunction, StochasticLoadBalancer.StoreFileCostFunction, StochasticLoadBalancer.WriteRequestCostFunction
Enclosing class:
StochasticLoadBalancer

public abstract static class StochasticLoadBalancer.CostFromRegionLoadFunction
extends StochasticLoadBalancer.CostFunction

Base class the allows writing costs functions from rolling average of some number from RegionLoad.


Method Summary
protected abstract  double getCostFromRl(RegionLoad rl)
           
protected  double getRegionLoadCost(Collection<RegionLoad> regionLoadList)
           
 
Methods inherited from class org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFunction
costFromArray, scale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRegionLoadCost

protected double getRegionLoadCost(Collection<RegionLoad> regionLoadList)

getCostFromRl

protected abstract double getCostFromRl(RegionLoad rl)


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.