Class MoveCostFunction
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CostFunction
org.apache.hadoop.hbase.master.balancer.MoveCostFunction
Given the starting state of the regions and a potential ending state compute cost based upon the
 number of regions that have moved.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final int(package private) static final float(package private) static final floatprivate static final Stringprivate final floatprivate static final Stringprivate static final Stringprivate final floatprivate final floatprivate final ClusterInfoProviderFields inherited from class org.apache.hadoop.hbase.master.balancer.CostFunctioncluster
- 
Constructor SummaryConstructorsConstructorDescriptionMoveCostFunction(org.apache.hadoop.conf.Configuration conf, ClusterInfoProvider provider) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected doublecost()(package private) voidprepare(BalancerClusterState cluster) Called once per LB invocation to give the cost function to initialize it's state, and perform any costly calculation.Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFunctiongetCostEpsilon, getMultiplier, isNeeded, postAction, regionMoved, scale, setMultiplier, updateWeight
- 
Field Details- 
MOVE_COST_KEY- See Also:
 
- 
MOVE_COST_OFFPEAK_KEY- See Also:
 
- 
MAX_MOVES_PERCENT_KEY- See Also:
 
- 
DEFAULT_MOVE_COST- See Also:
 
- 
DEFAULT_MOVE_COST_OFFPEAK- See Also:
 
- 
DEFAULT_MAX_MOVES- See Also:
 
- 
DEFAULT_MAX_MOVE_PERCENT- See Also:
 
- 
maxMovesPercent
- 
provider
- 
moveCost
- 
moveCostOffPeak
 
- 
- 
Constructor Details- 
MoveCostFunctionMoveCostFunction(org.apache.hadoop.conf.Configuration conf, ClusterInfoProvider provider) 
 
- 
- 
Method Details- 
prepareDescription copied from class:CostFunctionCalled once per LB invocation to give the cost function to initialize it's state, and perform any costly calculation.- Overrides:
- preparein class- CostFunction
 
- 
cost- Specified by:
- costin class- CostFunction
 
 
-