CN104239145A - Method and device for controlling data consistency based on event mechanism - Google Patents

Method and device for controlling data consistency based on event mechanism Download PDF

Info

Publication number
CN104239145A
CN104239145A CN201410508717.7A CN201410508717A CN104239145A CN 104239145 A CN104239145 A CN 104239145A CN 201410508717 A CN201410508717 A CN 201410508717A CN 104239145 A CN104239145 A CN 104239145A
Authority
CN
China
Prior art keywords
event
affairs
preposition
penetration
startup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410508717.7A
Other languages
Chinese (zh)
Other versions
CN104239145B (en
Inventor
樊京鑫
李顺龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410508717.7A priority Critical patent/CN104239145B/en
Publication of CN104239145A publication Critical patent/CN104239145A/en
Application granted granted Critical
Publication of CN104239145B publication Critical patent/CN104239145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a method and a device for controlling data consistency based on an event mechanism. The method for controlling the data consistency based on the event mechanism comprises the following steps of according to the registration information of a pre-registered event, determining a to-be-monitored preset event and an entry point of the preset event; monitoring if the determined preset event is started or not; after the determined preset event is monitored to be started, monitoring if the currently started preset event reaches the corresponding entry point or not; when the currently started preset event reaches the corresponding entry point, determining the identification of the event corresponding to the entry point of the currently started preset event and the parameter information for executing the event; according to the determined identification of the event and the parameter information for executing the event, executing the event, so as to trigger the starting of the subsequent event corresponding to the event. By adopting the technical scheme, the method has the advantage that the consistency of the data which cannot be incorporated into one event but need to be subjected to ordered processing operation is guaranteed.

Description

A kind of data consistency control method based on case mechanism and device
Technical field
The present invention relates to field of computer technology, particularly a kind of data consistency control method based on case mechanism and device.
Background technology
In computer systems, which, for ensureing the consistance of the data that each application link uses, general method is, multiple data manipulation is bundled, and includes same affairs in and performs.Affairs are exactly an indivisible work unit, and the data manipulation comprised in affairs is all done or do not done, and the data user that can ensure outside affairs like this can not obtain the misdata that these affairs produce in data processing change procedure.
But in actual applications, some scenes be not suitable for all including all data manipulations in same affairs and process.Such as, in certain scene, advance data operation and subsequent data action need carry out in order, and namely subsequent data operation needs the result that can obtain advance data operation, but does not rely on the success of advance data operation.If include subsequent data operation and advance data operation in same affairs, due to the binding characteristic of affairs, advance data can be caused to operate and subsequent data operates or all successful execution, or all perform failure, be not inconsistent with expection, process so the two can not be included in same affairs.In addition, when preposition data manipulation and subsequent data operation exist cross-region, cross-system distributed scene, the two can not be included in same affairs in most cases and process.
At present for the data manipulation across affairs, especially for same affairs can not be included in but need carry out the data manipulation that processes in order, in guarantee data consistency, also do not compare effective method.
Summary of the invention
For solving the problem, the embodiment of the invention discloses a kind of data consistency control method based on case mechanism and device.Technical scheme is as follows:
Based on a data consistency control method for case mechanism, comprising:
According to the log-on message of the event of registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, the postorder affairs that each event correspondence one is to be launched, the log-on message of each event at least comprises the mark of the preposition affairs belonging to the mark of this event, this event, the point of penetration performing preposition affairs corresponding to this event and the parameter information performed needed for this event;
Monitor determined preposition affairs whether to start;
After listening to determined preposition affairs startup, whether the preposition affairs monitoring current startup reach corresponding point of penetration;
When reaching the point of penetration of preposition affairs of current startup, the mark determining the event that the point of penetration of the preposition affairs of startup current with this is corresponding and the parameter information performed needed for this event;
According to the mark of definite event and the parameter information that performs needed for this event, perform this event, to trigger the startup of postorder affairs corresponding to this event.
In a kind of embodiment of the present invention, whether the determined preposition affairs of described monitoring start, and comprising:
Monitor determined preposition affairs whether to start;
Or,
Monitor the notification message whether receiving the startup of determined preposition affairs, if listened to, then show that determined preposition affairs start.
In a kind of embodiment of the present invention, described after listening to determined preposition affairs startup, whether the preposition affairs monitoring current startup reach corresponding point of penetration, comprising:
After listening to determined preposition affairs startup, whether the preposition affairs of monitoring current startup reach corresponding point of penetration;
Or,
After listening to determined preposition affairs startup, monitor the notification message that the preposition affairs whether receiving current startup reach corresponding point of penetration, if listened to, then show that the preposition affairs of current startup have reached corresponding point of penetration.
In a kind of embodiment of the present invention, the described mark according to definite event and the parameter information performed needed for this event, perform this event, to trigger the startup of postorder affairs corresponding to this event, comprising:
According to the mark of determined event, obtain the parameter definition performed needed for this event;
Parameter definition needed for this event of execution obtained, is the parameter assignment needed for this event of the execution in the log-on message of this event, to perform this event, and then triggers the startup of postorder affairs corresponding to this event.
In a kind of embodiment of the present invention, the point of penetration of described preposition affairs at least comprises described preposition affairs and submits to when starting or when described preposition affairs have submitted to.
Based on a data consistency control device for case mechanism, comprising:
First determining unit, for the log-on message of the event according to registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, the postorder affairs that each event correspondence one is to be launched, the log-on message of each event at least comprises the mark of the preposition affairs belonging to the mark of this event, this event, the point of penetration performing preposition affairs corresponding to this event and the parameter information performed needed for this event;
Whether the first monitoring unit, start for monitoring the determined preposition affairs of described first determining unit;
Second monitoring unit, for listen to determined preposition affairs startup at described first monitoring unit after, whether the preposition affairs monitoring current startup reach corresponding point of penetration;
Second determining unit, for when reaching the point of penetration of preposition affairs of current startup, the mark determining the event that the point of penetration of the preposition affairs of startup current with this is corresponding and the parameter information performed needed for this event;
Event execution unit, for according to the mark of described second determining unit definite event and the parameter information that performs needed for this event, performs this event, to trigger the startup of postorder affairs corresponding to this event.
In a kind of embodiment of the present invention, described first monitoring unit specifically for:
Monitor determined preposition affairs whether to start;
Or,
Monitor the notification message whether receiving the startup of determined preposition affairs, if listened to, then show that determined preposition affairs start.
In a kind of embodiment of the present invention, described second monitoring unit specifically for:
After listening to determined preposition affairs startup, whether the preposition affairs of monitoring current startup reach corresponding point of penetration;
Or,
After listening to determined preposition affairs startup, monitor the notification message that the preposition affairs whether receiving current startup reach corresponding point of penetration, if listened to, then show that the preposition affairs of current startup have reached corresponding point of penetration.
In a kind of embodiment of the present invention, described event execution unit, comprising:
Parameter definition obtains subelement, for the mark according to the determined event of described second determining unit, obtains the parameter definition performed needed for this event;
Parameter information assignment subelement, for the parameter definition needed for this event of execution of parameter definition acquisition subelement acquisition, for the parameter assignment needed for this event of the execution in the log-on message of this event, to perform this event, and then trigger the startup of postorder affairs corresponding to this event.
In a kind of embodiment of the present invention, the point of penetration of described preposition affairs at least comprises described preposition affairs and submits to when starting or when described preposition affairs have submitted to.
The technical scheme that the embodiment of the present invention provides, according to the log-on message of the event of registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, when the preposition affairs listening to current startup reach corresponding point of penetration, perform the event registered in this point of penetration, to trigger the startup of postorder affairs corresponding to this event.The technical scheme that the application embodiment of the present invention provides, when carrying out event registration, according to the actual requirements, by the different points of penetration of event registration in preposition affairs, perform each event to trigger the startup of postorder affairs corresponding to each event in corresponding point of penetration, thus ensure that and can not include same affairs in but the consistance that the data of the data manipulation processed need be carried out in order.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure based on the data consistency control method of case mechanism in the embodiment of the present invention;
Fig. 2 is the another kind of implementing procedure figure based on the data consistency control method of case mechanism in the embodiment of the present invention;
Fig. 3 is a kind of structural representation based on the data consistency control device of case mechanism in the embodiment of the present invention.
Embodiment
First be described a kind of data consistency control method based on case mechanism that the embodiment of the present invention provides, the method can comprise the following steps:
According to the log-on message of the event of registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, the postorder affairs that each event correspondence one is to be launched, the log-on message of each event at least comprises the mark of the preposition affairs belonging to the mark of this event, this event, the point of penetration performing preposition affairs corresponding to this event and the parameter information performed needed for this event;
Monitor determined preposition affairs whether to start;
After listening to determined preposition affairs startup, whether the preposition affairs monitoring current startup reach corresponding point of penetration;
When reaching the point of penetration of preposition affairs of current startup, the mark determining the event that the point of penetration of the preposition affairs of startup current with this is corresponding and the parameter information performed needed for this event;
According to the mark of definite event and the parameter information that performs needed for this event, perform this event, to trigger the startup of postorder affairs corresponding to this event.
Preposition affairs and postorder affairs are comparatively speaking, in a certain affairs, carry out event registration, these affairs can be referred to as preposition affairs, and affairs to be launched corresponding for this event are referred to as postorder affairs.Be understandable that, preposition affairs and postorder affairs can be the db transactions in respective module, can also be the different db transactions in a module.Module mentioned here can be thread, process, Netz ocket or business module etc.
In the following example, the startup of postorder affairs is realized by the event registered in preposition affairs:
The preposition affairs of < start >
Data manipulation 1
Data manipulation 2
……
Event registration
……
Data manipulation n
The preposition affairs of < submit > to
The technical scheme that the embodiment of the present invention provides, according to the log-on message of the event of registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, when the preposition affairs listening to current startup reach corresponding point of penetration, perform the event registered in this point of penetration, to trigger the startup of postorder affairs corresponding to this event.The technical scheme that the application embodiment of the present invention provides, when carrying out event registration, according to the actual requirements, by the different points of penetration of event registration in preposition affairs, perform each event to trigger the startup of postorder affairs corresponding to each event in corresponding point of penetration, thus ensure that and can not include same affairs in but the consistance that the data of the data manipulation processed need be carried out in order.
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, be the implementing procedure figure of a kind of data consistency control method based on case mechanism that the embodiment of the present invention provides, the method can comprise the following steps:
S110, according to the log-on message of the event of registered in advance, determines preposition affairs to be monitored and the point of penetration of these preposition affairs;
In actual applications, need in preposition affairs, to carry out event registration in advance, the postorder affairs that each event correspondence one is to be launched, the log-on message of each event at least comprises the mark of the preposition affairs belonging to the mark of this event, this event, the point of penetration performing preposition affairs corresponding to this event and the parameter information performed needed for this event.
For ease of understanding, the content comprised in the log-on message of each event is described in further details.
The mark of this event: the i.e. sign-on ID of this event, can ensure the uniqueness of this event is also the foundation triggering the execution of this event;
The mark of the preposition affairs belonging to this event: by this event registration in which preposition affairs;
Perform the point of penetration of preposition affairs corresponding to this event: namely perform this event in which point of penetration of preposition affairs;
Perform the parameter information needed for this event: namely performing this event needs to give what value to the parameter needed for it.
The triggering of event performs depends on the bottom frame support that concrete data store, and the data storage method of any support affairs at least exists two and triggers point of penetration, respectively: affairs are submitted to when starting and when affairs have submitted to.Affairs are submitted to when starting and are referred to that all data manipulations are normal, begin through data storage support and carry out data persistence; Refer to when affairs have been submitted to that all data movement complete persistence, other users can carry out data manipulation to it.For meeting the demand for control in various situation, the triggering of event performs can be supported with under type:
First kind of way: synchronously perform event immediately;
The second way: asynchronous execution event immediately;
The third mode: event place affairs are submitted to when starting and synchronously performed this event;
4th kind of mode: event place affairs submit this event of asynchronous execution when starting to;
5th kind of mode: event place affairs are synchronous at the end of submitting to performs this event;
6th kind of mode: this event of asynchronous execution at the end of the submission of event place affairs.
In preposition affairs, when carrying out event registration in advance, define the mark of registered event and the parameter performed needed for this event, the log-on message of these events and event definition are undertaken managing and supporting by task manager.Task manager according to the preposition affairs belonging to this event in log-on message mark and perform the point of penetration of preposition affairs corresponding to this event, can determine which preposition affairs and its point of penetration are preposition affairs to be monitored and the point of penetration of these preposition affairs.
As example 1, for a certain registered event, with A, B, C, D represent respectively the preposition affairs belonging to the mark of this event, this event mark, perform preposition affairs corresponding to this event point of penetration, perform parameter information needed for this event, the log-on message so for registered event X, event Y, event Z can be respectively:
Log-on message [the A of event X x, B x, C x, D x];
Log-on message [the A of event Y y, B x, C y, D y];
Log-on message [the A of event Z z, B z, C z, D z].
Can learn from above-mentioned log-on message, event X and event Y is registered in preposition affairs B xin event, point of penetration C xand C ybe respectively the preposition affairs B that execution event X and event Y is corresponding xpoint of penetration, event Z is registered in preposition affairs B zin event, point of penetration C zfor performing preposition affairs B corresponding to event Z zpoint of penetration.According to above-mentioned log-on message, can by preposition affairs B xwith preposition affairs B zbe defined as preposition affairs to be monitored, accordingly, preposition affairs B xpoint of penetration be C xand C y, preposition affairs B zpoint of penetration be C z.
Whether S120, monitor determined preposition affairs and start;
Whether step S110 determines after the preposition affairs monitored, and monitors determined preposition affairs, monitor it and start.
In a kind of embodiment of the present invention, monitoring the method whether determined preposition affairs start can be, whether monitor determined preposition affairs to start, whether the mode of monitoring of namely being taken the initiative by task manager, monitor determined preposition affairs and start.
In another kind of embodiment of the present invention, monitoring the method whether determined preposition affairs start can also be, monitor the notification message whether receiving determined preposition affairs and start, if listened to, then show that determined preposition affairs start.
In this embodiment, can set preposition affairs, when preposition affairs start, send a notification message to task manager, notification message received by task manager is monitored, judge whether it is the notification message that determined preposition affairs start, and if so, then shows that determined preposition affairs start.
S130, after listening to determined preposition affairs startup, whether the preposition affairs monitoring current startup reach corresponding point of penetration;
In actual applications, by multiple event registration in same preposition affairs, the point of penetration of these preposition affairs corresponding to each event can be performed.After step S120 listens to determined preposition affairs startup, whether the preposition affairs continuing to monitor current startup reach corresponding point of penetration.As in example 1, event X and event Y is registered in preposition affairs B xin, the point of penetration of the preposition affairs BX of its correspondence is respectively C xand C y.When listening to preposition affairs B xafter startup, continue the preposition affairs B monitoring current startup xwhether reach point of penetration C xor C y.
In a kind of embodiment of the present invention, the method whether preposition affairs monitoring current startup reach corresponding point of penetration can be, whether the preposition affairs of monitoring current startup reach corresponding point of penetration, namely by task manager take the initiative monitoring mode, whether the preposition affairs of monitoring current startup reach corresponding point of penetration.
In another kind of embodiment of the present invention, the method whether preposition affairs monitoring current startup reach corresponding point of penetration can also be, monitor the notification message that the preposition affairs whether receiving current startup reach corresponding point of penetration, if listened to, then show that the preposition affairs of current startup have reached corresponding point of penetration.
In this embodiment, can set preposition affairs, when preposition affairs start and reach the point of penetration of its correspondence, send a notification message to task manager, task manager monitors the notification message that the preposition affairs whether receiving current startup reach corresponding point of penetration, if listened to, then show that the preposition affairs of current startup have reached corresponding point of penetration.
S140, when reaching the point of penetration of preposition affairs of current startup, the mark determining the event that the point of penetration of the preposition affairs of startup current with this is corresponding and the parameter information performed needed for this event;
When step S130 listens to the point of penetration of the preposition affairs reaching current startup, by the point of penetration of these preposition affairs, the mark that the event that the point of penetration of the preposition affairs of startup current with this is corresponding can be determined and the parameter information performed needed for this event.The point of penetration be understandable that, at least comprise the mark of the preposition affairs belonging to the mark of this event, this event in the log-on message of the event of registered in advance, performing preposition affairs corresponding to this event and the parameter information performed needed for this event.The mark of the point of penetration of the preposition affairs of current startup and the preposition affairs belonging to this event in log-on message, the point of penetration that performs preposition affairs corresponding to this event can be mated, then can obtain the log-on message of corresponding event, thus the mark determining this event in the log-on message obtained and the parameter information performed needed for this event.
As above in the example 1 that exemplifies, if listen to preposition affairs B xstart, and reach its point of penetration C xtime, the log-on message of corresponding event X can be obtained by this information, the preposition affairs B with current startup can be determined from the log-on message of event X xpoint of penetration C xcorresponding event X is designated A x, the parameter information performed needed for this event X is D x.Equally, as the preposition affairs B reaching current startup xpoint of penetration C ytime, pass through B x, C yinformation can obtain the log-on message of corresponding event Y, can determine the preposition affairs B with current startup from the log-on message of event Y xpoint of penetration C ycorresponding event Y is designated A y, the parameter information performed needed for this event Y is D y.
S150, according to the mark of definite event and the parameter information that performs needed for this event, performs this event, to trigger the startup of postorder affairs corresponding to this event.
The mark determining the event corresponding with the point of penetration of the preposition affairs of current startup in step S140 and the parameter information performed needed for this event, namely this event is the event of the point of penetration of the preposition affairs being registered in current startup, perform this event, thus trigger the startup of postorder affairs corresponding to this event.That is, the startup of postorder affairs, point of penetration during event registration is depended in the data manipulation carried out.If the point of penetration of event registration is set to affairs when having submitted to, then can eliminates preposition affairs and submit the mistiming between performing with postorder affairs to, thus data consistency when guaranteeing that orderly standalone transaction performs.
Shown in Figure 2, in one embodiment of the invention, step S150, according to the mark of definite event and the parameter information that performs needed for this event, performs this event, to trigger the startup of postorder affairs corresponding to this event, specifically can comprise the following steps:
S151, according to the mark of determined event, obtains the parameter definition performed needed for this event;
As previously mentioned, in preposition affairs, when carrying out event registration in advance, define the mark of registered event and the parameter performed needed for this event, the log-on message of these events and event definition are undertaken managing and supporting by task manager.Task manager is according to the mark of the determined event of step S140, and obtain the corresponding parameter definition performed needed for this event by inquiry mode, namely event correctly performs required initialization data definition.
S152, the parameter definition needed for this event of execution obtained, is the parameter assignment needed for this event of the execution in the log-on message of this event, to perform this event, and then triggers the startup of postorder affairs corresponding to this event.
When carrying out event registration in preposition affairs, program is run context and is in preposition affairs, can obtain handle and the bottom-up information of preposition affairs.After obtaining in step S151 the parameter definition performed needed for this event, define according to this parameter, by instantiation handle and the parameter assignment needed for this event of the execution in the log-on message of this event to complete the execution of event, and then trigger the startup of postorder affairs corresponding to this event.
The technical scheme that the embodiment of the present invention provides, according to the log-on message of the event of registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, when the preposition affairs listening to current startup reach corresponding point of penetration, perform the event registered in this point of penetration, to trigger the startup of postorder affairs corresponding to this event.The technical scheme that the application embodiment of the present invention provides, when carrying out event registration, according to the actual requirements, by the different points of penetration of event registration in preposition affairs, perform each event to trigger the startup of postorder affairs corresponding to each event in corresponding point of penetration, thus ensure that and can not include same affairs in but the consistance that the data of the data manipulation processed need be carried out in order.
Corresponding to embodiment of the method above, the present invention also provides a kind of data consistency control device based on case mechanism, and as shown in Figure 3, this device can comprise:
First determining unit 210, for the log-on message of the event according to registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, the postorder affairs that each event correspondence one is to be launched, the log-on message of each event at least comprises the mark of the preposition affairs belonging to the mark of this event, this event, the point of penetration performing preposition affairs corresponding to this event and the parameter information performed needed for this event;
Whether the first monitoring unit 220, start for monitoring the determined preposition affairs of described first determining unit 210;
Second monitoring unit 230, for listen to determined preposition affairs startup at described first monitoring unit 220 after, whether the preposition affairs monitoring current startup reach corresponding point of penetration;
Second determining unit 240, for when reaching the point of penetration of preposition affairs of current startup, the mark determining the event that the point of penetration of the preposition affairs of startup current with this is corresponding and the parameter information performed needed for this event;
Event execution unit 250, for according to the mark of described second determining unit 240 definite event and the parameter information that performs needed for this event, performs this event, to trigger the startup of postorder affairs corresponding to this event.
In a kind of embodiment of the present invention, described first monitoring unit 220 specifically for:
Monitor determined preposition affairs whether to start;
Or,
Monitor the notification message whether receiving the startup of determined preposition affairs, if listened to, then show that determined preposition affairs start.
In a kind of embodiment of the present invention, described second monitoring unit 220 specifically for:
After listening to determined preposition affairs startup, whether the preposition affairs of monitoring current startup reach corresponding point of penetration;
Or,
After listening to determined preposition affairs startup, monitor the notification message that the preposition affairs whether receiving current startup reach corresponding point of penetration, if listened to, then show that the preposition affairs of current startup have reached corresponding point of penetration.
In a kind of embodiment of the present invention, described event execution unit 250, comprising:
Parameter definition obtains subelement, for the mark according to the determined event of described second determining unit 240, obtains the parameter definition performed needed for this event;
Parameter information assignment subelement, for the parameter definition needed for this event of execution of parameter definition acquisition subelement acquisition, for the parameter assignment needed for this event of the execution in the log-on message of this event, to perform this event, and then trigger the startup of postorder affairs corresponding to this event.
In a kind of embodiment of the present invention, the point of penetration of described preposition affairs at least comprises described preposition affairs and submits to when starting or when described preposition affairs have submitted to.
The device that the embodiment of the present invention provides, according to the log-on message of the event of registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, when the preposition affairs listening to current startup reach corresponding point of penetration, perform the event registered in this point of penetration, to trigger the startup of postorder affairs corresponding to this event.The device that the application embodiment of the present invention provides, when carrying out event registration, according to the actual requirements, by the different points of penetration of event registration in preposition affairs, perform each event to trigger the startup of postorder affairs corresponding to each event in corresponding point of penetration, thus ensure that and can not include same affairs in but the consistance that the data of the data manipulation processed need be carried out in order.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1., based on a data consistency control method for case mechanism, it is characterized in that, comprising:
According to the log-on message of the event of registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, the postorder affairs that each event correspondence one is to be launched, the log-on message of each event at least comprises the mark of the preposition affairs belonging to the mark of this event, this event, the point of penetration performing preposition affairs corresponding to this event and the parameter information performed needed for this event;
Monitor determined preposition affairs whether to start;
After listening to determined preposition affairs startup, whether the preposition affairs monitoring current startup reach corresponding point of penetration;
When reaching the point of penetration of preposition affairs of current startup, the mark determining the event that the point of penetration of the preposition affairs of startup current with this is corresponding and the parameter information performed needed for this event;
According to the mark of definite event and the parameter information that performs needed for this event, perform this event, to trigger the startup of postorder affairs corresponding to this event.
2. method according to claim 1, is characterized in that, whether the determined preposition affairs of described monitoring start, and comprising:
Monitor determined preposition affairs whether to start;
Or,
Monitor the notification message whether receiving the startup of determined preposition affairs, if listened to, then show that determined preposition affairs start.
3. method according to claim 1, is characterized in that, described after listening to determined preposition affairs startup, whether the preposition affairs monitoring current startup reach corresponding point of penetration, comprising:
After listening to determined preposition affairs startup, whether the preposition affairs of monitoring current startup reach corresponding point of penetration;
Or,
After listening to determined preposition affairs startup, monitor the notification message that the preposition affairs whether receiving current startup reach corresponding point of penetration, if listened to, then show that the preposition affairs of current startup have reached corresponding point of penetration.
4. method according to claim 1, is characterized in that, the described mark according to definite event and the parameter information performed needed for this event, perform this event, to trigger the startup of postorder affairs corresponding to this event, comprising:
According to the mark of determined event, obtain the parameter definition performed needed for this event;
Parameter definition needed for this event of execution obtained, is the parameter assignment needed for this event of the execution in the log-on message of this event, to perform this event, and then triggers the startup of postorder affairs corresponding to this event.
5. the method according to any one of Claims 1-4, is characterized in that, the point of penetration of described preposition affairs at least comprises described preposition affairs and submits to when starting or when described preposition affairs have submitted to.
6., based on a data consistency control device for case mechanism, it is characterized in that, comprising:
First determining unit, for the log-on message of the event according to registered in advance, determine preposition affairs to be monitored and the point of penetration of these preposition affairs, the postorder affairs that each event correspondence one is to be launched, the log-on message of each event at least comprises the mark of the preposition affairs belonging to the mark of this event, this event, the point of penetration performing preposition affairs corresponding to this event and the parameter information performed needed for this event;
Whether the first monitoring unit, start for monitoring the determined preposition affairs of described first determining unit;
Second monitoring unit, for listen to determined preposition affairs startup at described first monitoring unit after, whether the preposition affairs monitoring current startup reach corresponding point of penetration;
Second determining unit, for when reaching the point of penetration of preposition affairs of current startup, the mark determining the event that the point of penetration of the preposition affairs of startup current with this is corresponding and the parameter information performed needed for this event;
Event execution unit, for according to the mark of described second determining unit definite event and the parameter information that performs needed for this event, performs this event, to trigger the startup of postorder affairs corresponding to this event.
7. device according to claim 6, is characterized in that, described first monitoring unit specifically for:
Monitor determined preposition affairs whether to start;
Or,
Monitor the notification message whether receiving the startup of determined preposition affairs, if listened to, then show that determined preposition affairs start.
8. device according to claim 6, is characterized in that, described second monitoring unit specifically for:
After listening to determined preposition affairs startup, whether the preposition affairs of monitoring current startup reach corresponding point of penetration;
Or,
After listening to determined preposition affairs startup, monitor the notification message that the preposition affairs whether receiving current startup reach corresponding point of penetration, if listened to, then show that the preposition affairs of current startup have reached corresponding point of penetration.
9. device according to claim 6, is characterized in that, described event execution unit, comprising:
Parameter definition obtains subelement, for the mark according to the determined event of described second determining unit, obtains the parameter definition performed needed for this event;
Parameter information assignment subelement, for the parameter definition needed for this event of execution of parameter definition acquisition subelement acquisition, for the parameter assignment needed for this event of the execution in the log-on message of this event, to perform this event, and then trigger the startup of postorder affairs corresponding to this event.
10. the device according to any one of claim 6 to 9, is characterized in that, the point of penetration of described preposition affairs at least comprises described preposition affairs and submits to when starting or when described preposition affairs have submitted to.
CN201410508717.7A 2014-09-28 2014-09-28 A kind of data consistency control method and device based on case mechanism Active CN104239145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410508717.7A CN104239145B (en) 2014-09-28 2014-09-28 A kind of data consistency control method and device based on case mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410508717.7A CN104239145B (en) 2014-09-28 2014-09-28 A kind of data consistency control method and device based on case mechanism

Publications (2)

Publication Number Publication Date
CN104239145A true CN104239145A (en) 2014-12-24
CN104239145B CN104239145B (en) 2017-10-27

Family

ID=52227276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410508717.7A Active CN104239145B (en) 2014-09-28 2014-09-28 A kind of data consistency control method and device based on case mechanism

Country Status (1)

Country Link
CN (1) CN104239145B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460437A (en) * 2018-11-19 2019-03-12 南京苏宁易付宝网络科技有限公司 Event-handling method and processing system under a kind of distributed environment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155370A (en) * 2006-12-08 2008-04-02 中兴通讯股份有限公司 Business serial processing method and system in multi-stream application of mobile communication system
CN102340537A (en) * 2011-06-30 2012-02-01 北京新媒传信科技有限公司 Distributed business processing method and device
US20120127315A1 (en) * 2010-11-18 2012-05-24 Kurt Heier Software, systems, and methods for video recording of a transaction involving protected data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155370A (en) * 2006-12-08 2008-04-02 中兴通讯股份有限公司 Business serial processing method and system in multi-stream application of mobile communication system
US20120127315A1 (en) * 2010-11-18 2012-05-24 Kurt Heier Software, systems, and methods for video recording of a transaction involving protected data
CN102340537A (en) * 2011-06-30 2012-02-01 北京新媒传信科技有限公司 Distributed business processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈骏: "主动数据库技术在银行CRM中的应用研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460437A (en) * 2018-11-19 2019-03-12 南京苏宁易付宝网络科技有限公司 Event-handling method and processing system under a kind of distributed environment
CN109460437B (en) * 2018-11-19 2021-05-28 南京苏宁易付宝网络科技有限公司 Event processing method and system in distributed environment

Also Published As

Publication number Publication date
CN104239145B (en) 2017-10-27

Similar Documents

Publication Publication Date Title
US9990209B2 (en) Digital assistance device for facilitating multi-stage setup
CN103313216B (en) Message prompt method, system and device for communication account
US10110549B2 (en) Method, server and electronic devices of synchronizing notification messages for electronic devices
EP3407200A1 (en) Method and device for updating online self-learning event detection model
US20140068040A1 (en) System for Enabling Server Maintenance Using Snapshots
US20230017725A1 (en) Device state identification method and apparatus, and intelligent terminal
CN104160657A (en) Intelligent infrastructure management user device
CN108156030B (en) Method and device for synchronizing configuration strategies
CN108023881B (en) Application login method, device, medium and electronic equipment
CN105915657B (en) Data synchronization method and device and client
CN106302099B (en) Session processing method and device in instant messaging
CN110727443A (en) Backlog processing method and system
CN115001967B (en) Data acquisition method and device, electronic equipment and storage medium
CN110851303B (en) Data backup method, system and equipment
CN104881307B (en) Download implementation method and device
CN106789973B (en) Page security detection method and terminal equipment
CN109299116B (en) Data synchronization method, device, equipment and readable storage medium
CN105022663B (en) Power system monitoring and control system
CN104239145A (en) Method and device for controlling data consistency based on event mechanism
US11206152B2 (en) Method and apparatus for managing missed events
CN107807885B (en) Task information display method and device
CN114328026B (en) Virtual disk backup method, device, equipment and medium
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN110795388B (en) Binary file processing method, system, equipment and readable storage medium
CN104572036B (en) Event processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant