Class DropwizardMeter

java.lang.Object
org.apache.hadoop.hbase.metrics.impl.DropwizardMeter
All Implemented Interfaces:
Meter, Metric

@Private public class DropwizardMeter extends Object implements Meter
Dropwizard metrics implementation of Meter.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final com.codahale.metrics.Meter
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DropwizardMeter(com.codahale.metrics.Meter meter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the number of events.
    double
    Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
    double
    Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
    double
    Returns the mean rate at which events have occurred since the meter was created.
    double
    Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
    void
    Records one occurrence.
    void
    mark(long count)
    Records events occurrences.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • meter

      private final com.codahale.metrics.Meter meter
  • Constructor Details

  • Method Details

    • mark

      public void mark()
      Description copied from interface: Meter
      Records one occurrence.
      Specified by:
      mark in interface Meter
    • mark

      public void mark(long count)
      Description copied from interface: Meter
      Records events occurrences.
      Specified by:
      mark in interface Meter
      Parameters:
      count - Number of occurrences to record.
    • getCount

      public long getCount()
      Description copied from interface: Meter
      Returns the number of events.
      Specified by:
      getCount in interface Meter
      Returns:
      the number of events.
    • getMeanRate

      public double getMeanRate()
      Description copied from interface: Meter
      Returns the mean rate at which events have occurred since the meter was created.
      Specified by:
      getMeanRate in interface Meter
      Returns:
      the mean rate at which events have occurred since the meter was created
    • getOneMinuteRate

      public double getOneMinuteRate()
      Description copied from interface: Meter
      Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.

      This rate has the same exponential decay factor as the one-minute load average in the top Unix command.

      Specified by:
      getOneMinuteRate in interface Meter
      Returns:
      the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
    • getFiveMinuteRate

      public double getFiveMinuteRate()
      Description copied from interface: Meter
      Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.

      This rate has the same exponential decay factor as the five-minute load average in the top Unix command.

      Specified by:
      getFiveMinuteRate in interface Meter
      Returns:
      the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
    • getFifteenMinuteRate

      public double getFifteenMinuteRate()
      Description copied from interface: Meter
      Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.

      This rate has the same exponential decay factor as the fifteen-minute load average in the top Unix command.

      Specified by:
      getFifteenMinuteRate in interface Meter
      Returns:
      the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created