CN114201454A - File processing system, method, device, equipment and medium - Google Patents
File processing system, method, device, equipment and medium Download PDFInfo
- Publication number
- CN114201454A CN114201454A CN202111533225.XA CN202111533225A CN114201454A CN 114201454 A CN114201454 A CN 114201454A CN 202111533225 A CN202111533225 A CN 202111533225A CN 114201454 A CN114201454 A CN 114201454A
- Authority
- CN
- China
- Prior art keywords
- file
- database server
- target
- target database
- identification information
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2471—Distributed queries
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Probability & Statistics with Applications (AREA)
- Fuzzy Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present application relates to the field of data verification technologies, and in particular, to a system, a method, an apparatus, a device, and a medium for processing a file. The main database server can determine at least one target database server for analyzing the file according to the target file type of the file to be analyzed and the corresponding relation between the file type stored in advance and at least one database server, and each target database server analyzes the file, so that the success rate of file analysis is improved; and after each target database server analyzes the file, the analysis result is also sent to the message center server, and the message center server forwards the analysis result to the main database server, so that the main database server can store the analysis result of the file by each target database server, the analysis result of each target database server is more intuitively counted, and the smooth operation of the subsequent operation flow is ensured.
Description
Technical Field
The present application relates to the field of data verification technologies, and in particular, to a system, a method, an apparatus, a device, and a medium for processing a file.
Background
Document processing systems are required to process a large number of documents each day, including individual exchange documents, market information documents, documents from individual customers, and the like. The file processing system comprises a database server, and after the files are received, the files are analyzed by the database server so as to be convenient for processing and using of a subsequent business function process. The document processing system may be, for example, a bank escrow system.
However, with the increasing traffic of the file processing system and the increasing automation degree of the file processing system, the number of files to be analyzed by the database server is increased, so that the analyzing speed of the existing single database server cannot adapt to the receiving speed of the files. Therefore, a scheme of expanding a single database server in the file processing system into a main database server and at least one sub database server is proposed. After a file to be analyzed is received, the main database server distributes the file to at least one sub database server, and the sub database servers analyze the file, so that the load pressure of each database server is reduced, and the file analyzing speed is increased.
However, in the prior art, when a main database server distributes a file to be analyzed to other sub database servers for analysis, only the sub database server that performs file analysis is randomly selected, and the sub database server that cannot analyze the file may be selected, which may eventually result in analysis failure, and only the analysis result of the sub database server can be checked from each sub database server, and the analysis result of each sub database server on the file cannot be counted well.
Disclosure of Invention
The application provides a file processing system, a file processing method, a file processing device and a file processing medium, which are used for solving the problems that a sub database server selected in the prior art cannot analyze files, and the analysis results of the sub database server cannot be counted, so that the follow-up operation flow cannot be performed.
An embodiment of the present application provides a file processing system, including:
the main database server is used for determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server; sending a file analysis message carrying the first identification information of each target database server to a message center server;
the message center server is used for receiving the file analysis message; according to each piece of first identification information carried in the file analysis message, sending the file analysis message to a target database server of each piece of first identification information;
any one of the target database servers is used for receiving the file analysis message, acquiring the file according to second identification information of the file carried in the file analysis message, and analyzing the file; sending a file analysis result carrying self first identification information to the message center server;
the message center server is also used for receiving the file analysis result sent by the target database server and sending the file analysis result to the main database server;
and the main database server is also used for receiving the file analysis result and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
Further, the main database server is further configured to determine, for each target database server, a target file download address corresponding to the target file type according to a correspondence between a file type and a file download address that are stored in advance; distributing the file to the target file download address;
the target database server is specifically configured to acquire a target file type of the file carried in the file analysis message, and determine a target file download path corresponding to the target file type according to a correspondence between a pre-stored file type and a file download path; and acquiring the file according to the target file downloading path and the second identification information.
Further, the target database server is further configured to send an analysis result carrying the first identification information of the target database service to the message center server if the target database server does not obtain the file from the target file download path, where the analysis result is an analysis failure result.
Further, the master database server is further configured to, for an analysis result corresponding to each target database server, obtain a storage location corresponding to the target database server that is configured in advance, and store the analysis result in the storage location.
Further, the master database server is further configured to send an analyzed task trigger message to the message center server if it is recognized that each analysis result corresponding to the file is successfully analyzed, where the analyzed task trigger message carries first identification information of at least one target database server;
the message center server is further configured to receive the analyzed task trigger message, and send the analyzed task trigger message to a target database server of the first identification information according to the first identification information of at least one target database server carried in the analyzed task trigger message;
and any target database server is also used for receiving the task trigger message after the analysis and responding to the subsequent tasks corresponding to the target file types of the files stored in advance according to the files after the analysis.
Further, the target database server is further configured to send a processing result of the subsequent task to the message center server if it is recognized that the processing of the subsequent task is completed;
the message center server is also used for receiving the processing result and sending the processing result to the main database server;
the main database server is also used for receiving the processing result; and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
Further, the master database server is further configured to determine a target file type of the file according to the name of the file.
The embodiment of the application also provides a file processing method, which comprises the following steps:
determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server;
sending a file analysis message carrying the first identification information of each target database server to a message center server;
and receiving a file analysis result sent by the message center server, and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
Further, the correspondingly storing the analysis result and the first identification information includes:
and aiming at the analysis result corresponding to each target database server, acquiring a preset storage position corresponding to the target database server, and storing the analysis result in the storage position.
Further, the method further comprises:
and if each analysis result corresponding to the file is identified to be successful analysis, sending an analyzed task trigger message to the message center server, wherein the analyzed task trigger message carries the first identification information of at least one target database server.
Further, the method further comprises:
receiving a processing result sent by a message center server, wherein the processing result carries first identification information of a target database;
and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
Further, the method for determining the target file type of the file to be parsed includes:
and determining the target file type of the file according to the name of the file.
An embodiment of the present application further provides a file processing apparatus, where the apparatus includes:
the determining module is used for determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server;
the sending processing module is used for sending a file analysis message carrying the first identification information of each target database server to a message center server;
and the receiving processing module is used for receiving the file analysis result sent by the message center server and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
Further, the receiving and processing module is specifically configured to, for an analysis result corresponding to each target database server, obtain a pre-configured storage location corresponding to the target database server, and store the analysis result in the storage location.
Further, the sending processing module is further configured to send a task trigger message after analysis to the message center server if it is identified that each analysis result corresponding to the file is a successful analysis, where the task trigger message after analysis carries the first identification information of at least one target database server.
Further, the receiving processing module is further configured to receive a processing result sent by the message center server, where the processing result carries the first identification information of the target database; and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
Further, the determining module is further configured to determine a target file type of the file according to the name of the file.
An embodiment of the present application further provides an electronic device, where the electronic device includes a processor, and the processor is configured to implement the steps of the file processing method according to any one of the above descriptions when executing the computer program stored in the memory.
The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned file processing methods.
An embodiment of the present application further provides a computer program product, where the computer program product includes: computer program code for causing a computer to perform the steps of the file processing method as described in any one of the above when said computer program code is run on a computer.
In the embodiment of the application, the main database server can determine at least one target database server for analyzing the file according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and at least one database server, and the main database server sends a file analysis message to each target database server through the message center server, and each target database server analyzes the file, so that the success rate of file analysis is improved; and after each target database server analyzes the file, the analysis result is also sent to the message center server, and the message center server forwards the analysis result to the main database server, so that the main database server can store the analysis result of the file by each target database server, the analysis result of each target database server is more intuitively counted, and the smooth operation of the subsequent operation flow is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a document processing system according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating an interaction process of a master database server, a target database server and a message center server according to an embodiment of the present application;
fig. 3 is a schematic view of a file parsing process applied to a target database server according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a file parsing process applied to a master database server according to an embodiment of the present application;
FIG. 5 is a schematic view of a document processing flow according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to improve the success rate of file analysis, summarize the analysis result of each target database server more intuitively, and ensure the smooth proceeding of the subsequent operation flow, the embodiments of the present application provide a file processing system, method, device, apparatus, and medium.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
Example 1:
fig. 1 is a schematic structural diagram of a file processing system provided in an embodiment of the present application, where the system includes a master database server 101, a message center server 102, and at least one target database server 103, where:
the main database server 101 is used for determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server; sending a file analysis message carrying the first identification information of each target database server to a message center server;
a message center server 102, configured to receive the file parsing message; according to each piece of first identification information carried in the file analysis message, sending the file analysis message to a target database server of each piece of first identification information;
any one of the target database servers 103 is configured to receive the file analysis message, obtain the file according to the second identification information of the file carried in the file analysis message, and analyze the file; sending a file analysis result carrying self first identification information to the message center server;
the message center server 102 is further configured to receive the file parsing result sent by the target database server, and send the file parsing result to the master database server;
the main database server 101 is further configured to receive the file analysis result, and store the analysis result and the first identification information of the target database server correspondingly according to the first identification information of the target database server carried in the file analysis result.
In order to reduce the load pressure of the main database server when a file to be parsed is parsed, in the embodiment of the present application, the file processing system includes at least one sub database server, and the main database server pre-stores each sub database server and a file type of the file that can be parsed by the main database server, wherein the file of the same file type can be parsed by a plurality of database servers. The corresponding relation between each file type and at least one database server is stored in the main database server.
Based on this, in the embodiment of the present application, a file analysis distribution configuration table is configured in advance in the master database server, and a correspondence relationship between a file type and at least one database server is stored in advance in the file analysis distribution configuration table. The main database server determines at least one target database server corresponding to the target file type of the file to be analyzed based on the file analysis distribution configuration table. After determining the target database servers, the master database server sends a file parsing message carrying the first identification information of each target database server to the message center server.
In the embodiment of the application, after the message center server receives the file analysis message which is sent by the main database server and carries the first identification information of each target database server, the message center server sends the file analysis message to the target database server corresponding to each first identification information according to each first identification information carried in the file analysis message. It should be noted that the target database server may be a sub database server in the file processing system, or may be a main database server.
And aiming at each target database server, after the target database server receives a file analysis message sent by the message center server, acquiring a file of second identification information according to the second identification information of the file to be analyzed carried in the file analysis message.
The method comprises the steps that a file analysis method corresponding to a file type which can be analyzed by the target database server is stored in each target database server, after the target database server obtains the file, the target file type corresponding to the file is obtained, the file analysis method corresponding to the target file type is determined from the corresponding relation between the file type and the file analysis method which are stored in advance, the file is analyzed through the file analysis method, an analysis result is obtained, an analysis data ground surface is generated according to a format which is specified in advance, and the analysis result is stored in the analysis data ground surface. In this embodiment, the corresponding relationship between the file type and the file parsing method may be stored in a preconfigured local file parsing table. The target database server can also send the analysis result and the first identification information of the target database server to the message center server.
In order to enable the master database server to count the analysis result of each target database server on the file, in the embodiment of the application, the message center server forwards each analysis result to the master database server after receiving the analysis result which is sent by each target database server and carries the first identification information of each target database server. And the main database server correspondingly stores each analysis result and the first identification information of each target database server.
In the embodiment of the application, the main database server may determine at least one target database server for parsing the file according to the target file type of the file to be parsed and a correspondence between the file type stored in advance and the at least one database server, and the main database server sends a file parsing message to each target database server through the message center server, so that the file is prevented from being parsed by randomly selecting a database service area. After each target database server analyzes the file, the file analysis result is also sent to the message center server, and the message center server forwards the analysis result to the main database server, so that the main database server can store the analysis result of each target database server on the file, store the analysis result of each target database server, and ensure the smooth operation of the subsequent operation flow.
Fig. 2 is a schematic diagram of an interaction process of a master database server, a target database server and a message center server according to an embodiment of the present application, where the process includes:
s201: and the main database server sends a file analysis message carrying the first identification information of each target database server to the message center server.
S202: and the message center server sends the file analysis message to the target database server of each piece of first identification information according to the first identification information of each target database server carried in the file analysis message.
S203: and the target database server sends the analysis result carrying the first identification information of the target database server to the message center server.
S204: and the message center server sends the analysis result to the main database server.
Example 2:
in order to enable a target database server to obtain a file to be analyzed, on the basis of the above embodiment, in this embodiment, the master database server is further configured to determine, for each target database server, a target file download address corresponding to a target file type according to a correspondence between a file type of the target database server and a file download address that is stored in advance; distributing the file to the target file download address;
the target database server is specifically configured to acquire a target file type of the file carried in the file analysis message, and determine a target file download path corresponding to the target file type according to a correspondence between a pre-stored file type and a file download path; and acquiring the file of the second identification information according to the target download path.
In the embodiment of the present application, for each target database server, the master database server pre-stores a file download path of the target database server for each file type of file. After the target database server is determined, a file downloading address corresponding to the target file type of the target database server which is stored in advance is obtained, the file downloading address is used as a target file downloading address, and the file is distributed to the target file downloading address.
In order to enable a target database server to obtain a file to be analyzed, in the embodiment of the present application, each database server stores a file download path corresponding to each file type of the database server, so that the database server determines the file download path according to the file type and downloads the file according to the file download path.
Based on this, in order to enable the target database server to determine the file download path of the file to be parsed, in the embodiment of the present application, the file parsing message also carries the target file type of the file to be parsed. And when the target database server receives the file analysis message, acquiring a target file type of the file to be analyzed carried in the file analysis message, and determining a target file downloading path corresponding to the target file type according to a corresponding relation between the pre-stored file type and the file downloading path.
In the embodiment of the application, after the target database server determines the target file download path, second identification information of a file carried in the file analysis message is acquired, and the file of the second identification information is downloaded from the target file path.
It should be noted that the file to be parsed is received by a master database server in the file processing system, and if the target database server is the master database server, the target database server obtains the file of the second identification information from the file stored in the target database server according to the second identification information of the file to be parsed.
In order to enable the master database server to count the analysis result of each target database server, in this embodiment of the present application, on the basis of the foregoing embodiments, if the target database server does not obtain the file from the target file download path, the target database server is further configured to send an analysis result carrying the first identification information of the target database service to the message center server, where the analysis result is an analysis failure result.
In this embodiment of the application, if the target database server does not obtain the file of the second identification information from the target file download path, an analysis failure result carrying the first identification information of the target database server is sent to the message center server.
Fig. 3 is a schematic view of a file parsing process applied to a target database server according to an embodiment of the present application, where the process includes:
s301: and receiving a file analysis message sent by the message center server, wherein the file analysis message carries second identification information of the file to be analyzed.
S302: and determining a target file downloading path corresponding to the target file type according to the target file type carried in the file analysis message and the corresponding relation between the pre-stored file type and the file downloading path.
S303: and judging whether the file of the second identification information exists in the target file downloading path, if so, executing S304, and if not, sending an analysis result of analysis failure to the message center server.
S304: and acquiring a file analysis method corresponding to the target file type of the file according to the corresponding relation between the pre-stored file type and the file analysis method.
S305: and analyzing the file according to the file analyzing method to obtain an analyzing result.
S306: and sending the analysis result carrying the first identification information of the target database server to a message center server.
Example 3:
in order to count the analysis result of each target database server, in this embodiment of the application, on the basis of the foregoing embodiments, the master database server is further configured to obtain, for the analysis result corresponding to each target database server, a pre-configured storage location corresponding to the target database server, and store the analysis result in the storage location.
In order to store the analysis result of each target database server, in the embodiment of the present application, after receiving the analysis result of a file to be analyzed by any one target database server, the master database server stores the analysis result in the storage location corresponding to the target database server.
Specifically, in this embodiment of the present application, a file analysis state record synchronization sub-table is pre-stored in the master database server, and each database server corresponds to one storage location in the file analysis state record synchronization sub-table, which is used for correspondingly storing an analysis result of each database server on a file. And aiming at each analysis result sent by the message center server, the main database server determines a target database server corresponding to the analysis result according to the first identification information carried in the analysis result, searches a storage position corresponding to the target database server in a pre-stored file analysis state record synchronization sub-table, and stores the analysis result in the storage position.
Example 4:
in order to ensure that a subsequent operation flow is smoothly performed, on the basis of the foregoing embodiments, in an embodiment of the present application, the master database server is further configured to send a post-analysis task trigger message to the message center server if it is recognized that each analysis result corresponding to the file is a successful analysis, where the post-analysis task trigger message carries first identification information of the at least one target database server;
the message center server is further configured to receive the analyzed task trigger message, and send the analyzed task trigger message to each target database server of the first identification information according to the first identification information of the at least one target database server carried in the analyzed task trigger message;
and any target database server is also used for receiving the task trigger message after the analysis and responding to the subsequent tasks corresponding to the target file types of the files stored in advance according to the files after the analysis.
In the embodiment of the application, in order to ensure that the subsequent operation flow is performed smoothly, the main database server receives the analysis result corresponding to each target database server, and each analysis result is successfully analyzed, and the main database server sends an analyzed task trigger message to the message center server, wherein the analyzed task trigger message carries the first identification information of each target database server.
And after receiving the analyzed task trigger message sent by the main database server, the message center server sends the analyzed task trigger message to a target database server of each first identification information according to each first identification information carried in the analyzed task trigger message.
And after the target database server receives the analyzed task trigger message, determining the subsequent task corresponding to the target file type according to the corresponding relation between the pre-stored file type and the subsequent task and the second identification information of the target file type and the file carried in the analyzed task trigger message, determining the analyzed file according to the second identification information, and responding to the subsequent task according to the analyzed file.
Example 5:
in order to count the processing result of the subsequent task of each target database server, on the basis of the foregoing embodiments, in this embodiment, the target database server is further configured to send the processing result of the subsequent task to the message center server if it is identified that the processing of the subsequent task is completed;
the message center server is also used for receiving the processing result and sending the processing result to the main database server;
the main database server is also used for receiving the processing result; and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
In the embodiment of the application, in order to store the processing result of the subsequent task of each target database server, each target database server receiving the analyzed task trigger message sends the processing result of the subsequent task to the message center server after recognizing that the processing of the subsequent task is completed, wherein the processing result carries the first identification information of the target database server.
And after receiving the processing result, the message center server sends the processing result to a main database server, and the main database server correspondingly stores the processing result and the first identification information of the target database server corresponding to the processing result.
Example 6:
in order to determine the file type of the file to be parsed, on the basis of the foregoing embodiments, in an embodiment of the present application, the master database server is further configured to determine a target file type of the file according to the name of the file.
In the embodiment of the application, after the master database server receives a file to be analyzed, the master database server scans a directory of the file to generate summary information corresponding to the file, and determines the target file type of the file according to the name of the file. In the embodiment of the present application, when determining the target file type of a file to be parsed, the master database server determines based on the file name suffix of the file, for example, if the file name suffix of the file is ". doc", the target file type of the file is determined to be a text document or the like. In addition, a source data registry for storing file information is configured in advance in the main database server, and after the summary information and the target file type of the file to be analyzed are determined, the main database server correspondingly stores the second identification information, the target file type and the summary information of the file in the source data registry.
Fig. 4 is a schematic view of a file parsing process applied to a master database server according to an embodiment of the present application, where the process includes:
s401: and determining the abstract information and the target file type of the file to be analyzed, and correspondingly storing the second identification information, the target file type and the abstract information of the file in the source data registry.
S402: and determining a target database server for file analysis according to a pre-stored file analysis distribution configuration table.
S403: the file is distributed to a file download address of the target database service.
S404: and sending a file analysis message carrying the first identification information of the target database server to the message center server.
S405: and receiving a file analysis result returned by the message center server, and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
Example 7:
fig. 5 is a schematic view of a file processing flow provided in an embodiment of the present application, where the process includes:
s501: and determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server.
S502: and sending a file analysis message carrying the first identification information of each target database server to a message center server.
S503: and receiving a file analysis result sent by the message center server, and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
In a possible implementation manner, the storing the parsing result in correspondence with the first identification information includes:
and aiming at the analysis result corresponding to each target database server, acquiring a preset storage position corresponding to the target database server, and storing the analysis result in the storage position.
In one possible embodiment, the method further comprises:
and if each analysis result corresponding to the file is identified to be successful analysis, sending an analyzed task trigger message to the message center server, wherein the analyzed task trigger message carries the first identification information of at least one target database server.
In one possible embodiment, the method further comprises:
receiving a processing result sent by a message center server, wherein the processing result carries first identification information of a target database;
and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
In a possible implementation manner, the method for determining the target file type of the file to be parsed includes:
and determining the target file type of the file according to the name of the file.
Example 8:
fig. 6 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present application, where the apparatus includes:
a determining module 601, configured to determine, according to a target file type of a file to be parsed and a correspondence between a pre-stored file type and at least one database server, at least one target database server corresponding to the target file type;
a sending processing module 602, configured to send a file parsing message carrying the first identification information of each target database server to a message center server;
the receiving processing module 603 is configured to receive a file analysis result sent by the message center server, and correspondingly store the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
In a possible implementation manner, the receiving processing module 603 is specifically configured to, for an analysis result corresponding to each target database server, obtain a pre-configured storage location corresponding to the target database server, and store the analysis result in the storage location.
In a possible implementation manner, the sending processing module 602 is further configured to send a task trigger message after parsing to the message center server if it is identified that each parsing result corresponding to the file is a successful parsing, where the task trigger message after parsing carries the first identification information of at least one target database server.
In a possible implementation manner, the receiving processing module 603 is further configured to receive a processing result sent by the message center server, where the processing result carries the first identification information of the target database; and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
In a possible implementation manner, the determining module 601 is further configured to determine a target file type of the file according to the name of the file.
Example 9:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, and fig. 7 is a schematic structural diagram of the electronic device provided in the embodiment of the present invention, as shown in fig. 7, including: the system comprises a processor 71, a communication interface 72, a memory 73 and a communication bus 74, wherein the processor 71, the communication interface 72 and the memory 73 are communicated with each other through the communication bus 74;
the memory 73 has stored therein a computer program which, when executed by the processor 71, causes the processor 71 to perform the steps of:
determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server;
sending a file analysis message carrying the first identification information of each target database server to a message center server;
receiving a file analysis result sent by the message center server, and correspondingly storing the analysis result and first identification information according to the first identification information of a target database server carried in the file analysis result;
in a possible implementation manner, the storing the parsing result in correspondence with the first identification information includes:
and aiming at the analysis result corresponding to each target database server, acquiring a preset storage position corresponding to the target database server, and storing the analysis result in the storage position.
In one possible embodiment, the method further comprises:
and if each analysis result corresponding to the file is identified to be successful analysis, sending an analyzed task trigger message to the message center server, wherein the analyzed task trigger message carries the first identification information of at least one target database server.
In one possible embodiment, the method further comprises:
receiving a processing result sent by a message center server, wherein the processing result carries first identification information of a target database;
and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
In a possible implementation manner, the method for determining the target file type of the file to be parsed includes:
and determining the target file type of the file according to the name of the file.
Because the principle of the electronic device for solving the problem is similar to the file processing method, the implementation of the electronic device may refer to the embodiment of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface 72 is used for communication between the above-described electronic apparatus and other apparatuses. The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 10:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program is run on the processor, the processor is caused to execute the following steps:
determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server;
sending a file analysis message carrying the first identification information of each target database server to a message center server;
receiving a file analysis result sent by the message center server, and correspondingly storing the analysis result and first identification information according to the first identification information of a target database server carried in the file analysis result;
in a possible implementation manner, the storing the parsing result in correspondence with the first identification information includes:
and aiming at the analysis result corresponding to each target database server, acquiring a preset storage position corresponding to the target database server, and storing the analysis result in the storage position.
In one possible embodiment, the method further comprises:
and if each analysis result corresponding to the file is identified to be successful analysis, sending an analyzed task trigger message to the message center server, wherein the analyzed task trigger message carries the first identification information of at least one target database server.
In one possible embodiment, the method further comprises:
receiving a processing result sent by a message center server, wherein the processing result carries first identification information of a target database;
and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
In a possible implementation manner, the method for determining the target file type of the file to be parsed includes:
and determining the target file type of the file according to the name of the file.
Since the principle of the computer-readable storage medium to solve the problem is similar to the payment method, the implementation of the computer-readable storage medium can be referred to the embodiment of the method, and repeated details are not repeated.
Example 11:
the embodiment of the present application further provides a computer program product, and when executed by a computer, the computer program product implements the file processing method described in any method embodiment applied to the electronic device.
In the above embodiments, the implementation may be realized in whole or in part by software, hardware, firmware, or any combination thereof, and may be realized in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions which, when loaded and executed on a computer, cause a process or function according to an embodiment of the application to be performed, in whole or in part.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (20)
1. A document processing system, the system comprising:
the main database server is used for determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server; sending a file analysis message carrying the first identification information of each target database server to a message center server;
the message center server is used for receiving the file analysis message; according to each piece of first identification information carried in the file analysis message, sending the file analysis message to a target database server of each piece of first identification information;
any one of the target database servers is used for receiving the file analysis message, acquiring the file according to second identification information of the file carried in the file analysis message, and analyzing the file; sending a file analysis result carrying self first identification information to the message center server;
the message center server is also used for receiving the file analysis result sent by the target database server and sending the file analysis result to the main database server;
and the main database server is also used for receiving the file analysis result and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
2. The system according to claim 1, wherein the master database server is further configured to determine, for each target database server, a target file download address corresponding to the target file type according to a correspondence between a file type and a file download address that are pre-stored; distributing the file to the target file download address;
the target database server is specifically configured to acquire a target file type of the file carried in the file analysis message, and determine a target file download path corresponding to the target file type according to a correspondence between a pre-stored file type and a file download path; and acquiring the file according to the target file downloading path and the second identification information.
3. The system according to claim 2, wherein the target database server is further configured to send an analysis result carrying the first identification information of the target database service to the message center server if the target database server does not obtain the file from the target file download path, where the analysis result is an analysis failure result.
4. The system according to claim 1, wherein the master database server is further configured to, for the parsing result corresponding to each target database server, obtain a pre-configured storage location corresponding to the target database server, and store the parsing result in the storage location.
5. The system according to claim 4, wherein the master database server is further configured to send a post-analysis task trigger message to the message center server if it is recognized that each analysis result corresponding to the file is a successful analysis, where the post-analysis task trigger message carries first identification information of at least one target database server;
the message center server is further configured to receive the analyzed task trigger message, and send the analyzed task trigger message to a target database server of the first identification information according to the first identification information of at least one target database server carried in the analyzed task trigger message;
and any target database server is also used for receiving the task trigger message after the analysis and responding to the subsequent tasks corresponding to the target file types of the files stored in advance according to the files after the analysis.
6. The system of claim 5, wherein the target database server is further configured to send a processing result of the subsequent task to the message center server if it is recognized that the processing of the subsequent task is completed;
the message center server is also used for receiving the processing result and sending the processing result to the main database server;
the main database server is also used for receiving the processing result; and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
7. The system of claim 1, wherein the master database server is further configured to determine a target file type for the file based on a name of the file.
8. A method of file processing, the method comprising:
determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server;
sending a file analysis message carrying the first identification information of each target database server to a message center server;
and receiving a file analysis result sent by the message center server, and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
9. The method according to claim 8, wherein the saving the parsing result in correspondence with the first identification information comprises:
and aiming at the analysis result corresponding to each target database server, acquiring a preset storage position corresponding to the target database server, and storing the analysis result in the storage position.
10. The method of claim 9, further comprising:
and if each analysis result corresponding to the file is identified to be successful analysis, sending an analyzed task trigger message to the message center server, wherein the analyzed task trigger message carries the first identification information of at least one target database server.
11. The method of claim 10, further comprising:
receiving a processing result sent by a message center server, wherein the processing result carries first identification information of a target database;
and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
12. The method according to claim 8, wherein the method for determining the target file type of the file to be parsed comprises:
and determining the target file type of the file according to the name of the file.
13. A document processing apparatus, characterized in that the apparatus comprises:
the determining module is used for determining at least one target database server corresponding to the target file type according to the target file type of the file to be analyzed and the corresponding relation between the pre-stored file type and the at least one database server;
the sending processing module is used for sending a file analysis message carrying the first identification information of each target database server to a message center server;
and the receiving processing module is used for receiving the file analysis result sent by the message center server and correspondingly storing the analysis result and the first identification information according to the first identification information of the target database server carried in the file analysis result.
14. The apparatus of claim 13, wherein the receiving processing module is specifically configured to, for the analysis result corresponding to each target database server, obtain a pre-configured storage location corresponding to the target database server, and store the analysis result in the storage location.
15. The apparatus according to claim 14, wherein the sending processing module is further configured to send a post-analysis task trigger message to the message center server if it is recognized that each analysis result corresponding to the file is a successful analysis, where the post-analysis task trigger message carries the first identification information of at least one target database server.
16. The apparatus according to claim 15, wherein the receiving processing module is further configured to receive a processing result sent by a message center server, where the processing result carries first identification information of a target database; and correspondingly storing the processing result, the first identification information of the target database server corresponding to the processing result and the analysis result corresponding to the target database server.
17. The apparatus of claim 13, wherein the determining module is further configured to determine a target file type of the file according to a name of the file.
18. An electronic device, characterized in that the electronic device comprises a processor for implementing the steps of the file processing method according to any one of claims 8-12 when executing a computer program stored in a memory.
19. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the file processing method according to any one of claims 8 to 12.
20. A computer program product, the computer program product comprising: computer program code for causing a computer to carry out the steps of the file processing method as claimed in any one of the preceding claims 8-12 when said computer program code is run on a computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111533225.XA CN114201454A (en) | 2021-12-15 | 2021-12-15 | File processing system, method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111533225.XA CN114201454A (en) | 2021-12-15 | 2021-12-15 | File processing system, method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114201454A true CN114201454A (en) | 2022-03-18 |
Family
ID=80653861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111533225.XA Pending CN114201454A (en) | 2021-12-15 | 2021-12-15 | File processing system, method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114201454A (en) |
-
2021
- 2021-12-15 CN CN202111533225.XA patent/CN114201454A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106020948B (en) | A kind of process dispatch method and device | |
CN110856126B (en) | Information reporting and receiving method, terminal equipment and storage medium | |
CN105488223B (en) | Method and system for analyzing and subscribing business data events | |
CN111314172A (en) | Data processing method, device and equipment based on block chain and storage medium | |
CN111598575A (en) | Business process control method and device, electronic equipment and readable storage medium | |
CN111988429A (en) | Algorithm scheduling method and system | |
CN109714214B (en) | Server exception handling method and management equipment | |
CN116016653A (en) | Information pushing method and device of blockchain, electronic equipment and storage medium | |
CN115827084A (en) | Data processing method, device, equipment and storage medium | |
CN109327499B (en) | Service interface management method and device, storage medium and terminal | |
CN114022183A (en) | Advertisement information attribution method, system, equipment and storage medium | |
CN113360210A (en) | Data reconciliation method and device, computer equipment and storage medium | |
CN112667631A (en) | Method, device and equipment for automatically editing service field and storage medium | |
CN111722994A (en) | Task request response method and device | |
CN114201454A (en) | File processing system, method, device, equipment and medium | |
CN111522881A (en) | Service data processing method, device, server and storage medium | |
CN107277108B (en) | Method, device and system for processing messages at nodes of block chain | |
CN115617555A (en) | Information processing system and method | |
CN111198986B (en) | Information transmission method, device, electronic equipment and storage medium | |
CN112764897B (en) | Task request processing method, device and system and computer readable storage medium | |
CN115242872A (en) | Data processing method and device, computer equipment and readable storage medium | |
CN113326407A (en) | Data processing method and device | |
CN112580344A (en) | Information supervision method, device, equipment, storage medium and program product | |
CN115018509A (en) | Object processing method and device, electronic equipment and storage medium | |
CN107678928B (en) | Application program processing method and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |