Class JvmMetricsCollector

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

public final class JvmMetricsCollector extends org.apache.pekko.actor.AbstractActor
Actor responsible for collecting JVM metrics on a periodic basis.
Author:
Deepika Misra (deepika at groupon 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$
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.actor.AbstractActor.Receive
     
    void
     
    void
     
    static org.apache.pekko.actor.Props
    props(Duration interval, com.arpnetworking.metrics.MetricsFactory metricsFactory)
    Creates a Props 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, preRestart, preRestart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled

    Methods inherited from class java.lang.Object

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

    • props

      public static org.apache.pekko.actor.Props props(Duration interval, com.arpnetworking.metrics.MetricsFactory metricsFactory)
      Creates a Props for construction in Pekko.
      Parameters:
      interval - An instance of Duration.
      metricsFactory - A MetricsFactory to use for metrics creation.
      Returns:
      A new Props.
    • preStart

      public void preStart()
      Specified by:
      preStart in interface org.apache.pekko.actor.Actor
      Overrides:
      preStart in class org.apache.pekko.actor.AbstractActor
    • postStop

      public void postStop()
      Specified by:
      postStop in interface org.apache.pekko.actor.Actor
      Overrides:
      postStop in class org.apache.pekko.actor.AbstractActor
    • createReceive

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