Class ZooKeeperJobGraphStoreWatcher

  • All Implemented Interfaces:
    JobGraphStoreWatcher

    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.