@InterfaceAudience.Private public class MetricsRegionAggregateSourceImpl extends BaseSourceImpl implements MetricsRegionAggregateSource
Modifier and Type | Field and Description |
---|---|
private MetricsExecutorImpl |
executor |
private static org.slf4j.Logger |
LOG |
private Set<MetricsRegionSource> |
regionSources |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUMBER_OF_REGIONS_DESC
HBASE_METRICS_SYSTEM_NAME
Constructor and Description |
---|
MetricsRegionAggregateSourceImpl() |
MetricsRegionAggregateSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
private void |
clearCache() |
void |
deregister(MetricsRegionSource toRemove)
Remove a region's source.
|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector,
boolean all)
Yes this is a get function that doesn't return anything.
|
void |
register(MetricsRegionSource source)
Register a MetricsRegionSource as being open.
|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
private static final org.slf4j.Logger LOG
private final MetricsExecutorImpl executor
private final Set<MetricsRegionSource> regionSources
public MetricsRegionAggregateSourceImpl()
public MetricsRegionAggregateSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void register(MetricsRegionSource source)
MetricsRegionAggregateSource
register
in interface MetricsRegionAggregateSource
source
- the source for the region being opened.public void deregister(MetricsRegionSource toRemove)
MetricsRegionAggregateSource
deregister
in interface MetricsRegionAggregateSource
toRemove
- The region to remove.private void clearCache()
public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)
getMetrics
in interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
in class BaseSourceImpl
collector
- the collectorall
- get all the metrics regardless of when they last changed.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.