|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BaseSource
BaseSource for dynamic metrics to announce to Metrics2. In hbase-hadoop{1|2}-compat there is an implementation of this interface.
| Field Summary | |
|---|---|
static String |
HBASE_METRICS_SYSTEM_NAME
|
| Method Summary | |
|---|---|
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). |
| Field Detail |
|---|
static final String HBASE_METRICS_SYSTEM_NAME
| Method Detail |
|---|
void init()
void setGauge(String gaugeName,
long value)
gaugeName - the name of the gaugevalue - the value
void 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 histogram
void 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||