Class SessionDispatcherLeaderProcess
- java.lang.Object
-
- org.apache.flink.runtime.dispatcher.runner.AbstractDispatcherLeaderProcess
-
- org.apache.flink.runtime.dispatcher.runner.SessionDispatcherLeaderProcess
-
- All Implemented Interfaces:
AutoCloseable
,ExecutionPlanStore.ExecutionPlanListener
,org.apache.flink.util.AutoCloseableAsync
public class SessionDispatcherLeaderProcess extends AbstractDispatcherLeaderProcess implements ExecutionPlanStore.ExecutionPlanListener
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 SessionDispatcherLeaderProcess
create(UUID leaderSessionId, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory, ExecutionPlanStore executionPlanStore, JobResultStore jobResultStore, Executor ioExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)
void
onAddedExecutionPlan(org.apache.flink.api.common.JobID jobId)
Callback forExecutionPlan
instances added by a differentExecutionPlanStore
instance.protected CompletableFuture<Void>
onClose()
void
onRemovedExecutionPlan(org.apache.flink.api.common.JobID jobId)
Callback forExecutionPlan
instances removed by a differentExecutionPlanStore
instance.protected void
onStart()
-
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:
onStart
in classAbstractDispatcherLeaderProcess
-
onClose
protected CompletableFuture<Void> onClose()
- Overrides:
onClose
in classAbstractDispatcherLeaderProcess
-
onAddedExecutionPlan
public void onAddedExecutionPlan(org.apache.flink.api.common.JobID jobId)
Description copied from interface:ExecutionPlanStore.ExecutionPlanListener
Callback forExecutionPlan
instances added by a differentExecutionPlanStore
instance.Important: It is possible to get false positives and be notified about a job graph, which was added by this instance.
- Specified by:
onAddedExecutionPlan
in interfaceExecutionPlanStore.ExecutionPlanListener
- Parameters:
jobId
- TheJobID
of the added job graph
-
onRemovedExecutionPlan
public void onRemovedExecutionPlan(org.apache.flink.api.common.JobID jobId)
Description copied from interface:ExecutionPlanStore.ExecutionPlanListener
Callback forExecutionPlan
instances removed by a differentExecutionPlanStore
instance.- Specified by:
onRemovedExecutionPlan
in interfaceExecutionPlanStore.ExecutionPlanListener
- Parameters:
jobId
- TheJobID
of the removed job graph
-
create
public static SessionDispatcherLeaderProcess create(UUID leaderSessionId, AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory dispatcherFactory, ExecutionPlanStore executionPlanStore, JobResultStore jobResultStore, Executor ioExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)
-
-