Class AggClientConnection

java.lang.Object
org.apache.pekko.actor.AbstractActor
com.arpnetworking.clusteraggregator.client.AggClientConnection
All Implemented Interfaces:
org.apache.pekko.actor.Actor

public class AggClientConnection extends org.apache.pekko.actor.AbstractActor
An actor that handles the data sent from an agg client.
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

    Constructors
    Constructor
    Description
    AggClientConnection(org.apache.pekko.actor.ActorRef connection, InetSocketAddress remote, scala.concurrent.duration.FiniteDuration maxConnectionAge, boolean calculateAggregates)
    Public constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.actor.AbstractActor.Receive
     
    static org.apache.pekko.actor.Props
    props(org.apache.pekko.actor.ActorRef connection, InetSocketAddress remote, scala.concurrent.duration.FiniteDuration maxConnectionAge, boolean calculateAggregates)
    Creates a Props for use 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AggClientConnection

      public AggClientConnection(org.apache.pekko.actor.ActorRef connection, InetSocketAddress remote, scala.concurrent.duration.FiniteDuration maxConnectionAge, boolean calculateAggregates)
      Public constructor.
      Parameters:
      connection - Reference to the client connection actor.
      remote - The address of the client socket.
      maxConnectionAge - The maximum duration to keep a connection open before cycling it.
      calculateAggregates - True to compute cluster aggregations, false to only publish host aggregations
  • Method Details

    • props

      public static org.apache.pekko.actor.Props props(org.apache.pekko.actor.ActorRef connection, InetSocketAddress remote, scala.concurrent.duration.FiniteDuration maxConnectionAge, boolean calculateAggregates)
      Creates a Props for use in Pekko.
      Parameters:
      connection - Reference to the client connection actor.
      remote - The address of the client socket.
      maxConnectionAge - The maximum duration to keep a connection open before cycling it.
      calculateAggregates - True to compute cluster aggregations, false to only publish host aggregations
      Returns:
      A new Props.
    • createReceive

      public org.apache.pekko.actor.AbstractActor.Receive createReceive()
      Specified by:
      createReceive in class org.apache.pekko.actor.AbstractActor