public class SessionDispatcherLeaderProcess extends AbstractDispatcherLeaderProcess implements JobGraphStore.JobGraphListener
Dispatcher.AbstractDispatcherLeaderProcess.DispatcherGatewayService, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory, AbstractDispatcherLeaderProcess.Statelog| Modifier and Type | Method and Description |
|---|---|
static SessionDispatcherLeaderProcess |
create(UUID leaderSessionId,
AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory,
JobGraphStore jobGraphStore,
JobResultStore jobResultStore,
Executor ioExecutor,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) |
void |
onAddedJobGraph(org.apache.flink.api.common.JobID jobId)
Callback for
JobGraph instances added by a different JobGraphStore
instance. |
protected CompletableFuture<Void> |
onClose() |
void |
onRemovedJobGraph(org.apache.flink.api.common.JobID jobId)
Callback for
JobGraph instances removed by a different JobGraphStore
instance. |
protected void |
onStart() |
closeAsync, getDispatcherGateway, getDispatcherService, getLeaderAddressFuture, getLeaderSessionId, getShutDownFuture, startprotected void onStart()
onStart in class AbstractDispatcherLeaderProcessprotected CompletableFuture<Void> onClose()
onClose in class AbstractDispatcherLeaderProcesspublic void onAddedJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphStore.JobGraphListenerJobGraph instances added by a different JobGraphStore
instance.
Important: It is possible to get false positives and be notified about a job graph, which was added by this instance.
onAddedJobGraph in interface JobGraphStore.JobGraphListenerjobId - The JobID of the added job graphpublic void onRemovedJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphStore.JobGraphListenerJobGraph instances removed by a different JobGraphStore
instance.onRemovedJobGraph in interface JobGraphStore.JobGraphListenerjobId - The JobID of the removed job graphpublic static SessionDispatcherLeaderProcess create(UUID leaderSessionId, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory, JobGraphStore jobGraphStore, JobResultStore jobResultStore, Executor ioExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.