Package net.spy.memcached.metrics
Class NoopMetricCollector
- java.lang.Object
-
- net.spy.memcached.metrics.AbstractMetricCollector
-
- net.spy.memcached.metrics.NoopMetricCollector
-
- All Implemented Interfaces:
MetricCollector
public final class NoopMetricCollector extends AbstractMetricCollector
AMetricCollectorthat does nothing. ThisMetricCollectorinstance is used if Metric collection is disabled during runtime. It just discards operations when executed.
-
-
Constructor Summary
Constructors Constructor Description NoopMetricCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCounter(java.lang.String name)Add a Counter to the collector.voidaddHistogram(java.lang.String name)Add a Histogram to the Collector.voidaddMeter(java.lang.String name)Add a Meter to the Collector.voiddecrementCounter(java.lang.String name, int amount)Decrement a Counter by the given amount.voidincrementCounter(java.lang.String name, int amount)Increment a Counter by the given amount.voidmarkMeter(java.lang.String name)Mark a checkpoint in the Meter.voidremoveCounter(java.lang.String name)Remove a Counter from the collector.voidremoveHistogram(java.lang.String name)Remove a Histogram from the Collector.voidremoveMeter(java.lang.String name)Remove a Meter from the Collector.voidupdateHistogram(java.lang.String name, int amount)Update the Histogram with the given amount.-
Methods inherited from class net.spy.memcached.metrics.AbstractMetricCollector
decrementCounter, incrementCounter
-
-
-
-
Method Detail
-
addCounter
public void addCounter(java.lang.String name)
Description copied from interface:MetricCollectorAdd a Counter to the collector.- Parameters:
name- the name of the counter.
-
removeCounter
public void removeCounter(java.lang.String name)
Description copied from interface:MetricCollectorRemove a Counter from the collector.- Parameters:
name- the name of the counter.
-
incrementCounter
public void incrementCounter(java.lang.String name, int amount)Description copied from interface:MetricCollectorIncrement a Counter by the given amount.- Parameters:
name- the name of the counter.amount- the amount to increase.
-
decrementCounter
public void decrementCounter(java.lang.String name, int amount)Description copied from interface:MetricCollectorDecrement a Counter by the given amount.- Parameters:
name- the name of the counter.amount- the amount to decrease.
-
addMeter
public void addMeter(java.lang.String name)
Description copied from interface:MetricCollectorAdd a Meter to the Collector.- Parameters:
name- the name of the counter.
-
removeMeter
public void removeMeter(java.lang.String name)
Description copied from interface:MetricCollectorRemove a Meter from the Collector.- Parameters:
name- the name of the counter.
-
markMeter
public void markMeter(java.lang.String name)
Description copied from interface:MetricCollectorMark a checkpoint in the Meter.- Parameters:
name- the name of the counter.
-
addHistogram
public void addHistogram(java.lang.String name)
Description copied from interface:MetricCollectorAdd a Histogram to the Collector.- Parameters:
name- the name of the counter.
-
removeHistogram
public void removeHistogram(java.lang.String name)
Description copied from interface:MetricCollectorRemove a Histogram from the Collector.- Parameters:
name- the name of the counter.
-
updateHistogram
public void updateHistogram(java.lang.String name, int amount)Description copied from interface:MetricCollectorUpdate the Histogram with the given amount.- Parameters:
name- the name of the counter.amount- the amount to update.
-
-