Interface ExecutionPlanStore.ExecutionPlanListener
- All Known Implementing Classes:
DefaultExecutionPlanStore,SessionDispatcherLeaderProcess
- Enclosing interface:
- ExecutionPlanStore
public static interface ExecutionPlanStore.ExecutionPlanListener
A listener for
ExecutionPlan instances. This is used to react to races between
multiple running ExecutionPlanStore instances (on multiple job managers).-
Method Summary
Modifier and TypeMethodDescriptionvoidonAddedExecutionPlan(org.apache.flink.api.common.JobID jobId) Callback forExecutionPlaninstances added by a differentExecutionPlanStoreinstance.voidonRemovedExecutionPlan(org.apache.flink.api.common.JobID jobId) Callback forExecutionPlaninstances removed by a differentExecutionPlanStoreinstance.
-
Method Details
-
onAddedExecutionPlan
void onAddedExecutionPlan(org.apache.flink.api.common.JobID jobId) Callback forExecutionPlaninstances added by a differentExecutionPlanStoreinstance.Important: It is possible to get false positives and be notified about a job graph, which was added by this instance.
- Parameters:
jobId- TheJobIDof the added job graph
-
onRemovedExecutionPlan
void onRemovedExecutionPlan(org.apache.flink.api.common.JobID jobId) Callback forExecutionPlaninstances removed by a differentExecutionPlanStoreinstance.- Parameters:
jobId- TheJobIDof the removed job graph
-