Interface MetricsTableAggregateSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsTableAggregateSourceImpl
This interface will be implemented by a MetricsSource that will export metrics from multiple
regions of a table into the hadoop metrics system.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the metrics context that metrics will be under.static final StringDescriptionstatic final StringThe name of the metrics context that metrics will be under in jmxstatic final StringThe name of the metricsstatic final Stringstatic final StringFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteTableSource(String table) Remove a table's source.getOrCreateTableSource(String table, MetricsTableWrapperAggregate wrapper) Returns MetricsTableSource registered for the table.Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
METRICS_NAME
The name of the metrics- See Also:
-
METRICS_CONTEXT
The name of the metrics context that metrics will be under.- See Also:
-
METRICS_DESCRIPTION
Description- See Also:
-
METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx- See Also:
-
NUM_TABLES
- See Also:
-
NUMBER_OF_TABLES_DESC
- See Also:
-
-
Method Details
-
getOrCreateTableSource
Returns MetricsTableSource registered for the table. Creates one if not defined.- Parameters:
table- The table name
-
deleteTableSource
Remove a table's source. This is called when regions of a table are closed.- Parameters:
table- The table name
-