CN105760378A - Transaction state monitor method and device - Google Patents
Transaction state monitor method and device Download PDFInfo
- Publication number
- CN105760378A CN105760378A CN201410778742.7A CN201410778742A CN105760378A CN 105760378 A CN105760378 A CN 105760378A CN 201410778742 A CN201410778742 A CN 201410778742A CN 105760378 A CN105760378 A CN 105760378A
- Authority
- CN
- China
- Prior art keywords
- task
- information
- time
- condition monitoring
- affairs
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 102
- 238000012544 monitoring process Methods 0.000 claims abstract description 297
- 230000008569 process Effects 0.000 claims abstract description 57
- 230000002688 persistence Effects 0.000 claims description 81
- 238000012806 monitoring device Methods 0.000 claims description 28
- 230000006978 adaptation Effects 0.000 claims description 16
- 238000012545 processing Methods 0.000 abstract description 13
- 230000033001 locomotion Effects 0.000 description 8
- 230000008878 coupling Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 5
- 238000005859 coupling reaction Methods 0.000 description 5
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000012141 concentrate Substances 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 238000011112 process operation Methods 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 230000000246 remedial effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005067 remediation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application aims to provide a transaction state monitor method and device; the method comprises the following steps: obtaining one or more update messages of transaction data; generating a transaction state monitor task corresponding to the transaction data according to the update messages; adding the state monitor task into a monitor task set corresponding to a task slot in a time wheel according to timing information corresponding to the state monitor task; checking the time wheel task slot according to time so as to determine a timeout mode monitor task in the monitor task set. Compared with the prior art, the transaction update messages are converted into state monitor task, and the time wheel data structure can effectively monitor the state monitor task, thus preventing high labor cost caused by high requirements on monitor data processing personnel in the existing monitor methods, solving monitor information postponement and untimely processing, and effectively monitoring and warning process of the transaction in each stage.
Description
Technical field
The application relates to computer realm, particularly relates to a kind of transaction status monitoring technology.
Background technology
In a lot of data processing field, usual affairs need to relate to the operation of multiple node (or data base), and produce corresponding Transaction Information in each node.In order to be best understood from and advance Transaction, wish ongoing affairs carry out effectively monitoring and Risk-warning, such as, in logistics field, the concern main body of logistics order wishes that the process at each node to order can be grasped at any time, particularly processing desirably for certain section of process longer data consuming time can find in time and successfully manage, thus avoiding unnecessary data to process risk, ensureing that data process quality.
At present, in the state of the art, process for affairs does not have perfect monitoring system, such as method is not effectively monitored for each data processing node of logistics order, data at each timing node process monitoring and are mostly to need data treatment people fixed cycle operator, that monitors is relatively costly, and the information quality monitored can not be guaranteed;Or until occurring that corresponding data processes problem and just can note abnormalities, policer operation is delayed, and monitoring purpose is unable to reach.Now, early warning timely and the effect evaded are not brought for the risk being likely to occur in Transaction, greatly hinder corresponding data and process the raising of quality.
Summary of the invention
The purpose of the application is to provide a kind of transaction status monitoring method and apparatus.
An aspect according to the application, it is provided that a kind of transaction status monitoring method, including:
Obtain one or more more new informations of Transaction Information;
The condition monitoring task about affairs corresponding to described Transaction Information is generated according to described more new information;
Described condition monitoring task is added into the monitor task collection in time wheel corresponding to task groove by the timing information corresponding to described condition monitoring task;
Temporally check the timeout mode monitor task that the task groove that the described time takes turns is concentrated to determine described monitor task.
Another aspect according to the application, additionally provides a kind of transaction status monitoring device, including:
First device, for obtaining one or more more new informations of Transaction Information;
Second device, for generating the condition monitoring task about affairs corresponding to described Transaction Information according to described more new information;
3rd device, for the monitor task collection that described condition monitoring task is added in time wheel corresponding to task groove by the timing information corresponding to described condition monitoring task;
4th device, for temporally checking the timeout mode monitor task that the task groove that the described time takes turns is concentrated to determine described monitor task.
Compared with prior art, the application is by obtaining in Transaction more new information, generate condition monitoring task targetedly, and based on the timing information of described condition monitoring task coupling, described condition monitoring task is added to the monitor task concentration corresponding to corresponding task groove in time wheel, and then achieve a large amount of described condition monitoring tasks are monitored automatically, and therefrom efficiently find timeout mode monitor task, efficiently avoid policer operation delayed, monitoring the problems such as information quality is not high, policer operation is relatively costly;Further, certain timeout threshold is set for described condition monitoring task, for really time-out and reach the condition monitoring task of certain threshold value and report to the police, thus advancing effective remediation;At this, the described affairs process in each stage can be carried out effectively monitoring and early warning by this programme such that it is able to take counter-measure in time, improves data and processes difficulty action accomplishment;Further, backup in corresponding data base for adding data message corresponding to condition monitoring task in wheel of described time to by persistence operation, can effectively ensure the reliability of described data message, under the running environment of high capacity, can Backup Data effectively, tackle emergency situations.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other features, purpose and advantage will become more apparent upon:
Fig. 1 illustrates a kind of transaction status monitoring device schematic diagram according to one aspect of the application;
Fig. 2 illustrates a kind of transaction status monitoring method flow diagram according to another aspect of the application.
In accompanying drawing, same or analogous accompanying drawing labelling represents same or analogous parts.
Detailed description of the invention
Below in conjunction with accompanying drawing, the application is described in further detail.
In one typical configuration of the application, terminal, the equipment of service network and trusted party all include one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the forms such as the volatile memory in computer-readable medium, random access memory (RAM) and/or Nonvolatile memory, such as read only memory (ROM) or flash memory (flashRAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and impermanency, removable and non-removable media can by any method or technology to realize information storage.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer includes, but it is not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, magnetic disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device.According to defining herein, computer-readable medium does not include non-temporary computer readable media (transitorymedia), such as data signal and the carrier wave of modulation.
Fig. 1 illustrates a kind of transaction status monitoring device schematic diagram according to one aspect of the application.Described transaction status monitoring device 1 includes first device the 101, second device the 102, the 3rd device 103 and the 4th device 104.
Wherein, first device 101 obtains one or more more new informations of Transaction Information;Second device 102 generates the condition monitoring task about affairs corresponding to described Transaction Information according to described more new information;Described condition monitoring task is added into the monitor task collection in time wheel corresponding to task groove by the 3rd device 103 timing information corresponding to described condition monitoring task;4th device 104 temporally checks the timeout mode monitor task that the task groove that the described time takes turns is concentrated to determine described monitor task.
Specifically, the first device 101 of described transaction status monitoring device 1 obtains one or more more new informations of Transaction Information.In a lot of data processing field, for the affairs advanced, its relevant main body wishes the process of affairs to be had gained some understanding and grasps, and the delay being likely to occur in Transaction or obstruction are found in time and successfully managed.For affairs to be monitored, the monitoring operation of its correspondence can be whole Transaction, it is also possible to be the Partial Process in whole affairs.For example, it is possible to from affairs initially as monitoring operation starting point, and with Transaction terminate be monitoring operation terminal;Or a section in Transaction or the monitoring operation of several sections of foundation correspondences can be chosen, wherein said several sections of monitoring operations can be several successive stages of described affairs, it is also possible to is several stages at interval in a Transaction.For needing the affairs of monitoring, the concrete object of different monitoring operations can be selected flexibly according to the actual demand that data process, for one monitor operation start need to send more new information based on the Transaction Information of the current state of described affairs, now, presently described Transaction Information can a corresponding more fresh information, it is also possible to process the corresponding a plurality of more new information of correlation circumstance based on different data.At this, described more new information contains the essential information of affairs corresponding to described Transaction Information, also contains the state change information of affairs corresponding to described Transaction Information.Such as, in ecommerce, the logistics order generated along with online trading is the object that a lot of affairs relative subject is paid close attention to, assume to need to signing for this stage, described logistics order is set up a monitoring operation in delivery, when described logistics proceeds to deliver this state, corresponding Transaction Information can be produced, based on this, order center will send one or more more new information, described more new information can include the essential information of described logistics order, as, corresponding commodity classification, the generation time etc. of corresponding logistics order, the modification information of order status can also be included, time etc. as corresponding in current state.Now, the first device 101 of described transaction status monitoring device 1 can obtain corresponding more fresh information as required.
Then, the second device 102 of described transaction status monitoring device 1 generates the condition monitoring task about affairs corresponding to described Transaction Information according to described more new information.At this, described condition monitoring task includes starting to next this process of state, the process of described affairs to be monitored from the current state that described more new information is corresponding to described affairs, such as, configure specific monitoring period, policer operation required for the different process phases of different affairs is likely to identical, also likely to be present difference, the standard that arranges of described condition monitoring task can with reference to the corresponding more new information at Current transaction node of described affairs and described affairs.For the logistics order in above-mentioned ecommerce, the more new information at certain transaction nodes corresponding to target logistics order is likely to comprise the classification of tradable commodity corresponding to described logistics order, tradable commodity place of departure and place of acceptance information, and logistics order current state information, such as current commodity logistics terminal and time of advent thereof etc., based on these data messages, in conjunction with certain analysis, such as, mate with time-out rules more set in advance, namely the most rational condition monitoring task arrangement that affairs corresponding to described Transaction Information are required under current process state can be set out.
Then, described condition monitoring task is added into the monitor task collection in time wheel corresponding to task groove by the 3rd device 103 of described transaction status monitoring device 1 timing information corresponding to described condition monitoring task.At this, wheel of described time is based on a kind of data structure of Hash principle design.Preferably, time wheel comprises several task grooves and a pointer and directed uniform rotation.Wheel of described time is corresponding to the information of two dimensions, one dimension is time precision, namely when a time wheel is divided into several task grooves, time wheel often turns over time of a task groove and is the monitoring unit that wheel of described time is minimum, it is possible to be the second, point, time, day, the moon, year etc. random time unit;Another dimension is time width, the i.e. wheel uniform rotation time of one week time, at this, wheel of described time filled the time sum of each task groove and is described time rotation and spends the time of one week, again because preferably wheel of described time is uniform rotation, so the product that time rotation crosses the time of a task groove and the task groove quantity of wheel of described time is the described time rotation time of dynamic one week, further, the each task groove taken turns for the described time arranges a corresponding monitor task collection, each described monitor task collection can be deposited and add the condition monitoring task of one or more correspondences according to actual needs in real time.Such as, described second device 102 generates the condition monitoring task of corresponding affairs based on the more new information of described Transaction Information, and timing information corresponding to described condition monitoring task is the monitoring period information corresponding to described monitored task.At a time namely described condition monitoring task is added into certain monitor task subset corresponding to task groove of wheel of described time, at this, based on the timing information of described condition monitoring task, and the information such as the time precision of wheel of described time and time width determines the monitor task subset of concrete described correspondence.
At this; those skilled in the art will be understood that; wheel of described time comprises several task grooves and a pointer; and directed uniform rotation is only for example; if other meet applicable the application of version of time wheel principle; also within should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.Additionally, those skilled in the art also will be understood that wheel of above-mentioned time is only for example, if other data structures or method, the applicable the application of appliance arrangement, within also should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.
Then, the 4th device 104 of described transaction status monitoring device 1 temporally checks the timeout mode monitor task that the task groove that the described time takes turns is concentrated to determine described monitor task.At this, it is preferable that system can use a special thread to carry out maintenance time wheel, it is responsible for the upper described monitor task of time wheel and concentrates the inspection work of corresponding states monitor task.Such as, the pointer of wheel of described time is from task groove corresponding to current time that described condition monitoring task is added into wheel of described time, streak several task grooves on wheel of described time one by one, when the task groove that the monitor task subset that condition monitoring task described in described pointed is deposited is corresponding, elapsed time is namely corresponding to the timing information of described condition monitoring task, the thread that now time wheel is corresponding arrives this task groove, then it is assumed that all condition monitoring tasks in the monitor task subset that described task groove is corresponding are all overtime.
At this, those skilled in the art will be understood that wheel of above-mentioned time is only for example, if other data structures or method, the applicable the application of appliance arrangement, within also should being included in the protection domain of the application, and is incorporated herein with way of reference at this.
At this, the application is by obtaining the more new information in Transaction, generate condition monitoring task targetedly, and described condition monitoring task added in time wheel, thus timing information and time based on described condition monitoring task are taken turns this data result and described condition monitoring task are monitored automatically;And then, this programme it can be avoided that in prior art monitoring method monitoring data treatment people is required higher cost of labor and monitoring information delay and processes the drawback such as not in time, the described affairs process in each stage can be carried out effectively monitoring and early warning.
Preferably, described transaction status monitoring device 1 also includes the 5th device (not shown), and described 5th device determines preferably more new information according to predetermined status information to be monitored from the one or more more new information;Wherein, described second device 102 according to described preferably more new information generate the condition monitoring task about affairs corresponding to described Transaction Information.
Specifically, in a lot of data processing field, all state nodes of not all affairs have the needs arranging monitoring operation.For the online trading carried out based on e-commerce platform, the quantity of the logistics order of the corresponding goods that transaction every day generates is huge, each logistics order can produce again various states in progradation, if all more new informations of whole nodes of whole orders are all arranged condition monitoring task, excessive for the monitoring operational pressure of system on the one hand, on the other hand, it is not that update all information has the necessity carrying out corresponding monitoring.Such as, although transaction status monitoring operation can be completed by a described transaction status monitoring device 1 in theory, can also infinitely expand the cluster being made up of multiple same or similar equipment to complete, but in actual applications, can need based on the monitoring of described transaction status, the many factors such as cost of described equipment running consider the system deployment scenario of optimum, so all more new informations of whole nodes of whole orders are all arranged condition monitoring task is not necessary.The transaction status monitoring device 1 optimized can determine preferably more new information according to predetermined status information to be monitored from the one or more more new information.At this, the described predetermined information included by condition monitoring status information: which transaction nodes that can interpolate which affairs having needs to arrange condition monitoring task;The more new information that can specify certain transaction nodes having needs the specifying information content that comprises, and the setting of timing information corresponding to described condition monitoring task can be provided reference value by this information content.At this, the effect of described predetermined information to be monitored includes filtering out, from numerous more new informations of each transaction nodes, the more new information having the necessity arranging condition monitoring task and value most.
At this; those skilled in the art will be understood that; above-mentioned condition monitoring status information is only for example; if other data messages can help to determine preferably more new information also applicable the application from the one or more more new information; also within should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.
Further, described second device 102 can according to described preferably more new information generate the condition monitoring task about affairs corresponding to described Transaction Information.The condition monitoring task now generated is to think by analysis more to have monitoring to be worth the monitoring operation corresponding with the described affairs needed.Additionally, described status information to be monitored can load according to actual processing condition data real-time update.
In a preferred embodiment, described second device 102 includes first module (not shown) and second unit (not shown), and wherein, described first module obtains the overtime Rule Information of affairs corresponding to described Transaction Information;Described second unit is according to described more new information, and in conjunction with described time-out Rule Information, generates the condition monitoring task about described affairs.
Specifically, described first module obtains the overtime Rule Information of affairs corresponding to described Transaction Information.At this, it is preferable that described time-out Rule Information includes pre-defining and be saved in the timing information in associated databases according to real data disposition.Described time-out Rule Information can be based on the data structure set by concrete condition of different types of affairs, the concrete condition of said different types of affairs can correspond to a concrete recording data information, described record contains multiple condition field, pending affairs kind as corresponding in described logistics order, the initial time of logistics order, the field informations such as logistics order Estimated Time Of Completion, by these field informations are carried out COMPREHENSIVE CALCULATING, may determine that the timing information under a concrete application scenarios, it is the overtime Rule Information under this application scenarios.Further, if the information field corresponding to more new information of described Transaction Information matches with the described information field of a certain bar recording data information in described data base, then based on timing information corresponding to described recording data information, time-out Rule Information can be determined for described more new information.At this, article one, the described timing information corresponding to described recording data information can be a concrete data message, if timing information is through 23 hours from current time, now, as long as the respective field information of described more new information drops in the scope of each field information in described recording data information, described more new information just can be suitable for the timing information that described recording data information is corresponding, namely through 23 hours from current time;Article one, all right computing formula of timing information corresponding to described recording data information, variable parameter therein be described in more new information corresponding to the specifying information value under each field of described recording data information, computing formula by corresponding timing information, described more new information can match the overtime Rule Information particularly changed flexibly, such as, by described calculating, when obtaining when the overtime Rule Information of correspondence is from today 8 to today 22.It is highly preferred that described time-out Rule Information also includes dynamically pushing corresponding overtime Rule Information in real time to described equipment 1 from system middleware according to real data disposition.Specifically, if described time-out Rule Information is current dynamically generation, such as, the overtime Rule Information that User Defined in-time generatin is new, described new overtime Rule Information can be sent to the middleware of system, if then by judging, the time-out rule version loaded in described transaction status monitoring device 1 lags behind described new time-out rule, then by middleware server, described new overtime Rule Information is pushed to described transaction status monitoring device 1, further, it is possible to the more new information Corresponding matching of presently described Transaction Information.At this, it will be understood by those skilled in the art that the loading of described time-out Rule Information as required, can select to include but not limited to that described database information loads, or the various methods such as middleware message propelling movement complete flexibly.
At this, if described time-out Rule Information is saved in special data base, when environmental loads is too high, server is delayed machine, or have fresh code to issue, it is necessary to restart the emergency case such as system when occurring, the overtime Rule Information of needs can be reloaded from described data base;If completed the real-time loading of time-out Rule Information by described middleware, during as carried out message propelling movement by message-oriented middleware, owing to acquisition of information and the delivery of message-oriented middleware can asynchronous carry out, the overtime Rule Information pushed can first arrive message-oriented middleware and preserve, it is delivered to described equipment 1 again by described middleware, when there is emergency situations in system, owing to described time-out Rule Information has been saved in described message-oriented middleware, so will not lose, when system recovery runs, the delivery of completion message can be continued, so also being able to good disaster tolerance.
Then, described second unit is according to described more new information, and in conjunction with described time-out Rule Information, generates the condition monitoring task about described affairs.For described logistics order, when logistics order proceeds to the link that places an order, order center sends a more new information at this node, more new information described in the acquisition of the first device 101 of described equipment 1, described more new information can be sent in the data base at described time-out Rule Information place by described equipment 1, the information field corresponding based on described more new information carries out match query with the record information in described data base, is then loaded into the overtime Rule Information of coupling to described equipment 1 from described data base;Or described equipment 1 obtains the overtime Rule Information of real time propelling movement from described system middleware, and then the condition monitoring task of more described affairs that new information is corresponding described in generating.
Preferably, described affairs include multiple transaction nodes;Wherein, described first module obtains the overtime Rule Information of the described transaction nodes corresponding to described Transaction Information.
Specifically, described affairs potentially include multiple transaction nodes, carry out the average or regular node divided including the concrete time point advanced by affairs, and the data also including based target affairs process specific, with the node that the stage condition of affairs obtains for the criteria for classifying.Can based on these transaction nodes as the initial of monitor task corresponding to described affairs and terminal.Arriving a node whenever affairs advance, system can send more new information based on the current state of described affairs, as the data basis of follow-up monitor task.Such as, it is by when the concrete time point of affairs propelling is next average or regularity divides when described transaction nodes is arranged, then the more new information of described target transaction every T time, can be sent;And for example, preferably, described transaction nodes arranges the data being based on target transaction and processes specific, during with the stage condition of affairs for the criteria for classifying, then can based on the different phase of Transaction Information process, A, B, C three phases such as certain affairs is monitored the division of task, when affairs enter the transaction nodes in each stage, it is thus achieved that the more new information of corresponding Transaction Information.Further, different affairs, or even the monitoring demand of the different process statuss of same affairs is discrepant, such as, node M 1 corresponding for affairs A is timing information correspondence T1 to the monitoring demand of next node M2, and when affairs proceed to node M 2, its from node M 2 to the monitoring demand of next node M3 be timing information correspondence T2.T1 and T2 is probably identical, but more there are differences in real data processes.Different monitoring demands requires that corresponding overtime Rule Information constantly changes, thus needing the overtime Rule Information that real-time loading is new.Such as, in ecommerce, the logistics order process generated along with online trading can be divided into and places an order, delivers, the particular state such as signs for, assume that described affairs have monitoring needs in each state, then described particular state can be set to transaction nodes, when logistics order is advanced to the particular state of each correspondence, order center will send the more fresh information that a bar state changes, can at described time-out data base corresponding to Rule Information or the overtime Rule Information being directly loaded into coupling from system middleware based on described more fresh information.
It is highly preferred that described second device 102 also includes the 3rd unit (not shown), described more fresh information is carried out format adaptation process by described Unit the 3rd;Wherein, described second unit is according to more new information described in after format adaptation, and in conjunction with described time-out Rule Information, generates the condition monitoring task about described affairs, and wherein, described condition monitoring task adapts with wheel of described time.
Specifically, the data form that the more new information of each Transaction Information that the first device 101 of described transaction status monitoring device 1 is acquired is corresponding would be likely to occur difference, for instance, the more new information of different-format is sent out by different system message middleware servers.So that the process operation that wheel of described time carries out for described more new information is more unified convenient, improving the reusability of wheel of described time, the more new information obtained can be formatted process by Unit the 3rd of described second device 102 simultaneously.In addition, owing to wheel of described time is to exist and a kind of data structure in correspondence memory, in order to save the memory headroom of preciousness, simultaneously, more new information described in the Main Function of the more new information after format adaptation is able to uniquely to refer to, so can be less as far as possible with the more new information after the format adaptation corresponding to described more new information, for instance, only with the corresponding Message Records of 3 fields, this Message Record uniquely points to described in one more new information.Further, determine loaded overtime Rule Information by described more new information, in conjunction with more new information described in after described format adaptation, ultimately generate the condition monitoring task about described affairs.At this, described condition monitoring task to adapt with corresponding wheel of described time, for instance, the more new information after the format adaptation that described condition monitoring task is corresponding can mate the monitor task that during entrance is taken turns, task groove is corresponding with the described time to be concentrated;And for example, the overtime monitoring rules of described condition monitoring task is wanted to realize within the scope of the time width that time wheel is corresponding, etc..
In a further advantageous embodiment, the 3rd device 103 of described transaction status monitoring device 1 timing information corresponding to described condition monitoring task, by the monitor task collection that described condition monitoring task is added in time wheel corresponding to task groove by following formula:
Ts=(cs+ (ti/si)) %N
Wherein, cs is current task groove in wheel of described time, and ti is described timing information, and the task groove interval of time wheel described in si, N is the task groove quantity information of wheel of described time, and % is modular arithmetic.
Specifically, at this, timing information corresponding to described condition monitoring task includes a concrete time period information, such as, if time when a described timing information is from today 8 to today 14, then correspond to, described condition monitoring task is added in time wheel when being today 8, its corresponding timing information, namely time ti to be monitored is 6 hours.Now, the time precision information of wheel of described time and the task groove interval si of wheel of corresponding described time, if assuming, the task groove quantity information that the described time takes turns is N, then the time width of wheel of known described time is task groove interval si is the product of N with task groove quantity information, now, corresponding for timing information ti 6 hour of described condition monitoring task want to be included within the time width of wheel of described time, and can mate the applicable described time has taken turns further policer operation.At this, assume that cs is corresponding to current task groove in wheel of described time, ti/si is corresponding within the time period that described timing information is corresponding, the pointer of wheel of described time can streak several task groove, finally gives task groove ts by modular arithmetic and is the specific tasks groove corresponding to the monitor task collection that described condition monitoring task should be added to.
Preferably, described transaction status monitoring device 1 also includes the 6th device (not shown), described 6th device configures the task groove interval si and task groove quantity information N of wheel of described time according to described affairs, and initializes wheel of described time, for Mission Monitor.
Specifically, described task groove interval si is corresponding to the time precision information of wheel of described time, and described task groove interval si and task groove quantity information are the product time width information corresponding to time wheel of N simultaneously.Taking turns generally, for the described time, when described task groove interval si is more little, corresponding timing accuracy is more high, if so corresponding condition monitoring task need that higher timing accuracy is accomplished by arranging described task groove interval si sufficiently small;Simultaneously, when described task groove quantity information is that N is more big, the execution efficiency of monitoring operation is more high, because the described time takes turns the corresponding time width that the longest monitoring timing information is time wheel, i.e. the time rotation time of dynamic one week, it is assumed that when described task groove interval si determines, the time rotation time of dynamic one week is more long, the scope of the condition monitoring task of its corresponding affairs that can mate is more wide, so the utilization rate of wheel of described time is more high, execution efficiency is also more high.At this, the task groove interval si and task groove quantity information N of wheel of described time can based on practical application scene flexible configuration;Further, task groove interval si and task groove quantity information N for the different time wheel on distinct device in described transaction status monitoring device cluster can also be respectively provided with based on different application conditions;Further, the task groove interval si and task groove quantity information N of the time wheel in described equipment 1 can also in actual moving process, the change according to application scenarios, and real-time update correspondence parameter information.Additionally, whenever the parameter value of the task groove interval si and task groove quantity information N of wheel correspondence of described time changes, it is possible to initialize wheel of described time, in order to described Mission Monitor.
Preferably, described transaction status monitoring device 1 also includes the 7th device (not shown), and described 7th device is according to the timing information treated corresponding to persistence condition monitoring task, it is determined that corresponding persistence file group;Treat that persistence condition monitoring task writes the respective file in described persistence file group according to current time by described;Wherein, described persistence file group is deleted and newly-built in time.
Specifically, under distributed high capacity environment, device server is susceptible to the faults such as the machine of delaying, the data structure of internal memory it is based on based on wheel of described time, situation about losing in order to avoid the upper data message of wheel of described time occurs, it is possible to the condition monitoring task that the described time is taken turns carries out persistence back-up processing, thus, after equipment recovers to restart, still can condition monitoring task before handling failure.At this, due to the monitoring diversified demand of operation, such as, for described logistics order, the timing information of the different order node of different orders is different, and the timing information span of the order that described equipment 1 to be monitored is very big, if any logistics order corresponding to commodity classification timing information by minute or hour in units of level, and the timing information of logistics order corresponding to some commodity classifications is with sky, even level in units of the moon.Now, the persistence backup method that described things status monitor device 1 sets, need to meet: from backup file, quickly before reverting equipment obstacle, can also have not enough time to the condition monitoring task processed, simultaneously for described treated the least possible being read repeatedly of condition monitoring task.Preferably, according to the timing information treated corresponding to persistence condition monitoring task, it is determined that corresponding persistence file group.Described persistence file group is stored in described equipment 1 or the permanence storage equipment of other equipment.Corresponding to multiple files in described persistence file group, each file can write multiple described condition monitoring task.At this, the timing information of each condition monitoring task in taking turns according to the described time, it is determined that the condition monitoring task of each persistence file group file should be respectively written into.For example, it is assumed that time wheel has N number of task groove, the corresponding motion time width of a week is N hour, for instance N is 240 hours, corresponding to 27Hour and 28Between hour, same, timing information corresponding to each condition monitoring task can be corresponding to one group 2k-1Hour and 2kBetween hour, now, the power side according to 2 generates different described persistence file groups, and the corresponding timing information of group 1 backup was at 0 hour to condition monitoring task within an hour;The corresponding timing information condition monitoring task between 1 hour to 2 hour of group 2 backup;The corresponding timing information condition monitoring task between 2 hours to 4 hours of group 3 backup;... the corresponding timing information of group k+1 backup is 2k-1Hour and 2kCondition monitoring task between hour, wherein, the file under group r (1≤r≤k+1) can often carry out deleting and newly-built through the period of r hour and at corresponding integral point.In addition, preferably, described persistence file group will arrange two files under each file group, such as file 1 and file 2, described file 1 and described file 2 are alternatively used for writing the described condition monitoring task corresponding to described persistence file group, and, content corresponding in the file replaced formerly is then deleted in two files every r hour, such as, in the U1 moment, alternately file formerly is the file 1 of certain persistence file group described, if now deleting described file 1, then described file 2 alternate file 1 becomes the alternately file formerly of described persistence file group;In the U1+r moment, then deleting the file 2 of described persistence file group, described file 1 alternate file 2 becomes the alternately file formerly of described persistence file group;In the U1+2r moment, then deleting the file 1 of certain persistence file group described, described file 2 alternate file 1 becomes the alternately file formerly of described persistence file group;..., the like.At this, those skilled in the art, it should be appreciated that described file 1 and 2 two files of file are only for example, comprise file group also applicable the application of more than two file, within also should being included in the protection domain of the application, and are incorporated herein with way of reference at this.
Then, by described, described 7th device treats that persistence condition monitoring task writes the respective file in described persistence file group according to current time;Wherein, described persistence file group is deleted and newly-built in time.When described condition monitoring task adds wheel of described time to, also described condition monitoring task can be written in the file that persistence file group is corresponding meanwhile.Treat the timing information corresponding to condition monitoring task of persistence described in described 7th device meeting basis, calculate this condition monitoring task needs to be persisted to which concrete persistence file group.nullSuch as,The timing information of described condition monitoring task K is 2.8 hours,When current state is V1,Group 3 corresponding to above-mentioned persistence file group,Further,As mentioned above,Multiple files in described persistence file group are used alternatingly,Then under current state V1,Current the replacing at first file of described persistence file group 3 is file 1,Start alternately in the V0 moment if this takes turns file 1,Then described file 1 is as alternately having gone through the V1-V0 time at first file,Through r-(V1-V0) after the time (now,If described persistent file group is group 3,Then r=3),Described file 1 will be deleted,Described file 2 will as currently replacing at first file,Now the timing information of described condition monitoring task K is 2.8 hours,If r-(V1-V0) is not less than 2.8 hours,Then by described for described condition monitoring task K write current alternately at first file 1,If r-(V1-V0) was less than 2.8 hours,Then currently replace part 2 later by described for described condition monitoring task K write,Further,In the V0+r moment,Delete described file 1,And newly-built described file 2 as alternately at first file.By that analogy, described persistence file group is deleted and newly-built in time.Based on this, described transaction status monitoring device 1 just quickly can also have not enough time to the condition monitoring task processed from backup file before reverting equipment obstacle, simultaneously for described treated the least possible being read repeatedly of condition monitoring task.
At this; those skilled in the art will be understood that the method for the above-mentioned persistence file group determining correspondence is only for example, if other determine applicable the application of method of corresponding persistence file group; also within should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.
Additionally, due to treat that the data message amount of persistence is relatively big, in order to ensure the handling capacity of system, need to improve the efficiency of the respective file that described condition monitoring task is write persistence file group, at this, it is preferable that, it is possible to by described file corresponding for the write of described condition monitoring task order.
Preferably, described transaction status monitoring device 1 also includes the 8th device (not shown), described timeout mode monitor task is persisted to correspondence database by described 8th device, or provides described timeout mode monitor task to corresponding user according to time-out alarm threshold value information.
Specifically, at this, by monitoring operation, it is judged that described condition monitoring task is in timeout mode, for instance, take turns certain task groove of pointed when the time, all condition monitoring tasks that the monitor task that described task groove is corresponding is concentrated all are judged as being in timeout mode.Now, in order to the convenient condition monitoring task to described time-out carries out follow-up investigation, alert process or takes corresponding remedial measure, it is possible to described timeout mode monitor task is persisted to correspondence database.At this, synchronization needs the data message that the timeout mode monitor task persisted is corresponding to be likely to very many, in order to influence time wheel does not manage thread, it is preferably used thread pool to complete the task that timeout datum is stored in the data base of correspondence, at this, make use of thread pool asynchronous can complete the characteristic of described timeout datum storage, described timeout datum is first submitted to described thread pool by the main thread of described maintenance time wheel, follow-up specific tasks perform, database operation as described in being stored into will transfer to as described in thread pool carry out asynchronous completing, avoid in synchronization storage operation, owing to the storage reason such as operation failure gives the obstruction and pressure that the overall operation of described main thread brings.nullFurther,For being persisted to the condition monitoring task of corresponding data block,Preferably,Data treatment people can in conjunction with the practical situation of Transaction and needs,Described condition monitoring task is investigated,True for some timeout modes and be implicitly present in data process risk condition monitoring task,Certain overtime alarm threshold value information can be set for it,If described timeout mode monitor task has reached the overtime alarm threshold value of correspondence,System will start warning reminding,Described timeout mode monitor task is provided to corresponding demand user,At this,Preferably,Statistics and convergence task can be periodically executed for the condition monitoring task being provided with alarm threshold value information,The condition monitoring task exceeding alarm threshold value information is automatically generated a warning message,Described warning message can be pushed to demand user by different modes,Include but not limited to that SMS is reminded、The modes such as mail reminder;If there is deviation in the judgement of the timeout mode of described condition monitoring task, or although described condition monitoring task is in timeout mode, but process risk by the assessment of data treatment people but without reaching certain data, can continue to observe to described condition monitoring task, without starting early warning task immediately.
Fig. 2 illustrates a kind of transaction status monitoring method flow diagram according to another aspect of the application.
Wherein, in step s 201, one or more more new informations of Transaction Information are obtained;In step S202, generate the condition monitoring task about affairs corresponding to described Transaction Information according to described more new information;In step S203, described condition monitoring task is added into the monitor task collection in time wheel corresponding to task groove by the timing information corresponding to described condition monitoring task;In step S204, temporally check the timeout mode monitor task that the task groove that the described time takes turns is concentrated to determine described monitor task.
Specifically, in step s 201, one or more more new informations of Transaction Information are obtained.In a lot of data processing field, for the affairs advanced, its relevant main body wishes the process of affairs to be had gained some understanding and grasps, and the delay being likely to occur in Transaction or obstruction are found in time and successfully managed.For affairs to be monitored, the monitoring operation of its correspondence can be whole Transaction, it is also possible to be the Partial Process in whole affairs.For example, it is possible to from affairs initially as monitoring operation starting point, and with Transaction terminate be monitoring operation terminal;Or a section in Transaction or the monitoring operation of several sections of foundation correspondences can be chosen, wherein said several sections of monitoring operations can be several successive stages of described affairs, it is also possible to is several stages at interval in a Transaction.For needing the affairs of monitoring, the concrete object of different monitoring operations can be selected flexibly according to the actual demand that data process, for one monitor operation start need to send more new information based on the Transaction Information of the current state of described affairs, now, presently described Transaction Information can a corresponding more fresh information, it is also possible to process the corresponding a plurality of more new information of correlation circumstance based on different data.At this, described more new information contains the essential information of affairs corresponding to described Transaction Information, also contains the state change information of affairs corresponding to described Transaction Information.Such as, in ecommerce, the logistics order generated along with online trading is the object that a lot of affairs relative subject is paid close attention to, assume to need to signing for this stage, described logistics order is set up a monitoring operation in delivery, when described logistics proceeds to deliver this state, corresponding Transaction Information can be produced, based on this, order center will send one or more more new information, described more new information can include the essential information of described logistics order, as, corresponding commodity classification, the generation time etc. of corresponding logistics order, the modification information of order status can also be included, time etc. as corresponding in current state.Now, in step s 201, corresponding more fresh information can be obtained as required.
Then, in step S202, the condition monitoring task about affairs corresponding to described Transaction Information is generated according to described more new information.At this, described condition monitoring task includes starting to next this process of state, the process of described affairs to be monitored from the current state that described more new information is corresponding to described affairs, such as, configure specific monitoring period, policer operation required for the different process phases of different affairs is likely to identical, also likely to be present difference, the standard that arranges of described condition monitoring task can with reference to the corresponding more new information at Current transaction node of described affairs and described affairs.For the logistics order in above-mentioned ecommerce, the more new information at certain transaction nodes corresponding to target logistics order is likely to comprise the classification of tradable commodity corresponding to described logistics order, tradable commodity place of departure and place of acceptance information, and logistics order current state information, such as current commodity logistics terminal and time of advent thereof etc., based on these data messages, in conjunction with certain analysis, such as, mate with time-out rules more set in advance, namely the most rational condition monitoring task arrangement that affairs corresponding to described Transaction Information are required under current process state can be set out.
Then, in step S203, described condition monitoring task is added into the monitor task collection in time wheel corresponding to task groove by the timing information corresponding to described condition monitoring task.At this, wheel of described time is based on a kind of data structure of Hash principle design.Preferably, time wheel comprises several task grooves and a pointer and directed uniform rotation.Wheel of described time is corresponding to the information of two dimensions, one dimension is time precision, namely when a time wheel is divided into several task grooves, time wheel often turns over time of a task groove and is the monitoring unit that wheel of described time is minimum, it is possible to be the second, point, time, day, the moon, year etc. random time unit;Another dimension is time width, the i.e. wheel uniform rotation time of one week time, at this, wheel of described time filled the time sum of each task groove and is described time rotation and spends the time of one week, again because preferably wheel of described time is uniform rotation, so the product that time rotation crosses the time of a task groove and the task groove quantity of wheel of described time is the described time rotation time of dynamic one week, further, the each task groove taken turns for the described time arranges a corresponding monitor task collection, each described monitor task collection can be deposited and add the condition monitoring task of one or more correspondences according to actual needs in real time.Such as, in step S202, generating the condition monitoring task of corresponding affairs based on the more new information of described Transaction Information, timing information corresponding to described condition monitoring task is the monitoring period information corresponding to described monitored task.At a time namely described condition monitoring task is added into certain monitor task subset corresponding to task groove of wheel of described time, at this, based on the timing information of described condition monitoring task, and the information such as the time precision of wheel of described time and time width determines the monitor task subset of concrete described correspondence.
At this; those skilled in the art will be understood that; wheel of described time comprises several task grooves and a pointer; and directed uniform rotation is only for example; if other meet applicable the application of version of time wheel principle; also within should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.Additionally, those skilled in the art also will be understood that wheel of above-mentioned time is only for example, if other data structures or method, the applicable the application of appliance arrangement, within also should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.
Then, in step S204, the timeout mode monitor task that the task groove that the described time takes turns is concentrated temporally is checked to determine described monitor task.At this, it is preferable that system can use a special thread to carry out maintenance time wheel, it is responsible for the upper described monitor task of time wheel and concentrates the inspection work of corresponding states monitor task.Such as, the pointer of wheel of described time is from task groove corresponding to current time that described condition monitoring task is added into wheel of described time, streak several task grooves on wheel of described time one by one, when the task groove that the monitor task subset that condition monitoring task described in described pointed is deposited is corresponding, elapsed time is namely corresponding to the timing information of described condition monitoring task, the thread that now time wheel is corresponding arrives this task groove, then it is assumed that all condition monitoring tasks in the monitor task subset that described task groove is corresponding are all overtime.
At this, those skilled in the art will be understood that wheel of above-mentioned time is only for example, if other data structures or method, the applicable the application of appliance arrangement, within also should being included in the protection domain of the application, and is incorporated herein with way of reference at this.
At this, the application is by obtaining the more new information in Transaction, generate condition monitoring task targetedly, and described condition monitoring task added in time wheel, thus timing information and time based on described condition monitoring task are taken turns this data result and described condition monitoring task are monitored automatically;And then, this programme it can be avoided that in prior art monitoring method monitoring data treatment people is required higher cost of labor and monitoring information delay and processes the drawback such as not in time, the described affairs process in each stage can be carried out effectively monitoring and early warning.
Preferably, described method also includes step S205 (not shown), in step S205, determines preferably more new information according to predetermined status information to be monitored from the one or more more new information;Wherein, in step S202, according to described preferably more new information generate the condition monitoring task about affairs corresponding to described Transaction Information.
Specifically, in a lot of data processing field, all state nodes of not all affairs have the needs arranging monitoring operation.For the online trading carried out based on e-commerce platform, the quantity of the logistics order of the corresponding goods that transaction every day generates is huge, each logistics order can produce again various states in progradation, if all more new informations of whole nodes of whole orders are all arranged condition monitoring task, excessive for the monitoring operational pressure of system on the one hand, on the other hand, it is not that update all information has the necessity carrying out corresponding monitoring.Such as, although transaction status monitoring operation can be completed by a described transaction status monitoring device 1 in theory, can also infinitely expand the cluster being made up of multiple same or similar equipment to complete, but in actual applications, can need based on the monitoring of described transaction status, the many factors such as cost of described equipment running consider the system deployment scenario of optimum, so all more new informations of whole nodes of whole orders are all arranged condition monitoring task is not necessary.The transaction status monitoring device 1 optimized can determine preferably more new information according to predetermined status information to be monitored from the one or more more new information.At this, the described predetermined information included by condition monitoring status information: which transaction nodes that can interpolate which affairs having needs to arrange condition monitoring task;The more new information that can specify certain transaction nodes having needs the specifying information content that comprises, and the setting of timing information corresponding to described condition monitoring task can be provided reference value by this information content.At this, the effect of described predetermined information to be monitored includes filtering out, from numerous more new informations of each transaction nodes, the more new information having the necessity arranging condition monitoring task and value most.
At this; those skilled in the art will be understood that; above-mentioned condition monitoring status information is only for example; if other data messages can help to determine preferably more new information also applicable the application from the one or more more new information; also within should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.
Further, in step S202, can according to described preferably more new information generate the condition monitoring task about affairs corresponding to described Transaction Information.The condition monitoring task now generated is to think by analysis more to have monitoring to be worth the monitoring operation corresponding with the described affairs needed.Additionally, described status information to be monitored can load according to actual processing condition data real-time update.
In a preferred embodiment, described step S202 includes step S2021 (not shown) and step S2022 (not shown), wherein, in step S2021, obtains the overtime Rule Information of affairs corresponding to described Transaction Information;In step S2022, according to described more new information, and in conjunction with described time-out Rule Information, generate the condition monitoring task about described affairs.
Specifically, in step S2021, obtain the overtime Rule Information of affairs corresponding to described Transaction Information.At this, it is preferable that described time-out Rule Information includes pre-defining and be saved in the timing information in associated databases according to real data disposition.Described time-out Rule Information can be based on the data structure set by concrete condition of different types of affairs, the concrete condition of said different types of affairs can correspond to a concrete recording data information, described record contains multiple condition field, pending affairs kind as corresponding in described logistics order, the initial time of logistics order, the field informations such as logistics order Estimated Time Of Completion, by these field informations are carried out COMPREHENSIVE CALCULATING, may determine that the timing information under a concrete application scenarios, it is the overtime Rule Information under this application scenarios.Further, if the information field corresponding to more new information of described Transaction Information matches with the described information field of a certain bar recording data information in described data base, then based on timing information corresponding to described recording data information, time-out Rule Information can be determined for described more new information.At this, article one, the described timing information corresponding to described recording data information can be a concrete data message, if timing information is through 23 hours from current time, now, as long as the respective field information of described more new information drops in the scope of each field information in described recording data information, described more new information just can be suitable for the timing information that described recording data information is corresponding, namely through 23 hours from current time;Article one, all right computing formula of timing information corresponding to described recording data information, variable parameter therein be described in more new information corresponding to the specifying information value under each field of described recording data information, computing formula by corresponding timing information, described more new information can match the overtime Rule Information particularly changed flexibly, such as, by described calculating, when obtaining when the overtime Rule Information of correspondence is from today 8 to today 22.It is highly preferred that described time-out Rule Information also includes dynamically pushing corresponding overtime Rule Information in real time to described equipment 1 from system middleware according to real data disposition.Specifically, if described time-out Rule Information is current dynamically generation, such as, the overtime Rule Information that User Defined in-time generatin is new, described new overtime Rule Information can be sent to the middleware of system, if then by judging, the time-out rule version loaded in described transaction status monitoring device 1 lags behind described new time-out rule, then by middleware server, described new overtime Rule Information is pushed to described transaction status monitoring device 1, further, it is possible to the more new information Corresponding matching of presently described Transaction Information.At this, it will be understood by those skilled in the art that the loading of described time-out Rule Information as required, can select to include but not limited to that described database information loads, or the various methods such as middleware message propelling movement complete flexibly.
At this, if described time-out Rule Information is saved in special data base, when environmental loads is too high, server is delayed machine, or have fresh code to issue, it is necessary to restart the emergency case such as system when occurring, the overtime Rule Information of needs can be reloaded from described data base;If completed the real-time loading of time-out Rule Information by described middleware, during as carried out message propelling movement by message-oriented middleware, owing to acquisition of information and the delivery of message-oriented middleware can asynchronous carry out, the overtime Rule Information pushed can first arrive message-oriented middleware and preserve, it is delivered to described equipment 1 again by described middleware, when there is emergency situations in system, owing to described time-out Rule Information has been saved in described message-oriented middleware, so will not lose, when system recovery runs, the delivery of completion message can be continued, so also being able to good disaster tolerance.
Then, in step S2022, according to described more new information, and in conjunction with described time-out Rule Information, the condition monitoring task about described affairs is generated.For described logistics order, when logistics order proceeds to the link that places an order, order center sends a more new information at this node, more new information described in obtaining in described step S201, described more new information can be sent in the data base at described time-out Rule Information place by described equipment 1, the information field corresponding based on described more new information carries out match query with the record information in described data base, is then loaded into the overtime Rule Information of coupling to described equipment 1 from described data base;Or described equipment 1 obtains the overtime Rule Information of real time propelling movement from described system middleware, and then the condition monitoring task of more described affairs that new information is corresponding described in generating.
Preferably, described affairs include multiple transaction nodes;Wherein, in step S2021, obtain the overtime Rule Information of described transaction nodes corresponding to described Transaction Information.
Specifically, described affairs potentially include multiple transaction nodes, carry out the average or regular node divided including the concrete time point advanced by affairs, and the data also including based target affairs process specific, with the node that the stage condition of affairs obtains for the criteria for classifying.Can based on these transaction nodes as the initial of monitor task corresponding to described affairs and terminal.Arriving a node whenever affairs advance, system can send more new information based on the current state of described affairs, as the data basis of follow-up monitor task.Such as, it is by when the concrete time point of affairs propelling is next average or regularity divides when described transaction nodes is arranged, then the more new information of described target transaction every T time, can be sent;And for example, preferably, described transaction nodes arranges the data being based on target transaction and processes specific, during with the stage condition of affairs for the criteria for classifying, then can based on the different phase of Transaction Information process, A, B, C three phases such as certain affairs is monitored the division of task, when affairs enter the transaction nodes in each stage, it is thus achieved that the more new information of corresponding Transaction Information.Further, different affairs, or even the monitoring demand of the different process statuss of same affairs is discrepant, such as, node M 1 corresponding for affairs A is timing information correspondence T1 to the monitoring demand of next node M2, and when affairs proceed to node M 2, its from node M 2 to the monitoring demand of next node M3 be timing information correspondence T2.T1 and T2 is probably identical, but more there are differences in real data processes.Different monitoring demands requires that corresponding overtime Rule Information constantly changes, thus needing the overtime Rule Information that real-time loading is new.Such as, in ecommerce, the logistics order process generated along with online trading can be divided into and places an order, delivers, the particular state such as signs for, assume that described affairs have monitoring needs in each state, then described particular state can be set to transaction nodes, when logistics order is advanced to the particular state of each correspondence, order center will send the more fresh information that a bar state changes, can at described time-out data base corresponding to Rule Information or the overtime Rule Information being directly loaded into coupling from system middleware based on described more fresh information.
It is highly preferred that described method also includes step S2023 (not shown), in step S2023, described more fresh information is carried out format adaptation process;Wherein, in step S2022, according to more new information described in after format adaptation, and in conjunction with described time-out Rule Information, generating the condition monitoring task about described affairs, wherein, described condition monitoring task adapts with wheel of described time.
Specifically, in step s 201, the data form that the more new information of each acquired Transaction Information is corresponding would be likely to occur difference, for instance, the more new information of different-format is sent out by different system message middleware servers.So that the process operation that wheel of described time carries out for described more new information is more unified convenient, improve the reusability of wheel of described time simultaneously, in step S2023, the more new information obtained can be formatted process.In addition, owing to wheel of described time is to exist and a kind of data structure in correspondence memory, in order to save the memory headroom of preciousness, simultaneously, more new information described in the Main Function of the more new information after format adaptation is able to uniquely to refer to, so can be less as far as possible with the more new information after the format adaptation corresponding to described more new information, for instance, only with the corresponding Message Records of 3 fields, this Message Record uniquely points to described in one more new information.Further, determine loaded overtime Rule Information by described more new information, in conjunction with more new information described in after described format adaptation, ultimately generate the condition monitoring task about described affairs.At this, described condition monitoring task to adapt with corresponding wheel of described time, for instance, the more new information after the format adaptation that described condition monitoring task is corresponding can mate the monitor task that during entrance is taken turns, task groove is corresponding with the described time to be concentrated;And for example, the overtime monitoring rules of described condition monitoring task is wanted to realize within the scope of the time width that time wheel is corresponding, etc..
In a further advantageous embodiment, in step S203, according to the timing information corresponding to described condition monitoring task, by the monitor task collection that described condition monitoring task is added in time wheel corresponding to task groove by following formula:
Ts=(cs+ (ti/si)) %N
Wherein, cs is current task groove in wheel of described time, and ti is described timing information, and the task groove interval of time wheel described in si, N is the task groove quantity information of wheel of described time, and % is modular arithmetic.
Specifically, at this, timing information corresponding to described condition monitoring task includes a concrete time period information, such as, if time when a described timing information is from today 8 to today 14, then correspond to, described condition monitoring task is added in time wheel when being today 8, its corresponding timing information, namely time ti to be monitored is 6 hours.Now, the time precision information of wheel of described time and the task groove interval si of wheel of corresponding described time, if assuming, the task groove quantity information that the described time takes turns is N, then the time width of wheel of known described time is task groove interval si is the product of N with task groove quantity information, now, corresponding for timing information ti 6 hour of described condition monitoring task want to be included within the time width of wheel of described time, and can mate the applicable described time has taken turns further policer operation.At this, assume that cs is corresponding to current task groove in wheel of described time, ti/si is corresponding within the time period that described timing information is corresponding, the pointer of wheel of described time can streak several task groove, finally gives task groove ts by modular arithmetic and is the specific tasks groove corresponding to the monitor task collection that described condition monitoring task should be added to.
Preferably, described method also includes (not shown) in step S206, in step S206, configures the task groove interval si and task groove quantity information N of wheel of described time according to described affairs, and initializes wheel of described time, for Mission Monitor.
Specifically, described task groove interval si is corresponding to the time precision information of wheel of described time, and described task groove interval si and task groove quantity information are the product time width information corresponding to time wheel of N simultaneously.Taking turns generally, for the described time, when described task groove interval si is more little, corresponding timing accuracy is more high, if so corresponding condition monitoring task need that higher timing accuracy is accomplished by arranging described task groove interval si sufficiently small;Simultaneously, when described task groove quantity information is that N is more big, the execution efficiency of monitoring operation is more high, because the described time takes turns the corresponding time width that the longest monitoring timing information is time wheel, i.e. the time rotation time of dynamic one week, it is assumed that when described task groove interval si determines, the time rotation time of dynamic one week is more long, the scope of the condition monitoring task of its corresponding affairs that can mate is more wide, so the utilization rate of wheel of described time is more high, execution efficiency is also more high.At this, the task groove interval si and task groove quantity information N of wheel of described time can based on practical application scene flexible configuration;Further, task groove interval si and task groove quantity information N for the different time wheel on distinct device in described transaction status monitoring device cluster can also be respectively provided with based on different application conditions;Further, the task groove interval si and task groove quantity information N of the time wheel in described equipment 1 can also in actual moving process, the change according to application scenarios, and real-time update correspondence parameter information.Additionally, whenever the parameter value of the task groove interval si and task groove quantity information N of wheel correspondence of described time changes, it is possible to initialize wheel of described time, in order to described Mission Monitor.
Preferably, described method also includes step S207 (not shown), in step S207, according to the timing information treated corresponding to persistence condition monitoring task, it is determined that corresponding persistence file group;Treat that persistence condition monitoring task writes the respective file in described persistence file group according to current time by described;Wherein, described persistence file group is deleted and newly-built in time.
Specifically, under distributed high capacity environment, device server is susceptible to the faults such as the machine of delaying, the data structure of internal memory it is based on based on wheel of described time, situation about losing in order to avoid the upper data message of wheel of described time occurs, it is possible to the condition monitoring task that the described time is taken turns carries out persistence back-up processing, thus, after equipment recovers to restart, still can condition monitoring task before handling failure.At this, due to the monitoring diversified demand of operation, such as, for described logistics order, the timing information of the different order node of different orders is different, and the timing information span of the order that described equipment 1 to be monitored is very big, if any logistics order corresponding to commodity classification timing information by minute or hour in units of level, and the timing information of logistics order corresponding to some commodity classifications is with sky, even level in units of the moon.Now, the persistence backup method that described things status monitor device 1 sets, need to meet: from backup file, quickly before reverting equipment obstacle, can also have not enough time to the condition monitoring task processed, simultaneously for described treated the least possible being read repeatedly of condition monitoring task.Preferably, according to the timing information treated corresponding to persistence condition monitoring task, it is determined that corresponding persistence file group.Described persistence file group is stored in described equipment 1 or the permanence storage equipment of other equipment.Corresponding to multiple files in described persistence file group, each file can write multiple described condition monitoring task.At this, the timing information of each condition monitoring task in taking turns according to the described time, it is determined that the condition monitoring task of each persistence file group file should be respectively written into.For example, it is assumed that time wheel has N number of task groove, the corresponding motion time width of a week is N hour, for instance N is 240 hours, corresponding to 27Hour and 28Between hour, same, timing information corresponding to each condition monitoring task can be corresponding to one group 2k-1Hour and 2kBetween hour, now, the power side according to 2 generates different described persistence file groups, and the corresponding timing information of group 1 backup was at 0 hour to condition monitoring task within an hour;The corresponding timing information condition monitoring task between 1 hour to 2 hour of group 2 backup;The corresponding timing information condition monitoring task between 2 hours to 4 hours of group 3 backup;... the corresponding timing information of group k+1 backup is 2k-1Hour and 2kCondition monitoring task between hour, wherein, the file under group r (1≤r≤k+1) can often carry out deleting and newly-built through the period of r hour and at corresponding integral point.In addition, preferably, described persistence file group will arrange two files under each file group, such as file 1 and file 2, described file 1 and described file 2 are alternatively used for writing the described condition monitoring task corresponding to described persistence file group, and, content corresponding in the file replaced formerly is then deleted in two files every r hour, such as, in the U1 moment, alternately file formerly is the file 1 of certain persistence file group described, if now deleting described file 1, then described file 2 alternate file 1 becomes the alternately file formerly of described persistence file group;In the U1+r moment, then deleting the file 2 of described persistence file group, described file 1 alternate file 2 becomes the alternately file formerly of described persistence file group;In the U1+2r moment, then deleting the file 1 of certain persistence file group described, described file 2 alternate file 1 becomes the alternately file formerly of described persistence file group;..., the like.At this, those skilled in the art, it should be appreciated that described file 1 and 2 two files of file are only for example, comprise file group also applicable the application of more than two file, within also should being included in the protection domain of the application, and are incorporated herein with way of reference at this.Then, in step S207, treat that persistence condition monitoring task writes the respective file in described persistence file group according to current time by described;Wherein, described persistence file group is deleted and newly-built in time.When described condition monitoring task adds wheel of described time to, also described condition monitoring task can be written in the file that persistence file group is corresponding meanwhile.In step S207, treat the timing information corresponding to condition monitoring task of persistence described in meeting basis, calculate this condition monitoring task needs to be persisted to which concrete persistence file group.nullSuch as,The timing information of described condition monitoring task K is 2.8 hours,When current state is V1,Group 3 corresponding to above-mentioned persistence file group is further,As mentioned above,Multiple files in described persistence file group are used alternatingly,Then under current state V1,Current the replacing at first file of described persistence file group 3 is file 1,Start alternately in the V0 moment if this takes turns file 1,Then described file 1 is as alternately having gone through the V1-V0 time at first file,Through r-(V1-V0) after the time (now,If described persistent file group is group 3,Then r=3),Described file 1 will be deleted,Described file 2 will as currently replacing at first file,Now the timing information of described condition monitoring task K is 2.8 hours,If r-(V1-V0) is not less than 2.8 hours,Then by described for described condition monitoring task K write current alternately at first file 1,If r-(V1-V0) was less than 2.8 hours,Then currently replace part 2 later by described for described condition monitoring task K write,Further,In the V0+r moment,Delete described file 1,And newly-built described file 2 as alternately at first file.By that analogy, described persistence file group is deleted and newly-built in time.Based on this, described transaction status monitoring device 1 just quickly can also have not enough time to the condition monitoring task processed from backup file before reverting equipment obstacle, simultaneously for described treated the least possible being read repeatedly of condition monitoring task.
At this; those skilled in the art will be understood that the method for the above-mentioned persistence file group determining correspondence is only for example, if other determine applicable the application of method of corresponding persistence file group; also within should being included in the protection domain of the application, and it is incorporated herein with way of reference at this.
Additionally, due to treat that the data message amount of persistence is relatively big, in order to ensure the handling capacity of system, need to improve the efficiency of the respective file that described condition monitoring task is write persistence file group, at this, it is preferable that, it is possible to by described file corresponding for the write of described condition monitoring task order.
Preferably, described method also includes step S208 (not shown), in step S208, described timeout mode monitor task is persisted to correspondence database, or according to time-out alarm threshold value information, described timeout mode monitor task is provided to corresponding user.
Specifically, at this, by monitoring operation, it is judged that described condition monitoring task is in timeout mode, for instance, take turns certain task groove of pointed when the time, all condition monitoring tasks that the monitor task that described task groove is corresponding is concentrated all are judged as being in timeout mode.Now, in order to the convenient condition monitoring task to described time-out carries out follow-up investigation, alert process or takes corresponding remedial measure, it is possible to described timeout mode monitor task is persisted to correspondence database.At this, synchronization needs the data message that the timeout mode monitor task persisted is corresponding to be likely to very many, in order to influence time wheel does not manage thread, it is preferably used thread pool to complete the task that timeout datum is stored in the data base of correspondence, at this, make use of thread pool asynchronous can complete the characteristic of described timeout datum storage, described timeout datum is first submitted to described thread pool by the main thread of described maintenance time wheel, follow-up specific tasks perform, database operation as described in being stored into will transfer to as described in thread pool carry out asynchronous completing, avoid in synchronization storage operation, owing to the storage reason such as operation failure gives the obstruction and pressure that the overall operation of described main thread brings.nullFurther,For being persisted to the condition monitoring task of corresponding data block,Preferably,Data treatment people can in conjunction with the practical situation of Transaction and needs,Described condition monitoring task is investigated,True for some timeout modes and be implicitly present in data process risk condition monitoring task,Certain overtime alarm threshold value information can be set for it,If described timeout mode monitor task has reached the overtime alarm threshold value of correspondence,System will start warning reminding,Described timeout mode monitor task is provided to corresponding demand user,At this,Preferably,Statistics and convergence task can be periodically executed for the condition monitoring task being provided with alarm threshold value information,The condition monitoring task exceeding alarm threshold value information is automatically generated a warning message,Described warning message can be pushed to demand user by different modes,Include but not limited to that SMS is reminded、The modes such as mail reminder;If there is deviation in the judgement of the timeout mode of described condition monitoring task, or although described condition monitoring task is in timeout mode, but process risk by the assessment of data treatment people but without reaching certain data, can continue to observe to described condition monitoring task, without starting early warning task immediately.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned one exemplary embodiment, and when without departing substantially from spirit herein or basic feature, it is possible to realize the application in other specific forms.Therefore, no matter from which point, embodiment all should be regarded as exemplary, and be nonrestrictive, scope of the present application is limited by claims rather than described above, it is intended that all changes in the implication of the equivalency dropping on claim and scope be included in the application.Any accompanying drawing labelling in claim should be considered as the claim that restriction is involved.Furthermore, it is to be understood that " including " word is not excluded for other unit or step, odd number is not excluded for plural number.Multiple unit or the device stated in device claim can also be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and is not offered as any specific order.
Claims (18)
1. a transaction status monitoring method, wherein, the method includes:
Obtain one or more more new informations of Transaction Information;
The condition monitoring task about affairs corresponding to described Transaction Information is generated according to described more new information;
Described condition monitoring task is added into the monitor task collection in time wheel corresponding to task groove by the timing information corresponding to described condition monitoring task;
Temporally check the timeout mode monitor task that the task groove that the described time takes turns is concentrated to determine described monitor task.
2. method according to claim 1, wherein, described in described basis, more new information generates the condition monitoring task about affairs corresponding to described Transaction Information and includes:
Obtain the overtime Rule Information of affairs corresponding to described Transaction Information;
According to described more new information, and in conjunction with described time-out Rule Information, generate the condition monitoring task about described affairs.
3. method according to claim 2, wherein, described affairs include multiple transaction nodes;
Wherein, the overtime Rule Information of affairs corresponding to the described Transaction Information of described acquisition includes:
Obtain the overtime Rule Information of described transaction nodes corresponding to described Transaction Information.
4. method according to claim 3, wherein, described in described basis, more new information generates the condition monitoring task about affairs corresponding to described Transaction Information and also includes:
Described more fresh information is carried out format adaptation process;
Wherein, more new information described in described basis, and in conjunction with described time-out Rule Information, the condition monitoring task about described affairs that generates includes:
According to more new information described in after format adaptation, and in conjunction with described time-out Rule Information, generating the condition monitoring task about described affairs, wherein, described condition monitoring task adapts with wheel of described time.
5. method according to any one of claim 1 to 4, wherein, the method also includes:
From the one or more more new information, more new information is determined preferably according to predetermined status information to be monitored;
Wherein, described in described basis, more new information generates the condition monitoring task about affairs corresponding to described Transaction Information and includes:
According to described preferably more new information generate the condition monitoring task about affairs corresponding to described Transaction Information.
6. method according to any one of claim 1 to 5, wherein, described timing information corresponding to the described condition monitoring task monitor task collection described condition monitoring task being added in time wheel corresponding to task groove includes:
According to the timing information corresponding to described condition monitoring task, by the monitor task collection that described condition monitoring task is added in time wheel corresponding to task groove by following formula:
Ts=(cs+ (ti/si)) %N
Wherein, cs is current task groove in wheel of described time, and ti is described timing information, and the task groove interval of time wheel described in si, N is the task groove quantity information of wheel of described time, and % is modular arithmetic.
7. method according to claim 6, wherein, the method also includes:
Configure the task groove interval si and task groove quantity information N of wheel of described time according to described affairs, and initialize wheel of described time, for Mission Monitor.
8. method according to any one of claim 1 to 7, wherein, the method also includes:
According to the timing information treated corresponding to persistence condition monitoring task, it is determined that corresponding persistence file group;
Treat that persistence condition monitoring task writes the respective file in described persistence file group according to current time by described;
Wherein, described persistence file group is deleted and newly-built in time.
9. method according to any one of claim 1 to 8, wherein, the method also includes:
Described timeout mode monitor task is persisted to correspondence database, or according to time-out alarm threshold value information, described timeout mode monitor task is provided to corresponding user.
10. a transaction status monitoring device, wherein, this equipment includes:
First device, for obtaining one or more more new informations of Transaction Information;
Second device, for generating the condition monitoring task about affairs corresponding to described Transaction Information according to described more new information;
3rd device, for the monitor task collection that described condition monitoring task is added in time wheel corresponding to task groove by the timing information corresponding to described condition monitoring task;
4th device, for temporally checking the timeout mode monitor task that the task groove that the described time takes turns is concentrated to determine described monitor task.
11. equipment according to claim 10, wherein, described second device includes:
First module, for obtaining the overtime Rule Information of affairs corresponding to described Transaction Information;
Second unit, is used for according to described more new information, and in conjunction with described time-out Rule Information, generates the condition monitoring task about described affairs.
12. equipment according to claim 11, wherein, described affairs include multiple transaction nodes;
Wherein, described first module is used for:
Obtain the overtime Rule Information of described transaction nodes corresponding to described Transaction Information.
13. equipment according to claim 12, wherein, described second device also includes:
Unit the 3rd, for carrying out format adaptation process to described more fresh information;
Wherein, described second unit is used for:
According to more new information described in after format adaptation, and in conjunction with described time-out Rule Information, generating the condition monitoring task about described affairs, wherein, described condition monitoring task adapts with wheel of described time.
14. the equipment according to any one of claim 10 to 13, wherein, this equipment also includes:
5th device, for determining preferably more new information according to predetermined status information to be monitored from the one or more more new information;
Wherein, described second device is used for:
According to described preferably more new information generate the condition monitoring task about affairs corresponding to described Transaction Information.
15. the equipment according to any one of claim 10 to 14, wherein, described 3rd device is used for:
According to the timing information corresponding to described condition monitoring task, by the monitor task collection that described condition monitoring task is added in time wheel corresponding to task groove by following formula:
Ts=(cs+ (ti/si)) %N
Wherein, cs is current task groove in wheel of described time, and ti is described timing information, and the task groove interval of time wheel described in si, N is the task groove quantity information of wheel of described time, and % is modular arithmetic.
16. equipment according to claim 15, wherein, this equipment also includes:
6th device, for configuring the task groove interval si and task groove quantity information N of wheel of described time according to described affairs, and initializes wheel of described time, for Mission Monitor.
17. the equipment according to any one of claim 10 to 16, wherein, this equipment also includes the 7th device, is used for:
According to the timing information treated corresponding to persistence condition monitoring task, it is determined that corresponding persistence file group;
Treat that persistence condition monitoring task writes the respective file in described persistence file group according to current time by described;
Wherein, described persistence file group is deleted and newly-built in time.
18. the equipment according to any one of claim 10 to 17, wherein, this equipment also includes:
8th device, for described timeout mode monitor task is persisted to correspondence database, or provides described timeout mode monitor task to corresponding user according to time-out alarm threshold value information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410778742.7A CN105760378B (en) | 2014-12-15 | 2014-12-15 | Transaction state monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410778742.7A CN105760378B (en) | 2014-12-15 | 2014-12-15 | Transaction state monitoring method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105760378A true CN105760378A (en) | 2016-07-13 |
CN105760378B CN105760378B (en) | 2019-12-10 |
Family
ID=56336903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410778742.7A Active CN105760378B (en) | 2014-12-15 | 2014-12-15 | Transaction state monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105760378B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106385341A (en) * | 2016-08-31 | 2017-02-08 | 福建天晴数码有限公司 | Thread monitoring method and system of client |
CN106897885A (en) * | 2017-01-24 | 2017-06-27 | 武汉奇米网络科技有限公司 | The method and system that a kind of electric business platform businessman punishes in violation of rules and regulations |
CN109117295A (en) * | 2018-07-18 | 2019-01-01 | 中国银联股份有限公司 | A kind of overtime monitoring method of transaction and device |
CN109697592A (en) * | 2018-12-21 | 2019-04-30 | 江苏满运软件科技有限公司 | Source of goods undercarriage method, system, equipment and storage medium based on annular array |
CN110032438A (en) * | 2019-04-24 | 2019-07-19 | 北京高途云集教育科技有限公司 | Delayed tasks execute method, apparatus and electronic equipment |
CN110097324A (en) * | 2019-05-14 | 2019-08-06 | 北京顺丰同城科技有限公司 | A kind of logistics information querying method and device |
CN110119323A (en) * | 2019-05-13 | 2019-08-13 | 重庆八戒电子商务有限公司 | It is a kind of to take turns the method and system for executing delay queue based on the time |
CN110502322A (en) * | 2019-07-12 | 2019-11-26 | 苏宁云计算有限公司 | The triggering method and device of timer-triggered scheduler |
WO2020015143A1 (en) * | 2018-07-18 | 2020-01-23 | 平安科技(深圳)有限公司 | Case reminding method and apparatus, computer device and storage medium |
CN111722973A (en) * | 2019-03-20 | 2020-09-29 | 顺丰科技有限公司 | Event timeout monitoring method, system and storage medium |
CN111782414A (en) * | 2020-05-12 | 2020-10-16 | 北京皮尔布莱尼软件有限公司 | Delay message processing method and system |
CN113365084A (en) * | 2021-05-12 | 2021-09-07 | 烽火通信科技股份有限公司 | Method and device for controlling sending speed by using time wheel |
CN113760628A (en) * | 2020-06-05 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for monitoring data processing |
CN114819612A (en) * | 2022-04-22 | 2022-07-29 | 福建天晴数码有限公司 | Method and system for carrying out early warning notification by short message reply control time wheel algorithm |
CN118502922A (en) * | 2024-07-17 | 2024-08-16 | 深圳市长城网信息科技股份有限公司 | Data synchronization realization method, device, system and medium for distributed parallel computing |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855067A (en) * | 2005-04-28 | 2006-11-01 | 华为技术有限公司 | Task hung-state monitoring method in realtime operation system |
CN101727378A (en) * | 2009-12-31 | 2010-06-09 | 深圳联友科技有限公司 | Method and system for controlling stable operation of application service program |
CN103618643A (en) * | 2013-11-26 | 2014-03-05 | 北京京东尚科信息技术有限公司 | Method and device for dynamic alarm type monitoring of message queue |
CN103678090A (en) * | 2013-12-11 | 2014-03-26 | 北京国双科技有限公司 | Method and device for monitoring data processing |
-
2014
- 2014-12-15 CN CN201410778742.7A patent/CN105760378B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855067A (en) * | 2005-04-28 | 2006-11-01 | 华为技术有限公司 | Task hung-state monitoring method in realtime operation system |
CN101727378A (en) * | 2009-12-31 | 2010-06-09 | 深圳联友科技有限公司 | Method and system for controlling stable operation of application service program |
CN103618643A (en) * | 2013-11-26 | 2014-03-05 | 北京京东尚科信息技术有限公司 | Method and device for dynamic alarm type monitoring of message queue |
CN103678090A (en) * | 2013-12-11 | 2014-03-26 | 北京国双科技有限公司 | Method and device for monitoring data processing |
Non-Patent Citations (3)
Title |
---|
丁晓宁 等: "事务监控器的Web服务支持", 《计算机科学》 * |
徐广岩 等: "基于Google Maps的物流在途监管", 《软件导刊》 * |
游双: "《Linux高性能服务器编程》", 30 June 2013 * |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106385341A (en) * | 2016-08-31 | 2017-02-08 | 福建天晴数码有限公司 | Thread monitoring method and system of client |
CN106897885A (en) * | 2017-01-24 | 2017-06-27 | 武汉奇米网络科技有限公司 | The method and system that a kind of electric business platform businessman punishes in violation of rules and regulations |
WO2020015143A1 (en) * | 2018-07-18 | 2020-01-23 | 平安科技(深圳)有限公司 | Case reminding method and apparatus, computer device and storage medium |
CN109117295A (en) * | 2018-07-18 | 2019-01-01 | 中国银联股份有限公司 | A kind of overtime monitoring method of transaction and device |
CN109117295B (en) * | 2018-07-18 | 2022-02-18 | 中国银联股份有限公司 | Transaction timeout monitoring method and device |
CN109697592A (en) * | 2018-12-21 | 2019-04-30 | 江苏满运软件科技有限公司 | Source of goods undercarriage method, system, equipment and storage medium based on annular array |
CN109697592B (en) * | 2018-12-21 | 2021-04-30 | 江苏满运软件科技有限公司 | Goods source off-shelf method, system, equipment and storage medium based on annular array |
CN111722973A (en) * | 2019-03-20 | 2020-09-29 | 顺丰科技有限公司 | Event timeout monitoring method, system and storage medium |
CN111722973B (en) * | 2019-03-20 | 2023-05-23 | 顺丰科技有限公司 | Event timeout monitoring method, system and storage medium |
CN110032438A (en) * | 2019-04-24 | 2019-07-19 | 北京高途云集教育科技有限公司 | Delayed tasks execute method, apparatus and electronic equipment |
CN110119323A (en) * | 2019-05-13 | 2019-08-13 | 重庆八戒电子商务有限公司 | It is a kind of to take turns the method and system for executing delay queue based on the time |
CN110097324A (en) * | 2019-05-14 | 2019-08-06 | 北京顺丰同城科技有限公司 | A kind of logistics information querying method and device |
CN110502322A (en) * | 2019-07-12 | 2019-11-26 | 苏宁云计算有限公司 | The triggering method and device of timer-triggered scheduler |
CN110502322B (en) * | 2019-07-12 | 2022-07-12 | 苏宁云计算有限公司 | Triggering method and device for timing scheduling |
CN111782414A (en) * | 2020-05-12 | 2020-10-16 | 北京皮尔布莱尼软件有限公司 | Delay message processing method and system |
CN111782414B (en) * | 2020-05-12 | 2024-04-19 | 北京皮尔布莱尼软件有限公司 | Delay message processing method and system |
CN113760628A (en) * | 2020-06-05 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for monitoring data processing |
CN113365084B (en) * | 2021-05-12 | 2022-06-10 | 烽火通信科技股份有限公司 | Method and device for controlling sending speed by using time wheel |
CN113365084A (en) * | 2021-05-12 | 2021-09-07 | 烽火通信科技股份有限公司 | Method and device for controlling sending speed by using time wheel |
CN114819612A (en) * | 2022-04-22 | 2022-07-29 | 福建天晴数码有限公司 | Method and system for carrying out early warning notification by short message reply control time wheel algorithm |
CN114819612B (en) * | 2022-04-22 | 2024-09-06 | 福建天晴数码有限公司 | Method and system for carrying out early warning notification through short message reply control time round algorithm |
CN118502922A (en) * | 2024-07-17 | 2024-08-16 | 深圳市长城网信息科技股份有限公司 | Data synchronization realization method, device, system and medium for distributed parallel computing |
Also Published As
Publication number | Publication date |
---|---|
CN105760378B (en) | 2019-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105760378A (en) | Transaction state monitor method and device | |
US11087329B2 (en) | Method and apparatus of identifying a transaction risk | |
CN107153593B (en) | Method and device for determining Internet service monitoring threshold | |
US11176170B2 (en) | Blockchain-based data processing methods and apparatuses and computer devices | |
CN106897342B (en) | Data verification method and equipment | |
CN111861502B (en) | Information processing method, system, electronic device and storage medium | |
CN110119947B (en) | Method and apparatus for shared workload proof computing power generation of symbiotic blockchains | |
CN110766232A (en) | Dynamic prediction method and system thereof | |
CN105512564A (en) | Method and device for data tamper-proof verification | |
CN103957500A (en) | Method and device for reminding user about traffic | |
CN110018986B (en) | Abnormal snapshot identification method and device | |
CN115470264A (en) | Data auditing method and device, electronic equipment and storage medium | |
CN116091277A (en) | Garbage collection and transportation supervision method, device, equipment, storage medium and program product | |
CN114779288A (en) | High-frequency reporting detection method and device for positioning equipment, computer equipment and medium | |
CN111212073B (en) | Public cloud-based blacklist account sharing method and device | |
CN114629690A (en) | Equipment safety baseline compliance detection method and device and computer equipment | |
CN110851305A (en) | Backup storage method and device for science and technology project files | |
US10558647B1 (en) | High performance data aggregations | |
CN114297273B (en) | Data extraction method and device | |
CN109241027A (en) | Method, apparatus, electronic equipment and the computer readable storage medium of Data Migration | |
CN110990466B (en) | Data synchronization method and device | |
CN111881091B (en) | Data storage method, device, electronic equipment and storage medium | |
CN110019186A (en) | The method and device of data storage | |
CN113742246A (en) | Information processing method and device for test case, electronic equipment and storage medium | |
CN116974847A (en) | File interaction monitoring method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180504 Address after: Cayman Islands, Grand Cayman Island capital building, four level 847 box Applicant after: CAINIAO SMART LOGISTICS HOLDING Ltd. Address before: Cayman Islands Grand Cayman capital building a four storey No. 847 mailbox Applicant before: ALIBABA GROUP HOLDING Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |