public class MeteringBehavior extends Object implements akka.japi.Procedure<Object>
UntypedActor
This behaviour meters actor's default behaviour. It captures 2 metrics:
MetricsReporter| Constructor and Description |
|---|
MeteringBehavior(AbstractUntypedActorWithMetering actor)
Constructs an instance.
|
MeteringBehavior(akka.actor.UntypedActor actor) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Object message)
Uses 2 timers to measure message processing rate.
|
public static final String DOMAIN
public MeteringBehavior(AbstractUntypedActorWithMetering actor)
actor - whose behaviour needs to be meteredpublic MeteringBehavior(akka.actor.UntypedActor actor)
public void apply(Object message) throws Exception
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 akka.japi.Procedure<Object>message - the message to processException - on message failureCopyright © 2019 OpenDaylight. All rights reserved.