Class DummyMetricsStochasticBalancer
java.lang.Object
org.apache.hadoop.hbase.master.balancer.MetricsBalancer
org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
org.apache.hadoop.hbase.master.balancer.DummyMetricsStochasticBalancer
public class DummyMetricsStochasticBalancer
extends org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
balanceCluster
(long time) void
balancerStatus
(boolean status) void
Clear all metrics in the cache map then prepare to run the next testvoid
protected void
void
updateMetricsSize
(int size) void
updateStochasticCost
(String tableName, String costFunctionName, String costFunctionDesc, Double value)
-
Field Details
-
costsMap
-
-
Constructor Details
-
DummyMetricsStochasticBalancer
public DummyMetricsStochasticBalancer()
-
-
Method Details
-
initSource
- Overrides:
initSource
in classorg.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
-
balanceCluster
- Overrides:
balanceCluster
in classorg.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
-
incrMiscInvocations
- Overrides:
incrMiscInvocations
in classorg.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
-
balancerStatus
- Overrides:
balancerStatus
in classorg.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
-
updateMetricsSize
- Overrides:
updateMetricsSize
in classorg.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
-
updateStochasticCost
public void updateStochasticCost(String tableName, String costFunctionName, String costFunctionDesc, Double value) - Overrides:
updateStochasticCost
in classorg.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
-
getDummyCostsMap
-
clearDummyMetrics
Clear all metrics in the cache map then prepare to run the next test
-