Interface ExecutionPlanStoreWatcher
- All Known Implementing Classes:
NoOpExecutionPlanStoreWatcher,ZooKeeperExecutionPlanStoreWatcher
public interface ExecutionPlanStoreWatcher
A watcher on
ExecutionPlanStore. It could monitor all the changes on the execution plan
store and notify the ExecutionPlanStore via ExecutionPlanStore.ExecutionPlanListener.
Important: The ExecutionPlanStoreWatcher could not guarantee that
there is no ExecutionPlanStore.ExecutionPlanListener callbacks happen after stop(). So the implementor is responsible for filtering out these spurious callbacks.
-
Method Summary
Modifier and TypeMethodDescriptionvoidstart(ExecutionPlanStore.ExecutionPlanListener executionPlanListener) Start the watcher onExecutionPlanStore.voidstop()Stop the watcher onExecutionPlanStore.
-
Method Details
-
start
Start the watcher onExecutionPlanStore.- Parameters:
executionPlanListener- use executionPlanListener to notify theDefaultExecutionPlanStore- Throws:
Exception- when start internal services
-
stop
Stop the watcher onExecutionPlanStore.- Throws:
Exception- when stop internal services
-