CN102486795B - Method and device for inspecting balance of dynamic file - Google Patents
Method and device for inspecting balance of dynamic file Download PDFInfo
- Publication number
- CN102486795B CN102486795B CN2010105820475A CN201010582047A CN102486795B CN 102486795 B CN102486795 B CN 102486795B CN 2010105820475 A CN2010105820475 A CN 2010105820475A CN 201010582047 A CN201010582047 A CN 201010582047A CN 102486795 B CN102486795 B CN 102486795B
- Authority
- CN
- China
- Prior art keywords
- file
- living document
- information
- original living
- balance
- 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
Links
Images
Landscapes
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention provides a method and device for inspecting the balance of a dynamic file. The method comprises the following steps of: recording a corresponding relation between input information of a corresponding file processing flow and an original dynamic file and a corresponding relation between output information of the corresponding file processing flow and the original dynamic file into a log file of each file processing flow; and inspecting the information balance of each original dynamic file before and after the operation of each file processing flow according to content recorded in each log file. According to the invention, the balance of each original dynamic file in each processing flow is realized, the balance of the whole system in each processing flow is realized and the safe operation of the system is assured.
Description
Technical field
The present invention relates to the business support field, be specifically related to a kind of living document balance check method and device.
Background technology
In every field, a large amount of file processing is arranged, particularly in telecommunications industry, the CDR file of magnanimity is by the backstage batch processing system, and the sorting valid data,, by the business logic processing data, obtain the system result.In this type systematic, an original living document often will pass through a plurality of flow processing, and each flow process may break file, merging, re-scheduling, wholesale price, make up accounts, and valid data enter database and preserve the most at last.How to guarantee that the original bill files data are not lost in each treatment scheme, not repeating is system monitoring problem to be processed.Existing system is that verification is carried out in the input and output of single application to the balance verification of file processing, and namely the input and output quantity of each flow process is balance.Concrete scheme is that each flow process output processes daily record, and number is recorded in the record input and number is recorded in output, and daily record is processed in supervisory system verification output, and the judgement input is recorded number and output and recorded whether balance of number.This shows, although the balance of the input and output that prior art can each flow process of verification, but concerning whole system, each file of verification of having no idea is entering system and is going out the balance of system at the balance of each treatment scheme and each file, cause being difficult to thorough verification, the efficiency of verification is not high.
Summary of the invention
The first purpose of the present invention is to propose a kind of efficient living document balance check method.
The second purpose of the present invention is to propose a kind of efficient living document balance check device.
For realizing above-mentioned the first purpose, the invention provides a kind of living document balance check method, comprising: each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document of all putting down in writing the respective file treatment scheme in the journal file of each file processing flow process; , according to the record content in each journal file, verify the information balance of each original living document before and after each file processing flow operations.
For realizing above-mentioned the second purpose, the invention provides a kind of living document balance check device, comprise: processing module, for all put down in writing each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document of respective file treatment scheme at the journal file of each file processing flow process; Verify module, be used for the record content according to each journal file, verify the information balance of each original living document before and after each file processing flow operations.
In each embodiment of the present invention, by all putting down in writing the corresponding relation of input message and output information and original living document in the journal file in each file processing flow process, and according to this corresponding relation, realize the balance of each original living document in each treatment scheme, and can realize verifying the balance of each original living document in the whole system that realizes each treatment scheme according to each journal file, guarantee system safety operation.
Description of drawings
Accompanying drawing is used to provide a further understanding of the present invention, and forms the part of instructions, with embodiments of the invention, is used in the lump explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is embodiment one process flow diagram of living document balance check method of the present invention;
Fig. 2 is embodiment two schematic diagram of living document balance check method of the present invention;
Fig. 3 is embodiment three process flow diagrams of living document balance check method of the present invention;
Fig. 4 is embodiment four process flow diagrams of living document balance check method of the present invention;
Fig. 5 is the example structure figure of living document balance check device of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, is not intended to limit the present invention.
Embodiment of the method
Fig. 1 is embodiment one process flow diagram of living document balance check method of the present invention.As shown in Figure 1, the present embodiment comprises:
Step S102: each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document of all putting down in writing the respective file treatment scheme in the journal file of each file processing flow process; Detailed explaining referring to Fig. 2;
Step S104:, according to the record content in each journal file, verify the information balance of each original living document before and after each file processing flow operations; Detailed explaining referring to Fig. 2.
The present embodiment is by all putting down in writing the corresponding relation of input message and output information and original living document in the journal file in each file processing flow process, and according to this corresponding relation, realize the balance of each original living document in each treatment scheme, and can realize verifying the balance of each original living document in the whole system that realizes each treatment scheme according to each journal file, guarantee system safety operation.
Fig. 2 is embodiment two schematic diagram of living document balance check method of the present invention.The present embodiment explains as an example of two original living document S1, S2 example, and as shown in Figure 2: original living document S1, S2 comprise respectively 1000,800 data records, need to be through 3 file processing flow process A, B and C; Specific as follows:
At first, 600 of effective records of the original living document S1 of A flow processing sorting obtain file S1_A, 400 of invalid record of sorting obtain file S1_B; 400 of effective records that sort original living document S2 obtain S2_A, 400 of invalid record of sorting obtain S2_B; Put down in writing the quantity (i.e. the number of record) of original living document S1 and S2 information separately in the journal file of A flow process, also put down in writing the number of file S1_A and S1_B record separately, and the corresponding relation of file S1_A and S1_B and file S1, and the number of having put down in writing file S2_A and S2_B record separately, and the corresponding relation of file S2_A and S2_B and file S2;
Secondly, the B flow process continues to process file S1_A and S2_A, sorts out by type 4 file S1_A1, S1_A2, S2_A1, S2_A2; Put down in writing the quantity (i.e. the number of record) of file S1_A and S2_A information separately in the journal file of B flow process, file S1_A and S2_A respectively with the corresponding relation of original living document S1 and S2, also put down in writing the number of file S1_A1 and S1_A2 record separately, and the corresponding relation of file S1_A1 and S1_A2 and file S1_A, and the number of having put down in writing file S2_A1 and S2_A2 record separately, and the corresponding relation (namely the journal file of output records original living document name corresponding to each output file) of file S2_A1 and S2_A2 and file S2_A;
Again, C flow processing file S1_A1, S1_A2, S2_A1, S2_A2, output effective document S_A and wrong file S_B; Put down in writing the quantity (i.e. the number of record) of file S1_A1, S1_A2, S2_A1, S2_A2 information separately in the journal file of C flow process, the corresponding relation of file S1_A1, S1_A2 and original living document S1, and the corresponding relation of file S2_A1, S2_A2 and original living document S2; Also put down in writing the number of file S_A and S_B record separately, and the corresponding relation of each record and original living document S1 and S2 in file S_A, the corresponding relation of each record and original living document S1 and S2 in S_B (is the corresponding relation of data and original living document in each file of daily record file record;
Finally, daily record of work according to above-mentioned three flow processs, can verify original living document S1 and S2 in the data balancing of each treatment scheme front and back and the input and output balance of stating in realization the system of three flow processs, be the balance of input and the output of C flow process of A flow process, the balance of wherein verifying data is mainly whether the data volume of seeing input and output equates.
the present embodiment by in the journal file in the output of each treatment scheme by the corresponding relation that records input file and original living document or the corresponding relation that directly records each input message and original living document, and according to this corresponding relation, realize the balance of each original living document in each treatment scheme, and according to each journal file, can realize verifying the balance of each original living document in the whole system that realizes each treatment scheme, guarantee system safety operation, avoided the balance that existing system can not accurate Calculation each file, the hidden danger that the safe operation of system is brought.
Fig. 3 is embodiment three process flow diagrams of living document balance check method of the present invention.The present embodiment is based on each journal file that produces in embodiment shown in Figure 2 and the flow process that operates.As shown in Figure 3, the present embodiment comprises:
step 301, with the record content in the journal file of each treatment scheme, the information in each original living document of generating is at the inventory stream information of each file processing flow process as input message and output information, namely process in real time each log information, same original living document information in the journal file of different disposal flow process is merged into an inventory stream information, that is to say, the inventory stream information of each original living document is that information in corresponding original living document is at the record of each file processing flow process as input message and output information, the working method that generates the inventory stream information can be processed for loop fusion, during concrete operations, can put down in writing with the form of daily record by each inventory stream information,
Step 302, the inventory stream information that step 301 is generated deposits memory database in:
step 303, generate according to step 301 or from the inventory stream information that memory database obtains, verify the data balancing of each original living document in each treatment scheme, for the method for the balance of verifying each treatment scheme be exactly determine before and after each treatment scheme to belong to each original living document whether record number identical, the method (namely verify rule) of balance that realizes the whole system of each treatment scheme for verification is exactly recording number and whether equating with the summation that records number that each treatment scheme does not change next treatment scheme over to of definite original living document, be that quantity is recorded in each pick-up point of input system quantity=∑, wherein pick-up point is recorded quantity and is each flow process and does not change the quantity that records of next flow process over to, for last treatment scheme, it is the total output record amount of this flow process, the information of verifying result and be balance changes step 305 over to and carries out balance and represent, unbalanced information changes step 304 processing of reforming over to, it will be understood by those skilled in the art that also can with unbalanced information change over to reform carry out step 305 while processing representing of balance inventory stream or/and representing of uneven inventory stream,
Step 304, the unbalanced inventory stream information that will cause because the log information of each treatment scheme is imperfect changes step 301 over to and again verifies, wherein, the log information of each treatment scheme is imperfect may be because each treatment scheme was not completed and processed operation and cause the information in daily record imperfect in certain time period, therefore generally manage throughout the balance that flow operations manages flow process throughout to each original living document after completing, verifies; During concrete operations, can be according to the inventory stream information after verification rule and merging, can obtain causing the nodal information (namely realizing causing the node of unbalanced treatment scheme) of uneven inventory stream, related import file name in this node log file of inquiry under the input path of this node,, if find corresponding fileinfo under input path, can judge that causing unbalanced reason is imperfect the causing of information in the journal file of this flow process;
Step 305, utilize existing information technology for revealing, as utilize the realization such as HTML (Hypertext Markup Language) (Hyper textTransfer Protocol, HTTP) technology to show intuitively representing of balance inventory stream on display screen or/and uneven inventory stream.
The present embodiment is by obtaining the inventory stream information with each process log overall treatment, realized completing original living document from entering the verification of system to the balance relation the whole process of the processing of each flow process and final output system according to this inventory stream information, avoided verifying original living document in the inconvenience that enters system and go out the balance of system according to a plurality of journal files.
Fig. 4 is embodiment four process flow diagrams of living document balance check method of the present invention.The present embodiment is to describe from the angle of each journal file, as generating respectively according to the inventory stream information of ready to balance, Balanced inventory stream information, unbalanced inventory stream information daily record, balance daily record, the uneven daily record of ready to balance, the unbalanced inventory stream information that can also process according to reforming generates daily record to be recycled.As shown in Figure 4, the present embodiment comprises:
Step 403, system are returned to the execution order relation of each treatment scheme and are verified rule;
The present embodiment by in the journal file in the output of each treatment scheme by the corresponding relation that records input file and original living document or the corresponding relation that directly records each input message and original living document, and according to this corresponding relation realization to the balance of each original living document in each treatment scheme; In addition, by each process log overall treatment is obtained the inventory stream information, realized completing original living document from entering the verification of system to the balance relation the whole process of the processing of each flow process and final output system according to this inventory stream information, avoided verifying original living document in the inconvenience that enters system and go out the balance of system according to a plurality of journal files.
Device embodiment
Fig. 5 is the example structure figure of living document balance check device of the present invention.Each embodiment of the method shown in Fig. 1-4 is all applicable to the present embodiment.The present embodiment comprises: processing module 52, for all put down in writing each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document of respective file treatment scheme at the journal file of each file processing flow process; Verify module 54, be used for the record content according to each journal file, verify the information balance of each original living document before and after each file processing flow operations.During concrete operations, this device can also comprise: represent module 56, be used for utilizing HTTP to show intuitively that on display screen the information of each original living document manages the diagram of flow process as input message and output information throughout.
During concrete operations, this verification module 54 can comprise:
Generate submodule 542, be used for the record content according to each journal file, the information in each original living document of generating is at the inventory stream information of each file processing flow process as input message and output information;
Verify submodule 544, be used for the inventory stream information according to each original living document, verify the information balance of each original living document before and after each file processing flow operations; During concrete operations, this verification submodule 544 can also comprise:
Verify subelement 544a, be used for the inventory stream information according to each original living document, default the verification in time threshold, verify the information balance of each original living document before and after each file processing flow operations;
Judgment sub-unit 544b, be used for according to default overtime reason, and each original living document of not verified in the time of surpassing default verification time threshold is divided into uneven file and ready to balance file;
Hyperon unit 544c, be used for treating balanced file and again verify.
Processing module 52 can comprise:
First processes submodule 522, is used for the journal file in the file declustering treatment scheme, puts down in writing the affiliated original living document of each input file and the original living document under each output file;
Second processes submodule 524, be used for the journal file in file restructuring treatment scheme, directly put down in writing each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document, file declustering flow process and file restructuring treatment scheme all belong to the file processing flow process.
This enforcement by processing module 52 in the journal file of each treatment scheme output by the corresponding relation that records input file and original living document or the corresponding relation that directly records each input message and original living document, and by verification module 54 according to this corresponding relation realization to the balance of each original living document in each treatment scheme; In addition, by generating submodule 542, each process log overall treatment is obtained the inventory stream information, realized verifying submodule 544 and completed original living document from entering the verification of system to the balance relation the whole process of the processing of each flow process and final output system according to this inventory stream information, avoided verifying original living document in the inconvenience that enters system and go out the balance of system according to a plurality of journal files.
It should be noted that finally: these are only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment, the present invention is had been described in detail, for a person skilled in the art, it still can be modified to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (8)
1. a living document balance check method, is characterized in that, comprising:
All put down in writing each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document of respective file treatment scheme in the journal file of each file processing flow process;
, according to the record content in each journal file, verify the information balance of each original living document before and after each file processing flow operations;
, according to the record content in each journal file, verify each original living document in each file processing flow process
The step of the information balance before and after operation comprises:
According to the record content in described each journal file, generate the inventory stream information of each original living document, wherein, the inventory stream information of each original living document is that information in corresponding original living document is at the record of each file processing flow process as input message and output information;
, according to the inventory stream information of described each original living document, verify the information balance of each original living document before and after each file processing flow operations.
2. living document balance check method according to claim 1, it is characterized in that, the step of the corresponding relation of described each input message of all putting down in writing the respective file treatment scheme in the journal file of each file processing flow process and affiliated original living document and the corresponding relation of each output information and affiliated original living document comprises:
In the journal file of file declustering treatment scheme, put down in writing the affiliated original living document of each input file and the original living document under each output file;
In the journal file of file restructuring treatment scheme, directly put down in writing each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document, described file declustering flow process and file restructuring treatment scheme all belong to described file processing flow process.
3. living document balance check method described according to the claims 2, it is characterized in that, the described stream information of inventory according to described each original living document, verify each original living document and also comprise after the step of the information balance of each file processing flow operations front and back:
Verifying result according to each is that inventory stream information corresponding to unbalanced original living document generates uneven daily record;
Whether the uneven reason that judges described uneven daily record is that the information of journal file of described each treatment scheme is imperfect; And when the information of judging former journal file because of described each treatment scheme is imperfect, operation is verified in described uneven daily record again.
4., according to the described living document balance of any one check method in the claims 1-2, it is characterized in that, also comprise:
Utilize HTTP to show intuitively that on display screen the information of described each original living document is in the diagram of described each treatment scheme as input message and output information.
5. a living document balance check device, is characterized in that, comprising:
Processing module, for all put down in writing each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document of respective file treatment scheme at the journal file of each file processing flow process;
Verify module, be used for the record content according to each journal file, verify the information balance of each original living document before and after each file processing flow operations;
Described verification module comprises:
Generate submodule, be used for the record content according to described each journal file, generate the inventory stream information of each original living document, wherein, the inventory stream information of each original living document is that information in corresponding original living document is at the record of each file processing flow process as input message and output information;
Verify submodule, be used for the inventory stream information according to described each original living document, verify the information balance of each original living document before and after each file processing flow operations.
6. living document balance check device according to claim 5, is characterized in that, described processing module comprises:
First processes submodule, is used for the journal file in the file declustering treatment scheme, puts down in writing the affiliated original living document of each input file and the original living document under each output file;
Second processes submodule, be used for the journal file in file restructuring treatment scheme, directly put down in writing each input message and the corresponding relation of affiliated original living document and the corresponding relation of each output information and affiliated original living document, described file declustering flow process and file restructuring treatment scheme all belong to described file processing flow process.
7. living document balance check device described according to the claims 5 or 6, is characterized in that, described verification submodule comprises:
Verify subelement, be used for the inventory stream information according to described each original living document, verify the information balance of at least one original living document before and after each file processing flow operations in described each original living document;
Judgment sub-unit, being used for verifying result according to each is that inventory stream information corresponding to unbalanced original living document generates uneven daily record; Whether the uneven reason that judges described uneven daily record is that the information of journal file of described each treatment scheme is imperfect;
The hyperon unit, be used for, when the information of the former journal file because of described each treatment scheme of described judgment sub-unit judgement is imperfect, operation is verified in described uneven daily record again.
8., according to the described living document balance of any one check device in the claims 5-6, it is characterized in that, also comprise:
Represent module, be used for utilizing HTTP to show intuitively that on display screen the information of described each original living document is in the diagram of described each treatment scheme as input message and output information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105820475A CN102486795B (en) | 2010-12-03 | 2010-12-03 | Method and device for inspecting balance of dynamic file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105820475A CN102486795B (en) | 2010-12-03 | 2010-12-03 | Method and device for inspecting balance of dynamic file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102486795A CN102486795A (en) | 2012-06-06 |
CN102486795B true CN102486795B (en) | 2013-11-20 |
Family
ID=46152288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105820475A Active CN102486795B (en) | 2010-12-03 | 2010-12-03 | Method and device for inspecting balance of dynamic file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102486795B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095870A (en) * | 2016-06-06 | 2016-11-09 | 乐视控股(北京)有限公司 | Data balancing verification method and device |
CN106534980B (en) * | 2016-11-15 | 2019-12-06 | 广州华多网络科技有限公司 | abnormity detection method of audio processing system, log recording method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047902A (en) * | 2007-04-30 | 2007-10-03 | 华为技术有限公司 | Service process method, device of charging system and charging system |
CN101217393A (en) * | 2007-12-30 | 2008-07-09 | 中国移动通信集团四川有限公司 | A charging income guarantee method realized by auditing |
-
2010
- 2010-12-03 CN CN2010105820475A patent/CN102486795B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047902A (en) * | 2007-04-30 | 2007-10-03 | 华为技术有限公司 | Service process method, device of charging system and charging system |
CN101217393A (en) * | 2007-12-30 | 2008-07-09 | 中国移动通信集团四川有限公司 | A charging income guarantee method realized by auditing |
Also Published As
Publication number | Publication date |
---|---|
CN102486795A (en) | 2012-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102831052B (en) | Test exemple automation generating apparatus and method | |
CN110321113B (en) | Integrated assembly line system taking project batches as standards and working method thereof | |
CN103903137A (en) | Automatic payment and account-checking method and system | |
CN107977473B (en) | Logback-based distributed system log retrieval method and system | |
CN113128978B (en) | Data settlement method, device, system and storage medium | |
CN106815725A (en) | A kind of transaction verification method and device | |
CN106484624A (en) | The method of testing of interface automatic test | |
CN108460068A (en) | Method, apparatus, storage medium and the terminal that report imports and exports | |
US20080270273A1 (en) | Method and system for real-time invoice validation and reconciliation | |
CN110287113A (en) | Automation interface test method | |
CN103440460A (en) | Application system change validation method and system | |
CN102486795B (en) | Method and device for inspecting balance of dynamic file | |
CN110032515B (en) | Interface test case generation method and device and storage medium | |
CN103326930A (en) | Automatic patrolling method and system for open platform interface | |
CN111459809A (en) | Software testing method based on rapid demand version iteration | |
CN111027284A (en) | Standardized output method based on flexible data access | |
CN103164324A (en) | Microblog test method and device | |
CN112508682A (en) | Method for automatically checking account by intelligent system | |
CN107783903A (en) | The automated testing method and system withholdd based on simulation account | |
CN116756129A (en) | Data complement method and device, storage medium and electronic equipment | |
CN112256978B (en) | Data processing method, device and medium based on data model | |
CN105205720A (en) | On-line financing examination and approval method, device and system | |
CN101778110B (en) | Service protocol mining method and device | |
CN104216986A (en) | Device and method for improving data query efficiency through pre-operation according to data update period | |
CN108427614B (en) | Interface testing method and device based on adaptor tool |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |