public class JobManagerRetriever extends Object implements LeaderRetrievalListener
WebRuntimeMonitor
to which this instance is associated will be stopped.
The job manager gateway only works if the web monitor and the job manager run in the same
actor system, because many execution graph structures are not serializable. This breaks the nice
leader retrieval abstraction and we have a special code path in case that another job manager is
leader (see HandlerRedirectUtils
. In such a
case, we get the address of the web monitor of the leading job manager and redirect to it
(instead of directly communicating with it).
Constructor and Description |
---|
JobManagerRetriever(WebMonitor webMonitor,
akka.actor.ActorSystem actorSystem,
scala.concurrent.duration.FiniteDuration lookupTimeout,
scala.concurrent.duration.FiniteDuration timeout) |
Modifier and Type | Method and Description |
---|---|
scala.Tuple2<ActorGateway,Integer> |
awaitJobManagerGatewayAndWebPort()
Awaits the leading job manager gateway and its web monitor port.
|
scala.Option<scala.Tuple2<ActorGateway,Integer>> |
getJobManagerGatewayAndWebPort()
Returns the currently known leading job manager gateway and its web monitor port.
|
void |
handleError(Exception exception) |
void |
notifyLeaderAddress(String leaderAddress,
UUID leaderSessionID) |
public JobManagerRetriever(WebMonitor webMonitor, akka.actor.ActorSystem actorSystem, scala.concurrent.duration.FiniteDuration lookupTimeout, scala.concurrent.duration.FiniteDuration timeout)
public scala.Option<scala.Tuple2<ActorGateway,Integer>> getJobManagerGatewayAndWebPort() throws Exception
Exception
public scala.Tuple2<ActorGateway,Integer> awaitJobManagerGatewayAndWebPort() throws Exception
Exception
public void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID)
notifyLeaderAddress
in interface LeaderRetrievalListener
public void handleError(Exception exception)
handleError
in interface LeaderRetrievalListener
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.