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.ReceiveNested 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.actor.AbstractActor.Receivestatic org.apache.pekko.actor.PropsCreates 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
-
Field Details
-
ACTOR_NAME
The name of this Actor in the ActorSystem.- See Also:
-
SIMPLE_COMMAND_RETRIEVE_STATUS
Command name for retrieving the "status" of this instance.- See Also:
-
SIMPLE_COMMAND_RETRIEVE_HEALTH
Command name for retrieving the "health" of this instance.- See Also:
-
-
Method Details
-
props
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 ofAbstractHealthCheckingActor.ACTOR_NAME.- Returns:
- the Pekko configuration Props object
-
createReceive
public org.apache.pekko.actor.AbstractActor.Receive createReceive()- Specified by:
createReceivein classorg.apache.pekko.actor.AbstractActor
-