Method for Processing Data, Computing Node, and System
First Claim
1. A method for processing data, wherein the method is applied to a business processor entity (BPE), the method comprising:
- registering a predefined algorithm of the BPE with a complex event processing (CEP) instance located on a computing node which is the same as the computing node which the BPE is located on, wherein the predefined algorithm of the BPE comprises an identifier of a concerned event, an identifier of an event required for computation, and a computation-triggering condition, wherein the identifier of the concerned event is used to identify an event concerned by the predefined algorithm, and wherein the identifier of the event required for computation is used to identify an event required for computation of the predefined algorithm;
obtaining the event that is required for computation of the predefined algorithm and that is transferred by the CEP instance, wherein the event required for computation of the predefined algorithm is transferred by the CEP instance when detecting that the event concerned by the predefined algorithm satisfies the computation-triggering condition;
performing a computation on the event required for computation of the predefined algorithm according to the predefined algorithm to obtain a computation result; and
when determining, according to predefined service logic, that a further computation needs to be performed on the computation result, writing the computation result as an intermediate event to the CEP instance, so that the CEP instance transfers the intermediate event to a BPE which is located on the computing node and registers the another algorithm with the CEP instance, when detecting that an event concerned by another registered algorithm other than the predefined algorithm satisfies a computation-triggering condition in the another algorithm, and the intermediate event is an event required for computation of the another algorithm.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a method for processing data, a computing node, and a system. The method includes: registering, by a BPE, an algorithm with a CEP instance; transferring, by the CEP instance when detecting that an event concerned by the algorithm satisfies a computation-triggering condition, an event required for computation to the BPE; obtaining, by the BPE, a computation result, and if determining that a further computation is required for the computation result, writing the computation result as an intermediate event to the CEP instance; and transferring, by the CEP instance when detecting that an event concerned by another algorithm satisfies a computation-triggering condition thereof and the intermediate event is an event required for computation thereof, the intermediate event to a BPE that registers the another algorithm. The CEP instance performs association of multiple events and multiple algorithms, which simplifies a computation process and improves timeliness.
12 Citations
20 Claims
-
1. A method for processing data, wherein the method is applied to a business processor entity (BPE), the method comprising:
-
registering a predefined algorithm of the BPE with a complex event processing (CEP) instance located on a computing node which is the same as the computing node which the BPE is located on, wherein the predefined algorithm of the BPE comprises an identifier of a concerned event, an identifier of an event required for computation, and a computation-triggering condition, wherein the identifier of the concerned event is used to identify an event concerned by the predefined algorithm, and wherein the identifier of the event required for computation is used to identify an event required for computation of the predefined algorithm; obtaining the event that is required for computation of the predefined algorithm and that is transferred by the CEP instance, wherein the event required for computation of the predefined algorithm is transferred by the CEP instance when detecting that the event concerned by the predefined algorithm satisfies the computation-triggering condition; performing a computation on the event required for computation of the predefined algorithm according to the predefined algorithm to obtain a computation result; and when determining, according to predefined service logic, that a further computation needs to be performed on the computation result, writing the computation result as an intermediate event to the CEP instance, so that the CEP instance transfers the intermediate event to a BPE which is located on the computing node and registers the another algorithm with the CEP instance, when detecting that an event concerned by another registered algorithm other than the predefined algorithm satisfies a computation-triggering condition in the another algorithm, and the intermediate event is an event required for computation of the another algorithm. - View Dependent Claims (2, 3)
-
-
4. A method for processing data, wherein the method is applied to a complex event processing (CEP) instance, the method comprising:
-
registering a predefined algorithm of a business processor entity (BPE) located on a computing node which is the same as the computing node which the CEP is located on, wherein the predefined algorithm of the BPE comprises an identifier of a concerned event, an identifier of an event required for computation, and a computation-triggering condition, wherein the identifier of the concerned event is used to identify an event concerned by the predefined algorithm, and wherein the identifier of the event required for computation is used to identify an event required for computation of the predefined algorithm; when detecting that the event concerned by the predefined algorithm satisfies the computation-triggering condition, transferring the event required for computation of the predefined algorithm to the BPE, so that the BPE performs a computation on the event required for computation of the predefined algorithm according to the predefined algorithm to obtain a computation result; obtaining the computation result written by the BPE, wherein the computation result is written as an intermediate event by the BPE when determining, according to predefined service logic, that a further computation needs to be performed on the computation result; and when detecting that an event concerned by another registered algorithm other than the predefined algorithm satisfies a computation-triggering condition in the another algorithm and the intermediate event is an event required for computation of the another algorithm, transferring the intermediate event to a BPE which is located on the computing node and registers the another algorithm with the CEP instance. - View Dependent Claims (5)
-
-
6. A method for processing data, wherein the method is applied to a computing node comprising a business processor entity (BPE) and a complex event processing (CEP) instance, the method comprising:
-
registering, by the BPE, a predefined algorithm of the BPE with the CEP instance, wherein the predefined algorithm comprises an identifier of a concerned event, an identifier of an event required for computation, and a computation-triggering condition, wherein the identifier of the concerned event is used to identify an event concerned by the predefined algorithm, and wherein the identifier of the event required for computation is used to identify an event required for computation of the predefined algorithm; transferring, by the CEP instance when detecting that the event concerned by the predefined algorithm satisfies the computation-triggering condition, the event required for computation of the predefined algorithm to the BPE; performing, by the BPE, a computation on the event required for computation of the predefined algorithm according to the predefined algorithm to obtain a computation result; and when the BPE determines, according to predefined service logic, that a further computation needs to be performed on the computation result, writing the computation result as an intermediate event to the CEP instance; and when detecting that an event concerned by another registered algorithm other than the predefined algorithm satisfies a computation-triggering condition in the another algorithm and the intermediate event is an event required for computation of the another algorithm, transferring, by the CEP instance, the intermediate event to a BPE which is located on the computing node and registers the another algorithm with the CEP instance. - View Dependent Claims (7, 8, 9, 10, 11)
-
-
12. A computing node, comprising:
-
a business processor entity (BPE); and a complex event processing (CEP) instance, wherein the BPE is configured to register a predefined algorithm of the BPE with the CEP instance, wherein the predefined algorithm comprises an identifier of a concerned event, an identifier of an event required for computation, and a computation-triggering condition, wherein the identifier of the concerned event is used to identify an event concerned by the predefined algorithm, wherein the identifier of the event required for computation is used to identify an event required for computation of the predefined algorithm, wherein the CEP instance is configured to transfer, when detecting that the event concerned by the predefined algorithm satisfies the computation-triggering condition, the event required for computation of the predefined algorithm to the BPE, wherein the BPE is further configured to perform a computation on the event required for computation of the predefined algorithm according to the predefined algorithm to obtain a computation result, and when determining, according to predefined service logic, that a further computation needs to be performed on the computation result, write the computation result as an intermediate event to the CEP instance; and wherein the CEP instance is further configured to transfer the intermediate event to a BPE which is located on the computing node and registers the another algorithm with the CEP instance when detecting that an event concerned by another registered algorithm other than the predefined algorithm satisfies a computation-triggering condition in the another algorithm and the intermediate event is an event required for computation of the another algorithm. - View Dependent Claims (13, 14, 15, 16, 17)
-
-
18. A distributed computing system, comprising:
-
a scheduler; and at least one computing node, wherein each computing node comprises a business processor entity (BPE) and a complex event processing (CEP) instance, wherein the BPE is configured to register a predefined algorithm of the BPE with the CEP instance, wherein the predefined algorithm comprises an identifier of a concerned event, an identifier of an event required for computation, and a computation-triggering condition, wherein the identifier of the concerned event is used to identify an event concerned by the predefined algorithm, and wherein the identifier of the event required for computation is used to identify an event required for computation of the predefined algorithm, wherein the CEP instance is configured to transfer the event required for computation of the predefined algorithm to the BPE when detecting that the event concerned by the predefined algorithm satisfies the computation-triggering condition, wherein the BPE is further configured to perform a computation on the event required for computation of the predefined algorithm according to the predefined algorithm to obtain a computation result, and when determining, according to predefined service logic, that a further computation needs to be performed on the computation result, write the computation result as an intermediate event to the CEP instance; and wherein when detecting that an event concerned by another registered algorithm other than the predefined algorithm satisfies a computation-triggering condition in the another algorithm and the intermediate event is an event required for computation of the another algorithm, the CEP instance is further configured to transfer the intermediate event to a BPE which is located on the computing node and registers the another algorithm with the CEP instance, and wherein the scheduler is configured to collect resource information of each computing node, determine a scheduling mode for each computing node according to the resource information, and respectively schedule each computing node according to the scheduling mode of each computing node. - View Dependent Claims (19, 20)
-
Specification