nl.grons.metrics.scala

Meter

class Meter extends AnyRef

A Scala façade class for Meter.

Example usage:

  class Example(val db: Db) extends Instrumented {
    private[this] val rowsLoadedMeter = metrics.meter("rowsLoaded")

    def load(id: Long): Seq[Row] = {
      val rows = db.load(id)
      rowsLoaded.mark(rows.size)
      rows
    }
  }
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Meter
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Meter (metric: Meter)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def count : Long

    The number of events which have been marked.

  9. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def exceptionMarker : AnyRef { def apply[A](f: => A): A }

    Gives a marker that runs f, marks the meter on an exception, and returns result of f.

    Gives a marker that runs f, marks the meter on an exception, and returns result of f.

    Example usage:

      class Example(val db: Db) extends Instrumented {
        private[this] val loadExceptionMeter = metrics.meter("load").exceptionMarker
    
        def load(id: Long) = loadExceptionMeter {
          db.load(id)
        }
      }
    
  12. def fifteenMinuteRate : Double

    The fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.

    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.

  13. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def fiveMinuteRate : Double

    The five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.

    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.

  15. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  18. def mark (count: Long): Unit

    Marks the occurrence of a given number of events.

  19. def mark (): Unit

    Marks the occurrence of an event.

  20. def meanRate : Double

    The mean rate at which events have occurred since the meter was created.

  21. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def oneMinuteRate : Double

    The one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.

    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.

  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toString (): String

    Definition Classes
    AnyRef → Any
  27. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any