com.twitter.finagle.stats

StatsReceiver

trait StatsReceiver extends AnyRef

An interface for recording metrics. Named Counters, Stats, and Gauges can be accessed through the corresponding methods of this class.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StatsReceiver
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addGauge(name: String*)(f: ⇒ Float): Gauge

    Add the function f as a gauge with the given name.

    Add the function f as a gauge with the given name. The returned gauge value is only weakly referenced by the StatsReceiver, and if garbage collected will cease to be a part of this measurement: thus, it needs to be retained by the caller. Immortal measurements are made with provideGauge. As with provideGauge, gauges with equal names are added together.

  2. abstract def counter(name: String*): Counter

    Get a Counter with the prefix name.

  3. abstract val repr: AnyRef

    Specifies the representative receiver.

    Specifies the representative receiver. This is in order to expose an object we can use for comparison so that global stats are only reported once per receiver.

  4. abstract def stat(name: String*): Stat

    Get a Stat with the description

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Get a Counter with the prefix name.

    Get a Counter with the prefix name. This method is a convenience for Java programs, but is no longer needed because StatsReceiver#counter is usable from java.

  7. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  13. def isNull: Boolean

    Accurately indicates if this is a NullStatsReceiver.

    Accurately indicates if this is a NullStatsReceiver. Because equality is not forwarded via scala.Proxy, this is helpful to check for a NullStatsReceiver.

  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def provideGauge(name: String*)(f: ⇒ Float): Unit

    Register a function to be periodically measured.

    Register a function to be periodically measured. This measurement exists in perpetuity. Measurements under the same name are added together.

  18. def scope(namespace: String): StatsReceiver

    Prepend namespace to the names of this receiver.

  19. def scopeSuffix(suffix: String): StatsReceiver

    Prepend a suffix value to the next scope.

    Prepend a suffix value to the next scope. stats.scopeSuffix("toto").scope("client").counter("adds") will generate /client/toto/adds

  20. def stat0(name: String): Stat

    Get a Stat with the description.

    Get a Stat with the description. This method is a convenience for Java programs, but is no longer needed because StatsReceiver#counter is usable from java.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def time[T](name: String*)(f: ⇒ T): T

    Time a given function in milliseconds This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.

  23. def time[T](unit: TimeUnit, name: String*)(f: ⇒ T): T

    Time a given function using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.

  24. def time[T](unit: TimeUnit, stat: Stat)(f: ⇒ T): T

    Time a given function using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.

  25. def timeFuture[T](name: String*)(f: ⇒ Future[T]): Future[T]

    Time a given future in milliseconds.

    Time a given future in milliseconds. This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.

  26. def timeFuture[T](unit: TimeUnit, name: String*)(f: ⇒ Future[T]): Future[T]

    Time a given future using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.

  27. def timeFuture[T](unit: TimeUnit, stat: Stat)(f: ⇒ Future[T]): Future[T]

    Time a given future using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.

  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped