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.
| 构造器和说明 |
|---|
ZooKeeperJobGraphStoreWatcher(org.apache.flink.shaded.curator5.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache) |
public ZooKeeperJobGraphStoreWatcher(org.apache.flink.shaded.curator5.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache)
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStoreWatcherJobGraphStore.start 在接口中 JobGraphStoreWatcherjobGraphListener - use jobGraphListener to notify the DefaultJobGraphStoreException - when start internal servicespublic void stop()
throws Exception
JobGraphStoreWatcherJobGraphStore.stop 在接口中 JobGraphStoreWatcherException - when stop internal servicesCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.