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.
|
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.
|
void |
updateQuantile(String name,
long value)
Add some value to a Quantile (An accurate 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 histogramvoid updateQuantile(String name, long value)
name
- the name of the quantilevalue
- the value to add to the quantileString getMetricsContext()
String getMetricsDescription()
String getMetricsJmxContext()
String getMetricsName()