CN104239145B - A kind of data consistency control method and device based on case mechanism - Google Patents

A kind of data consistency control method and device based on case mechanism Download PDF

Info

Publication number
CN104239145B
CN104239145B CN201410508717.7A CN201410508717A CN104239145B CN 104239145 B CN104239145 B CN 104239145B CN 201410508717 A CN201410508717 A CN 201410508717A CN 104239145 B CN104239145 B CN 104239145B
Authority
CN
China
Prior art keywords
affairs
event
preposition
point
penetration
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.)
Active
Application number
CN201410508717.7A
Other languages
Chinese (zh)
Other versions
CN104239145A (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

Abstract

The embodiment of the invention discloses a kind of data consistency control method and device based on case mechanism, a kind of data consistency control method based on case mechanism comprises the following steps:According to the log-on message of event registered in advance, it is determined that the point of penetration of preposition affairs to be monitored and the preposition affairs;Whether preposition affairs determined by monitoring start;After preposition affairs start determined by listening to, monitor whether the preposition affairs being currently up reach corresponding point of penetration;When reaching the point of penetration for the preposition affairs being currently up, it is determined that the mark of event corresponding with the point of penetration for the preposition affairs that this is currently up and performing the parameter information needed for the event;Parameter information according to the mark of definite event and needed for performing the event, performs the event, to trigger the startup of the corresponding postorder affairs of the event.The technical scheme provided using the embodiment of the present invention, it is ensured that the uniformity of same affairs but the data for the data manipulation that need to be handled in order can not be included.

Description

A kind of data consistency control method and device based on case mechanism
Technical field
The present invention relates to field of computer technology, more particularly to a kind of data consistency control method based on case mechanism And device.
Background technology
In computer systems, to ensure the uniformity of data used in each application link, it will be many that general method, which is, Individual data manipulation is bundled, and is included same affairs and is performed.One affairs is exactly an indivisible work unit, thing Data manipulation included in business is either all done or not done, and can so ensure that the data user outside affairs will not obtain The wrong data that the affairs are produced in data processing change procedure.
But in actual applications, some scenes are not appropriate for all including all data manipulations at same affairs Reason.Such as, in certain scene, advance data operation and subsequent data operation need to carry out in order, i.e. subsequent data operation needs energy Access the result of advance data operation, but the success operated independent of advance data.If subsequent data operated Same affairs are included with advance data operation, due to the binding characteristic of affairs, advance data can be caused to operate and subsequent data Or operation all successful executions, or being carried out failure, are not inconsistent with expection, carried out so the two can not be included to same affairs Processing.In addition, when preposition data manipulation and subsequent data operation have cross-region, cross-system distributed scene, it is most of In the case of the two can not be included to same affairs handled.
At present for the data manipulation across affairs, especially for can not include same affairs but need be handled in order Data manipulation, also without relatively effective method in terms of data consistency is ensured.
The content of the invention
To solve the above problems, the embodiment of the invention discloses a kind of data consistency control method based on case mechanism And device.Technical scheme is as follows:
A kind of data consistency control method based on case mechanism, including:
According to the log-on message of event registered in advance, it is determined that the incision of preposition affairs He the preposition affairs to be monitored Point, one postorder affairs to be launched of each event correspondence, the log-on message of each event comprises at least the mark of the event, is somebody's turn to do The mark of preposition affairs belonging to event, the point of penetration for performing the corresponding preposition affairs of the event and perform the ginseng needed for the event Number information;
Whether preposition affairs determined by monitoring start;
After preposition affairs start determined by listening to, whether the preposition affairs that monitoring is currently up reach is cut accordingly Access point;
When reaching the point of penetration for the preposition affairs being currently up, it is determined that the point of penetration for the preposition affairs being currently up with this The mark of corresponding event and perform the parameter information needed for the event;
Parameter information according to the mark of definite event and needed for performing the event, performs the event, to trigger the thing The startup of the corresponding postorder affairs of part.
In a kind of embodiment of the present invention, whether preposition affairs start determined by the monitoring, including:
Whether preposition affairs determined by monitoring start;
Or,
Monitor whether receive determined by preposition affairs startup notification message, if listened to, show really Fixed preposition affairs have been turned on.
It is described after preposition affairs start determined by listening in a kind of embodiment of the present invention, monitor Whether the preposition affairs being currently up reach corresponding point of penetration, including:
After preposition affairs start determined by listening to, whether the preposition affairs that monitoring is currently up reach is cut accordingly Access point;
Or,
After preposition affairs start determined by listening to, whether monitoring, which receives the preposition affairs being currently up, reaches phase The notification message for the point of penetration answered, if listened to, shows that the preposition affairs being currently up have reached corresponding point of penetration.
In a kind of embodiment of the present invention, the mark according to definite event and needed for performing the event Parameter information, perform the event, to trigger the startup of the corresponding postorder affairs of the event, including:
According to the mark of identified event, the parameter definition performed needed for the event is obtained;
According to acquisition perform the event needed for parameter definition, for the event institute of the execution in the log-on message of the event The parameter assignment needed, to perform the event, and then triggers the startup of the corresponding postorder affairs of the event.
In a kind of embodiment of the present invention, the point of penetration of the preposition affairs at least includes the preposition affairs Submit when starting or the preposition affairs are submitted when completing.
A kind of data consistency control device based on case mechanism, including:
First determining unit, for the log-on message according to event registered in advance, it is determined that preposition affairs to be monitored and The point of penetration of the preposition affairs, one postorder affairs to be launched of each event correspondence, the log-on message of each event is at least wrapped Mark containing the event, the mark of preposition affairs belonging to the event, the point of penetration for performing the corresponding preposition affairs of the event and Perform the parameter information needed for the event;
Whether the first monitoring unit, start for preposition affairs determined by monitoring first determining unit;
Second monitoring unit, for after first monitoring unit listens to identified preposition affairs startup, monitoring Whether the preposition affairs being currently up reach corresponding point of penetration;
Second determining unit, for when reaching the point of penetration for the preposition affairs being currently up, it is determined that being currently up with this Preposition affairs the corresponding event of point of penetration mark and perform the parameter information needed for the event;
Event execution unit, for the mark according to the second determining unit definite event and needed for performing the event Parameter information, the event is performed, to trigger the startup of the corresponding postorder affairs of the event.
The present invention a kind of embodiment in, first monitoring unit specifically for:
Whether preposition affairs determined by monitoring start;
Or,
Monitor whether receive determined by preposition affairs startup notification message, if listened to, show really Fixed preposition affairs have been turned on.
The present invention a kind of embodiment in, second monitoring unit specifically for:
After preposition affairs start determined by listening to, whether the preposition affairs that monitoring is currently up reach is cut accordingly Access point;
Or,
After preposition affairs start determined by listening to, whether monitoring, which receives the preposition affairs being currently up, reaches phase The notification message for the point of penetration answered, if listened to, shows that the preposition affairs being currently up have reached corresponding point of penetration.
In a kind of embodiment of the present invention, the event execution unit, including:
Parameter definition obtains subelement, for the mark of the event according to determined by second determining unit, is held Parameter definition needed for the row event;
Parameter information assignment subelement, for according to parameter definition obtain subelement obtain perform the event needed for ginseng Number definition, in the log-on message of the event perform the event needed for parameter assignment, to perform the event, and then trigger should The startup of the corresponding postorder affairs of event.
In a kind of embodiment of the present invention, the point of penetration of the preposition affairs at least includes the preposition affairs Submit when starting or the preposition affairs are submitted when completing.
The technical scheme that the embodiment of the present invention is provided, according to the log-on message of event registered in advance, it is determined that waiting to monitor Preposition affairs and the preposition affairs point of penetration, when listening to the preposition affairs being currently up and reaching corresponding point of penetration, The event registered in the point of penetration is performed, to trigger the startup of the corresponding postorder affairs of the event.Using institute of the embodiment of the present invention The technical scheme of offer, when carrying out event registration, according to the actual requirements, the difference by event registration in preposition affairs is cut Point, performs each event to trigger the startup of the corresponding postorder affairs of each event, so that ensure that to receive in corresponding point of penetration Enter the uniformity of same affairs but the data for the data manipulation that need to be handled in order.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure of the data consistency control method based on case mechanism in the embodiment of the present invention;
Fig. 2 is another implementing procedure of the data consistency control method based on case mechanism in the embodiment of the present invention Figure;
Fig. 3 is a kind of structural representation of the data consistency control device based on case mechanism in the embodiment of the present invention.
Embodiment
A kind of data consistency control method based on case mechanism provided first the embodiment of the present invention is said Bright, this method may comprise steps of:
According to the log-on message of event registered in advance, it is determined that the incision of preposition affairs He the preposition affairs to be monitored Point, one postorder affairs to be launched of each event correspondence, the log-on message of each event comprises at least the mark of the event, is somebody's turn to do The mark of preposition affairs belonging to event, the point of penetration for performing the corresponding preposition affairs of the event and perform the ginseng needed for the event Number information;
Whether preposition affairs determined by monitoring start;
After preposition affairs start determined by listening to, whether the preposition affairs that monitoring is currently up reach is cut accordingly Access point;
When reaching the point of penetration for the preposition affairs being currently up, it is determined that the point of penetration for the preposition affairs being currently up with this The mark of corresponding event and perform the parameter information needed for the event;
Parameter information according to the mark of definite event and needed for performing the event, performs the event, to trigger the thing The startup of the corresponding postorder affairs of part.
Preposition affairs and postorder affairs are comparatively, event registration to be carried out in a certain affairs, can claim the affairs Be preposition affairs, the corresponding affairs to be launched of the event are referred to as postorder affairs.It is understood that preposition affairs and Postorder affairs can be the db transaction in respective module, can also be the different db transactions in a module.This In described module can be thread, process, network socket or business module etc..
In in the following example, the startup of postorder affairs is realized by the event registered in preposition affairs:
<Preposition affairs start>
Data manipulation 1
Data manipulation 2
……
Event registration
……
Data manipulation n
<Preposition affairs are submitted>
The technical scheme that the embodiment of the present invention is provided, according to the log-on message of event registered in advance, it is determined that waiting to monitor Preposition affairs and the preposition affairs point of penetration, when listening to the preposition affairs being currently up and reaching corresponding point of penetration, The event registered in the point of penetration is performed, to trigger the startup of the corresponding postorder affairs of the event.Using institute of the embodiment of the present invention The technical scheme of offer, when carrying out event registration, according to the actual requirements, the difference by event registration in preposition affairs is cut Point, performs each event to trigger the startup of the corresponding postorder affairs of each event, so that ensure that to receive in corresponding point of penetration Enter the uniformity of same affairs but the data for the data manipulation that need to be handled in order.
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, below in conjunction with this hair Accompanying drawing in bright embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described Embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this area The every other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to protection of the present invention Scope.
As shown in figure 1, being a kind of data consistency control method based on case mechanism provided in an embodiment of the present invention Implementing procedure figure, this method may comprise steps of:
S110, according to the log-on message of event registered in advance, it is determined that preposition affairs to be monitored and the preposition affairs Point of penetration;
In actual applications, need carry out event registration in preposition affairs in advance, each event correspondence one is to be launched Postorder affairs, the log-on message of each event comprises at least the mark of the event, the mark of preposition affairs belonging to the event, held The point of penetration of the corresponding preposition affairs of the row event and perform the parameter information needed for the event.
For ease of understanding, the content included in the log-on message of each event is described in further details.
The mark of the event:That is the sign-on ID of the event, it is ensured that the uniqueness of the event, is also to trigger the event The foundation of execution;
The mark of preposition affairs belonging to the event:Will the event registration in which preposition affairs;
Perform the point of penetration of the corresponding preposition affairs of the event:The thing is performed in which point of penetration of preposition affairs Part;
Perform the parameter information needed for the event:Perform the event needs what value assigned to the parameter needed for it.
The triggering of event is performed to be supported depending on the bottom frame of specific data storage, the data storage of any support affairs At least there are two triggering points of penetration in mode, be respectively:Affairs are submitted when starting and affairs are submitted when completing.Affairs, which are submitted, to be started When refer to that all data manipulations are normal, begin through data storage and support to carry out data persistence;Affairs are submitted to be referred to when completing All data movements complete persistence, and other users can carry out data manipulation to it.For meet it is various in the case of Demand for control, the triggering of event, which is performed, can support in the following manner:
First way:It is synchronous immediately to perform event;
The second way:Asynchronous execution event immediately;
The third mode:Affairs where event are submitted and synchronously perform the event when starting;
4th kind of mode:Affairs where event submit asynchronous execution event when starting;
Fifth procedure:Affairs synchronously perform the event at the end of submitting where event;
6th kind of mode:Asynchronous execution event at the end of affairs are submitted where event.
In preposition affairs, when carrying out event registration in advance, to the mark of event registered and needed for performing the event Parameter be defined, the definition of the log-on message and event of these events is managed and supported by task manager.Event pipe Reason device is cut according to mark corresponding preposition affairs with the event is performed of the preposition affairs belonging to the event in log-on message Access point, it may be determined which preposition affairs and its point of penetration are the point of penetration of preposition affairs to be monitored and the preposition affairs.
Such as example 1, for a certain registered event, the mark of the event is represented respectively with A, B, C, D, belonging to the event The mark of preposition affairs, the point of penetration for performing the corresponding preposition affairs of the event, perform parameter information needed for the event, then Can be respectively for registered event X, event Y, event Z log-on message:
Event X log-on message [AX,BX,CX,DX];
Event Y log-on message [AY,BX,CY,DY];
Event Z log-on message [AZ,BZ,CZ,DZ]。
From above-mentioned log-on message it is known that event X and event Y are to be registered in preposition affairs BXIn event, incision Point CXAnd CYRespectively perform the corresponding preposition affairs B of event X and event YXPoint of penetration, event Z is to be registered in preposition affairs BZ In event, point of penetration CZTo perform the corresponding preposition affairs B of event ZZPoint of penetration., can be by before according to above-mentioned log-on message Put affairs BXWith preposition affairs BZIt is defined as preposition affairs to be monitored, accordingly, preposition affairs BXPoint of penetration be CXAnd CY, it is preceding Put affairs BZPoint of penetration be CZ
S120, monitors whether identified preposition affairs start;
Step S110 determines, wait after the preposition affairs monitored, to monitor identified preposition affairs, whether monitor it Start.
In a kind of embodiment of the present invention, monitor determined by the method that whether starts of preposition affairs can be with It is that whether preposition affairs determined by monitoring start, i.e., the mode for monitoring of being taken the initiative by task manager, determined by monitoring Whether preposition affairs start.
In another embodiment of the present invention, the method whether preposition affairs determined by monitoring start may be used also To be, monitor the notification message that preposition affairs determined by whether receiving start, if listened to, show determined by before Affairs are put to have been turned on.
In this embodiment, preposition affairs can be set, when preposition affairs start, to task manager Send a notification message, received notification message is monitored by task manager, whether judge it is identified preposition affairs The notification message of startup, if it is, preposition affairs determined by showing have been started up.
S130, after preposition affairs start determined by listening to, monitors whether the preposition affairs being currently up reach phase The point of penetration answered;
In actual applications, each event correspondence phase can be performed by multiple event registrations in same preposition affairs The point of penetration of the same or different preposition affairs.After preposition affairs start determined by listening in step S120, continue to monitor Whether the preposition affairs being currently up reach corresponding point of penetration.As in example 1, event X and event Y are registered in preposition affairs BX In, its corresponding preposition affairs BX point of penetration is respectively CXAnd CY.When listening to preposition affairs BXAfter startup, continue to monitor and work as The preposition affairs B of preceding startupXWhether point of penetration C is reachedXOr CY
In a kind of embodiment of the present invention, monitor whether the preposition affairs being currently up reach corresponding incision The method of point can monitor whether the preposition affairs being currently up reach corresponding point of penetration, i.e., taken by task manager The mode of actively monitoring, monitors whether the preposition affairs being currently up reach corresponding point of penetration.
In another embodiment of the present invention, whether the preposition affairs that monitoring is currently up reach is cut accordingly The method of access point is also possible that whether monitoring receives the preposition affairs being currently up and reach that the notice of corresponding point of penetration disappears Breath, if listened to, shows that the preposition affairs being currently up have reached corresponding point of penetration.
In this embodiment, preposition affairs can be set, when preposition affairs start and reach that its is corresponding During point of penetration, sent a notification message to task manager, task manager monitors the preposition affairs for whether receiving and being currently up The notification message of corresponding point of penetration is reached, if listened to, shows that the preposition affairs being currently up have reached accordingly Point of penetration.
S140, when reaching the point of penetration for the preposition affairs being currently up, it is determined that the preposition affairs being currently up with this The mark of the corresponding event of point of penetration and perform the parameter information needed for the event;
In the case of the point of penetration for having reached the preposition affairs being currently up is listened in step S130, pass through the preposition thing The point of penetration of business, it may be determined that the mark of event corresponding with the point of penetration for the preposition affairs that this is currently up and perform the event Required parameter information.It is understood that in the log-on message of event registered in advance including at least the event mark, The mark of preposition affairs belonging to the event, the point of penetration for performing the corresponding preposition affairs of the event and needed for performing the event Parameter information.Can be by the preposition affairs belonging to the event in the point of penetration and log-on message of the preposition affairs being currently up The point of penetration for identifying, performing the corresponding preposition affairs of the event is matched, then can obtain the log-on message of corresponding event, So as to determine the mark of the event in the log-on message of acquisition and perform the parameter information needed for the event.
As in the example 1 that is above enumerated, if listening to preposition affairs BXHave been turned on, and reach its point of penetration CXWhen, pass through The information can obtain corresponding event X log-on message, can determine and be currently up from event X log-on message Preposition affairs BXPoint of penetration CXCorresponding event X's is designated AX, the parameter information needed for performing event X is DX.Equally, When reaching the preposition affairs B that is currently upXPoint of penetration CYWhen, pass through BX、CYInformation can obtain corresponding event Y note Volume information, the preposition affairs B that can be determined and be currently up from event Y log-on messageXPoint of penetration CYCorresponding event Y Be designated AY, the parameter information needed for performing event Y is DY
S150, the parameter information according to the mark of definite event and needed for performing the event, performs the event, to trigger The startup of the corresponding postorder affairs of the event.
The mark of the corresponding event of the preposition affairs with being currently up are determined in step S140 point of penetration and perform should Parameter information needed for event, the i.e. event are the event for the point of penetration for being registered in the preposition affairs being currently up, and perform the thing Part, so as to trigger the startup of the corresponding postorder affairs of the event.That is, the startup of postorder affairs, the data manipulation of progress Depending on point of penetration during event registration.If the point of penetration of event registration is set into affairs submission completion, it can eliminate Preposition affairs submit the time difference between the execution of postorder affairs, so that it is guaranteed that data when standalone transaction is performed in order are consistent Property.
It is shown in Figure 2, in one embodiment of the invention, marks and execution of the step S150 according to definite event Parameter information needed for the event, performs the event, to trigger the startup of the corresponding postorder affairs of the event, can specifically include Following steps:
S151, according to the mark of identified event, obtains the parameter definition performed needed for the event;
As it was previously stated, in preposition affairs, when carrying out event registration in advance, to the mark of event registered and perform should Parameter needed for event is defined, and log-on message and the event definition of these events are managed and propped up by task manager Hold.The mark of task manager event according to determined by step S140, is obtained by inquiry mode and performs the event accordingly Initialization data required for required parameter definition, i.e. event are correctly performed is defined.
S152, according to acquisition perform the event needed for parameter definition, for the execution in the log-on message of the event should Parameter assignment needed for event, to perform the event, and then triggers the startup of the corresponding postorder affairs of the event.
When carrying out event registration in preposition affairs, program operation context is in preposition affairs, can be obtained preposition The handle and bottom-up information of affairs.After the parameter definition needed for step S151 acquisitions perform the event, according to the parameter definition, By instantiating handle and for the parameter assignment needed for the execution event in the log-on message of the event to complete holding for event OK, and then the startups of the corresponding postorder affairs of the event is triggered.
The technical scheme that the embodiment of the present invention is provided, according to the log-on message of event registered in advance, it is determined that waiting to monitor Preposition affairs and the preposition affairs point of penetration, when listening to the preposition affairs being currently up and reaching corresponding point of penetration, The event registered in the point of penetration is performed, to trigger the startup of the corresponding postorder affairs of the event.Using institute of the embodiment of the present invention The technical scheme of offer, when carrying out event registration, according to the actual requirements, the difference by event registration in preposition affairs is cut Point, performs each event to trigger the startup of the corresponding postorder affairs of each event, so that ensure that to receive in corresponding point of penetration Enter the uniformity of same affairs but the data for the data manipulation that need to be handled in order.
Corresponding to above method embodiment, the present invention also provides a kind of data consistency control dress based on case mechanism Put, as shown in figure 3, the device can include:
First determining unit 210, for the log-on message according to event registered in advance, it is determined that preposition affairs to be monitored With the point of penetration of the preposition affairs, one postorder affairs to be launched of each event correspondence, the log-on message of each event is at least Mark comprising the event, the mark of preposition affairs belonging to the event, the point of penetration for performing the corresponding preposition affairs of the event With perform the event needed for parameter information;
Whether the first monitoring unit 220, start for preposition affairs determined by monitoring first determining unit 210;
Second monitoring unit 230, starts for listening to identified preposition affairs in first monitoring unit 220 Afterwards, monitor whether the preposition affairs being currently up reach corresponding point of penetration;
Second determining unit 240, for when reaching the point of penetration for the preposition affairs being currently up, it is determined that currently being opened with this The mark of the corresponding event of point of penetration of dynamic preposition affairs and perform the parameter information needed for the event;
Event execution unit 250, for the mark according to the definite event of the second determining unit 240 and performs the thing Parameter information needed for part, performs the event, to trigger the startup of the corresponding postorder affairs of the event.
The present invention a kind of embodiment in, first monitoring unit 220 specifically for:
Whether preposition affairs determined by monitoring start;
Or,
Monitor whether receive determined by preposition affairs startup notification message, if listened to, show really Fixed preposition affairs have been turned on.
The present invention a kind of embodiment in, second monitoring unit 220 specifically for:
After preposition affairs start determined by listening to, whether the preposition affairs that monitoring is currently up reach is cut accordingly Access point;
Or,
After preposition affairs start determined by listening to, whether monitoring, which receives the preposition affairs being currently up, reaches phase The notification message for the point of penetration answered, if listened to, shows that the preposition affairs being currently up have reached corresponding point of penetration.
In a kind of embodiment of the present invention, the event execution unit 250, including:
Parameter definition obtains subelement, for the mark of the event according to determined by second determining unit 240, obtains Perform the parameter definition needed for the event;
Parameter information assignment subelement, for according to parameter definition obtain subelement obtain perform the event needed for ginseng Number definition, in the log-on message of the event perform the event needed for parameter assignment, to perform the event, and then trigger should The startup of the corresponding postorder affairs of event.
In a kind of embodiment of the present invention, the point of penetration of the preposition affairs at least includes the preposition affairs Submit when starting or the preposition affairs are submitted when completing.
The device that the embodiment of the present invention is provided, according to the log-on message of event registered in advance, it is determined that before to be monitored The point of penetration of affairs and the preposition affairs is put, when listening to the preposition affairs being currently up and reaching corresponding point of penetration, is performed The event registered in the point of penetration, to trigger the startup of the corresponding postorder affairs of the event.There is provided using the embodiment of the present invention Device, carry out event registration when, according to the actual requirements, by event registration preposition affairs different points of penetration, corresponding Point of penetration perform each event to trigger the startup of the corresponding postorder affairs of each event so that ensure that can not include same thing The uniformity of the data of business but the data manipulation that need to be handled in order.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for device Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is To instruct the hardware of correlation to complete by program, described program can be stored in computer read/write memory medium, The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of data consistency control method based on case mechanism, it is characterised in that including:
According to the log-on message of event registered in advance, it is determined that the point of penetration of preposition affairs to be monitored and the preposition affairs, often One postorder affairs to be launched of individual event correspondence, the log-on message of each event comprises at least mark, the event of the event The mark of affiliated preposition affairs, the point of penetration for performing the corresponding preposition affairs of the event and perform the parameter letter needed for the event Breath;
Whether preposition affairs determined by monitoring start;
After preposition affairs start determined by listening to, monitor whether the preposition affairs being currently up reach corresponding incision Point;
When reaching the point of penetration for the preposition affairs being currently up, it is determined that corresponding with the point of penetration for the preposition affairs that this is currently up Event mark and perform the parameter information needed for the event;
Parameter information according to the mark of definite event and needed for performing the event, performs the event, to trigger the event pair The startup for the postorder affairs answered.
2. according to the method described in claim 1, it is characterised in that whether preposition affairs start determined by the monitoring, wrap Include:
Whether preposition affairs determined by monitoring start;
Or,
The notification message of the startup of preposition affairs determined by whether receiving is monitored, if listened to, shows identified Preposition affairs have been turned on.
3. according to the method described in claim 1, it is characterised in that described after preposition affairs start determined by listening to, Monitor whether the preposition affairs being currently up reach corresponding point of penetration, including:
After preposition affairs start determined by listening to, monitor whether the preposition affairs being currently up reach corresponding incision Point;
Or,
After preposition affairs start determined by listening to, whether monitoring, which receives the preposition affairs being currently up, reaches accordingly The notification message of point of penetration, if listened to, shows that the preposition affairs being currently up have reached corresponding point of penetration.
4. according to the method described in claim 1, it is characterised in that the mark according to definite event and perform the event Required parameter information, performs the event, to trigger the startup of the corresponding postorder affairs of the event, including:
According to the mark of identified event, the parameter definition performed needed for the event is obtained;
According to acquisition perform the event needed for parameter definition, in the log-on message of the event perform the event needed for Parameter assignment, to perform the event, and then triggers the startup of the corresponding postorder affairs of the event.
5. the method according to any one of Claims 1-4, it is characterised in that the point of penetration of the preposition affairs is at least wrapped Include when the preposition affairs submission starts or the preposition affairs are submitted when completing.
6. a kind of data consistency control device based on case mechanism, it is characterised in that including:
First determining unit, for the log-on message according to event registered in advance, it is determined that preposition affairs to be monitored and this before The point of penetration of affairs is put, each event corresponds to a postorder affairs to be launched, and the log-on message of each event is comprised at least should The mark of preposition affairs belonging to the mark of event, the event, the point of penetration for performing the corresponding preposition affairs of the event and execution Parameter information needed for the event;
Whether the first monitoring unit, start for preposition affairs determined by monitoring first determining unit;
Second monitoring unit, for after first monitoring unit listens to identified preposition affairs startup, monitoring current Whether the preposition affairs started reach corresponding point of penetration;
Second determining unit, for when reaching the point of penetration for the preposition affairs being currently up, it is determined that before being currently up with this Put the mark of the corresponding event of point of penetration of affairs and perform the parameter information needed for the event;
Event execution unit, the ginseng for the mark according to the second determining unit definite event and needed for performing the event Number information, performs the event, to trigger the startup of the corresponding postorder affairs of the event.
7. device according to claim 6, it is characterised in that first monitoring unit specifically for:
Whether preposition affairs determined by monitoring start;
Or,
The notification message of the startup of preposition affairs determined by whether receiving is monitored, if listened to, shows identified Preposition affairs have been turned on.
8. device according to claim 6, it is characterised in that second monitoring unit specifically for:
After preposition affairs start determined by listening to, monitor whether the preposition affairs being currently up reach corresponding incision Point;
Or,
After preposition affairs start determined by listening to, whether monitoring, which receives the preposition affairs being currently up, reaches accordingly The notification message of point of penetration, if listened to, shows that the preposition affairs being currently up have reached corresponding point of penetration.
9. device according to claim 6, it is characterised in that the event execution unit, including:
Parameter definition obtains subelement, for the mark of the event according to determined by second determining unit, obtains to perform and is somebody's turn to do Parameter definition needed for event;
Parameter information assignment subelement, for according to parameter definition obtain subelement obtain perform the event needed for parameter determine Justice, in the log-on message of the event perform the event needed for parameter assignment, to perform the event, and then trigger the event The startup of corresponding postorder affairs.
10. the device according to any one of claim 6 to 9, it is characterised in that the point of penetration of the preposition affairs is at least wrapped Include when the preposition affairs submission starts or the preposition affairs are submitted when completing.
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 CN104239145A (en) 2014-12-24
CN104239145B true 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)

Families Citing this family (1)

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

Citations (2)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9930295B2 (en) * 2010-11-18 2018-03-27 Verint Systems Inc.. Software, systems, and methods for video recording of a transaction involving protected data

Patent Citations (2)

* 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
主动数据库技术在银行CRM中的应用研究;陈骏;《中国优秀硕士学位论文全文数据库 信息科技辑》;20091031(第10期);正文第8页第1段-第19页倒数第1段 *

Also Published As

Publication number Publication date
CN104239145A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
US11307969B2 (en) Methods for improved web application testing using remote headless browsers and devices thereof
US8694886B2 (en) Providing dynamic context assist for a command line interface
CN104412272B (en) User is set to sign in the method, system and equipment of browser
CN110309161B (en) Data synchronization method and device and server
CN103858104A (en) System and method for administering server configurations including GUI navigation, property sheets, and auto-Tab completion
CN107437222B (en) Processing method and system of online business data based on front end of bank counter
CN107315586A (en) Using the methods, devices and systems of packing
CN109634607A (en) A kind of method and device of Code automatic build
US20190386875A1 (en) Methods for managing storage virtual machine configuration changes in a distributed storage system and devices thereof
CN108255994A (en) A kind of database version management method based on database snapshot
CN106096034A (en) application log management method and device
CN107832448A (en) Database operation method, device and equipment
CN107580032A (en) Data processing method, device and equipment
CN110231975A (en) A kind of applied program processing method, device and electronic equipment
CN106941418B (en) SSL VPN configuration information synchronization method and device
CN105072608B (en) A kind of method and device of administrative authentication token
CN105808619B (en) Method, impact analysis computing device and the key reset apparatus that task based on impact analysis is reformed
US7577752B2 (en) Reliable page flow control
CN108647105A (en) Idempotent control method in net system switching process, apparatus and system
CN109299116B (en) Data synchronization method, device, equipment and readable storage medium
CN108509604A (en) A kind of method of the data sharing duke groups of multiple Shipping Options Pages
CN104239145B (en) A kind of data consistency control method and device based on case mechanism
CN108234122A (en) Token method of calibration and device
CN104463014B (en) A kind of oracle database guard method based on snapshot
JP2023505879A (en) Distributed database system and data disaster backup training method

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