Class StatusSupplierActor

java.lang.Object
org.apache.pekko.actor.AbstractActor
org.eclipse.ditto.internal.utils.health.status.StatusSupplierActor
All Implemented Interfaces:
org.apache.pekko.actor.Actor

public final class StatusSupplierActor extends org.apache.pekko.actor.AbstractActor
Actor supplying "status" and "health" information of an ActorSystem. Has to be started as "root" actor so that address is the same for all microservices in Things-Cluster.
  • 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$
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of this Actor in the ActorSystem.
    static final String
    Command name for retrieving the "health" of this instance.
    static final String
    Command name for retrieving the "status" of this instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.actor.AbstractActor.Receive
     
    static org.apache.pekko.actor.Props
    props(String rootActorName)
    Creates Pekko configuration object Props for this StatusSupplierActor.

    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
  • Field Details

    • ACTOR_NAME

      public static final String ACTOR_NAME
      The name of this Actor in the ActorSystem.
      See Also:
    • SIMPLE_COMMAND_RETRIEVE_STATUS

      public static final String SIMPLE_COMMAND_RETRIEVE_STATUS
      Command name for retrieving the "status" of this instance.
      See Also:
    • SIMPLE_COMMAND_RETRIEVE_HEALTH

      public static final String SIMPLE_COMMAND_RETRIEVE_HEALTH
      Command name for retrieving the "health" of this instance.
      See Also:
  • Method Details

    • props

      public static org.apache.pekko.actor.Props props(String rootActorName)
      Creates Pekko configuration object Props for this StatusSupplierActor.
      Parameters:
      rootActorName - sets the name of the root actor (e.g. "thingsRoot") which is used as the parent of AbstractHealthCheckingActor.ACTOR_NAME.
      Returns:
      the Pekko configuration Props object
    • createReceive

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