public class ZooKeeperJobGraphStoreWatcher extends Object implements JobGraphStoreWatcher
JobGraphStoreWatcher 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 JobGraphStore.JobGraphListener to react to such situations.
| Constructor and Description |
|---|
ZooKeeperJobGraphStoreWatcher(org.apache.flink.shaded.curator4.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
start(JobGraphStore.JobGraphListener jobGraphListener)
Start the watcher on
JobGraphStore. |
void |
stop()
Stop the watcher on
JobGraphStore. |
public ZooKeeperJobGraphStoreWatcher(org.apache.flink.shaded.curator4.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache)
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStoreWatcherJobGraphStore.start in interface JobGraphStoreWatcherjobGraphListener - use jobGraphListener to notify the DefaultJobGraphStoreException - when start internal servicespublic void stop()
throws Exception
JobGraphStoreWatcherJobGraphStore.stop in interface JobGraphStoreWatcherException - when stop internal servicesCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.