Class LogScanner

java.lang.Object
org.apache.pekko.actor.AbstractActor
com.arpnetworking.metrics.proxy.actors.LogScanner
All Implemented Interfaces:
org.apache.pekko.actor.Actor

public final class LogScanner extends org.apache.pekko.actor.AbstractActor
Actor responsible for discovering files that are created or removed.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • 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
    LogScanner(org.apache.pekko.actor.ActorRef fileSourceManager, List<Path> logs)
    Public constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.actor.AbstractActor.Receive
     
    Generate a Steno log compatible representation.
     

    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, wait, wait, wait
  • Constructor Details

    • LogScanner

      @Inject public LogScanner(org.apache.pekko.actor.ActorRef fileSourceManager, List<Path> logs)
      Public constructor.
      Parameters:
      fileSourceManager - ActorRef for the singleton FileSourceManager actor
      logs - The List of files to monitor.
  • Method Details

    • createReceive

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

      public Object toLogValue()
      Generate a Steno log compatible representation.
      Returns:
      Steno log compatible representation.
    • toString

      public String toString()
      Overrides:
      toString in class Object