Class

nl.grons.metrics4.scala

HdrMetricBuilder

Related Doc: package scala

Permalink

class HdrMetricBuilder extends MetricBuilder

An alternative metric builder that creates Histograms and Timers with Reservoirs from the HdrHistogram library.

See the the manual for more instructions on using hdrhistogram.

Linear Supertypes
MetricBuilder, DeprecatedMetricBuilder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HdrMetricBuilder
  2. MetricBuilder
  3. DeprecatedMetricBuilder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HdrMetricBuilder(baseName: MetricName, registry: MetricRegistry, resetAtSnapshot: Boolean)

    Permalink

    resetAtSnapshot

    false to use reservoirs that accumulate internal state forever, or true to use a reservoir that resets its internal state on each snapshot (which is how reporters get information from reservoirs). See this article for when the latter is useful.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val baseName: MetricName

    Permalink
    Definition Classes
    MetricBuilder
  6. def cachedGauge[A](name: String, timeout: FiniteDuration)(f: ⇒ A): Gauge[A]

    Permalink
    Definition Classes
    MetricBuilder
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def counter(name: String): Counter

    Permalink
    Definition Classes
    MetricBuilder
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def gauge[A](name: String)(f: ⇒ A): Gauge[A]

    Permalink
    Definition Classes
    MetricBuilder
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def histogram(name: String): Histogram

    Permalink

    Creates a new histogram metric with a Reservoir from the HdrHistogram library.

    Creates a new histogram metric with a Reservoir from the HdrHistogram library.

    name

    the name of the histogram

    Definition Classes
    HdrMetricBuilder → MetricBuilder
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def meter(name: String): Meter

    Permalink
    Definition Classes
    MetricBuilder
  18. def metricNameFor(name: String): String

    Permalink
    Attributes
    protected
    Definition Classes
    MetricBuilder
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val registry: MetricRegistry

    Permalink
    Definition Classes
    MetricBuilder
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def timer(name: String): Timer

    Permalink

    Creates a new timer metric with a Reservoir from the HdrHistogram library.

    Creates a new timer metric with a Reservoir from the HdrHistogram library.

    name

    the name of the timer

    Definition Classes
    HdrMetricBuilder → MetricBuilder
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def unregisterGauges(): Unit

    Permalink
    Definition Classes
    MetricBuilder
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def cachedGauge[A](name: String, timeout: FiniteDuration, scope: String)(f: ⇒ A): Gauge[A]

    Permalink
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 4.0.3) Please use cachedGauge(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  2. def counter(name: String, scope: String): Counter

    Permalink
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 4.0.3) Please use counter(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  3. def gauge[A](name: String, scope: String)(f: ⇒ A): Gauge[A]

    Permalink
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 4.0.3) Please use gauge(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  4. def histogram(name: String, scope: String): Histogram

    Permalink
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 4.0.3) Please use histogram(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  5. def meter(name: String, scope: String): Meter

    Permalink
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 4.0.3) Please use meter(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

  6. def metricNameFor(name: String, scope: String): String

    Permalink
    Attributes
    protected
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 4.0.3) Do not use metricNameFor, it is an internal API. This method will be removed in v5.0.0.

  7. def timer(name: String, scope: String): Timer

    Permalink
    Definition Classes
    DeprecatedMetricBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 4.0.3) Please use timer(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.

Inherited from MetricBuilder

Inherited from DeprecatedMetricBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped