Interface ExecutionPlanStoreWatcher
-
- All Known Implementing Classes:
NoOpExecutionPlanStoreWatcher,ZooKeeperExecutionPlanStoreWatcher
public interface ExecutionPlanStoreWatcherA watcher onExecutionPlanStore. It could monitor all the changes on the execution plan store and notify theExecutionPlanStoreviaExecutionPlanStore.ExecutionPlanListener.Important: The
ExecutionPlanStoreWatchercould not guarantee that there is noExecutionPlanStore.ExecutionPlanListenercallbacks 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(ExecutionPlanStore.ExecutionPlanListener executionPlanListener)Start the watcher onExecutionPlanStore.voidstop()Stop the watcher onExecutionPlanStore.
-
-
-
Method Detail
-
start
void start(ExecutionPlanStore.ExecutionPlanListener executionPlanListener) throws Exception
Start the watcher onExecutionPlanStore.- Parameters:
executionPlanListener- use executionPlanListener to notify theDefaultExecutionPlanStore- Throws:
Exception- when start internal services
-
stop
void stop() throws Exception
Stop the watcher onExecutionPlanStore.- Throws:
Exception- when stop internal services
-
-