Class ZooKeeperJobGraphStoreWatcher
- java.lang.Object
-
- org.apache.flink.runtime.jobmanager.ZooKeeperJobGraphStoreWatcher
-
- All Implemented Interfaces:
JobGraphStoreWatcher
public class ZooKeeperJobGraphStoreWatcher extends Object implements JobGraphStoreWatcher
JobGraphStoreWatcherimplementation 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
JobGraphStore.JobGraphListenerto react to such situations.
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperJobGraphStoreWatcher(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(JobGraphStore.JobGraphListener jobGraphListener)Start the watcher onJobGraphStore.voidstop()Stop the watcher onJobGraphStore.
-
-
-
Method Detail
-
start
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
Description copied from interface:JobGraphStoreWatcherStart the watcher onJobGraphStore.- Specified by:
startin interfaceJobGraphStoreWatcher- Parameters:
jobGraphListener- use jobGraphListener to notify theDefaultJobGraphStore- Throws:
Exception- when start internal services
-
stop
public void stop() throws ExceptionDescription copied from interface:JobGraphStoreWatcherStop the watcher onJobGraphStore.- Specified by:
stopin interfaceJobGraphStoreWatcher- Throws:
Exception- when stop internal services
-
-