CN103475520B - Service processing control method and device in distribution network - Google Patents

Service processing control method and device in distribution network Download PDF

Info

Publication number
CN103475520B
CN103475520B CN201310409201.2A CN201310409201A CN103475520B CN 103475520 B CN103475520 B CN 103475520B CN 201310409201 A CN201310409201 A CN 201310409201A CN 103475520 B CN103475520 B CN 103475520B
Authority
CN
China
Prior art keywords
affairs
identification information
data
network element
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310409201.2A
Other languages
Chinese (zh)
Other versions
CN103475520A (en
Inventor
刘希伟
王英杰
张乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Poly Polytron Technologies Inc
Original Assignee
Poly Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Poly Polytron Technologies Inc filed Critical Poly Polytron Technologies Inc
Priority to CN201310409201.2A priority Critical patent/CN103475520B/en
Publication of CN103475520A publication Critical patent/CN103475520A/en
Application granted granted Critical
Publication of CN103475520B publication Critical patent/CN103475520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a service processing control method and device in a distribution network. The service processing control method comprises the steps that identification information is distributed to service to be processed and the identification information is sent to network elements which processes the service; monitoring is conducted on the processing state of the service; when the fact that the service is in the processing end state is monitored, persistence processing is conducted on the data submitted by the network elements which process the service. Due to the fact that united management is conducted on the service processing process and united processing is conducted on the data submitted by the network elements which process the service, the integrity and unity of the data can be guaranteed without transmission of the data by the network elements, the processing complicity of each network element is reduced, and the processing capability is improved.

Description

Issued transaction control method and device in a kind of distributed network
Technical field
The present invention relates to the issued transaction controlling party in distributing network techniques field, more particularly to a kind of distributed network Method and device.
Background technology
Cloud platform is usually taken distributed network architecture, is built by the network element on different server.One tool The operation flow of body generally needs multiple network element collaborations to complete.
In order to keep the complete unification of data, a kind of processing scheme to be to maintain the transmission of data.From participation Business Processing Origin network element starts, and constantly accumulates the data of each network element and passes it to next network element, until participating in the last of Business Processing One network element carries out the final persistence process of data.Although the processing scheme ensure that the complete unification of data, but increased The process complexity of each network element, and each network element not only need be concerned about the service logic of oneself, in addition it is also necessary to pay close attention to upstream transmission And the data come and prepare to the data in downstream, in addition, the cumulative rises of the packet burden of network transmission, causes to process Inferior capabilities.
The content of the invention
It is an object of the invention to provide the office management method and device in a kind of distributed network, to solve existing realization The problem that scheme is present.
The purpose of the present invention is achieved through the following technical solutions:
A kind of issued transaction control method in distributed network, including:
For pending affairs allocation identification information, and the identification information is sent to the network element for processing the affairs, This network element is processed into data and mark that the affairs are obtained after processing the affairs so as to the network elements at different levels for processing the affairs Know information association to preserve;
By reading process monitoring state of the spatial cache of the status information for being used for preserving affairs to the affairs;
When process done state information corresponding to the identification information for reading the affairs, to processing the at different levels of the affairs The data of the identification information association that network element is preserved carry out persistence process.
Method provided in an embodiment of the present invention, is managed collectively to transaction process, and to processing the net of affairs Unit submit to data carry out unified process, it is not necessary to each network element carry out data transmission can guarantee data complete system One, the process complexity of each network element is reduced, improve disposal ability.
Separately below the preferred implementation of each step is described to more than.It should be pointed out that these preferred realities Existing mode can be used alone, it is also possible to fit applications.
Above-mentioned identification information is sent to the network element for processing above-mentioned affairs, its specific implementation both can be by mark letter Breath is sent to the origin network element for processing above-mentioned affairs, and in transaction process, the identification information is processing the at different levels of the affairs Transmit step by step between network element.Can also be that identification information is sent to the network elements at different levels for processing above-mentioned affairs.
Position is stored to the specific implementation of process monitoring state and the status information of above-mentioned affairs of above-mentioned affairs It is equipped with pass.If the network element for processing above-mentioned affairs associates the status information of the affairs with above-mentioned identification information is stored in shared delaying Space is deposited, then by reading the monitoring state of the shared buffer memory space to the affairs.If processing the at different levels of above-mentioned affairs Network element is respectively stored in the status information of the affairs and above-mentioned identification information in corresponding spatial cache, then above-mentioned by reading Process monitoring state of the corresponding spatial cache of network element at different levels to the affairs.
The data of the above-mentioned identification information association preserved to the network elements at different levels for processing above-mentioned affairs carry out persistence process Specific implementation is relevant with the position of data storage.If above-mentioned network element at different levels processes data and mark that the affairs are obtained Information association is stored in above-mentioned shared buffer memory space, then the identification information association that the network elements at different levels to processing the affairs are preserved Data carry out the specific implementation of persistence process:The identification information association is obtained from the shared buffer memory space Data;The data of acquisition are carried out into persistence process.If above-mentioned network element at different levels processes data and mark that the affairs are obtained Information is respectively associated and is stored in corresponding spatial cache, then the identification information association that the network elements at different levels to processing the affairs are preserved Data carry out the specific implementation of persistence process and can be:Obtain from the corresponding spatial cache of above-mentioned network element at different levels respectively Take the data of the identification information association;The data of acquisition are carried out into persistence process.
It is preferred that above-mentioned shared buffer memory space includes stack internal memory and heap memory.If the network element for processing above-mentioned affairs should The status information of affairs is associated with above-mentioned identification information and is stored in shared buffer memory space, then, the status information of the affairs with it is upper State identification information association to be stored in the stack internal memory in the shared buffer memory space.If above-mentioned network element at different levels processes what the affairs were obtained Data are associated with the identification information and are stored in above-mentioned shared buffer memory space, then, process the data that the affairs obtain and be stored in this In the stack internal memory in shared buffer memory space, indicate that the pointer of the data storage location is associated with the identification information and be stored in stack internal memory In.
When the network element for processing above-mentioned affairs occurs abnormal, need to carry out rollback process to data.In the embodiment of the present invention, Abnormal network element occur can preserve process abnormal state information.So, based on above-mentioned any embodiment, if above-mentioned network element at different levels Process the data that the affairs obtain and associate with above-mentioned identification information and be stored in shared buffer memory space, and read the mark of the affairs Knowledge information is corresponding to be processed before done state information, reads process abnormality letter corresponding to the identification information of the affairs Breath, the data of the also identification information association to preserving in above-mentioned shared buffer memory space carry out rollback process;If above-mentioned at different levels Network element processes the data that the affairs obtain and is respectively associated with the identification information and is stored in corresponding spatial cache, and is reading this Before process done state information corresponding to the identification information of affairs, process exception corresponding to the identification information of the affairs is read Status information, the data of the also above-mentioned identification information association to preserving in the corresponding spatial cache of above-mentioned network element at different levels carry out rollback Process.
Method provided in an embodiment of the present invention, when certain network element occurs abnormal, the unified network element to having completed to process The data of submission carry out rollback process, such that it is able to avoid the generation of dirty data.
Based on the inventive concept same with method, the embodiment of the present invention also provides the issued transaction in a kind of distributed network Control device, including:
Registering modules, for for pending affairs allocation identification information, and are sent to process institute by the identification information The network element of affairs is stated, by this network element process thing after processing the affairs so as to the network elements at different levels for processing the affairs The data that business is obtained associate preservation with the identification information;
Monitoring module, for process of the spatial cache by reading the status information for being used for preserving affairs to the affairs Monitoring state;
Processing module, process done state letter corresponding to the identification information for reading the affairs when the monitoring module Breath, the data of the identification information association that the network elements at different levels to processing the affairs are preserved carry out persistence process.
Device provided in an embodiment of the present invention, is managed collectively to transaction process, and to processing the net of affairs Unit submit to data carry out unified process, it is not necessary to each network element carry out data transmission can guarantee data complete system One, the process complexity of each network element is reduced, improve disposal ability.
Separately below the preferred implementation of each module is described to more than.It should be pointed out that these preferred realities Existing mode can be used alone, it is also possible to fit applications.
When above-mentioned identification information is sent to into the network element for processing above-mentioned affairs, Registering modules specifically can be used for:This is marked Knowledge information is sent to the origin network element for processing the affairs, and in the transaction process, the identification information is processing the affairs Transmit step by step between network elements at different levels;Or, the identification information is sent to the network elements at different levels for processing the affairs.
If the network element for processing the affairs associates the status information of the affairs with the identification information is stored in shared buffer memory Space, monitoring module specifically can be used for:By reading the monitoring state of the shared buffer memory space to the affairs;
If the network elements at different levels for processing the affairs are respectively stored in the status information of the affairs and the identification information corresponding Spatial cache in, monitoring module specifically can be used for:By reading the corresponding spatial cache of above-mentioned network element at different levels to the affairs Process monitoring state.
Associate with the identification information and be stored in above-mentioned sharing if above-mentioned network element at different levels processes the data that the affairs obtain Spatial cache, processing module specifically can be used for:The data of the identification information association are obtained from the shared buffer memory space;To obtain The data for taking carry out persistence process;
If above-mentioned network element at different levels process the data that the affairs obtain be respectively associated with the identification information be stored in it is right The spatial cache answered, processing module specifically can be used for:Obtain the mark from the corresponding spatial cache of above-mentioned network element at different levels respectively Know the data of information association;The data of acquisition are carried out into persistence process.
If above-mentioned network element at different levels processes the data that the affairs obtain and associates that to be stored in shared buffer memory empty with the identification information Between, and before process done state information corresponding to the identification information for reading the affairs, monitoring module reads above-mentioned thing Process abnormal state information corresponding to the identification information of business, processing module can be also used for:To protecting in above-mentioned shared buffer memory space The data of the identification information association deposited carry out rollback process;If above-mentioned network element at different levels process data that the affairs obtain with The identification information is respectively associated and is stored in corresponding spatial cache, and in process knot corresponding to the identification information for reading the affairs Before beam status information, monitoring module reads the process abnormal state information corresponding to identification information of the affairs, processing module Can be also used for:The data of identification information association to preserving in the corresponding spatial cache of above-mentioned network element at different levels are carried out at rollback Reason.
Based on the inventive concept same with method, the embodiment of the present invention also provides the network element in a kind of distributed network, bag Include:
Identification information receiver module, for receiving the identification information of pending affairs;
Transaction model, for processing the affairs;
Data storage module, for the data that this network element process affairs are obtained to be associated into guarantor with the identification information Deposit.
Network element provided in an embodiment of the present invention, it is not necessary to which the data obtained to processing affairs are transmitted, it is only necessary to incite somebody to action this The data that network element process affairs are obtained associate preservation with identification information, and transaction process is carried out by issued transaction control device It is managed collectively, and the data that the network element to processing affairs is submitted to carry out unified process, the process for reducing each network element is answered Miscellaneous degree, improves disposal ability.
It is preferred that identification information receiver module specifically for:
The identification information of the affairs that issued transaction control device sends is received, the identification information is by the office Reason control device distribution;Or,
The identification information of the affairs that the upper level network element of affairs described in reception processing sends, the identification information is by institute State issued transaction control device and distribute and be sent to the initial NE that processes the affairs.
Description of the drawings
Fig. 1 is method flow diagram provided in an embodiment of the present invention;
Fig. 2 is the first schematic device provided in an embodiment of the present invention;
Fig. 3 is second schematic device provided in an embodiment of the present invention;
Fig. 4 is network element schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with accompanying drawing, technical scheme provided in an embodiment of the present invention is described in detail.
For the complete unification for ensureing data after issued transaction on the premise of process performance is not reduced, the embodiment of the present invention There is provided the issued transaction control method in a kind of distributed network, as shown in figure 1, the method is specifically included:
Step 100, for pending affairs allocation identification information(ID), and by the identification information be sent to process the affairs Network element, this network element is processed into the data that the affairs are obtained after processing the affairs so as to the network elements at different levels for processing the affairs Preservation is associated with the identification information.
In the embodiment of the present invention, by distributed network in multiple network elements process the affairs.It is possible to respectively to process All network elements of the affairs send the identification information.It is preferred that only the mark can also be sent to the origin network element for processing the affairs Knowledge information, then each network element send the identification information to next stage network element after single node affairs have been processed.So-called single node In issued transaction, i.e. transaction process, single network element is processed the partial transaction that this node is responsible for.
Step 110, the spatial cache of the status information for being used to preserve affairs by reading enter to the process state of the affairs Row monitoring.
Position is stored to the specific implementation of process monitoring state and the status information of above-mentioned affairs of above-mentioned affairs It is equipped with pass.If the network element for processing above-mentioned affairs associates the status information of the affairs with above-mentioned identification information is stored in shared delaying Space is deposited, then by reading the monitoring state of the shared buffer memory space to the affairs.If processing the at different levels of above-mentioned affairs Network element is respectively stored in the status information of the affairs and above-mentioned identification information in corresponding spatial cache, then above-mentioned by reading Process monitoring state of the corresponding spatial cache of network element at different levels to the affairs.
Wherein, network elements at different levels preserve the status information of the affairs can phase with the corresponding spatial cache of above-mentioned identification information Together can also be different.
Step 120, when process done state information corresponding to the identification information for reading above-mentioned affairs, to processing above-mentioned thing The data that the above-mentioned identification information of the network elements at different levels preservation of business is corresponding carry out persistence process.
The data of the above-mentioned identification information association preserved to the network elements at different levels for processing above-mentioned affairs carry out persistence process Specific implementation is relevant with the position of data storage.If above-mentioned network element at different levels processes data and mark that the affairs are obtained Information association is stored in above-mentioned shared buffer memory space, then the identification information association that the network elements at different levels to processing the affairs are preserved Data carry out the specific implementation of persistence process:The identification information association is obtained from the shared buffer memory space Data;The data of acquisition are carried out into persistence process.If above-mentioned network element at different levels processes data and mark that the affairs are obtained Information is respectively associated and is stored in corresponding spatial cache, then the identification information association that the network elements at different levels to processing the affairs are preserved Data carry out the specific implementation of persistence process and can be:Obtain from the corresponding spatial cache of above-mentioned network element at different levels respectively Take the data of the identification information association;The data of acquisition are carried out into persistence process.
Wherein, the corresponding spatial cache of the above-mentioned data of network elements preservation at different levels can be the same or different.
In addition, each network element preserve the status information of above-mentioned affairs and the corresponding spatial cache of above-mentioned data can with identical, Can also be different.
Method provided in an embodiment of the present invention, is managed collectively to transaction process, and to processing the net of affairs Unit submit to data carry out unified process, it is not necessary to each network element carry out data transmission can guarantee data complete system One, the process complexity of each network element is reduced, improve disposal ability.
It is preferred that above-mentioned shared buffer memory space includes stack internal memory and heap memory.If the network element for processing above-mentioned affairs should The status information of affairs is associated with above-mentioned identification information and is stored in shared buffer memory space, then, the status information of the affairs with it is upper State identification information association to be stored in the stack internal memory in the shared buffer memory space.If above-mentioned network element at different levels processes what the affairs were obtained Data are associated with the identification information and are stored in above-mentioned shared buffer memory space, then, process the data that the affairs obtain and be stored in this In the heap memory in shared buffer memory space, indicate that the pointer of the data storage location is associated with the identification information and be stored in stack internal memory In.
Because the disposal ability of stack internal memory is stronger, therefore frequently information can will be called(The such as status information of affairs) In being buffered in stack internal memory, so as to improve the performance of shared buffer memory module.
In prior art, if there is exception in a network element, then the network element carries out transaction rollback operation.The present invention is implemented In example, abnormal network element occur only needs for abnormal data preservation to be associated with above-mentioned identification information, and preserves process abnormality Information.Accordingly, based on above-mentioned any embodiment, if above-mentioned network element at different levels processes data and the above-mentioned mark that the affairs are obtained Information association is stored in shared buffer memory space, and process done state information corresponding to the identification information for reading the affairs it Before, process abnormal state information corresponding to the identification information of the affairs is read, also to preservation in above-mentioned shared buffer memory space The data of the identification information association carry out rollback process, wherein, there is abnormal network element by abnormal data and above-mentioned identification information Association is stored in the shared buffer memory space.If above-mentioned network element at different levels processes data and identification information point that the affairs are obtained Guan Lian not be stored in corresponding spatial cache, and process done state information corresponding to the identification information for reading the affairs it Before, process abnormal state information corresponding to the identification information of the affairs is read, it is also corresponding to above-mentioned network elements at different levels to cache sky Between the data of above-mentioned identification information association of middle preservation carry out rollback process, wherein, occur abnormal network element by abnormal data with Above-mentioned identification information association is stored in corresponding memory space.
So-called rollback, that is, delete corresponding data(Including data and abnormal data that process completes to obtain).The present invention Rollback in embodiment is processed, and data corresponding to the above-mentioned identification information that will have been reported all are deleted.Therefore rollback is carried out After process, this issued transaction flow process terminates.
Method provided in an embodiment of the present invention, when certain network element produces abnormal data, it is right to be unified by affair administration device The data that network element is submitted to for having completed to process carry out rollback process, such that it is able to avoid the generation of dirty data.
Based on the inventive concept same with method, the embodiment of the present invention also provides the issued transaction in a kind of distributed network Control device, as shown in Fig. 2 the issued transaction control device in the distributed network includes:
Registering modules 201, for for pending affairs allocation identification information, and are sent to process institute by the identification information The network element of affairs is stated, obtains this network element process affairs after processing the affairs so as to the network elements at different levels for processing the affairs The data for arriving associate preservation with the identification information.
In the embodiment of the present invention, it is preferred that Registering modules 201 are registered to pending affairs, and to transaction management Rule, object, resource be uniformly processed and management and running.Wherein, so-called registration, is not only and distributes for pending affairs Identification information, is also directed to the affairs initialization thread, and distributes shared buffer memory space for the affairs.
In addition, Registering modules 201 for pending affairs after identification information is assigned with, also the identification information is sent to Monitoring module 202, and notify the process monitoring state of affairs corresponding to 202 pairs of identification informations of monitoring module.
Monitoring module 202, for place of the spatial cache by reading the status information for being used for preserving affairs to the affairs Reason monitoring state.
Specifically, monitoring module 202 is after the notice for receiving Registering modules 201, the thing corresponding to above-mentioned identification information The process monitoring state of business.
Wherein, it is so-called the process state of the affairs is entered by reading the spatial cache of the status information for preserving affairs Row monitoring, specifically refers to, and the spatial cache is read to obtain the status information of affairs, according to the status information of the affairs for getting The process state of monitoring affairs.
Processing module 203, process done state letter corresponding to the identification information for reading above-mentioned affairs when monitoring module 202 Breath, the data of the identification information association that the network elements at different levels to processing the affairs are preserved carry out persistence process.
Specifically, process done state information corresponding to the identification information that reads above-mentioned affairs when monitoring module 202(I.e. Monitor the process done state of above-mentioned affairs), notification handler module 203 carries out persistence process.Accordingly, processing module 203 carry out persistence process according to the notice data corresponding to the above-mentioned identification information of the network element submission of the above-mentioned affairs of process.
Device provided in an embodiment of the present invention, is managed collectively to transaction process, and to processing the net of affairs Unit submit to data carry out unified process, it is not necessary to each network element carry out data transmission can guarantee data complete system One, the process complexity of each network element is reduced, improve disposal ability.
In the embodiment of the present invention, it is preferred that monitoring module 202 and processing module 203 can be realized by thread, specifically Realized using multithreading polling mode.By taking monitoring module 202 as an example, it is assumed that thread one affairs of correspondence for being used for monitoring, So, each is used for monitoring the activation of thread correspondence and dormancy two states.The thread being active takes more moneys Source, thread in a dormant state discharges part resource, and each thread in monitoring thread pond is ensured entirely by the way of poll Portion is used for the thread of monitoring can balancedly carry out state switching, with the process monitoring state to all affairs, Jin Erbao During card high concurrent, the maximum carrying of the disposal ability of monitoring thread.Wherein, the initialization in monitoring thread pond and polling mode Control, is realized by Registering modules 201.
Based on above-mentioned any embodiment, separately below the preferred implementation of each module is described to more than.Should refer to Go out, these preferred implementations can be used alone, it is also possible to fit applications.
Because device provided in an embodiment of the present invention and said method give identical inventive concept, therefore, for repetition Part will not be described in great detail.
When above-mentioned identification information is sent to into the network element for processing above-mentioned affairs, Registering modules 201 specifically can be used for:Should Identification information is sent to the origin network element for processing the affairs, and in the transaction process, the identification information is processing the affairs Network elements at different levels between transmit step by step;Or, the identification information is sent to the network elements at different levels for processing the affairs.
If the network element for processing the affairs associates the status information of the affairs with the identification information is stored in shared buffer memory Space, monitoring module 202 specifically can be used for:By reading the monitoring state of the shared buffer memory space to the affairs;
If the network elements at different levels for processing the affairs are respectively stored in the status information of the affairs and the identification information corresponding Spatial cache in, monitoring module 202 specifically can be used for:By reading the corresponding spatial cache of above-mentioned network element at different levels to the thing The process monitoring state of business.
If above-mentioned network element at different levels process the data that the affairs obtain associate with the identification information be stored in it is above-mentioned shared slow Space is deposited, processing module 203 specifically can be used for:The data of the identification information association are obtained from the shared buffer memory space;Will The data of acquisition carry out persistence process;
If above-mentioned network element at different levels process the data that the affairs obtain be respectively associated with the identification information be stored in it is right The spatial cache answered, processing module 203 specifically can be used for:Obtaining from the corresponding spatial cache of above-mentioned network element at different levels respectively should The data of identification information association;The data of acquisition are carried out into persistence process.
It is preferred that as shown in figure 3, device provided in an embodiment of the present invention can also include shared buffer memory module 204, this be total to Enjoy the i.e. above-mentioned shared buffer memory space of cache module 204.Further, shared buffer memory module 204 includes stack internal memory and heap memory. If the network element for processing above-mentioned affairs associates the status information of the affairs with above-mentioned identification information is stored in shared buffer memory module 204, then, the status information of the affairs is associated with above-mentioned identification information and is stored in the stack internal memory of the shared buffer memory module 204. Associate with the identification information and be stored in above-mentioned shared buffer memory module if above-mentioned network element at different levels processes the data that the affairs obtain 204, then, process the data that the affairs obtain and be stored in the heap memory of the shared buffer memory module 204, indicate the data storage The pointer of position is associated with the identification information and is stored in stack internal memory.
Because the disposal ability of stack internal memory is stronger, therefore frequently information can will be called(The such as status information of affairs) In being buffered in stack internal memory, so as to improve the performance of shared buffer memory module.
If above-mentioned network element at different levels processes the data that the affairs obtain and associates that to be stored in shared buffer memory empty with the identification information Between, and before process done state information corresponding to the identification information for reading the affairs, monitoring module 202 reads above-mentioned Process abnormal state information corresponding to the identification information of affairs, processing module 203 can be also used for:To above-mentioned shared buffer memory space The data of the identification information association of middle preservation carry out rollback process;If above-mentioned network element at different levels processes the number that the affairs are obtained Corresponding spatial cache is stored according to being respectively associated with the identification information, and at place corresponding to the identification information for reading the affairs Before reason done state information, monitoring module 202 reads the process abnormal state information corresponding to identification information of the affairs, place Reason module 203 can be also used for:The data of identification information association to preserving in the corresponding spatial cache of above-mentioned network element at different levels Carry out rollback process.
Based on the inventive concept same with method, the embodiment of the present invention also provides the network element in a kind of distributed network, such as Shown in Fig. 4, including:
Identification information receiver module 401, for receiving the identification information of pending affairs;
Transaction model 402, for processing the affairs;
Data storage module 403, for the data that this network element process affairs are obtained to be associated with the identification information Preserve.
Network element provided in an embodiment of the present invention, it is not necessary to which the data obtained to processing affairs are transmitted, it is only necessary to incite somebody to action this The data that network element process affairs are obtained associate preservation with identification information, and transaction process is carried out by issued transaction control device It is managed collectively, and the data that the network element to processing affairs is submitted to carry out unified process, the process for reducing each network element is answered Miscellaneous degree, improves disposal ability.
It is preferred that identification information receiver module 401 specifically for:
The identification information of the affairs that issued transaction control device sends is received, the identification information is by the office Reason control device distribution;Or,
The identification information of the affairs that the upper level network element of affairs described in reception processing sends, the identification information is by institute State issued transaction control device and distribute and be sent to the initial NE that processes the affairs.
As a example by below enforcement being coordinated by the network element shown in the issued transaction control device shown in Fig. 3, to present invention enforcement The method that example is provided is described in detail.
When the flow process of issued transaction starts, 201 pairs of affairs of Registering modules of issued transaction control device are registered.Tool Body, be the affairs allocation identification information, the line of thread and processing module 203 for the affairs initialization monitoring module 202 Journey, and for the affairs distribution shared buffer memory space(That is shared buffer memory module 204).
The identification information is sent to Registering modules 201 initial NE for processing the affairs.
The initial NE receives the identification information;The affairs are processed by the part that this network element is responsible for processing;Process After the completion of, by process obtain need the data of persistence associate with identification information be saved in issued transaction control device share In cache module 204, and the identification information is sent to into next stage network element.
The affairs are processed by its part for being responsible for processing by next stage network element, by what process was obtained persistence is needed Data associate with identification information and be saved in the shared buffer memory module 204 of issued transaction control device, and by the identification information It is sent to next stage network element.
So repeatedly, until processing the afterbody network element of the affairs, the afterbody network element is being born to the affairs by it After the part that duty is processed is processed, in addition to preserving the data for needing persistence in the manner described above, also shared slow End of transaction status information is preserved in storing module 204.
For any one-level network element for processing the affairs, once there is exception when the affairs are processed, then by abnormal data The shared buffer memory module 204 for being saved in issued transaction control device is associated with identification information, is protected also in shared buffer memory module 204 Deposit issued transaction abnormal state information.Now, network element terminates to the flow process of issued transaction, and the process that there will be no follow-up network element is moved Make.
Wherein, it would be desirable to which the data or abnormal data of persistence are associated with identification information and are stored in shared buffer memory module 204 In specific implementation can be:Whether the mark of above-mentioned affairs is preserved in the stack internal memory for judging above-mentioned shared buffer memory module Information, if it is not, the data for needing persistence are stored in the heap memory of shared buffer memory module, by the identification information and need The pointer association for wanting address of the data of persistence in heap memory is stored in stack internal memory.
Optionally, for non-final one-level network element, after the completion of the part being responsible for by this network element above-mentioned affairs is processed, also Single node issued transaction completion status information can be generated and be stored in shared buffer memory module 204.
By the process state information of affairs(End of transaction status information, issued transaction abnormal state information, single node Issued transaction completion status information)The specific implementation being stored in shared buffer memory module 204 can be:By status information with Identification information association is stored in stack internal memory.
In monitoring module 202, the corresponding thread of the affairs reads in active state, persistently shared buffer memory module 204 Stack internal memory carrys out the monitoring state to the affairs.If reading issued transaction abnormal state information, processing module is triggered 203 carry out rolling back action, if reading end of transaction status information, triggering processing module 203 carries out persistence behaviour Make.
Rolling back action, above-mentioned mark in the heap memory of the reading shared buffer memory of processing module 203 module 204 are carried out if desired The corresponding all data of information, delete these data.Persistence operation is carried out if desired, and processing module 203 reads shared slow These data are carried out persistence process by all data corresponding to above-mentioned identification information in the heap memory of storing module 204.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more Usable storage medium(Including but not limited to magnetic disc store, CD-ROM, optical memory etc.)The computer program of upper enforcement is produced The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow process of computer program Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. the issued transaction control method in a kind of distributed network, it is characterised in that include:
For pending affairs allocation identification information, and the identification information is sent to the network element for processing the affairs, so as to Process the affairs network elements at different levels the affairs are processed after the data that obtain this network element process affairs and institute State identification information association to preserve;
By reading process monitoring state of the spatial cache of the status information for being used for preserving affairs to the affairs;
When process done state information corresponding to the identification information for reading the affairs, the network elements at different levels to processing the affairs The data of the identification information association for preserving carry out persistence process;
Wherein, if the spatial cache is shared buffer memory space, if processing the network element of the affairs by the state of the affairs Information is associated with the identification information and is stored in shared buffer memory space, described by reading the status information for being used for preserving affairs Process monitoring state of the spatial cache to the affairs, including:
By reading monitoring state of the shared buffer memory space to the affairs;
If it is right that the network elements at different levels for processing the affairs are respectively stored in the status information of the affairs and the identification information In the spatial cache answered, process shape of the spatial cache by reading the status information for being used for preserving affairs to the affairs State is monitored, including:
By reading process monitoring state of the corresponding spatial cache of the network element at different levels to the affairs.
2. method according to claim 1, it is characterised in that the identification information is sent to the net for processing the affairs Unit, including:
The identification information is sent to the origin network element for processing the affairs, in the transaction process, the mark Information is transmitted step by step between the network elements at different levels for processing the affairs;Or,
The identification information is sent to the network elements at different levels for processing the affairs.
3. method according to claim 1 and 2, it is characterised in that if the network element at different levels processes the affairs obtained Data associate with the identification information and be stored in shared buffer memory space, what the described pair of network element at different levels for processing the affairs were preserved The data of the identification information association carry out persistence process, including:
The data of the identification information association are obtained from the shared buffer memory space;
The data of acquisition are carried out into persistence process;
If the network element at different levels process the data that the affairs obtain be respectively associated with the identification information be stored in it is corresponding Spatial cache, the data of the identification information association of the described pair of network elements at different levels preservation for processing the affairs are carried out at persistence Reason, including:
Obtain the data of the identification information association from the corresponding spatial cache of the network element at different levels respectively;
The data of acquisition are carried out into persistence process.
4. method according to claim 1 and 2, it is characterised in that if the network element at different levels processes the affairs obtained Data associate with the identification information and be stored in shared buffer memory space, it is and corresponding in the identification information for reading the affairs Before processing done state information, process abnormal state information corresponding to the identification information of the affairs is read, the method is also Including:
The data of the identification information association to preserving in the shared buffer memory space carry out rollback process;
If the network element at different levels process the data that the affairs obtain be respectively associated with the identification information be stored in it is corresponding Spatial cache, and before process done state information corresponding to the identification information for reading the affairs, read the thing Process abnormal state information corresponding to the identification information of business, the method also includes:
The data of the identification information association to preserving in the corresponding spatial cache of the network element at different levels carry out rollback process.
5. the issued transaction control device in a kind of distributed network, it is characterised in that include:
Registering modules, for for pending affairs allocation identification information, and are sent to the process thing by the identification information The network element of business, obtains this network element process affairs after processing the affairs so as to the network elements at different levels for processing the affairs The data for arriving associate preservation with the identification information;
Monitoring module, for process state of the spatial cache by reading the status information for being used for preserving affairs to the affairs It is monitored;
Processing module, process done state information corresponding to the identification information for reading the affairs when the monitoring module is right Processing the data of the identification information association of the network elements at different levels preservation of the affairs carries out persistence process;
Wherein, if the spatial cache is shared buffer memory space, if processing the network element of the affairs by the state of the affairs Information is associated with the identification information and is stored in shared buffer memory space, the monitoring module specifically for:
By reading monitoring state of the shared buffer memory space to the affairs;
If it is right that the network elements at different levels for processing the affairs are respectively stored in the status information of the affairs and the identification information In the spatial cache answered, the monitoring module specifically for:
By reading process monitoring state of the corresponding spatial cache of the network element at different levels to the affairs.
6. device according to claim 5, it is characterised in that the identification information is sent to the net for processing the affairs When first, the Registering modules specifically for:
The identification information is sent to the origin network element for processing the affairs, in the transaction process, the mark Information is transmitted step by step between the network elements at different levels for processing the affairs;Or,
The identification information is sent to the network elements at different levels for processing the affairs.
7. the device according to claim 5 or 6, it is characterised in that if the network element at different levels processes the affairs obtained Data associate with the identification information and be stored in shared buffer memory space, the processing module specifically for:
The data of the identification information association are obtained from the shared buffer memory space;
The data of acquisition are carried out into persistence process;
If the network element at different levels process the data that the affairs obtain be respectively associated with the identification information be stored in it is corresponding Spatial cache, the processing module specifically for:
Obtain the data of the identification information association from the corresponding spatial cache of the network element at different levels respectively;
The data of acquisition are carried out into persistence process.
8. the device according to claim 5 or 6, it is characterised in that if the network element at different levels processes the affairs obtained Data associate with the identification information and be stored in shared buffer memory space, it is and corresponding in the identification information for reading the affairs Process done state information before, the monitoring module read the affairs identification information it is corresponding process abnormality letter Breath, the processing module is additionally operable to:
The data of the identification information association to preserving in the shared buffer memory space carry out rollback process;
If the network element at different levels process the data that the affairs obtain be respectively associated with the identification information be stored in it is corresponding Spatial cache, and before process done state information corresponding to the identification information for reading the affairs, the monitoring module Process abnormal state information corresponding to the identification information of the affairs is read, the processing module is additionally operable to:
The data of the identification information association to preserving in the corresponding spatial cache of the network element at different levels carry out rollback process.
9. the network element in a kind of distributed network, it is characterised in that include:
Identification information receiver module, for receiving the identification information of pending affairs;
Transaction model, for processing the affairs;
Data storage module, for the data that this network element process affairs are obtained to be associated into preservation with the identification information, with Will pass through process monitoring state of the spatial cache for reading the status information for being used for preserving affairs to the affairs;Wherein, If the spatial cache is shared buffer memory space, if process the network element of the affairs by the status information of the affairs with it is described Identification information association is stored in shared buffer memory space, the spatial cache pair by reading for preserving the status information of affairs The process monitoring state of the affairs, including:The state of the affairs is carried out by reading the shared buffer memory space Monitoring;If it is right that the network elements at different levels for processing the affairs are respectively stored in the status information of the affairs and the identification information In the spatial cache answered, process shape of the spatial cache by reading the status information for being used for preserving affairs to the affairs State is monitored, including:The process state of the affairs is supervised by reading the network element at different levels corresponding spatial cache Control.
10. network element according to claim 9, it is characterised in that the identification information receiver module specifically for:
The identification information of the affairs that issued transaction control device sends is received, the identification information is by the issued transaction control Device distribution processed;Or,
The identification information of the affairs that the upper level network element of affairs described in reception processing sends, the identification information is by the thing Business processing control apparatus distribute and are sent to the initial NE that processes the affairs.
CN201310409201.2A 2013-09-10 2013-09-10 Service processing control method and device in distribution network Active CN103475520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310409201.2A CN103475520B (en) 2013-09-10 2013-09-10 Service processing control method and device in distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310409201.2A CN103475520B (en) 2013-09-10 2013-09-10 Service processing control method and device in distribution network

Publications (2)

Publication Number Publication Date
CN103475520A CN103475520A (en) 2013-12-25
CN103475520B true CN103475520B (en) 2017-04-26

Family

ID=49800230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310409201.2A Active CN103475520B (en) 2013-09-10 2013-09-10 Service processing control method and device in distribution network

Country Status (1)

Country Link
CN (1) CN103475520B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2533416A (en) 2014-12-19 2016-06-22 Advanced Risc Mach Ltd Monitoring utilization of transactional processing resource
CN104486448B (en) * 2014-12-29 2018-09-11 成都极驰科技有限公司 A kind of data processing method and device
CN106155775B (en) * 2015-04-28 2020-02-21 菜鸟智能物流控股有限公司 Message processing method, device and system
CN105204941A (en) * 2015-08-18 2015-12-30 耿懿超 Data processing method and data processing device
CN112492619B (en) * 2019-09-12 2022-04-01 大唐移动通信设备有限公司 Transaction state management method and device and state caching device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
WO2011000260A1 (en) * 2009-06-30 2011-01-06 华为技术有限公司 Method, apparatus and network system for managing memory resources in cluster system
CN102279730A (en) * 2010-06-10 2011-12-14 阿里巴巴集团控股有限公司 Parallel data processing method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
WO2011000260A1 (en) * 2009-06-30 2011-01-06 华为技术有限公司 Method, apparatus and network system for managing memory resources in cluster system
CN102279730A (en) * 2010-06-10 2011-12-14 阿里巴巴集团控股有限公司 Parallel data processing method, device and system

Also Published As

Publication number Publication date
CN103475520A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103475520B (en) Service processing control method and device in distribution network
US10560270B2 (en) Optimal data storage configuration in a blockchain
CN107197015A (en) A kind of message treatment method and device based on Message Queuing system
CN110808922B (en) Message processing method and device, storage medium and electronic equipment
CN108848037A (en) Service request processing method, device, computer equipment and storage medium
CN113347164B (en) Block chain-based distributed consensus system, method, device and storage medium
CN105264930B (en) Sending node and its reporting cached state method
CN107025142A (en) A kind of cross-thread message delivery method, device and electronic equipment
CN107783842A (en) A kind of distributed lock implementation method, equipment and storage device
CN109597800B (en) Log distribution method and device
CN103577251A (en) Event based Internet computing processing system and method
CN110581887A (en) Data processing method, device, block chain node and storage medium
WO2020256831A1 (en) Smart contract information redirect to updated version of smart contract
CN105262634A (en) Monitoring threshold generation method, device and system
CN107277022A (en) Processes Tag method and device
CN104281587B (en) A kind of method and device for establishing connection
CN106502579B (en) Method for reconstructing and device when a kind of data storage failure
CN106899558A (en) The treating method and apparatus of access request
CN106341440A (en) Data updating method and device
CN110737655A (en) Method and device for reporting data
CN108021597B (en) Parallel counter, server and counting method
CN104407960B (en) Data monitoring method and device
CN112445597B (en) Timing task scheduling method and device
CN104917692B (en) A kind of method and apparatus for distributing token
CN105264499B (en) Message treatment method, device and reception core in a kind of shared queue

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170109

Address after: 266000 Shandong Province, Qingdao city Laoshan District Songling Road No. 399

Applicant after: Poly Polytron Technologies Inc

Address before: 266071 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131

Applicant before: Hisense Media Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant