Class ZooKeeperExecutionPlanStoreWatcher
- java.lang.Object
-
- org.apache.flink.runtime.jobmanager.ZooKeeperExecutionPlanStoreWatcher
-
- All Implemented Interfaces:
ExecutionPlanStoreWatcher
public class ZooKeeperExecutionPlanStoreWatcher extends Object implements ExecutionPlanStoreWatcher
ExecutionPlanStoreWatcherimplementation 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.ExecutionPlanListenerto react to such situations.
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperExecutionPlanStoreWatcher(org.apache.flink.shaded.curator5.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart(ExecutionPlanStore.ExecutionPlanListener executionPlanListener)Start the watcher onExecutionPlanStore.voidstop()Stop the watcher onExecutionPlanStore.
-
-
-
Method Detail
-
start
public void start(ExecutionPlanStore.ExecutionPlanListener executionPlanListener) throws Exception
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
public void stop() throws ExceptionDescription copied from interface:ExecutionPlanStoreWatcherStop the watcher onExecutionPlanStore.- Specified by:
stopin interfaceExecutionPlanStoreWatcher- Throws:
Exception- when stop internal services
-
-