com.twitter.finagle.stats

InMemoryStatsReceiver

class InMemoryStatsReceiver extends StatsReceiver

In-memory stats receiver for testing.

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

Instance Constructors

  1. new InMemoryStatsReceiver()

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def addGauge(name: String*)(f: ⇒ Float): Gauge

    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.

    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.

    Definition Classes
    InMemoryStatsReceiverStatsReceiver
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def counter(name: String*): ReadableCounter

    Get a Counter with the description

    Get a Counter with the description

    Definition Classes
    InMemoryStatsReceiverStatsReceiver
  10. def counter0(name: String): Counter

    Get a Counter with the description.

    Get a Counter with the description. This method is a convenience for Java program.

    Definition Classes
    StatsReceiver
  11. val counters: HashMap[Seq[String], Int] with SynchronizedMap[Seq[String], Int]

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. val gauges: WeakHashMap[Seq[String], () ⇒ Float] with SynchronizedMap[Seq[String], () ⇒ Float]

  16. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  19. 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.

    Definition Classes
    StatsReceiver
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. 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.

    Definition Classes
    StatsReceiver
  24. val repr: InMemoryStatsReceiver

    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.

    Definition Classes
    InMemoryStatsReceiverStatsReceiver
  25. def scope(namespace: String): StatsReceiver

    Prepend namespace to the names of this receiver.

    Prepend namespace to the names of this receiver.

    Definition Classes
    StatsReceiver
  26. def scopeSuffix(suffix: String): StatsReceiver

    Prepend a suffix value to the next scope stats.

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

    Definition Classes
    StatsReceiver
  27. def stat(name: String*): ReadableStat

    Get a Stat with the description

    Get a Stat with the description

    Definition Classes
    InMemoryStatsReceiverStatsReceiver
  28. 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.

    Definition Classes
    StatsReceiver
  29. val stats: HashMap[Seq[String], Seq[Float]] with SynchronizedMap[Seq[String], Seq[Float]]

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

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

    Time a given function in milliseconds

    Time a given function in milliseconds

    Definition Classes
    StatsReceiver
  32. def time[T](unit: TimeUnit, name: String*)(f: ⇒ T): T

    Time a given function using the given TimeUnit

    Time a given function using the given TimeUnit

    Definition Classes
    StatsReceiver
  33. def time[T](unit: TimeUnit, stat: Stat)(f: ⇒ T): T

    Time a given function using the given TimeUnit

    Time a given function using the given TimeUnit

    Definition Classes
    StatsReceiver
  34. def timeFuture[T](name: String*)(f: ⇒ Future[T]): Future[T]

    Time a given future in milliseconds

    Time a given future in milliseconds

    Definition Classes
    StatsReceiver
  35. def timeFuture[T](unit: TimeUnit, name: String*)(f: ⇒ Future[T]): Future[T]

    Time a given future using the given TimeUnit

    Time a given future using the given TimeUnit

    Definition Classes
    StatsReceiver
  36. def timeFuture[T](unit: TimeUnit, stat: Stat)(f: ⇒ Future[T]): Future[T]

    Time a given future using the given TimeUnit

    Time a given future using the given TimeUnit

    Definition Classes
    StatsReceiver
  37. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from StatsReceiver

Inherited from AnyRef

Inherited from Any

Ungrouped