public class DummyMetricsStochasticBalancer extends org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
Constructor and Description |
---|
DummyMetricsStochasticBalancer() |
Modifier and Type | Method and Description |
---|---|
void |
balanceCluster(long time) |
void |
balancerStatus(boolean status) |
void |
clearDummyMetrics()
Clear all metrics in the cache map then prepare to run the next test
|
Map<String,Double> |
getDummyCostsMap() |
void |
incrMiscInvocations() |
protected void |
initSource() |
void |
updateMetricsSize(int size) |
void |
updateStochasticCost(String tableName,
String costFunctionName,
String costFunctionDesc,
Double value) |
public DummyMetricsStochasticBalancer()
protected void initSource()
initSource
in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
public void balanceCluster(long time)
balanceCluster
in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
public void incrMiscInvocations()
incrMiscInvocations
in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
public void balancerStatus(boolean status)
balancerStatus
in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
public void updateMetricsSize(int size)
updateMetricsSize
in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
public void updateStochasticCost(String tableName, String costFunctionName, String costFunctionDesc, Double value)
updateStochasticCost
in class org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
public Map<String,Double> getDummyCostsMap()
public void clearDummyMetrics()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.