public class SessionDispatcherLeaderProcess extends AbstractDispatcherLeaderProcess implements JobGraphStore.JobGraphListener
Dispatcher
.AbstractDispatcherLeaderProcess.DispatcherGatewayService, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory, AbstractDispatcherLeaderProcess.State
log
Modifier and Type | Method and Description |
---|---|
static SessionDispatcherLeaderProcess |
create(UUID leaderSessionId,
AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory,
JobGraphStore jobGraphStore,
Executor ioExecutor,
FatalErrorHandler fatalErrorHandler) |
void |
onAddedJobGraph(JobID jobId)
Callback for
JobGraph instances added by a different JobGraphStore
instance. |
protected CompletableFuture<Void> |
onClose() |
void |
onRemovedJobGraph(JobID jobId)
Callback for
JobGraph instances removed by a different JobGraphStore
instance. |
protected void |
onStart() |
closeAsync, getDispatcherGateway, getDispatcherService, getLeaderAddressFuture, getLeaderSessionId, getShutDownFuture, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected void onStart()
onStart
in class AbstractDispatcherLeaderProcess
protected CompletableFuture<Void> onClose()
onClose
in class AbstractDispatcherLeaderProcess
public void onAddedJobGraph(JobID jobId)
JobGraphStore.JobGraphListener
JobGraph
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.JobGraphListener
jobId
- The JobID
of the added job graphpublic void onRemovedJobGraph(JobID jobId)
JobGraphStore.JobGraphListener
JobGraph
instances removed by a different JobGraphStore
instance.onRemovedJobGraph
in interface JobGraphStore.JobGraphListener
jobId
- The JobID
of the removed job graphpublic static SessionDispatcherLeaderProcess create(UUID leaderSessionId, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory, JobGraphStore jobGraphStore, Executor ioExecutor, FatalErrorHandler fatalErrorHandler)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.