Class SessionDispatcherLeaderProcess
- java.lang.Object
-
- org.apache.flink.runtime.dispatcher.runner.AbstractDispatcherLeaderProcess
-
- org.apache.flink.runtime.dispatcher.runner.SessionDispatcherLeaderProcess
-
- All Implemented Interfaces:
AutoCloseable,JobGraphStore.JobGraphListener,org.apache.flink.util.AutoCloseableAsync
public class SessionDispatcherLeaderProcess extends AbstractDispatcherLeaderProcess implements JobGraphStore.JobGraphListener
Process which encapsulates the job recovery logic and life cycle management of aDispatcher.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.dispatcher.runner.AbstractDispatcherLeaderProcess
AbstractDispatcherLeaderProcess.DispatcherGatewayService, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory, AbstractDispatcherLeaderProcess.State
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.dispatcher.runner.AbstractDispatcherLeaderProcess
log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionDispatcherLeaderProcesscreate(UUID leaderSessionId, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory, JobGraphStore jobGraphStore, JobResultStore jobResultStore, Executor ioExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)voidonAddedJobGraph(org.apache.flink.api.common.JobID jobId)Callback forJobGraphinstances added by a differentJobGraphStoreinstance.protected CompletableFuture<Void>onClose()voidonRemovedJobGraph(org.apache.flink.api.common.JobID jobId)Callback forJobGraphinstances removed by a differentJobGraphStoreinstance.protected voidonStart()-
Methods inherited from class org.apache.flink.runtime.dispatcher.runner.AbstractDispatcherLeaderProcess
closeAsync, getDispatcherGateway, getDispatcherService, getLeaderAddressFuture, getLeaderSessionId, getShutDownFuture, start
-
-
-
-
Method Detail
-
onStart
protected void onStart()
- Specified by:
onStartin classAbstractDispatcherLeaderProcess
-
onClose
protected CompletableFuture<Void> onClose()
- Overrides:
onClosein classAbstractDispatcherLeaderProcess
-
onAddedJobGraph
public void onAddedJobGraph(org.apache.flink.api.common.JobID jobId)
Description copied from interface:JobGraphStore.JobGraphListenerCallback forJobGraphinstances added by a differentJobGraphStoreinstance.Important: It is possible to get false positives and be notified about a job graph, which was added by this instance.
- Specified by:
onAddedJobGraphin interfaceJobGraphStore.JobGraphListener- Parameters:
jobId- TheJobIDof the added job graph
-
onRemovedJobGraph
public void onRemovedJobGraph(org.apache.flink.api.common.JobID jobId)
Description copied from interface:JobGraphStore.JobGraphListenerCallback forJobGraphinstances removed by a differentJobGraphStoreinstance.- Specified by:
onRemovedJobGraphin interfaceJobGraphStore.JobGraphListener- Parameters:
jobId- TheJobIDof the removed job graph
-
create
public static SessionDispatcherLeaderProcess create(UUID leaderSessionId, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory, JobGraphStore jobGraphStore, JobResultStore jobResultStore, Executor ioExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)
-
-