Class ZooKeeperExecutionPlanStoreWatcher
java.lang.Object
org.apache.flink.runtime.jobmanager.ZooKeeperExecutionPlanStoreWatcher
- All Implemented Interfaces:
ExecutionPlanStoreWatcher
ExecutionPlanStoreWatcher implementation for ZooKeeper.
Each job graph creates ZNode:
+----O /flink/jobgraphs/<job-id> 1 [persistent] . . . +----O /flink/jobgraphs/<job-id> N [persistent]
The root path is watched to detect concurrent modifications in corner situations where
multiple instances operate concurrently. The job manager acts as a ExecutionPlanStore.ExecutionPlanListener to react to such situations.
-
Constructor Summary
ConstructorsConstructorDescriptionZooKeeperExecutionPlanStoreWatcher(org.apache.flink.shaded.curator5.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache) -
Method Summary
Modifier and TypeMethodDescriptionvoidstart(ExecutionPlanStore.ExecutionPlanListener executionPlanListener) Start the watcher onExecutionPlanStore.voidstop()Stop the watcher onExecutionPlanStore.
-
Constructor Details
-
ZooKeeperExecutionPlanStoreWatcher
public ZooKeeperExecutionPlanStoreWatcher(org.apache.flink.shaded.curator5.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache)
-
-
Method Details
-
start
Description copied from interface:ExecutionPlanStoreWatcherStart the watcher onExecutionPlanStore.- Specified by:
startin interfaceExecutionPlanStoreWatcher- Parameters:
executionPlanListener- use executionPlanListener to notify theDefaultExecutionPlanStore- Throws:
Exception- when start internal services
-
stop
Description copied from interface:ExecutionPlanStoreWatcherStop the watcher onExecutionPlanStore.- Specified by:
stopin interfaceExecutionPlanStoreWatcher- Throws:
Exception- when stop internal services
-