A file download forwarding method using a file download forwarding intelligent system

By automating the control of the file download module, the distributed timed file processing module, and the file forwarding module, the problem of incompleteness during the file download process is solved, thereby improving file integrity and reliability and ensuring data consistency and reliability.

CN116614494BActive Publication Date: 2025-11-28BEIJING YILIANDA BUSINESS SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310588295.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2025-11-28
Estimated Expiration
2043-05-24

AI Technical Summary

Technical Problem

During file downloads, as the connection between the sender and receiver becomes more chaotic and complex, file incompleteness increases the risk to data integrity. In particular, file forwarding may result in incomplete data, affecting the processing of downstream systems and the integrity of accounting information.

Method used

The system employs a file download module, a distributed timed file processing module, and a file forwarding module, combined with scheduled tasks and distributed queues. It records file status through a database table to ensure file integrity and displays file status and processing progress on a human-computer interaction interface, thereby achieving automated file download and forwarding.

Benefits of technology

It improves the reliability and efficiency of file download and forwarding, ensures file integrity, reduces the risk of incomplete or missing files, and enhances data consistency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004244241780000011
    Figure HDA0004244241780000011
  • Figure HDA0004244241780000021
    Figure HDA0004244241780000021
  • Figure HDA0004244241780000031
    Figure HDA0004244241780000031
Patent Text Reader

Abstract

The application discloses a kind of file download forwarding intelligent system and method, applied to the optimization of file integrity, reliability and processing efficiency of file download, forwarding strategy between computer application system.File download module sends folder specified by sender regularly to obtain file list information, stores file into local, avoids repeated file fetching, and records into database;Distributed file processing module regularly carries out consistency check on the size of local file and corresponding database table record, confirms whether file has been received, or whether it needs to be downloaded again, forms characteristic parameter record into database;File forwarding module completes file forwarding operation according to characteristic parameter;Statistical alarm module carries out file sending quantity and sending time length statistics, and alarms the file that multiple download, sending fails.The application can improve the reliability and sending efficiency of file download forwarding strategy.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of file download and forwarding, in particular to a file download forwarding intelligent system and method. BACKGROUND

[0002] The file download forwarding strategy is an optimization method for file sending subjects and file receiving objects to control file download, which can control the sending and receiving relationship and file integrity between the file sending party and the file receiving party in the system.

[0003] Precise control and authorization is the original intention and purpose of the file download strategy, which is an important method to avoid incomplete download of the file receiving party receiving incomplete files from the file sending party.

[0004] In the case of less information file sending party resources, the management personnel can still check one by one manually to ensure the integrity of the files received by the file receiving party. However, with the continuous development of business, the number of file sending and receiving between the sending party and the receiving party gradually increases, and the connection relationship between the sending party and the receiving party will inevitably become chaotic and repeated over time. Generally, with the passage of time, the sending party and the receiving party gradually expand, and the complexity of the access relationship will inevitably cause a situation where a file receiving party does not download a file, and another program of the file receiving party forwards the file, and the data risk brought by the file integrity gradually increases. This chaotic connection relationship gradually magnifies, directly causing the file receiving party to download the file from the file sending party specified file path for subsequent processing, resulting in incomplete files, especially files to be forwarded to the downstream system for processing, incomplete data may cause incomplete information, and file missing risk becomes inevitable. Therefore, reducing the file download failure risk and judging whether the file is placed is a problem that the file sending party and the file receiving party must consider and face.

[0005] In summary, file download incompleteness occurs in the application program field, which is a problem that needs to be solved in the field. SUMMARY

[0006] In view of the deficiencies of the prior art, the present application aims to provide a file download forwarding intelligent system and method.

[0007] In order to achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0008] A file download forwarding intelligent system, comprising a file download module, a distributed timing file processing module and a file forwarding module;

[0009] The file download module is configured to receive the file provided by the sender, store the received file in the local according to the date, and record the relevant information of the file into the database; the file download module adopts the file download mode of the timing task and the distributed queue, according to the timing download scheduling task time configured by the user, uses the download program to automatically obtain the file information under the folder specified by the sender, then according to the traversed file information, stores the file under the folder specified by the sender into the local, and compares with the record of the local database table to avoid repeated reading of the stored file; the file download module records the file information of the file under the folder specified by the sender into the database, and the file information of the file includes the file name, the file path, the file format, the new time, the file size and the file state;

[0010] The distributed timing file processing module is configured to traverse the local file according to the timing processing scheduling task configured by the user, read the information of the local file, compare with the file information recorded in the database table, if the file size of the local file is consistent with the corresponding file size recorded in the database table, it indicates that the file has been downloaded, the file state of the corresponding record in the database table is modified to downloaded; if the file size of the local file is inconsistent with the corresponding file size recorded in the database table, it indicates that the file has not been downloaded, the file state of the corresponding record in the database table is modified to not completed, and recorded into the database;

[0011] The file forwarding module is configured to start the forwarding program according to the timing forwarding scheduling task configured by the user, and forward the file with the state of downloaded to the specified downstream system.

[0012] Further, the statistical alarm module is configured to display the file receiving condition, the file processing condition, the file forwarding condition and the time length of the file receiving, processing and forwarding on the man-machine interface.

[0013] The application also provides a file download forwarding method using the above system, and the specific process is as follows:

[0014] The user pre-configures the timing download scheduling task through the man-machine interface, and the file download module starts the download program to traverse the folder specified by the sender according to the timing download scheduling task configured by the user, compares each file traversed with the record in the local database table, if the information of the current file already exists in the record of the database table, the file is skipped, and the next file is continued to be traversed; when the information of the current file traversed does not exist in the record of the database table, the file information of the current file is added into the database table, and the file information includes the file name, the file path, the file format, the new time, the file size and the file state;

[0015] The user pre-configures a timing processing scheduling task through a man-machine interface, and a distributed timing file processing module traverses records of a database table according to the timing processing scheduling task configured by the user, checks file size information recorded in a record with an actual file size of a corresponding file in a local folder, and modifies a file state of the corresponding record in the database table.

[0016] If the file sizes are consistent, it indicates that the file has been completely downloaded from a sender's specified folder to the local folder, and the distributed timing file processing module modifies the file state of the corresponding record in the database table to downloaded.

[0017] The file download module downloads the corresponding file from the sender's specified folder to the local folder according to the record with the file state of unfinished in the database table at the next timing download scheduling task execution, and modifies the file state of the corresponding record in the database table to unconfirmed.

[0018] The file forwarding module sends the file with the file state of downloaded in the database table to a downstream system according to a timing forwarding scheduling task pre-configured by the user, and modifies the file state of the corresponding record in the database table to sent after successful sending.

[0019] Further, the forwarding program modifies the file state of the corresponding record in the database table to sending failure if the forwarding program throws an exception.

[0020] Further, the download program modifies the file state of the corresponding record in the database table to download failure if the download program throws an exception.

[0021] Further, when the file download fails, the download program modifies the record in the database table to download failure, and the file download module continues to download the corresponding file from the sender's specified folder at the next timing download scheduling task execution.

[0022] Further, when the sending fails, the forwarding program modifies the file state of the corresponding record in the database table to sending failure, and the file forwarding module re-sends the corresponding file from the local folder to the downstream system at the next timing forwarding scheduling task execution.

[0023] Further, the statistical alarm module adopts a grouping display manner to group and display file states of files with file states of undownloaded, unconfirmed, unfinished, downloaded, sent, download failure, and sending failure, and alarms the file information of download failure and sending failure.

[0024] The present application has the advantage that the integrity and consistency of file receiving of the data requester and the data receiver in the file download forwarding process can be realized, and the reliability and sending efficiency of the file download forwarding strategy can be improved. BRIEF DESCRIPTION OF DRAWINGS

[0025] Figure 1 FIG. 1 is a structural schematic diagram of a system in Embodiment 1 of the present application;

[0026] Figure 2 FIG. 2 is a flowchart of file download in Embodiment 2 of the present application;

[0027] Figure 3 FIG. 3 is a flowchart of file processing in Embodiment 2 of the present application. DETAILED DESCRIPTION

[0028] The present application will be further described below in conjunction with the accompanying drawings. It should be noted that the present embodiment is based on the technical solution, and gives a detailed implementation and specific operation process, but the protection scope of the present application is not limited to the present embodiment.

[0029] Embodiment 1

[0030] The present embodiment provides a file download forwarding intelligent system, as shown in FIG. 1, which comprises a file download module 210, a distributed timing file processing module 220, a file forwarding module 230 and a statistical alarm module 240. Figure 1

[0031] The file download module is used for receiving the file provided by the sender, storing the received file in the local according to the date, and recording the related information of the file into the database.

[0032] In the present embodiment, the file download module adopts the file download mode of timing task and distributed queue, according to the timing download scheduling task time configured by the user, uses the download program to automatically obtain the file information under the file folder specified by the sender, then stores the file under the file folder specified by the sender into the local according to the traversed file information, and compares with the record of the local database table to avoid repeated reading of the stored file.

[0033] In the present embodiment, the file download module records the file information of the file under the file folder specified by the sender into the database, and the file information of the file includes the file name, file path, file format, new time, file size and file state, etc.

[0034] ​The distributed timing file processing module is configured to traverse the local file according to the timing processing scheduling task configured by the user, read the information of the local file, compare the information of the local file with the recorded file information in the database table, if the file size of the local file is consistent with the corresponding file size recorded in the database table, it indicates that the file has completed the download, and the file state of the corresponding record in the database table is modified to downloaded. If the file size of the local file is inconsistent with the corresponding file size recorded in the database table, it indicates that the file has not completed the download, and the file state of the corresponding record in the database table is modified to not completed, and recorded in the database.

[0035] The file forwarding module is configured to initiate the forwarding program according to the timing forwarding scheduling task configured by the user, and forward the file with the file state of downloaded to the specified downstream system.

[0036] The statistical alarm module is configured to display the file receiving condition, file processing condition, file forwarding condition, and time length of file receiving, processing and forwarding on the man-machine interface.

[0037] Embodiment 2

[0038] The embodiment provides a file download forwarding method of the system in Embodiment 1, and the specific process is as follows:

[0039] As shown in Figure 2 , the user pre-configures the timing download scheduling task through the man-machine interface, and the file download module initiates the download program to traverse the folder specified by the sender according to the timing download scheduling task configured by the user, compares each file traversed with the record in the local database table, if the information of the current file already exists in the record of the database table, the file is skipped, and the next file is traversed; when the information of the current file traversed does not exist in the record of the database table, the file information of the current file is added to the database table, and the file information includes the file name, file path, file format, addition time, file size and file state.

[0040] It should be noted that the file size is a key field for subsequent comparison, and the file state includes states such as not downloaded, not confirmed, not completed, downloaded, sent, download failed, and sending failed. When the file information is added to the database table for the first time, the file state is not downloaded, then the file is stored in the local folder according to the date, and the file state is modified to not confirmed. Whether the downstream system is one or more, the file will only save one copy locally.

[0041] As shown in Figure 3As shown, the user also configures a timing processing scheduling task in advance through the man-machine interactive interface, and the distributed timing file processing module traverses the records of the database table according to the timing processing scheduling task configured by the user, checks the file size information recorded in the record with the actual file size of the corresponding file in the local folder, and modifies the file state of the corresponding record in the database table.

[0042] If the file sizes are consistent, it indicates that the file has been completely downloaded from the sender's specified folder to the local folder, and at this time, the distributed timing file processing module modifies the file state of the corresponding record in the database table to downloaded. If the file sizes are inconsistent, it indicates that the file has not been completely downloaded from the sender's specified folder to the local folder, and at this time, the distributed timing file processing module modifies the file state of the corresponding record in the database table to incomplete.

[0043] The file download module will download the corresponding file from the sender's specified folder to the local folder according to the record with the file state of incomplete in the database table at the next timing download scheduling task execution, and modify the file state of the corresponding record in the database table to unconfirmed.

[0044] The file forwarding module calls the forwarding program according to the timing forwarding scheduling task configured by the user in advance, sends the file with the file state of downloaded in the database table to the downstream system, and modifies the file state of the corresponding record in the database table to sent after successful sending.

[0045] In this embodiment, if the forwarding program throws an exception, the forwarding program modifies the file state of the corresponding record in the database table to sending failure.

[0046] In this embodiment, if the download program throws an exception, the download program modifies the file state of the corresponding record in the database table to download failure.

[0047] Specifically, in this embodiment, when the file download fails, the download program modifies the database table record to download failure, and the file download module will continue to download the file corresponding to the record from the sender's specified folder at the next timing download scheduling task execution.

[0048] Specifically, in this embodiment, when the sending fails, the forwarding program modifies the file state of the corresponding record in the database table to sending failure, and the file forwarding module will resend the file corresponding to the record from the local folder to the downstream system at the next timing forwarding scheduling task execution.

[0049] The statistical alarm module is used to display the file receiving situation, file processing situation, file forwarding situation, time length of file receiving, processing and forwarding, etc. on the man-machine interactive interface.

[0050] More specifically, the statistical alarm module groups the file states of the files in the un-downloaded, un-confirmed, un-completed, downloaded, sent, download failed, and sending failed states, and alarms the information of the files in the download failed and sending failed states.

[0051] For those skilled in the art, various corresponding changes and modifications can be made according to the above technical solutions and concepts, and all these changes and modifications should be included in the protection scope of the claims of the present application.

Claims

1. A file download and forwarding method utilizing an intelligent file download and forwarding system, characterized in that, The intelligent file download and forwarding system includes a file download module, a distributed timed file processing module, and a file forwarding module. The file download module receives files from the sender, categorizes and stores the received files locally by date, and records the relevant file information in the database. The file download module uses a scheduled task and distributed queue file download method. According to the time of the scheduled download task configured by the user, the download program automatically obtains the file information in the folder specified by the sender, and then stores the files in the folder specified by the sender locally based on the traversed file information. By comparing with the records in the local database table, it avoids reading files that have already been stored. The file download module records the file information of the files in the specified folder of the sender into the database. The file information includes the file name, file path, file format, creation time, file size and file status. The distributed timed file processing module is used to periodically traverse local files according to the user-configured timed processing schedule task, read the information of the local files, and compare it with the file information recorded in the database table. If the file size of the local file is the same as the file size recorded in the database table, it means that the file has been downloaded, and the file status of the corresponding record in the database table is changed to downloaded; if the file size of the local file is different from the file size recorded in the database table, it means that the file has not been downloaded, and the file status of the corresponding record in the database table is changed to incomplete and recorded in the database. The file forwarding module is used to periodically launch the forwarding program according to the user-configured timed forwarding schedule task, and forward files with a downloaded status to the specified downstream system; The specific process of the method is as follows: Users pre-configure scheduled download tasks through a human-computer interaction interface. The file download module, based on the user-configured scheduled download tasks, initiates a download program to traverse the folder specified by the sender. Each file encountered is compared with a record in a local database table. If the information of the current file already exists in the database table, the file is skipped, and the process continues to the next file. If the information of the current file does not exist in the database table, the file information of the current file is added to the database table. The file information includes the file name, file path, file format, addition time, file size, and file status. Users pre-configure scheduled processing tasks through the human-computer interaction interface. The distributed scheduled file processing module periodically traverses the records in the database table according to the user-configured scheduled processing tasks, and verifies the file size information recorded in the records of files with an unconfirmed file status in the database table with the actual file size of the corresponding file in the local folder. If the file sizes are the same, it means that the file has been completely downloaded from the sender's specified folder to the local folder. In this case, the distributed timed file processing module will change the file status of the corresponding record in the database table to "downloaded". If the file sizes are different, it means that the file has not been completely downloaded from the sender's specified folder to the local folder. In this case, the distributed timed file processing module will change the file status of the corresponding record in the database table to "incomplete". The file download module will download the corresponding file from the sender's specified folder to the local folder based on the records in the database table where the file status is incomplete when the next scheduled download task is executed, and change the file status of the corresponding record in the database table to unconfirmed. The file forwarding module calls the forwarding program according to the user's pre-configured timed forwarding schedule task, sends the files whose file status in the database table is "downloaded" to the downstream system, and after successful transmission, modifies the file status of the corresponding record in the database table to "sent".

2. The method according to claim 1, characterized in that, It includes a statistics and alarm module, which is used to display file reception status, file processing status, file forwarding status, and the time taken for file reception, processing, and forwarding on the human-computer interaction interface.

3. The method according to claim 1, characterized in that, If the forwarding program throws an exception, it will change the file status of the corresponding record in the database table to "send failed".

4. The method according to claim 1, characterized in that, If the downloader throws an exception, it will change the file status of the corresponding record in the database table to "download failed".

5. The method according to claim 4, characterized in that, When a file download fails, the download program modifies the database table record to indicate that the download failed. The file download module will then resume downloading the file corresponding to that record from the sender's specified folder during the next scheduled download task.

6. The method according to claim 3, characterized in that, When a transmission failure occurs, the forwarding program modifies the file status of the corresponding record in the database table to "transmission failed". The file forwarding module will then resend the file corresponding to that record from the local folder to the downstream system during the next scheduled forwarding task.

7. The method according to claim 2, characterized in that, The statistics and alarm module uses a grouped display method to group and display file statuses as follows: not downloaded, unconfirmed, incomplete, downloaded, sent, failed to download, and failed to send. Alarms are issued for files that failed to download or failed to send.

Citation Information

Patent Citations

  • Method, device and system for downloading file

    CN101873355A

  • File synchronization method, service system, electronic equipment and storage medium

    CN114942915A