Interface ExecutionPlanStoreWatcher
-
- All Known Implementing Classes:
NoOpExecutionPlanStoreWatcher
,ZooKeeperExecutionPlanStoreWatcher
public interface ExecutionPlanStoreWatcher
A watcher onExecutionPlanStore
. It could monitor all the changes on the execution plan store and notify theExecutionPlanStore
viaExecutionPlanStore.ExecutionPlanListener
.Important: The
ExecutionPlanStoreWatcher
could not guarantee that there is noExecutionPlanStore.ExecutionPlanListener
callbacks 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 void
start(ExecutionPlanStore.ExecutionPlanListener executionPlanListener)
Start the watcher onExecutionPlanStore
.void
stop()
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
-
-