public class MeteringBehavior extends scala.runtime.AbstractPartialFunction<Object,scala.runtime.BoxedUnit>
UntypedActor
This behaviour meters actor's default behaviour. It captures 2 metrics:
MetricsReporter
Constructor and Description |
---|
MeteringBehavior(akka.actor.AbstractActor actor) |
MeteringBehavior(AbstractUntypedActorWithMetering actor)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
scala.runtime.BoxedUnit |
apply(Object message)
Uses 2 timers to measure message processing rate.
|
boolean |
isDefinedAt(Object obj) |
andThen, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, applyOrElse, compose, lift, orElse, runWith, toString
public static final String DOMAIN
public MeteringBehavior(AbstractUntypedActorWithMetering actor)
actor
- whose behaviour needs to be meteredpublic MeteringBehavior(akka.actor.AbstractActor actor)
public boolean isDefinedAt(Object obj)
public scala.runtime.BoxedUnit apply(Object message)
MetricRegistry
maintains a reservoir for different timers where
collected timings are kept. It exposes various metrics for each timer based on collected
data. Eg: count of messages, 99, 95, 50... percentiles, max, mean etc.
These metrics are exposed as JMX bean.
apply
in interface scala.Function1<Object,scala.runtime.BoxedUnit>
apply
in class scala.runtime.AbstractPartialFunction<Object,scala.runtime.BoxedUnit>
message
- the message to processCopyright © 2019 OpenDaylight. All rights reserved.