Class PeriodicStatisticsActor
java.lang.Object
org.apache.pekko.actor.AbstractActor
com.arpnetworking.clusteraggregator.PeriodicStatisticsActor
- All Implemented Interfaces:
org.apache.pekko.actor.Actor
public class PeriodicStatisticsActor
extends org.apache.pekko.actor.AbstractActor
Actor that listens for metrics messages, updates internal state, and emits them.
- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot com)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.actor.AbstractActor
org.apache.pekko.actor.AbstractActor.ActorContext, org.apache.pekko.actor.AbstractActor.Receive
Nested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
org.apache.pekko.actor.Actor.emptyBehavior$, org.apache.pekko.actor.Actor.ignoringBehavior$
-
Constructor Summary
ConstructorDescriptionPeriodicStatisticsActor
(com.arpnetworking.metrics.MetricsFactory metricsFactory) Public constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.actor.AbstractActor.Receive
static org.apache.pekko.actor.Props
props
(com.arpnetworking.metrics.MetricsFactory metricsFactory) Creates aProps
for construction in Pekko.Methods inherited from class org.apache.pekko.actor.AbstractActor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, emptyBehavior, getContext, getSelf, getSender, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, postStop, preRestart, preRestart, preStart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled
-
Constructor Details
-
PeriodicStatisticsActor
public PeriodicStatisticsActor(com.arpnetworking.metrics.MetricsFactory metricsFactory) Public constructor.- Parameters:
metricsFactory
- AMetricsFactory
to use for metrics creation.
-
-
Method Details
-
props
public static org.apache.pekko.actor.Props props(com.arpnetworking.metrics.MetricsFactory metricsFactory) Creates aProps
for construction in Pekko.- Parameters:
metricsFactory
- AMetricsFactory
to use for metrics creation.- Returns:
- A new
Props
.
-
createReceive
public org.apache.pekko.actor.AbstractActor.Receive createReceive()- Specified by:
createReceive
in classorg.apache.pekko.actor.AbstractActor
-