主权项 |
1. A maintenance system for updating an event processing system in response to real-world changes, wherein the complex event processing system includes an event processor, a query optimizer, and a knowledge model for which there exists at least one original query and at least one optimized query related thereto, the maintenance system comprising:
a data processing system, including:
an optimization analyzer, for analyzing the at least one optimized query against the at least one original query, and identifying a subset of the knowledge model that affects query optimization;a watch model stored in a non-transitory data storage unit of the data processing system, wherein the watch model includes the subset of the knowledge model that affects query optimization;a monitor query generator, for generating a monitor query based on the subset of the knowledge model that affects query optimization, and for sending the monitor query to the event processor; anda knowledge change listener, for receiving a monitor query response from the event processor in response to the monitor query, for updating the knowledge model according to the monitor query response, and, if re-optimization is required, for sending an initiate optimization command to the query optimizer. |