public class SessionDispatcherLeaderProcess extends AbstractDispatcherLeaderProcess implements JobGraphStore.JobGraphListener
Dispatcher.AbstractDispatcherLeaderProcess.DispatcherGatewayService, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory, AbstractDispatcherLeaderProcess.Statelog| 限定符和类型 | 方法和说明 |
|---|---|
static SessionDispatcherLeaderProcess |
create(UUID leaderSessionId,
AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory,
JobGraphStore jobGraphStore,
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 在类中 AbstractDispatcherLeaderProcessprotected CompletableFuture<Void> onClose()
public 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 在接口中 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 在接口中 JobGraphStore.JobGraphListenerjobId - The JobID of the removed job graphpublic static SessionDispatcherLeaderProcess create(UUID leaderSessionId, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory, JobGraphStore jobGraphStore, Executor ioExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.