Patent ID: 8826428

Claim:
An event detection method in a distributed environment, which is carried out by an apparatus comprising a grammar control module and a plurality of grammar parser modules including at least a first grammar parser module for initiating the detection of event, the method comprises: after the first grammar parser module generates a non-parsable event during an parsing process of a received event to be detected, executing the following process under a control of the grammar control module, until the first grammar parser module obtains a detection result of the event to be detected, wherein the first grammar parser module is a hardware module; at the current grammar parser module, including the event that the current grammar parser module is not capable of parsing into a scheduling request as a next event to be detected, and sending the scheduling request to the grammar control module; scheduling, by the grammar control module, other grammar parser module of the plurality of grammar parser modules as a target grammar parser module for parsing based on the generated scheduling strategy table, according to the next event to be detected included in the scheduling request, the scheduling strategy table reflecting an association relation between the event to be detected and the grammar parser module used to process the event to be detected; parsing in the scheduled target grammar parser module the next event to be detected, based on a local parsing table of the target grammar parser module; and returning, by the target grammar parser module, the parsing result to the grammar control module for further grammar parsing when no event is found that the target grammar parser module is not capable of parsing during the parsing process of the next event to be detected, or repeating the above-mentioned process with the target grammar parser module as a new current grammar parser module when an event is found that the target grammar parser module is not capable of parsing during the parsing process of the next event to be detected, wherein, the local parsing tables of the grammar parser modules are generated, by means of a distributed item sets generating algorithm, for event detection rules preset by distributed predicative context-free grammars under the control of the grammar control module.