public class JobClientActor extends FlinkUntypedActor implements LeaderRetrievalListener
LOG| Constructor and Description |
|---|
JobClientActor(LeaderRetrievalService leaderRetrievalService,
scala.concurrent.duration.FiniteDuration timeout,
boolean sysoutUpdates) |
| Modifier and Type | Method and Description |
|---|---|
static akka.actor.Props |
createJobClientActorProps(LeaderRetrievalService leaderRetrievalService,
scala.concurrent.duration.FiniteDuration timeout,
boolean sysoutUpdates) |
protected UUID |
getLeaderSessionID()
Returns the current leader session ID associcated with this actor.
|
void |
handleError(Exception exception)
This method is called by the
LeaderRetrievalService in case of an exception. |
protected void |
handleMessage(Object message)
This method contains the actor logic which defines how to react to incoming messages.
|
void |
notifyLeaderAddress(String leaderAddress,
UUID leaderSessionID)
This method is called by the
LeaderRetrievalService when a new leader is elected. |
void |
postStop() |
void |
preStart() |
decorateMessage, onReceiveakka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, getContext, getSelf, getSender, postRestart, preRestart, receive, self, sender, supervisorStrategy, unhandledpublic JobClientActor(LeaderRetrievalService leaderRetrievalService, scala.concurrent.duration.FiniteDuration timeout, boolean sysoutUpdates)
public void preStart()
preStart in interface akka.actor.ActorpreStart in class akka.actor.UntypedActorpublic void postStop()
postStop in interface akka.actor.ActorpostStop in class akka.actor.UntypedActorprotected void handleMessage(Object message)
FlinkUntypedActorhandleMessage in class FlinkUntypedActormessage - Incoming messageprotected UUID getLeaderSessionID()
FlinkUntypedActorgetLeaderSessionID in class FlinkUntypedActorpublic void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID)
LeaderRetrievalListenerLeaderRetrievalService when a new leader is elected.notifyLeaderAddress in interface LeaderRetrievalListenerleaderAddress - The address of the new leaderleaderSessionID - The new leader session IDpublic void handleError(Exception exception)
LeaderRetrievalListenerLeaderRetrievalService in case of an exception. This
assures that the LeaderRetrievalListener is aware of any problems occurring in the
LeaderRetrievalService thread.handleError in interface LeaderRetrievalListenerpublic static akka.actor.Props createJobClientActorProps(LeaderRetrievalService leaderRetrievalService, scala.concurrent.duration.FiniteDuration timeout, boolean sysoutUpdates)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.