Interface JobGraphStoreWatcher
-
- All Known Implementing Classes:
NoOpJobGraphStoreWatcher,ZooKeeperJobGraphStoreWatcher
public interface JobGraphStoreWatcherA watcher onJobGraphStore. It could monitor all the changes on the job graph store and notify theJobGraphStoreviaJobGraphStore.JobGraphListener.Important: The
JobGraphStoreWatchercould not guarantee that there is noJobGraphStore.JobGraphListenercallbacks happen afterstop(). So the implementor is responsible for filtering out these spurious callbacks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstart(JobGraphStore.JobGraphListener jobGraphListener)Start the watcher onJobGraphStore.voidstop()Stop the watcher onJobGraphStore.
-
-
-
Method Detail
-
start
void start(JobGraphStore.JobGraphListener jobGraphListener) throws Exception
Start the watcher onJobGraphStore.- Parameters:
jobGraphListener- use jobGraphListener to notify theDefaultJobGraphStore- Throws:
Exception- when start internal services
-
stop
void stop() throws Exception
Stop the watcher onJobGraphStore.- Throws:
Exception- when stop internal services
-
-