@InterfaceAudience.Private public class MetricsTableAggregateSourceImpl extends BaseSourceImpl implements MetricsTableAggregateSource
| Modifier and Type | Field and Description | 
|---|---|
| private static org.slf4j.Logger | LOG | 
| private ConcurrentHashMap<String,MetricsTableSource> | tableSources | 
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryMETRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUM_TABLES, NUMBER_OF_TABLES_DESCHBASE_METRICS_SYSTEM_NAME| Constructor and Description | 
|---|
| MetricsTableAggregateSourceImpl() | 
| MetricsTableAggregateSourceImpl(String metricsName,
                               String metricsDescription,
                               String metricsContext,
                               String metricsJmxContext) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | deleteTableSource(String table)Remove a table's source. | 
| void | getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector,
          boolean all)Yes this is a get function that doesn't return anything. | 
| MetricsTableSource | getOrCreateTableSource(String table,
                      MetricsTableWrapperAggregate wrapper)Returns MetricsTableSource registered for the table. | 
| private void | register(MetricsTableSource source) | 
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramprivate static final org.slf4j.Logger LOG
private ConcurrentHashMap<String,MetricsTableSource> tableSources
public MetricsTableAggregateSourceImpl()
public MetricsTableAggregateSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
private void register(MetricsTableSource source)
public void deleteTableSource(String table)
MetricsTableAggregateSourcedeleteTableSource in interface MetricsTableAggregateSourcetable - The table namepublic MetricsTableSource getOrCreateTableSource(String table, MetricsTableWrapperAggregate wrapper)
MetricsTableAggregateSourcegetOrCreateTableSource in interface MetricsTableAggregateSourcetable - The table namepublic void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)
getMetrics in interface org.apache.hadoop.metrics2.MetricsSourcegetMetrics in class BaseSourceImplcollector - the collectorall - get all the metrics regardless of when they last changed.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.