class RollupStatsReceiver extends StatsReceiver with DelegatingStatsReceiver with Proxy
A RollupStatsReceiver reports stats on multiple Counter/Stat/Gauge based on the sequence of names you pass. e.g. counter("errors", "clientErrors", "java_net_ConnectException").incr() will actually increment those three counters: - "/errors" - "/errors/clientErrors" - "/errors/clientErrors/java_net_ConnectException"
- Alphabetic
- By Inheritance
- RollupStatsReceiver
- Proxy
- DelegatingStatsReceiver
- StatsReceiver
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RollupStatsReceiver(self: StatsReceiver)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addGauge(names: String*)(f: ⇒ Float): Gauge
Add the function
fas a gauge with the given name.Add the function
fas a gauge with the given name.The returned gauge value is only weakly referenced by the StatsReceiver, and if garbage collected will eventually cease to be a part of this measurement: thus, it needs to be retained by the caller. Or put another way, the measurement is only guaranteed to exist as long as there exists a strong reference to the returned gauge and typically should be stored in a member variable.
Measurements under the same name are added together.
- Definition Classes
- RollupStatsReceiver → StatsReceiver
- See also
StatsReceiver.provideGauge when there is not a good location to store the returned gauge that can give the desired lifecycle.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
counter(names: String*): Counter
Get a counter with the given
name.Get a counter with the given
name.- Definition Classes
- RollupStatsReceiver → StatsReceiver
-
def
counter0(name: String): Counter
Get a counter with the given
name.Get a counter with the given
name.This method is a convenience for Java programs, but is no longer needed because StatsReceivers.counter is usable from java.
- Definition Classes
- StatsReceiver
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Proxy → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- Proxy → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
provideGauge(name: String*)(f: ⇒ Float): Unit
Register a function
fas a gauge with the given name that has a lifecycle with no end.Register a function
fas a gauge with the given name that has a lifecycle with no end.This measurement exists in perpetuity.
Measurements under the same name are added together.
- Definition Classes
- StatsReceiver
- See also
StatsReceiver.addGauge if you can properly control the lifecycle of the returned gauge.
-
val
repr: AnyRef
- Definition Classes
- RollupStatsReceiver → StatsReceiver
-
final
def
scope(namespaces: String*): StatsReceiver
Prepend
namespaceandnamespacesto the names of the returned StatsReceiver.Prepend
namespaceandnamespacesto the names of the returned StatsReceiver.For example:
statsReceiver.scope("client", "backend", "pool").counter("adds")
will generate a counter named
/client/backend/pool/adds.- Definition Classes
- StatsReceiver
- Annotations
- @varargs()
-
def
scope(namespace: String): StatsReceiver
Prepend
namespaceto the names of the returned StatsReceiver.Prepend
namespaceto the names of the returned StatsReceiver.For example:
statsReceiver.scope("client").counter("adds") statsReceiver.scope("client").scope("backend").counter("adds")
will generate counters named
/client/addsand/client/backend/adds.- Definition Classes
- StatsReceiver
-
def
scopeSuffix(suffix: String): StatsReceiver
Prepend a suffix value to the next scope.
Prepend a suffix value to the next scope.
For example:
statsReceiver.scopeSuffix("toto").scope("client").counter("adds")
will generate a counter named
/client/toto/adds.- Definition Classes
- StatsReceiver
-
val
self: StatsReceiver
- Definition Classes
- RollupStatsReceiver → Proxy
-
def
stat(names: String*): Stat
Get a stat with the given name.
Get a stat with the given name.
- Definition Classes
- RollupStatsReceiver → StatsReceiver
-
def
stat0(name: String): Stat
Get a stat with the given name.
Get a stat with the given name. This method is a convenience for Java programs, but is no longer needed because StatsReceivers.counter is usable from java.
- Definition Classes
- StatsReceiver
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- RollupStatsReceiver → Proxy → AnyRef → Any
-
def
underlying: Seq[StatsReceiver]
The underlying StatsReceivers that the class delegates to.
The underlying StatsReceivers that the class delegates to.
Must be nonempty.
- Definition Classes
- RollupStatsReceiver → DelegatingStatsReceiver
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )