@InterfaceAudience.Private public class MetricsStochasticBalancerSourceImpl extends MetricsBalancerSourceImpl implements MetricsStochasticBalancerSource
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
BALANCE_CLUSTER, BALANCER_STATUS, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, MISC_INVOATION_COUNT
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsStochasticBalancerSourceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
void |
updateMetricsSize(int size)
Updates the number of metrics reported to JMX
|
void |
updateStochasticCost(String tableName,
String costFunctionName,
String functionDesc,
Double cost)
Reports stochastic load balancer costs to JMX
|
incrMiscInvocations, init, updateBalanceCluster, updateBalancerStatus
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
incrMiscInvocations, updateBalanceCluster, updateBalancerStatus
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
public void updateMetricsSize(int size)
MetricsStochasticBalancerSource
updateMetricsSize
in interface MetricsStochasticBalancerSource
public void updateStochasticCost(String tableName, String costFunctionName, String functionDesc, Double cost)
updateStochasticCost
in interface MetricsStochasticBalancerSource
public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
getMetrics
in interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
in class BaseSourceImpl
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.