CN105335186B - Data downloading management method and system - Google Patents

Data downloading management method and system Download PDF

Info

Publication number
CN105335186B
CN105335186B CN201410392153.5A CN201410392153A CN105335186B CN 105335186 B CN105335186 B CN 105335186B CN 201410392153 A CN201410392153 A CN 201410392153A CN 105335186 B CN105335186 B CN 105335186B
Authority
CN
China
Prior art keywords
task
downloading
download
request
folder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410392153.5A
Other languages
Chinese (zh)
Other versions
CN105335186A (en
Inventor
孙子荀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410392153.5A priority Critical patent/CN105335186B/en
Publication of CN105335186A publication Critical patent/CN105335186A/en
Application granted granted Critical
Publication of CN105335186B publication Critical patent/CN105335186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data download management method, which comprises the following steps: when a downloading request is received, acquiring downloading task identifiers corresponding to the downloading request one by one according to a preset configuration rule; creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier; and establishing a corresponding downloading task according to the downloading request, and storing the file generated during downloading into the downloading folder. The invention also discloses a data downloading management system. The invention reduces the operation difficulty of downloading.

Description

Data downloading management method and system
Technical Field
The invention relates to the technical field of computers, in particular to a data downloading management method and a data downloading management system.
Background
As is known, the existing Linux, Unix operating system provides a simple downloading tool wget, which can complete simple URL downloading, and during the downloading process, files generated by downloading are usually stored in a preset directory. When the downloaded file name is the same as the file name under the preset directory, the user needs to sort the files of the preset directory to perform corresponding downloading, so that the downloading operation difficulty is high.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a data downloading management method and a data downloading management system, and aims to reduce the downloading operation difficulty.
In order to achieve the above object, an embodiment of the present invention provides a data download management method, including the following steps:
when a downloading request is received, acquiring downloading task identifiers corresponding to the downloading request one by one according to a preset configuration rule;
creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier;
and establishing a corresponding downloading task according to the downloading request, and storing the file generated during downloading into the downloading folder.
Further, an embodiment of the present invention further provides a data download management system, including:
the first acquisition module is used for acquiring downloading task identifiers corresponding to the downloading requests one by one according to a preset configuration rule when the downloading requests are received;
the file creating module is used for creating a downloading folder under a preset directory according to the downloading task identifier, and the file name of the downloading folder comprises the downloading task identifier;
and the first processing module is used for establishing a corresponding downloading task according to the downloading request and storing the file generated during downloading into the downloading folder.
According to the method, when a downloading request is received, downloading task identifiers corresponding to the downloading request one by one are obtained according to a preset configuration rule; creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier; and establishing a corresponding downloading task according to the downloading request, and storing the file generated during downloading into the downloading folder, thereby realizing the downloading of the file. Because the download folder is newly built in the preset download directory in the file downloading process, and the file name of the download folder comprises the download task identifier, the names of the download folders are different, the download directory needs to be sorted when the same file is not required to be downloaded, and the downloading operation difficulty is reduced.
Drawings
FIG. 1 is a diagram of a hardware architecture of a first embodiment of a data download management system according to the present invention;
FIG. 2 is a functional block diagram of a data download management system according to a second embodiment of the present invention;
FIG. 3 is a functional block diagram of a data download management system according to a third embodiment of the present invention;
FIG. 4 is a functional block diagram of a data download management system according to a fourth embodiment of the present invention;
FIG. 5 is a functional block diagram of a fifth embodiment of a data download management system according to the present invention;
FIG. 6 is a functional block diagram of a data download management system according to a sixth embodiment of the present invention;
FIG. 7 is a flowchart illustrating a first embodiment of a data download management method according to the present invention;
FIG. 8 is a flowchart illustrating a second embodiment of a data download management method according to the present invention;
FIG. 9 is a flowchart illustrating a data download management method according to a third embodiment of the present invention;
FIG. 10 is a flowchart illustrating a data download management method according to a fourth embodiment of the present invention;
fig. 11 is a flowchart illustrating a fifth embodiment of a data download management method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical scheme of the invention is further explained by combining the drawings and the specific embodiments in the specification. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a data downloading management system. Referring to fig. 1, the data download management system of this embodiment includes: a processor 111, a memory 112, a user interface 113, a network interface 114, and a communication bus 115. The communication bus 115 is used for communication among the components of the data server, and the user interface 113 is used for receiving information input by a user, and may be a wired interface or a wireless interface, such as a keyboard, a mouse, and the like. The network interface 114 is used for the data server to communicate with the outside, and the network interface 114 may also include a wired interface and a wireless interface. Memory 112 may include one or more computer-readable storage media, and includes not only internal memory, but also external memory. The memory stores an operating system, a data download management application program, and the like. The processor 111 is configured to invoke the data download management application in the memory 112 to perform the following operations:
receiving a download request input by a user through the network interface 104;
when a downloading request is received, acquiring downloading task identifiers corresponding to the downloading request one by one according to a preset configuration rule;
creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier;
and establishing a corresponding downloading task according to the downloading request, and storing the file generated during downloading into the downloading folder.
Further, the processor 111 is also configured to call the data download management application program in the memory 112 to perform the following operations:
scanning a downloading task identifier corresponding to the downloading folder under the preset directory;
acquiring task process information corresponding to the downloading task identifier; the task process information comprises a process ID and a task process state;
establishing a downloading task list according to the position information of the downloading folder corresponding to the downloading task identifier and the corresponding task process information;
and displaying the downloading task list.
Further, the processor 111 is also configured to call the data download management application program in the memory 112 to perform the following operations:
when a pause operation instruction input by a user on the download task list is received, generating a pause task request according to a to-be-paused download task process selected by the user, wherein the pause task request comprises a process ID of the to-be-paused download task process;
and outputting a process canceling instruction according to the task suspending request and the process ID so as to cancel the operation of the process corresponding to the process ID.
Further, the processor 111 is also configured to call the data download management application program in the memory 112 to perform the following operations:
when a recovery operation instruction input by a user on the download task list is received, generating a recovery task request according to a to-be-recovered download task process selected by the user, wherein the recovery task request comprises a download task identifier of the to-be-recovered download task process and position information of a download folder corresponding to the download task identifier;
acquiring the output recording file according to the recovery task request and the position information of the download folder;
acquiring downloading information of the downloading task to be recovered according to the recording file;
and continuously creating a new downloading task according to the downloading information in a breakpoint continuous transmission mode so as to restore downloading.
Further, the processor 111 is also configured to call the data download management application program in the memory 112 to perform the following operations:
when a deletion operation instruction input by a user on the download task list is received, a task deletion request is generated according to the download task process to be deleted selected by the user, wherein the task deletion request comprises the process ID of the download task process to be deleted and the position information of the corresponding download folder;
outputting a process canceling instruction according to the task deleting request and the process ID so as to cancel the operation of the process corresponding to the process ID; and deleting the download folder according to the position information of the download folder.
According to the method, when a downloading request is received, downloading task identifiers corresponding to the downloading request one by one are obtained according to a preset configuration rule; creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier; and establishing a corresponding downloading task according to the downloading request, and storing the file generated during downloading into the downloading folder, thereby realizing the downloading of the file. Because the download folder is newly built in the preset download directory in the file downloading process, and the file name of the download folder comprises the download task identifier, the names of the download folders are different, the download directory needs to be sorted when the same file is not required to be downloaded, and the downloading operation difficulty is reduced.
Referring to fig. 2, a second embodiment of a data download management system is provided, in this embodiment, the data download management system includes:
a first obtaining module 211, configured to, when a download request is received, obtain, according to a preset configuration rule, a download task identifier corresponding to the download request one to one;
the data download management system provided by the embodiment is mainly applied to Unix and Linux systems and is used for carrying out data download management on the single task download software wget carried by the system. when receiving the downloading request, the wget calculates and obtains a downloading task identifier corresponding to the current downloading request according to a preset configuration rule; it should be noted that each download request corresponds to a download task, and the download task identifier is a unique identifier ID of the download task. It should be noted that the download task identifier is composed of a random positive integer assigned by the system and a time stamp when the download request is received. Specifically, the number of bits of the randomly allocated random positive integer and the number of bits of the timestamp in the download task identifier may be set according to actual needs, for example, the randomly allocated random positive integer may be 5 bits, and the timestamp in the download task identifier is 4 bits after the timestamp when the download request is received; when the random positive integer is 58455, the download task is labeled 584551232 when the last 4 bits 1232 of the timestamp. It will be appreciated that in other embodiments, the download task identifier may be set in other manners, such as by adding a preset increment to a timestamp of when the download request was received.
A file creating module 212, configured to create a download folder in a preset directory according to the download task identifier, where a file name of the download folder includes the download task identifier;
the preset directory is a directory used for storing downloaded files, such as/down _ load/, when the download request is received, a new download folder is created under the directory (/ down _ load /), and the download task identifier is used as the file name of the download folder, so that a directory with the directory name (/ down _ load/download task identifier) is obtained.
The first processing module 213 is configured to establish a corresponding downloading task according to the downloading request, and store a file generated during downloading into the downloading folder.
The file generated by downloading includes a download package transmitted by the download server and an output record file generated by the system, and specifically, the first processing module 213 is specifically configured to store the download package generated during downloading into the download folder after establishing a corresponding download task according to the download request, and redirect the output record file generated during downloading into the download folder. For example, after receiving the download request, the wget establishes a download task according to the download request, and stores the downloaded download package in a directory with a directory name (/ down _ load/download task identifier), that is, stores the download package in a download folder. And meanwhile, the recording files generated by the system are redirected to the directory with the directory name (/ down _ load/download task identifier), namely, the recording files are stored under the download folder.
According to the method, when a downloading request is received, downloading task identifiers corresponding to the downloading request one by one are obtained according to a preset configuration rule; creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier; and establishing a corresponding downloading task according to the downloading request, and storing the file generated during downloading into the downloading folder, thereby realizing the downloading of the file. Because the download folder is newly built in the preset download directory in the file downloading process, and the file name of the download folder comprises the download task identifier, the names of the download folders are different, the download directory needs to be sorted when the same file is not required to be downloaded, and the downloading operation difficulty is reduced.
Further, referring to fig. 3, a third embodiment of the data download management system of the present invention is provided, and based on the above embodiment, in this embodiment, the data download management system further includes:
the scanning module 214 is configured to scan a download task identifier corresponding to the download folder in the preset directory;
a second obtaining module 215, configured to obtain task process information corresponding to the download task identifier; the task process information comprises a process ID and a task process state;
the table building module 216 is configured to build a download task list according to the location information of the download folder corresponding to the download task identifier and the corresponding task process information;
a display module 217, configured to display the download task list.
Specifically, the user can manually pull the task list or the system can automatically pull the task list; when the task list is pulled, scanning all the first-level subdirectories under the preset directory to obtain the file names of the downloading folders, and obtaining the corresponding downloading task identifiers according to the file names. Searching corresponding task process ID, task process state and position information of a download folder according to the acquired download task identifier; the task process state is completed, suspended or in-progress, and when the task process state is in-progress, the current downloading speed is acquired and displayed in real time; the location information is the download folder corresponding directory (/ down _ load/download task id). And finally, establishing a task list with a mapping relation by the process ID, the task process state and the position information of the download folder. In the embodiment, the download task list is displayed by pulling the task list operation, so that the current state of each download task process is displayed to a user for the user to perform corresponding operation, and therefore, the data download management system provided by the embodiment is more convenient for the user to manage the download task processes; and the centralized management of the download task of the wget is realized.
It is understood that the management operation of the download task process specifically includes pausing, resuming and deleting the download task process, which will be described in detail below.
Referring to fig. 4, based on the foregoing embodiment, in this embodiment, the data download management system further includes:
a pause request generating module 218, configured to, when a pause operation instruction input by a user on the download task list is received, generate a pause task request according to a to-be-paused download task process selected by the user, where the pause task request includes a process ID of the to-be-paused download task process;
the second processing module 219 is configured to output a cancel process instruction according to the pause task request and the process ID, so as to cancel the running of the process corresponding to the process ID.
The download task list comprises the process ID, the process state and the position information corresponding to the download folder of each download task process. The user can select one or more downloading task processes and input a pause operation instruction. For example, the download task process to be suspended can be selected in the download list through the left button of the single mouse, and then the single right button outputs instruction options, wherein the instruction options comprise a suspension operation instruction, a recovery operation instruction and a deletion operation instruction. When a user inputs a pause operation instruction, acquiring a process ID corresponding to a download task process currently selected by the user, and generating a pause task request according to the process ID; and outputting a process canceling instruction according to the pause task request and the process ID in the pause task request so as to cancel the running of the processes corresponding to all the process IDs in the task request.
Referring to fig. 5, based on the foregoing embodiment, in this embodiment, the data download management system further includes:
a recovery request generating module 220, configured to generate a recovery task request according to a to-be-recovered download task process selected by a user when a recovery operation instruction input by the user on the download task list is received, where the recovery task request includes a download task identifier of the to-be-recovered download task process and location information of a download folder corresponding to the download task identifier;
a third obtaining module 221, configured to obtain the output record file according to the resume task request and the location information of the download folder;
an analysis module 222, configured to obtain, according to the record file, downloading information of the to-be-recovered downloading task;
and the third processing module 223 is configured to continue to create a new downloading task according to the downloading information in a breakpoint resuming manner, so as to resume downloading.
The download task list comprises the process ID, the process state and the position information corresponding to the download folder of each download task process. The user may select one or more of the suspended download task processes and input a resume operation instruction. For example, the download task process needing to be resumed can be selected in the download list through the left button of the single mouse, and then the single right button outputs instruction options, wherein the instruction options comprise a pause operation instruction, a resume operation instruction and a delete operation instruction. When a user inputs a recovery operation instruction, acquiring a downloading task identifier corresponding to a downloading task process currently selected by the user and position information of a downloading folder corresponding to the downloading task identifier; and then acquiring output record files corresponding to all to-be-recovered download task processes according to the recovery task request and the position information of the download folder, and acquiring download information (the download information comprises a download link, download content, downloaded content and the like) in the output file records. And then, according to the obtained downloading information, a new downloading task is created by using a wget breakpoint resume function, so that downloading is resumed. Meanwhile, the output of the process corresponding to the new downloading task is input into the previous output record file in an additional writing mode.
Referring to fig. 6, based on the foregoing embodiment, in this embodiment, the data download management system further includes:
a delete request generating module 224, configured to, when a delete operation instruction input by a user on the download task list is received, generate a delete task request according to a to-be-deleted download task process selected by the user, where the delete task request includes a process ID of the to-be-deleted download task process and location information of a corresponding download folder;
a fourth processing module 225, configured to output a cancel process instruction according to the delete task request and the process ID, so as to cancel the running of the process corresponding to the process ID; and deleting the download folder according to the position information of the download folder.
The download task list comprises the process ID, the process state and the position information corresponding to the download folder of each download task process. The user can select one or more downloading task processes and input a deleting operation instruction. For example, the download task process to be deleted can be selected in the download list through the left button of the single mouse, and then the single right button outputs instruction options, wherein the instruction options comprise a pause operation instruction, a resume operation instruction and a delete operation instruction. When a user inputs a deletion operation instruction, acquiring a process ID corresponding to a downloading task process currently selected by the user and position information of a corresponding downloading folder, and generating a task deletion request according to the process ID and the position information of the corresponding downloading folder; outputting a process canceling instruction according to the task deleting request and the process IDs in the task deleting request so as to cancel the running of the processes corresponding to all the process IDs in the task requesting; and simultaneously deleting the corresponding download file according to the delete task request and the position information of the download folder in the delete task request.
The present invention further provides a data download management method, referring to fig. 7, the data download management method of this embodiment includes the following steps:
step S10, when a download request is received, acquiring download task identifiers corresponding to the download request one by one according to a preset configuration rule;
the data download management method provided by the embodiment is mainly applied to Unix and Linux systems and is used for carrying out data download management on the single task download software wget carried by the systems. when receiving the downloading request, the wget calculates and obtains a downloading task identifier corresponding to the current downloading request according to a preset configuration rule; it should be noted that each download request corresponds to a download task, and the download task identifier is a unique identifier ID of the download task. It should be noted that the download task identifier is composed of a random positive integer assigned by the system and a time stamp when the download request is received. Specifically, the number of bits of the randomly allocated random positive integer and the number of bits of the timestamp in the download task identifier may be set according to actual needs, for example, the randomly allocated random positive integer may be 5 bits, and the timestamp in the download task identifier is 4 bits after the timestamp when the download request is received; when the random positive integer is 58455, the download task is labeled 584551232 when the last 4 bits 1232 of the timestamp. It will be appreciated that in other embodiments, the download task identifier may be set in other manners, such as by adding a preset increment to a timestamp of when the download request was received.
Step S11, creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier;
the preset directory is a directory used for storing downloaded files, such as/down _ load/, when the download request is received, a new download folder is created under the directory (/ down _ load /), and the download task identifier is used as the file name of the download folder, so that a directory with the directory name (/ down _ load/download task identifier) is obtained.
Step S12, establishing a corresponding download task according to the download request, and storing the file generated during downloading into the download folder.
The file generated by downloading comprises a downloading package transmitted by a downloading server and an output recording file generated by a system, and specifically, after a corresponding downloading task is established according to the downloading request, the downloading package generated during downloading is stored in the downloading folder, and the output recording file generated during downloading is redirected to the downloading folder. For example, after receiving the download request, the wget establishes a download task according to the download request, and stores the downloaded download package in a directory with a directory name (/ down _ load/download task identifier), that is, stores the download package in a download folder. And meanwhile, the recording files generated by the system are redirected to the directory with the directory name (/ down _ load/download task identifier), namely, the recording files are stored under the download folder.
According to the method, when a downloading request is received, downloading task identifiers corresponding to the downloading request one by one are obtained according to a preset configuration rule; creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier; and establishing a corresponding downloading task according to the downloading request, and storing the file generated during downloading into the downloading folder, thereby realizing the downloading of the file. Because the download folder is newly built in the preset download directory in the file downloading process, and the file name of the download folder comprises the download task identifier, the names of the download folders are different, the download directory needs to be sorted when the same file is not required to be downloaded, and the downloading operation difficulty is reduced.
Further, referring to fig. 8, a second embodiment of the data download management method according to the present invention is provided, and based on the foregoing embodiment, in this embodiment, after step S12, the method further includes:
step S13, scanning the download task identification corresponding to the download folder under the preset directory;
step S14, acquiring task process information corresponding to the download task identifier; the task process information comprises a process ID and a task process state;
step S15, establishing a download task list according to the position information of the download folder corresponding to the download task identifier and the corresponding task process information;
and step S16, displaying the downloading task list.
Specifically, the user can manually pull the task list or the system can automatically pull the task list; when the task list is pulled, scanning all the first-level subdirectories under the preset directory to obtain the file names of the downloading folders, and obtaining the corresponding downloading task identifiers according to the file names. Searching corresponding task process ID, task process state and position information of a download folder according to the acquired download task identifier; the task process state is completed, suspended or in-progress, and when the task process state is in-progress, the current downloading speed is acquired and displayed in real time; the location information is the download folder corresponding directory (/ down _ load/download task id). And finally, establishing a task list with a mapping relation by the process ID, the task process state and the position information of the download folder. In the embodiment, the downloading task list is displayed by pulling the task list operation, so that the current state of each downloading task process is displayed to a user for the user to perform corresponding operation, and therefore, the data downloading management method provided by the embodiment is more convenient for the user to manage the downloading task process; and the centralized management of the download task of the wget is realized.
It is understood that the management operation of the download task process specifically includes pausing, resuming and deleting the download task process, which will be described in detail below.
Referring to fig. 9, based on the foregoing embodiment, in this embodiment, after step S16, the method further includes:
step S17, when a pause operation instruction input by a user on the download task list is received, generating a pause task request according to a to-be-paused download task process selected by the user, wherein the pause task request comprises a process ID of the to-be-paused download task process;
and step S18, outputting a cancel process instruction according to the process ID to cancel the operation of the process corresponding to the process ID.
The download task list comprises the process ID, the process state and the position information corresponding to the download folder of each download task process. The user can select one or more downloading task processes and input a pause operation instruction. For example, the download task process to be suspended can be selected in the download list through the left button of the single mouse, and then the single right button outputs instruction options, wherein the instruction options comprise a suspension operation instruction, a recovery operation instruction and a deletion operation instruction. When a user inputs a pause operation instruction, acquiring a process ID corresponding to a download task process currently selected by the user, and generating a pause task request according to the process ID; and outputting a process canceling instruction according to the pause task request and the process ID in the pause task request so as to cancel the running of the processes corresponding to all the process IDs in the task request.
Referring to fig. 10, based on the foregoing embodiment, in this embodiment, after step S16, the method further includes:
step S19, when receiving a recovery operation instruction input by a user on the download task list, generating a recovery task request according to a to-be-recovered download task process selected by the user, wherein the recovery task request comprises a download task identifier of the to-be-recovered download task process and position information of a download folder corresponding to the download task identifier;
step S20, acquiring the output recording file according to the recovery task request and the position information of the download folder;
step S21, obtaining the download information of the download task to be recovered according to the record file;
and step S22, continuing to create a new downloading task according to the downloading information in a breakpoint resuming mode so as to resume downloading.
The download task list comprises the process ID, the process state and the position information corresponding to the download folder of each download task process. The user may select one or more of the suspended download task processes and input a resume operation instruction. For example, the download task process needing to be resumed can be selected in the download list through the left button of the single mouse, and then the single right button outputs instruction options, wherein the instruction options comprise a pause operation instruction, a resume operation instruction and a delete operation instruction. When a user inputs a recovery operation instruction, acquiring a downloading task identifier corresponding to a downloading task process currently selected by the user and position information of a downloading folder corresponding to the downloading task identifier; and then acquiring output record files corresponding to all to-be-recovered download task processes according to the recovery task request and the position information of the download folder, and acquiring download information (the download information comprises a download link, download content, downloaded content and the like) in the output file records. And then, according to the obtained downloading information, a new downloading task is created by using a wget breakpoint resume function, so that downloading is resumed. Meanwhile, the output of the process corresponding to the new downloading task is input into the previous output record file in an additional writing mode.
Referring to fig. 11, based on the foregoing embodiment, in this embodiment, after step S16, the method further includes:
step S23, when a delete operation instruction input by a user on the download task list is received, a delete task request is generated according to the download task process to be deleted selected by the user, wherein the delete task request comprises the process ID of the download task process to be deleted and the position information of the corresponding download folder;
step S24, outputting a cancel process instruction according to the delete task request and the process ID to cancel the operation of the process corresponding to the process ID; and deleting the download folder according to the position information of the download folder.
The download task list comprises the process ID, the process state and the position information corresponding to the download folder of each download task process. The user can select one or more downloading task processes and input a deleting operation instruction. For example, the download task process to be deleted can be selected in the download list through the left button of the single mouse, and then the single right button outputs instruction options, wherein the instruction options comprise a pause operation instruction, a resume operation instruction and a delete operation instruction. When a user inputs a deletion operation instruction, acquiring a process ID corresponding to a downloading task process currently selected by the user and position information of a corresponding downloading folder, and generating a task deletion request according to the process ID and the position information of the corresponding downloading folder; outputting a process canceling instruction according to the task deleting request and the process IDs in the task deleting request so as to cancel the running of the processes corresponding to all the process IDs in the task requesting; and simultaneously deleting the corresponding download file according to the delete task request and the position information of the download folder in the delete task request.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes that can be directly or indirectly applied to other related technical fields using the contents of the present specification and the accompanying drawings are included in the scope of the present invention.

Claims (9)

1. A data download management method is characterized in that the method is applied to single task download software wget carried by Unix and Linux systems, and comprises the following steps:
when a downloading request is received, acquiring downloading task identifiers corresponding to the downloading request one by one according to a preset configuration rule, wherein the downloading task identifiers consist of random positive integers distributed by a system and a timestamp when the downloading request is received;
creating a download folder under a preset directory according to the download task identifier, wherein the file name of the download folder comprises the download task identifier;
establishing a corresponding downloading task according to the downloading request, and storing a file generated during downloading into the downloading folder, wherein the file generated during downloading comprises a downloading package transmitted by a downloading server and an output recording file generated by a system;
when the task list is pulled, scanning a downloading task identifier corresponding to a downloading folder under the preset directory;
acquiring task process information corresponding to the downloading task identifier; the task process information comprises a process ID and a task process state;
establishing a downloading task list according to the process ID, the task process state and the position information of the downloading folder;
displaying the downloading task list;
wherein, according to the download request, establishing a corresponding download task, and storing the file generated during downloading into the download folder comprises:
and establishing a corresponding downloading task according to the downloading request, storing a downloading package generated during downloading into the downloading folder, and storing an output recording file generated during downloading into the downloading folder.
2. The data download management method as claimed in claim 1, further comprising after displaying the download task list:
when a pause operation instruction input by a user on the download task list is received, generating a pause task request according to a to-be-paused download task process selected by the user, wherein the pause task request comprises a process ID of the to-be-paused download task process;
and outputting a process canceling instruction according to the task suspending request and the process ID so as to cancel the operation of the process corresponding to the process ID.
3. The data download management method as claimed in claim 1, further comprising after said displaying said download task list:
when a recovery operation instruction input by a user on the download task list is received, generating a recovery task request according to a to-be-recovered download task process selected by the user, wherein the recovery task request comprises a download task identifier of the to-be-recovered download task process and position information of a download folder corresponding to the download task identifier;
acquiring the output recording file according to the recovery task request and the position information of the download folder;
acquiring downloading information of the downloading task to be recovered according to the recording file;
and continuously creating a new downloading task according to the downloading information in a breakpoint continuous transmission mode so as to restore downloading.
4. The data download management method as claimed in claim 1, further comprising after said displaying said download task list:
when a deletion operation instruction input by a user on the download task list is received, a task deletion request is generated according to the download task process to be deleted selected by the user, wherein the task deletion request comprises the process ID of the download task process to be deleted and the position information of the corresponding download folder;
outputting a process canceling instruction according to the task deleting request and the process ID so as to cancel the operation of the process corresponding to the process ID; and deleting the download folder according to the position information of the download folder.
5. A data download management system, comprising:
the first acquisition module is used for acquiring downloading task identifiers which correspond to the downloading requests one by one according to a preset configuration rule when the downloading requests are received, wherein the downloading task identifiers consist of random positive integers distributed by a system and timestamps when the downloading requests are received;
the file creating module is used for creating a downloading folder under a preset directory according to the downloading task identifier, and the file name of the downloading folder comprises the downloading task identifier;
the first processing module is used for establishing a corresponding downloading task according to the downloading request and storing a file generated during downloading into the downloading folder, wherein the file generated during downloading comprises a downloading package transmitted by a downloading server and an output recording file generated by a system;
the scanning module is used for scanning a downloading task identifier corresponding to a downloading folder under the preset directory when the task list is pulled;
the second acquisition module is used for acquiring the task process information corresponding to the download task identifier; the task process information comprises a process ID and a task process state;
the table building module is used for building a downloading task list according to the position information of the downloading folder corresponding to the downloading task identifier and the corresponding task process information;
the display module is used for displaying the downloading task list;
wherein the processing module is specifically configured to:
and establishing a corresponding downloading task according to the downloading request, storing a downloading package generated during downloading into the downloading folder, and storing an output recording file generated during downloading into the downloading folder.
6. The data download management system as in claim 5, further comprising:
the suspension request generating module is used for generating a suspension task request according to a to-be-suspended download task process selected by a user when a suspension operation instruction input by the user on the download task list is received, wherein the suspension task request comprises a process ID of the to-be-suspended download task process;
and the second processing module is used for outputting a process canceling instruction according to the task suspending request and the process ID so as to cancel the operation of the process corresponding to the process ID.
7. The data download management system as in claim 5, further comprising:
a recovery request generating module, configured to generate a recovery task request according to a to-be-recovered download task process selected by a user when a recovery operation instruction input by the user on the download task list is received, where the recovery task request includes a download task identifier of the to-be-recovered download task process and location information of a download folder corresponding to the download task identifier;
a third obtaining module, configured to obtain the output record file according to the resume task request and the location information of the download folder;
the analysis module is used for obtaining the downloading information of the downloading task to be recovered according to the record file;
and the third processing module is used for continuously creating a new downloading task according to the downloading information in a breakpoint continuous transmission mode so as to restore downloading.
8. The data download management system as in claim 5, further comprising:
the system comprises a downloading task list generation module, a deletion request generation module and a deletion request generation module, wherein the downloading task list generation module is used for generating a task deletion request according to a downloading task process to be deleted selected by a user when a deletion operation instruction input by the user on the downloading task list is received, and the task deletion request comprises a process ID of the downloading task process to be deleted and position information of a corresponding downloading folder;
the fourth processing module is used for outputting a process canceling instruction according to the task deleting request and the process ID so as to cancel the operation of the process corresponding to the process ID; and deleting the download folder according to the position information of the download folder.
9. A computer-readable storage medium comprising instructions for performing the method of any of claims 1-4.
CN201410392153.5A 2014-08-11 2014-08-11 Data downloading management method and system Active CN105335186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410392153.5A CN105335186B (en) 2014-08-11 2014-08-11 Data downloading management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410392153.5A CN105335186B (en) 2014-08-11 2014-08-11 Data downloading management method and system

Publications (2)

Publication Number Publication Date
CN105335186A CN105335186A (en) 2016-02-17
CN105335186B true CN105335186B (en) 2020-06-05

Family

ID=55285747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410392153.5A Active CN105335186B (en) 2014-08-11 2014-08-11 Data downloading management method and system

Country Status (1)

Country Link
CN (1) CN105335186B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897337A (en) * 2016-07-01 2017-06-27 阿里巴巴集团控股有限公司 The acquisition methods and device of Internet resources, the acquisition methods of finance product
CN107689976B (en) * 2016-08-05 2020-08-28 北京金山云网络技术有限公司 File transmission method and device
CN106383510B (en) * 2016-08-29 2019-08-23 航宇救生装备有限公司 The differentiation and processing method of control system accident power-off
CN111026724B (en) * 2019-11-24 2023-09-01 山东中创软件商用中间件股份有限公司 File synchronization method, device, equipment and medium based on distributed system
CN113347218A (en) * 2020-02-18 2021-09-03 北京沃东天骏信息技术有限公司 Module downloading method and device
CN113051232A (en) * 2021-03-18 2021-06-29 杭州群核信息技术有限公司 File downloading method and device and processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005676A (en) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 Method for down loading network resource using mobile terminal
CN101415258A (en) * 2007-10-18 2009-04-22 中兴通讯股份有限公司 Method for implementing download of mobile phone downloader
CN102073723A (en) * 2011-01-11 2011-05-25 青岛海信移动通信技术股份有限公司 Method and device for managing mobile terminal mails
CN103257901A (en) * 2013-05-29 2013-08-21 北京奇虎科技有限公司 Distribution method of computing tasks, cloud computing platform, terminal and system
CN103699597A (en) * 2013-12-12 2014-04-02 北京奇虎科技有限公司 Method for downloading file through browser and browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702177B (en) * 2013-12-13 2018-08-10 乐视网信息技术(北京)股份有限公司 A kind of storage method and player of video file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005676A (en) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 Method for down loading network resource using mobile terminal
CN101415258A (en) * 2007-10-18 2009-04-22 中兴通讯股份有限公司 Method for implementing download of mobile phone downloader
CN102073723A (en) * 2011-01-11 2011-05-25 青岛海信移动通信技术股份有限公司 Method and device for managing mobile terminal mails
CN103257901A (en) * 2013-05-29 2013-08-21 北京奇虎科技有限公司 Distribution method of computing tasks, cloud computing platform, terminal and system
CN103699597A (en) * 2013-12-12 2014-04-02 北京奇虎科技有限公司 Method for downloading file through browser and browser

Also Published As

Publication number Publication date
CN105335186A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105335186B (en) Data downloading management method and system
CN107770229B (en) Cloud file sharing method and system and cloud server
CN103841170B (en) A kind of cloud storage method and server
CN100492356C (en) Method, system and devices for management of media items
CN102819461B (en) Desktop synchronous method, device, equipment and system
JP2017084334A (en) Method and device for extracting virtual machine image file
CN110765744B (en) Multi-user collaborative document editing method and system
CN103841180B (en) A kind of network data synchronizing method, apparatus, terminal device and server based on operational order
CN104348859B (en) File synchronisation method, device, server, terminal and system
CN109144785A (en) Method and apparatus for Backup Data
CN108334514B (en) Data indexing method and device
CN106817388B (en) Method and device for acquiring data by virtual machine and host machine and system for accessing data
CN102882974A (en) Method for saving website access resource by website identification version number
CN112689170B (en) Content playing method of display terminal, display terminal and readable storage medium
CN108259533A (en) A kind of data transmission method and device
EP4300303A1 (en) Animation resource information processing method and apparatus, device, medium and product
CN103198100A (en) Renaming method and renaming system for file synchronization among multiple devices
CN104079623A (en) Method and system for controlling multilevel cloud storage synchrony
JP2003248607A (en) Backup system, program for backup, and backup method
CN105260486A (en) Data processing method, device and system
CN109213955B (en) Data processing method and related equipment
JP4719732B2 (en) Backup server, mobile device, communication system using these, and backup method
CN108111598B (en) Cloud disk data issuing method and device and storage medium
CN112243017A (en) File uploading method and device
CN117235400A (en) Unified multi-platform portal system based on Kafka technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant