Class ActorGroupStats

java.lang.Object
net.sodacan.core.actor.AbstractActor
net.sodacan.core.actor.ActorGroupStats
All Implemented Interfaces:
Closeable, AutoCloseable, Actor, HostBound

public class ActorGroupStats extends AbstractActor implements HostBound
This host-bound actor displays statistics periodically. Note: A host-bound actor has the kind of lifecycle we need for stats collection: a well-defined beginning (start) and end (close). This actor can process other kinds of messages as well, if needed.
  • Field Details

  • Constructor Details

    • ActorGroupStats

      public ActorGroupStats(Config config, ActorId actorId)
  • Method Details

    • processMessage

      public Stage processMessage()
      Description copied from class: AbstractActor
      Default behavior for an actor is to throw an exception
      Specified by:
      processMessage in interface Actor
      Overrides:
      processMessage in class AbstractActor
      Returns:
      A Stage object containing messages to be processed during Commit
    • startup

      protected Stage startup()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • showSummary

      public void showSummary()
    • showStatus

      public void showStatus(int freqMs)
    • killStatus

      public void killStatus()
      If the periodic status in running, kill it.