Class SingletonStatusReporter
java.lang.Object
org.apache.pekko.actor.AbstractActor
org.apache.pekko.actor.AbstractActorWithTimers
org.eclipse.ditto.internal.utils.health.AbstractHealthCheckingActor
org.eclipse.ditto.internal.utils.health.SingletonStatusReporter
- All Implemented Interfaces:
org.apache.pekko.actor.Actor,org.apache.pekko.actor.Timers
Actor to report health status for a singleton on and only on the role leader of a 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 inherited from class org.eclipse.ditto.internal.utils.health.AbstractHealthCheckingActor
ACTOR_NAME, log -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.pekko.actor.AbstractActor.ReceiveDefines aAbstractActor.Receivefor the messages to be handled by the subclass actor.static org.apache.pekko.actor.PropsCreate Props actor for this actor.protected voidDefines the action of the subclass actor which will be triggered when its health status is requested.Methods inherited from class org.eclipse.ditto.internal.utils.health.AbstractHealthCheckingActor
createReceive, getHealth, updateHealthMethods inherited from class org.apache.pekko.actor.AbstractActorWithTimers
aroundPostStop, aroundPreRestart, aroundReceive, getTimers, org$apache$pekko$actor$Timers$_setter_$org$apache$pekko$actor$Timers$$_timers_$eq, org$apache$pekko$actor$Timers$$_timers, timersMethods inherited from class org.apache.pekko.actor.AbstractActor
aroundPostRestart, aroundPreStart, 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, unhandledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.actor.Actor
aroundPostRestart, aroundPreStart, context, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, postStop, preRestart, preStart, receive, self, sender, supervisorStrategy, unhandled
-
Method Details
-
props
public static org.apache.pekko.actor.Props props(String clusterRole, org.apache.pekko.actor.ActorRef cleanupCoordinatorProxy) Create Props actor for this actor.- Parameters:
clusterRole- cluster role where the singleton starts.cleanupCoordinatorProxy- proxy of the cluster singleton cleanup coordinator.- Returns:
- Props to report status of the cleanup coordinator.
-
matchCustomMessages
protected org.apache.pekko.actor.AbstractActor.Receive matchCustomMessages()Description copied from class:AbstractHealthCheckingActorDefines aAbstractActor.Receivefor the messages to be handled by the subclass actor.- Specified by:
matchCustomMessagesin classAbstractHealthCheckingActor- Returns:
- the
AbstractActor.Receive.
-
triggerHealthRetrieval
protected void triggerHealthRetrieval()Description copied from class:AbstractHealthCheckingActorDefines the action of the subclass actor which will be triggered when its health status is requested.- Specified by:
triggerHealthRetrievalin classAbstractHealthCheckingActor
-