public final class NoopMetricCollector extends AbstractMetricCollector
MetricCollector that does nothing.
This MetricCollector instance is used if Metric collection is
disabled during runtime. It just discards operations when executed.| Constructor and Description |
|---|
NoopMetricCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCounter(java.lang.String name)
Add a Counter to the collector.
|
void |
addHistogram(java.lang.String name)
Add a Histogram to the Collector.
|
void |
addMeter(java.lang.String name)
Add a Meter to the Collector.
|
void |
decrementCounter(java.lang.String name,
int amount)
Decrement a Counter by the given amount.
|
void |
incrementCounter(java.lang.String name,
int amount)
Increment a Counter by the given amount.
|
void |
markMeter(java.lang.String name)
Mark a checkpoint in the Meter.
|
void |
removeCounter(java.lang.String name)
Remove a Counter from the collector.
|
void |
removeHistogram(java.lang.String name)
Remove a Histogram from the Collector.
|
void |
removeMeter(java.lang.String name)
Remove a Meter from the Collector.
|
void |
updateHistogram(java.lang.String name,
int amount)
Update the Histogram with the given amount.
|
decrementCounter, incrementCounterpublic void addCounter(java.lang.String name)
MetricCollectorname - the name of the counter.public void removeCounter(java.lang.String name)
MetricCollectorname - the name of the counter.public void incrementCounter(java.lang.String name,
int amount)
MetricCollectorname - the name of the counter.amount - the amount to increase.public void decrementCounter(java.lang.String name,
int amount)
MetricCollectorname - the name of the counter.amount - the amount to decrease.public void addMeter(java.lang.String name)
MetricCollectorname - the name of the counter.public void removeMeter(java.lang.String name)
MetricCollectorname - the name of the counter.public void markMeter(java.lang.String name)
MetricCollectorname - the name of the counter.public void addHistogram(java.lang.String name)
MetricCollectorname - the name of the counter.public void removeHistogram(java.lang.String name)
MetricCollectorname - the name of the counter.public void updateHistogram(java.lang.String name,
int amount)
MetricCollectorname - the name of the counter.amount - the amount to update.Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.