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.curator5.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.curator5.org.apache.curator.framework.recipes.cache.PathChildrenCache pathCache)
public void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
JobGraphStoreWatcher
JobGraphStore
.start
in interface JobGraphStoreWatcher
jobGraphListener
- use jobGraphListener to notify the DefaultJobGraphStore
Exception
- when start internal servicespublic void stop() throws Exception
JobGraphStoreWatcher
JobGraphStore
.stop
in interface JobGraphStoreWatcher
Exception
- when stop internal servicesCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.