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
A MetricCollector that does nothing. This MetricCollector instance is used if Metric collection is disabled during runtime. It just discards operations when executed.
  • Constructor Details

    • NoopMetricCollector

      public NoopMetricCollector()
  • Method Details

    • addCounter

      public void addCounter(String name)
      Description copied from interface: MetricCollector
      Add a Counter to the collector.
      Parameters:
      name - the name of the counter.
    • removeCounter

      public void removeCounter(String name)
      Description copied from interface: MetricCollector
      Remove a Counter from the collector.
      Parameters:
      name - the name of the counter.
    • incrementCounter

      public void incrementCounter(String name, int amount)
      Description copied from interface: MetricCollector
      Increment a Counter by the given amount.
      Parameters:
      name - the name of the counter.
      amount - the amount to increase.
    • decrementCounter

      public void decrementCounter(String name, int amount)
      Description copied from interface: MetricCollector
      Decrement a Counter by the given amount.
      Parameters:
      name - the name of the counter.
      amount - the amount to decrease.
    • addMeter

      public void addMeter(String name)
      Description copied from interface: MetricCollector
      Add a Meter to the Collector.
      Parameters:
      name - the name of the counter.
    • removeMeter

      public void removeMeter(String name)
      Description copied from interface: MetricCollector
      Remove a Meter from the Collector.
      Parameters:
      name - the name of the counter.
    • markMeter

      public void markMeter(String name)
      Description copied from interface: MetricCollector
      Mark a checkpoint in the Meter.
      Parameters:
      name - the name of the counter.
    • addHistogram

      public void addHistogram(String name)
      Description copied from interface: MetricCollector
      Add a Histogram to the Collector.
      Parameters:
      name - the name of the counter.
    • removeHistogram

      public void removeHistogram(String name)
      Description copied from interface: MetricCollector
      Remove a Histogram from the Collector.
      Parameters:
      name - the name of the counter.
    • updateHistogram

      public void updateHistogram(String name, int amount)
      Description copied from interface: MetricCollector
      Update the Histogram with the given amount.
      Parameters:
      name - the name of the counter.
      amount - the amount to update.