Packages

c

com.twitter.finagle.stats

MetricsBucketedHistogram

class MetricsBucketedHistogram extends MetricsHistogram

A MetricsHistogram that is latched such that a snapshot of the values are taken every latchPeriod and that value is returned for rest of latchPeriod. This gives pull based collectors a simple way to get consistent results.

This is safe to use from multiple threads.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetricsBucketedHistogram
  2. MetricsHistogram
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MetricsBucketedHistogram(name: String, percentiles: IndexedSeq[Double] = BucketedHistogram.DefaultQuantiles, latchPeriod: Duration = MetricsBucketedHistogram.DefaultLatchPeriod)

    latchPeriod

    how often calls to snapshot() should trigger a rolling of the collection bucket.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(value: Long): Unit

    Adds a new datapoint to the histogram.

    Adds a new datapoint to the histogram.

    Definition Classes
    MetricsBucketedHistogramMetricsHistogram
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clear(): Unit

    Clears all the data from the histogram.

    Clears all the data from the histogram.

    Definition Classes
    MetricsBucketedHistogramMetricsHistogram
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getName: String
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def histogramDetail: HistogramDetail
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def snapshot(): Snapshot

    Returns an immutable snapshot of the state of the histogram right now.

    Returns an immutable snapshot of the state of the histogram right now.

    If the underlying histogram is latched or buffered, data might be slow to appear or might disappear after some time passes.

    To reread the histogram, snapshot must be called again.

    Definition Classes
    MetricsBucketedHistogramMetricsHistogram
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MetricsHistogram

Inherited from AnyRef

Inherited from Any

Ungrouped