@InterfaceAudience.Private public interface BaseSource
| Modifier and Type | Field and Description | 
|---|---|
| static String | HBASE_METRICS_SYSTEM_NAME | 
| Modifier and Type | Method and Description | 
|---|---|
| void | decGauge(String gaugeName,
        long delta)Subtract some amount from a gauge. | 
| default MetricRegistryInfo | getMetricRegistryInfo() | 
| String | getMetricsContext()Get the metrics context. | 
| String | getMetricsDescription()Get the description of what this source exposes. | 
| String | getMetricsJmxContext()Get the name of the context in JMX that this source will be exposed through. | 
| String | getMetricsName()Get the name of the metrics that are being exported by this source. | 
| void | incCounters(String counterName,
           long delta)Add some amount to a counter. | 
| void | incGauge(String gaugeName,
        long delta)Add some amount to a gauge. | 
| void | init()Clear out the metrics and re-prepare the source. | 
| void | removeMetric(String key)Remove a metric and no longer announce it. | 
| void | setGauge(String gaugeName,
        long value)Set a gauge to a specific value. | 
| void | updateHistogram(String name,
               long value)Add some value to a histogram. | 
static final String HBASE_METRICS_SYSTEM_NAME
void init()
void setGauge(String gaugeName, long value)
gaugeName - the name of the gaugevalue - the valuevoid incGauge(String gaugeName, long delta)
gaugeName - the name of the gaugedelta - the amount to change the gauge by.void decGauge(String gaugeName, long delta)
gaugeName - the name of the gaugedelta - the amount to change the gauge by.void removeMetric(String key)
key - Name of the gauge to remove.void incCounters(String counterName, long delta)
counterName - the name of the counterdelta - the amount to change the counter by.void updateHistogram(String name, long value)
name - the name of the histogramvalue - the value to add to the histogramString getMetricsContext()
String getMetricsDescription()
String getMetricsJmxContext()
String getMetricsName()
default MetricRegistryInfo getMetricRegistryInfo()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.