Class MetricsStochasticBalancer
java.lang.Object
org.apache.hadoop.hbase.master.balancer.MetricsBalancer
org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
This metrics balancer uses extended source for stochastic load balancer to report its related
 metrics to JMX. For details, refer to HBASE-13965
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate MetricsStochasticBalancerSourceUse the stochastic source instead of the default source.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbalanceCluster(long time) voidbalancerStatus(boolean status) Updates the balancer status tag reported to JMXvoidprotected voidThis function overrides the initSource in the MetricsBalancer, use MetricsStochasticBalancerSource instead of the MetricsBalancerSource.voidupdateMetricsSize(int size) Updates the number of metrics reported to JMXvoidupdateStochasticCost(String tableName, String costFunctionName, String costFunctionDesc, Double value) Reports stochastic load balancer costs to JMX
- 
Field Details- 
stochasticSourceUse the stochastic source instead of the default source.
 
- 
- 
Constructor Details- 
MetricsStochasticBalancerpublic MetricsStochasticBalancer()
 
- 
- 
Method Details- 
initSourceThis function overrides the initSource in the MetricsBalancer, use MetricsStochasticBalancerSource instead of the MetricsBalancerSource.- Overrides:
- initSourcein class- MetricsBalancer
 
- 
balanceCluster- Overrides:
- balanceClusterin class- MetricsBalancer
 
- 
incrMiscInvocations- Overrides:
- incrMiscInvocationsin class- MetricsBalancer
 
- 
balancerStatusUpdates the balancer status tag reported to JMX- Overrides:
- balancerStatusin class- MetricsBalancer
 
- 
updateMetricsSizeUpdates the number of metrics reported to JMX
- 
updateStochasticCostpublic void updateStochasticCost(String tableName, String costFunctionName, String costFunctionDesc, Double value) Reports stochastic load balancer costs to JMX
 
-