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
Modifier and TypeFieldDescriptionstatic final String
The name of the metrics context that metrics will be under.static final String
Descriptionstatic final String
The name of the metrics context that metrics will be under in jmxstatic final String
The name of the metricsstatic final String
static final String
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteTableSource
(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
-