CN109547253A - Document down loading method, device, computer equipment and storage medium - Google Patents

Document down loading method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109547253A
CN109547253A CN201811432935.1A CN201811432935A CN109547253A CN 109547253 A CN109547253 A CN 109547253A CN 201811432935 A CN201811432935 A CN 201811432935A CN 109547253 A CN109547253 A CN 109547253A
Authority
CN
China
Prior art keywords
file
server
update
north orientation
listed files
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.)
Granted
Application number
CN201811432935.1A
Other languages
Chinese (zh)
Other versions
CN109547253B (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.)
Guangdong Haige Iscreate Technology Co Ltd
Original Assignee
Guangdong Haige Iscreate Technology 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 Guangdong Haige Iscreate Technology Co Ltd filed Critical Guangdong Haige Iscreate Technology Co Ltd
Priority to CN201811432935.1A priority Critical patent/CN109547253B/en
Publication of CN109547253A publication Critical patent/CN109547253A/en
Application granted granted Critical
Publication of CN109547253B publication Critical patent/CN109547253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing

Abstract

The present invention relates to a kind of document down loading methods, device, computer equipment and storage medium, this method comprises: after north orientation server is updated the file that it is stored, obtain the update listed files of the file of mark north orientation server update, multiple downloading tasks are generated according to listed files is updated, multiple downloading tasks are distributed to multiple from server, so that the file of update is downloaded from north orientation server from server, obtain the file of each update downloaded from server, so that after north orientation server is updated file, know the file of north orientation server update in time and generate multiple downloading tasks, it distributes to and multiple is downloaded from file of the server to update, it also can be by the way that downloading task be allocated when downloading task is more, quickly the file of update is downloaded in time, reduce task downloading delay, It avoids download time long and occupies server bandwidth waste Internet resources, be also convenient for network engineers and carry out network quality in time evaluating and optimizing.

Description

Document down loading method, device, computer equipment and storage medium
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of document down loading method, file downloading device, calculating Machine equipment and computer readable storage medium.
Background technique
With the development of internet technology, user can easily access shifting by intelligent terminals such as mobile phone and tablet computers Dynamic internet, to grasp the network information quickly updated in internet in time.And in order to guarantee the reliability of internet, network work Cheng Shi needs the file by storing in downloading north orientation server to be monitored and assess the quality of internet.
For example, MR (Measurement Report, measurement report) measurement is a critical function of mobile network system, The measurement result that physical layer reports can be used in Mobile Internet system wireless heterogeneous networks sublayer complete such as cell selection/ The triggering of the times such as gravity treatment and switching can be used for Mobile Internet system Operation and Maintenance, observe Mobile Internet system Operating status.Wherein, after being measured, each base station will generate a statistics file, and the statistics file of several base stations is beaten One or more compressed files are bundled into be stored in north orientation server, it can be to the matter of mobile Internet by downloading these files Amount is evaluated and optimized.
Traditional technology is usually to wait the Generating Data File of the previous day north orientation server completely rear or define certain delay Amount, is acquired downloading by FTP, such as define 8 points of that morning, is started by ftp server to the previous day data file Acquisition downloading, however this mode needs to carry out the data file of the previous day batch downloading, and downloading process occupies for a long time Server bandwidth causes the delay of file download serious, and with LTE (Long Term Evolution, long term evolution) network Continuous deployment and terminal gradual perfection, the network optimization also steps up the delay requirement that MR index generates, traditional technology Delay is serious, is unable to satisfy the demand of network engineers.
Summary of the invention
Based on this, it is necessary to which be delayed serious technical problem for traditional technology, provides a kind of document down loading method, file Download apparatus, computer equipment and computer readable storage medium.
A kind of document down loading method, for downloading file from north orientation server, comprising steps of
After the north orientation server is updated the file of storage, obtains and update listed files;The update file The file of north orientation server update described in List Identification;
Multiple downloading tasks are generated according to the update listed files;
The multiple downloading task is distributed to multiple from server;The multiple task is the multiple from clothes for triggering Business device downloads the file of the update from the file that the north orientation server stores;
Obtain the file of the multiple update downloaded from server.
A kind of file downloading device, for downloading file from north orientation server, comprising:
List obtains module, for obtaining and updating file after the north orientation server is updated the file of storage List;The file for updating listed files and identifying the north orientation server update;
Task generation module, for generating multiple downloading tasks according to the update listed files;
Task allocating module, it is multiple from server for distributing to the multiple downloading task;The multiple task is used In the multiple file for downloading the update from the file that the north orientation server stores from server of triggering;
File acquisition module, for obtaining the file of the multiple update downloaded from server.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage The step of computer program, the processor realizes document down loading method as described above when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of document down loading method as described above is realized when row.
Above-mentioned document down loading method, device, computer equipment and storage medium, in the file that north orientation server stores it After being updated, obtains and update listed files, which updates the file that listed files identifies north orientation server update, according to The update listed files generates multiple downloading tasks, multiple downloading tasks are distributed to it is multiple from server so that from server The file that update is downloaded from the file that north orientation server stores finally obtains the file of each update downloaded from server, So that the file of north orientation server update can be known in time after north orientation server is updated the file that it is stored, and Accordingly generate multiple downloading tasks, distribute to it is multiple these files updated are downloaded from server, even if downloading appoint When being engaged in more also can by the way that downloading task is allocated, enable it is each from server quickly in time to the text of update Part is downloaded, and reduces the delay of task downloading, is conducive to that downloading process is avoided to occupy server bandwidth for a long time and cause The waste of Internet resources, the file of north orientation server update can be downloaded in time by being also convenient for network engineers, and in time The quality of network is evaluated and optimized.
Detailed description of the invention
Fig. 1 is the applied environment figure of document down loading method in one embodiment;
Fig. 2 is the flow diagram of document down loading method in one embodiment;
Fig. 3 is the structural schematic diagram of principal and subordinate's server model in one embodiment;
Fig. 4 is the logical schematic for generating and distributing task in one embodiment;
Fig. 5 is the schematic diagram of file download system in one embodiment;
Fig. 6 is the structural block diagram of file downloading device in one embodiment;
Fig. 7 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not For limiting the present invention.
It should be noted that term involved in the embodiment of the present invention " first second third " be only distinguish it is similar Object does not represent the particular sorted for object, it is possible to understand that ground, " first second third " can be mutual in the case where permission Change specific sequence or precedence.It should be understood that the object that " first second third " is distinguished in the appropriate case can be mutual It changes, so that the embodiment of the present invention described herein can be real with the sequence other than those of illustrating or describing herein It applies.
Document down loading method provided by the invention can be applied in application environment as shown in Figure 1, be used for north orientation service File is downloaded in device, Fig. 1 is the applied environment figure of document down loading method in one embodiment, wherein base station 100 can be by data It is sent in north orientation server 200 and is stored in the form of a file, network engineers can pass through such as FTP download server etc. Server 300 accesses north orientation server 200, and downloads file from north orientation server 200.Specifically, being with MR measurement data Example is illustrated the above process, and base station 100 can generate xml according to the measurement report data that network equipment measurement obtains (can Extending mark language) statistics file, the statistics file of several base stations is packaged into one or more pressures according to a certain period of time Contracting file is stored in north orientation server, for example, first base station 110 can send the file to the first north orientation server 210, Second base station 120 can send the file to the second north orientation server 220 and third base station 130 and the 4th base station 140 and can incite somebody to action File is transmitted to third north orientation server 230 etc., and then server 200 can download phase from each north orientation server The file answered, network engineers can evaluate and optimize network quality according to the file of downloading.Wherein, north orientation server 200 and server 300 can be realized with the server cluster of independent server either multiple servers composition.
In one embodiment, a kind of document down loading method is provided, for downloading file from north orientation server, is referred to Fig. 2, Fig. 2 are the flow diagram of document down loading method in one embodiment, and this method can be applied to server shown in FIG. 1 In 300, this document method for down loading be may comprise steps of:
Step S101 is obtained after being updated to the file of storage and is updated listed files.
This step is mainly that server 300 can be in north orientation server 200 to the file stored in the north orientation server 200 It after being updated, obtains and updates listed files, which refers to for identifying the north orientation server 200 update The list of file.Specifically, the received file of north orientation server 200 is usually the file that base station 100 reports, when base station 100 will New file reports to north orientation server 200, and north orientation server 200 will be updated the file that it is stored, it is ensured that it is deposited The file of storage can reflect current network quality in time and accurately, and server 300 can be in north orientation server 200 to it After the file of storage is updated, obtains and update listed files, by the update listed files to identify north orientation server 200 The file of update.
Step S102 generates multiple downloading tasks according to listed files is updated.
In this step, update the file of update identified in listed files quantity can be it is multiple, can be according to update The quantity of documents of the update identified in listed files generates multiple downloading tasks, such as updates the update identified in listed files File include file 1, file 2 and file 3, then 3 downloading tasks can be generated.It can also be according to the file of each update Download address generates multiple downloading tasks, such as the download address of file 1 is the first north orientation server 210, file 2 and file 3 download address is the second north orientation server 220, then can generate two downloading tasks according to two download address classes.
Step S103 distributes to multiple downloading tasks multiple from server;Multiple tasks are multiple from service for triggering Device downloads the file of update from the file that north orientation server stores.
This step mainly in such a way that distributed system is downloaded, utilizes distributed master-slaver (principal and subordinate) Model by multiple downloading tasks distribute to it is multiple be downloaded from server, can be by primary server by multiple downloading tasks point Dispensing is multiple from server, and multiple downloading task can be used for triggering multiple files stored from server from north orientation server The file that middle downloading updates.
Specifically, Fig. 3 is the structural schematic diagram of principal and subordinate's server model in one embodiment, server 300 with reference to Fig. 3 Can be built based on master-slaver (principal and subordinate) model, server 300 may include primary server 310 and it is multiple from Server, such as first from server 321, second from server 322, third from server 323 and the 4th from server 324, it is main Multiple downloading tasks can be distributed to first from server 321, second from server 322, third from server by server 310 323 and the 4th from server 324, and the mode of distribution can be mean allocation, i.e., is averagely allocated to according to the quantity of downloading task It is each from server, it is also contemplated that each appoint downloading from factors such as the task of server downloading situation, server stability Business carries out reasonable distribution.
Step S104 obtains the file of multiple updates downloaded from server.
This step is obtained from server mainly each after the file that server downloading updates accordingly from each These files updated, to obtain the file of the update of north orientation server 200.
Specifically, setting the file for updating the update identified in listed files as file 1 and file 2, in north orientation server 200 The file of storage includes file 1, file 2, file 3 and file 4, then it is each can be according in the update listed files from server The file 1 and file 2 of mark download file 1 and file 2, this is because file from the file stored in north orientation server 200 1 and file 2 be file that north orientation server 200 updates, after the file for downloading the update, network engineers can be to current net Network quality is assessed.
By by downloading task distribute to it is multiple be downloaded from server, to obtain the text of north orientation server update Part, and due to being mainly downloaded from north orientation server downloading file by FTP mode, this mode can will be distributed The characteristics of long-time of master-slave model combination FTP executes steadily downloads the file of update from north orientation server, improves file The stability of downloading and the accuracy for guaranteeing file data.
Above-mentioned document down loading method obtains after north orientation server is updated the file that it is stored and updates file column Table, the acquisition update listed files and identify the file of north orientation server update, according to the update listed files generate it is multiple under Load task, multiple downloading tasks are distributed to it is multiple from server so that from server from the file that north orientation server stores The file updated is downloaded, the file of each update downloaded from server is finally obtained, so that storing in north orientation server to it File be updated after, can know the file of north orientation server update in time, and accordingly generate multiple downloading tasks, distribute These files updated are downloaded from server to multiple, can be appointed by that will download when downloading task is more Business is allocated, enable it is each quickly the file of update is downloaded in time from server, reduce task downloading Delay, be conducive to avoid downloading process to occupy server bandwidth for a long time and cause the wastes of Internet resources, be also convenient for network Engineer can download the file of north orientation server update in time, and in time to the quality of network carry out assessment and it is excellent Change.
In one embodiment, may include: according to the step of updating listed files generation multiple downloading tasks
The filename and download address of the file of each update are extracted from update listed files;Wherein, the file of update Quantity be it is multiple;Update filename and download address that listed files carries the file of multiple updates;According to each update The filename and download address of file generate each downloading task.
In the present embodiment, the filename and downloading ground that the information that listed files carries may include the file updated are updated Location, which is mainly used for identifying the north orientation server where the update file, such as can be the IP of north orientation server Address.For example, file 1 and file 3 are stored in the first north orientation server 210, file 5 is stored in the second north orientation server In 220, then the information for updating list carrying may include: that the file of the entitled file 1 of file and file 3 is stored in the first north orientation The file of the entitled file 5 of server 210, file is stored in the second north orientation server 220.It is then possible to according to each update File filename and download address generate multiple downloading tasks, such as can be identical by phase by download address such as IP address The downloading task answered is assigned to each individual thread, and the time sequencing updated in north orientation server 200 according to file into Row downloading.The scheme of the present embodiment can generate downloading task according to the filename and download address of the file of update, be conducive to It is downloaded for different download address distribution servers, generation when each server being avoided to download file from north orientation server Entanglement causes the file updated repeatedly to be downloaded or be missed, and guarantees the accuracy of file download.
In one embodiment, further, multiple downloading tasks are distributed to multiple can wrap from the step of server It includes:
It obtains multiple from the task of server downloading situation;Situation is downloaded according to task to distribute multiple downloading tasks at most It is a from server.
The present embodiment mainly according to it is each from the task of server downloading situation be respectively it is each from server distribution under Load task, task downloading situation can be used for reflecting it is each can also receive great downloading task from server, task downloading It may is that quantity, the speed of download of each downloading task currently executed from server, in order to guarantee downloading task It can efficiently complete, and there is difference from the speed of download, the quantity of downloading task and size of server in view of each, such as Simply downloading task, which is distributed equally, for fruit be easy to cause part to generate task accumulation from server, so needing according to each It is a to carry out reasonable distribution downloading task from the task of server downloading situation.
Specifically, Fig. 4 is the logical schematic for generating and distributing task in one embodiment with reference to Fig. 4, it can be in main clothes Be engaged in device in setting will give task dispatcher, when initiating multiple downloading tasks, distributed by task dispatcher it is multiple under Load task, the task dispatcher is available to download situation from the task of server, to be downloaded under situation distribution according to task Load task.For example, primary server has initiated 300 FTP download task, one shares 3 from server, and being exactly under normal conditions will 300 FTP are averagely allocated to 3 from server, and each obtain 100 FTP download task from server, but due to each Speed of download, quantity of documents and the size of FTP has difference, has a high regard for if simple mean allocation will will cause part from service Business accumulation, some are idle from server, and it can be concluded that each from clothes from each download configuration information table from server The task of device of being engaged in downloads situation, wherein download configuration information table record include the IP address of downloading task, user account password, The information such as the file type of the file download path of downloading task and downloading task can will more when generating multiple downloading tasks More downloading tasks distributes to that performance is good from server, such as may be by 120,80 and 100 form by 300 downloading tasks point Dispensing 3 execute downloading task from server.
The technical solution of above-described embodiment can download situation according to from the task of server come reasonably by multiple downloadings Distribute to it is different from server, avoid that simply downloading task being distributed equally cause from server generate task heap Product improves the efficiency of task downloading.
Further, with reference to Fig. 4, primary server can also such as be inquired every 10 seconds from service according to certain time interval The state of device, which may include the health status and task downloading situation of the server, each to receive from server After the inquiry of primary server, query result can be returned, may include whether task downloading is normally carried out, and is returned pending Download configuration information table, the pending download configuration information table can be used for primary server obtain under the task of server Situation is carried, to reasonably distribute downloading task.And primary server carries out inquiry and health detection to from the state of server The reason is that, the slave server for executing downloading task may be caused due to network jitter or server delay machine etc. Unavailable from the rest interface of server, in this case, primary server can be by continuous within the scope of statistics certain time There is the not available situation of rest interface, whether should from server can be used, i.e., can normally execute downloading from server and appoint if determining Business, on the one hand ensures that downloading task can be gone on smoothly, and on the other hand can also find that state is undesirable from server in time, with The distribution of downloading task is adjusted in time.
In one embodiment, before obtaining the step of updating listed files, can also include:
Step S201 determines the file scan time.
Wherein, the file scan time refer to server 300 to the file stored in north orientation server 200 be scanned when Between, which can be server cluster, and this document sweep time can refer to complete in north orientation server cluster The time that body or part north orientation server are scanned.
In this step, the file scan time was determined according to the period of north orientation server update file, that is to say, that is pressed Determine that server 300 is scanned the file stored in north orientation server 200 according to the period of north orientation server update file Time.For north orientation server 200, received is usually the file that base station 100 reports, when base station 100 will be new File reports to north orientation server 200, and north orientation server 200 just needs to be updated the file that it is stored, it is ensured that it is stored File can reflect current network quality in time and accurately.And north orientation server 200 would generally be according to certain week Phase is updated the file that it is stored, it is assumed that the period of north orientation server update file is 15 minutes, then when this document scans Between can be set to every 15 minutes, i.e., server 300 swept the file stored in north orientation server 200 every 15 minutes It retouches.
Step S202 is scanned the file stored in north orientation server according to the file scan time, obtains updating text Part list.
This step is mainly that server 300 can be according to the file scan time to the file stored in north orientation server 200 It is scanned, to obtain updating listed files;Wherein, what which identified is the text of north orientation server update Part.
Specifically, all files that server 300 can store north orientation server 200 are scanned, to obtain mesh A variety of the file informations of file are marked, such as server 300 is wanted to obtain the file of the file destination of band " TD-LTE character file name " Information can then be scanned the file stored in north orientation server 200 by File Transfer Protocol or command-line tool, obtain The file information of file destination with " TD-LTE character file name ", such as IP address, the filename of file destination storage With the information such as file storage time, according to these the file informations so as to know in file that north orientation server 200 stores, Which file is last updated file, then can establish update listed files, by the update listed files to identify north To the file of server update.
In one embodiment, the step of determining the file scan time may include:
Obtain report cycle of the base station to north orientation server reporting measurement data;Measurement data is for triggering north orientation server The file of the storage is updated according to report cycle;Report cycle is set as the file scan time.
In the present embodiment, the measurement data that base station 100 can obtain network equipment measurement is sent out according to certain report cycle North orientation server 200 is given, which refers to that measurement data is reported to week time of north orientation server 200 by base station 100 Phase, in each report cycle, each base station will generate an xml statistics file according to these measurement data, and according to certain The statistics file of several base stations is packaged into one or more compressed files and is reported to north orientation server 200 by rule to be stored, And measurement data is carried in statistics file, measurement data updates it according to the report cycle for triggering north orientation server 200 The file of storage, that is to say, that when north orientation server 200 receives these measurement data, will to the file that it is stored into Row updates, and since base station reporting measurement data are reported according to certain report cycle, so north orientation server 200 Also the file of its storage will be updated according to the report cycle, in this way, the file scan time is set by the report cycle, it can be true It protects when north orientation server 200 updates the file of its storage, and the file stored in time to north orientation server 200 is swept It retouches, learns the file updated in north orientation server 200 in time.
In one embodiment, the file stored in north orientation server is scanned according to the file scan time, is obtained Update listed files the step of may include:
Step S301 is scanned the file stored in north orientation server according to the file scan time, obtains the first text Part list;The file stored in first listed files mark north orientation server.
In this step, the first listed files is identified in the file stored in north orientation server, such as north orientation server 200 File 1, file 2, file 3, file 4 and file 5 are stored, then the first listed files is identified these files, shows north To server it is current in be stored with file 1, file 2, file 3, file 4 and file 5.This step can be to depositing in north orientation server The All Files of storage are scanned, to obtain the first listed files.
Step S302 obtains the second listed files locally prestored;Second listed files identifies downloaded file;It has downloaded File is the file downloaded from north orientation server.
As shown in figure 5, Fig. 5 is the schematic diagram of file download system in one embodiment, this document download system be can wrap Server 300 is included, the server 300 is in the database 400 and document storage server 500 being locally configured, this document storage Server 500 can be used for storing the file downloaded from north orientation server.
In this step, server 300 can be pre-stored in the database 400 from obtaining in the database 400 being locally configured The second listed files, which identifies downloaded file, and downloaded file refers to server 300 from north The file downloaded into server 200.Specifically, assuming that server 300 has downloaded file 3 from north orientation server 200 With file 4, then the second listed files identifies this document 3 and file 4.
Step S303 is obtained according to the first listed files and the second listed files and is updated listed files.
This step is mainly that server 300 determines more according to the file identified in the first listed files and the second listed files New listed files.Wherein, the first listed files identifies the file stored in north orientation server 200, and in the second listed files The file that server 300 has been downloaded from north orientation server 200 is identified, then is arranged according to first listed files and the second file The available update listed files of table.Specifically, setting the first listed files identifies file 1, file 2, file 3, file 4 and text Part 5, and the second listed files identifies file 3 and file 4, so file 1, file 2 and file 5 belong to north orientation server 200 The file of update, needs to be identified file 1, file 2 and file 5, identifies file 1, file 2 and text so as to construct The update listed files of part 5, that is to say, that the file for updating the update identified in listed files refers to that the first listed files is got the bid Know, and the file not identified in the second listed files.
Then, server 300 can download phase from north orientation server 200 based on the above-mentioned update listed files of acquisition The file answered, and be stored in specific document storage server 500, this document storage server 500 can be Cehp file System server.
The technical solution of above-described embodiment the first listed files and the second listed files can be compared, due to first In listed files identify north orientation server 200 store file and the second listed files identifies server 300 from north orientation The file downloaded in server 200, so available according to the file identified in the first listed files and the second listed files Listed files is updated, due to identifying the file of the update of north orientation server 200 in the update listing file, is based on the update Listing file, server 300 can download the file of the update from north orientation server 200, can be realized to north orientation server The file stored in 200 not repeated downloads only download the file of its update, and the file general data amount updated is smaller, no Server bandwidth can be occupied due to downloading process and for a long time, realize and also avoid bandwidth resources while quasi real time synchronizing Waste, solving mass data download time is delayed too long technical problem.
In one embodiment, a kind of file downloading device is provided, for downloading file from north orientation server, is referred to Fig. 6, Fig. 6 are the structural block diagram of file downloading device in one embodiment, and this document download apparatus may include:
List obtains module 101, updates file column for obtaining after file of the north orientation server to storage is updated Table;Update the file of listed files mark north orientation server update;
Task generation module 102, for generating multiple downloading tasks according to update listed files;
Task allocating module 103, it is multiple from server for distributing to multiple downloading tasks;Multiple tasks are for triggering Multiple files for downloading update from the file that north orientation server stores from server;
File acquisition module 104, for obtaining the file of multiple updates downloaded from server.
In one embodiment, task generation module 102 is further used for:
The filename and download address of the file of each update are extracted from update listed files;Wherein, the file of update Quantity be it is multiple;Update filename and download address that listed files carries the file of multiple updates;According to each update The filename and download address of file generate each downloading task.
In one embodiment, task allocating module 103 is further used for:
It obtains multiple from the task of server downloading situation;Situation is downloaded according to task to distribute multiple downloading tasks at most It is a from server.
In one embodiment, can also include:
Time determination unit, for determining the file scan time;The file scan time is according to north orientation server update text What the period of part determined;
Document scanning unit is obtained for being scanned according to the file scan time to the file stored in north orientation server To update listed files.
In one embodiment, time determination unit is further used for:
Obtain report cycle of the base station to north orientation server reporting measurement data;Measurement data is for triggering north orientation server The file updated storage according to report cycle;Report cycle is set as the file scan time.
In one embodiment, document scanning unit is further used for:
The file stored in north orientation server is scanned according to the file scan time, obtains the first listed files;The The file stored in one listed files mark north orientation server;Obtain the second listed files locally prestored;Second listed files Identify downloaded file;Downloaded file is the file downloaded from north orientation server;According to the first listed files and Two listed files, which obtain, updates listed files.
In one embodiment, the file for updating the update of listed files mark be identified in the first listed files and the The file not identified in two listed files.
File downloading device of the invention and document down loading method of the invention correspond, about file downloading device It is specific to limit the restriction that may refer to above for document down loading method, it is illustrated in the embodiment of above-mentioned document down loading method Technical characteristic and its advantages are suitable for the embodiment of file downloading device, and details are not described herein.Above-mentioned file download Modules in device can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module can be with hardware shape Formula is embedded in or independently of in the processor in computer equipment, can also be stored in depositing in computer equipment in a software form In reservoir, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server such as FTP service Device, internal structure chart can be as shown in Figure 7.The computer equipment include by system bus connect processor, memory, Network interface and database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment Memory include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer Program and database.The built-in storage provides ring for the operation of operating system and computer program in non-volatile memory medium Border.Related dependency number during the database of the computer equipment is performed for the step of storage file method for down loading According to.The network interface of the computer equipment is used to communicate with external terminal by network connection.The computer program is processed To realize a kind of document down loading method when device executes.
It will be understood by those skilled in the art that structure shown in Fig. 7, only part relevant to the present invention program is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to the present invention program, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of when executing computer program
After file of the north orientation server to storage is updated, obtains and update listed files;Update listed files mark The file of north orientation server update;Multiple downloading tasks are generated according to listed files is updated;Multiple downloading tasks are distributed to more It is a from server;Multiple tasks are for triggering multiple texts for downloading update from the file that north orientation server stores from server Part;Obtain the file of multiple updates downloaded from server.
In one embodiment, it is also performed the steps of when processor executes computer program
The filename and download address of the file of each update are extracted from update listed files;Wherein, the file of update Quantity be it is multiple;Update filename and download address that listed files carries the file of multiple updates;According to each update The filename and download address of file generate each downloading task.
In one embodiment, it is also performed the steps of when processor executes computer program
It obtains multiple from the task of server downloading situation;Situation is downloaded according to task to distribute multiple downloading tasks at most It is a from server.
In one embodiment, it is also performed the steps of when processor executes computer program
Determine the file scan time;The file scan time was determined according to the period of north orientation server update file;Root The file stored in north orientation server is scanned according to the file scan time, obtains updating listed files.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain report cycle of the base station to north orientation server reporting measurement data;Measurement data is for triggering north orientation server The file updated storage according to report cycle;Report cycle is set as the file scan time.
In one embodiment, it is also performed the steps of when processor executes computer program
The file stored in north orientation server is scanned according to the file scan time, obtains the first listed files;The The file stored in one listed files mark north orientation server;Obtain the second listed files locally prestored;Second listed files Identify downloaded file;Downloaded file is the file downloaded from north orientation server;According to the first listed files and Two listed files, which obtain, updates listed files.
Above-mentioned computer equipment, by the computer program run on the processor, so that in north orientation server to it After the file of storage is updated, the file of north orientation server update can be known in time, and accordingly generates multiple downloading tasks, Distribute to it is multiple these files updated are downloaded from server, when downloading task is more can by will under Load task is allocated, enable it is each quickly the file of update is downloaded in time from server, reduce task The delay of downloading is conducive to avoid downloading process to occupy server bandwidth for a long time and causes the wastes of Internet resources, is also convenient for Network engineers can download the file of north orientation server update in time, and in time to the quality of network carry out assessment and Optimization.
Those of ordinary skill in the art will appreciate that realizing in document down loading method described in as above any one embodiment All or part of the process is relevant hardware can be instructed to complete by computer program, and the computer program can It is stored in a non-volatile computer read/write memory medium, the computer program is when being executed, it may include such as above-mentioned each side The process of the embodiment of method.Wherein, used in each embodiment provided by the present invention to memory, storage, database or Any reference of other media, may each comprise non-volatile and/or volatile memory.Nonvolatile memory may include read-only Memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) dodge It deposits.Volatile memory may include random access memory (RAM) or external cache.As explanation rather than office Limit, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate (DDR) SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory are total Line (Rambus) directly RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Accordingly, a kind of computer readable storage medium is provided in one embodiment, is stored thereon with computer program, It is performed the steps of when computer program is executed by processor
After file of the north orientation server to storage is updated, obtains and update listed files;Update listed files mark The file of north orientation server update;Multiple downloading tasks are generated according to listed files is updated;Multiple downloading tasks are distributed to more It is a from server;Multiple tasks are for triggering multiple texts for downloading update from the file that north orientation server stores from server Part;Obtain the file of multiple updates downloaded from server.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The filename and download address of the file of each update are extracted from update listed files;Wherein, the file of update Quantity be it is multiple;Update filename and download address that listed files carries the file of multiple updates;According to each update The filename and download address of file generate each downloading task.
In one embodiment, it is also performed the steps of when computer program is executed by processor
It obtains multiple from the task of server downloading situation;Situation is downloaded according to task to distribute multiple downloading tasks at most It is a from server.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Determine the file scan time;The file scan time was determined according to the period of north orientation server update file;Root The file stored in north orientation server is scanned according to the file scan time, obtains updating listed files.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain report cycle of the base station to north orientation server reporting measurement data;Measurement data is for triggering north orientation server The file updated storage according to report cycle;Report cycle is set as the file scan time.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The file stored in north orientation server is scanned according to the file scan time, obtains the first listed files;The The file stored in one listed files mark north orientation server;Obtain the second listed files locally prestored;Second listed files Identify downloaded file;Downloaded file is the file downloaded from north orientation server;According to the first listed files and Two listed files, which obtain, updates listed files.
Above-mentioned computer readable storage medium, by the computer program that it is stored, so that being deposited in north orientation server to it After the file of storage is updated, the file of north orientation server update can be known in time, and accordingly generates multiple downloading tasks, point Dispensing is multiple to be downloaded these files updated from server, can be by that will download when downloading task is more Task is allocated, enable it is each quickly the file of update is downloaded in time from server, reduce under task The delay of load is conducive to avoid downloading process to occupy server bandwidth for a long time and causes the wastes of Internet resources, is also convenient for net Network engineer can download the file of north orientation server update in time, and in time to the quality of network carry out assessment and it is excellent Change.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of document down loading method, for downloading file from north orientation server, which is characterized in that comprising steps of
After the north orientation server is updated the file of storage, obtains and update listed files;The update listed files Identify the file of the north orientation server update;
Multiple downloading tasks are generated according to the update listed files;
The multiple downloading task is distributed to multiple from server;The multiple task is the multiple from server for triggering The file of the update is downloaded from the file that the north orientation server stores;
Obtain the file of the multiple update downloaded from server.
2. document down loading method according to claim 1, which is characterized in that described to be generated according to the update listed files The step of multiple downloading tasks includes:
The filename and download address of the file of each update are extracted from the update listed files;Wherein, it is described more The quantity of new file is multiple;The filename and download address for updating listed files and carrying the file of multiple updates;
Each downloading task is generated according to the filename of the file of each update and download address.
3. document down loading method according to claim 1 or 2, which is characterized in that described by the multiple downloading task point Dispensing is multiple to include from the step of server
It obtains the multiple from the task of server downloading situation;
Situation is downloaded according to the task to distribute the multiple downloading task to the multiple from server.
4. document down loading method according to claim 1, which is characterized in that in the step of acquisition updates listed files Before, further includes:
Determine the file scan time;The file scan time was determined according to the period of the north orientation server update file 's;
The file stored in the north orientation server is scanned according to the file scan time, obtains the update file List.
5. document down loading method according to claim 4, which is characterized in that the step of determining file scan time wraps It includes:
Obtain report cycle of the base station to the north orientation server reporting measurement data;The measurement data is for triggering the north The file of the storage is updated according to the report cycle to server;
The report cycle is set as the file scan time.
6. document down loading method according to claim 4, which is characterized in that it is described according to the file scan time to institute The step of stating the file stored in north orientation server to be scanned, obtaining the update listed files include:
The file stored in the north orientation server is scanned according to the file scan time, obtains the first file column Table;First listed files identifies the file stored in the north orientation server;
Obtain the second listed files locally prestored;Second listed files identifies downloaded file;The downloaded file For the file downloaded from the north orientation server;
The update listed files is obtained according to first listed files and second listed files.
7. document down loading method according to claim 6, which is characterized in that it is described update listed files mark it is described more New file is file that is identifying in first listed files and not identifying in second listed files.
8. a kind of file downloading device, for downloading file from north orientation server characterized by comprising
List obtains module, for obtaining and updating listed files after the north orientation server is updated the file of storage; The file for updating listed files and identifying the north orientation server update;
Task generation module, for generating multiple downloading tasks according to the update listed files;
Task allocating module, it is multiple from server for distributing to the multiple downloading task;The multiple task is for touching Send out to download the file of the update the multiple from the file that the north orientation server stores from server;
File acquisition module, for obtaining the file of the multiple update downloaded from server.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor is realized described in any one of claim 1 to 7 when executing the computer program Document down loading method the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of claim 1 to 7 described in any item document down loading methods are realized when being executed by processor.
CN201811432935.1A 2018-11-28 2018-11-28 File downloading method and device, computer equipment and storage medium Active CN109547253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811432935.1A CN109547253B (en) 2018-11-28 2018-11-28 File downloading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811432935.1A CN109547253B (en) 2018-11-28 2018-11-28 File downloading method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109547253A true CN109547253A (en) 2019-03-29
CN109547253B CN109547253B (en) 2021-12-07

Family

ID=65850881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811432935.1A Active CN109547253B (en) 2018-11-28 2018-11-28 File downloading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109547253B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519332A (en) * 2019-07-31 2019-11-29 浪潮电子信息产业股份有限公司 A kind of file backup method of server, correlation technique, relevant apparatus
CN114697316A (en) * 2022-04-24 2022-07-01 平安科技(深圳)有限公司 Batch downloading method, device and equipment of data and computer readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753404A (en) * 2008-12-12 2010-06-23 Tcl集团股份有限公司 Network resource downloading method
CN102014411A (en) * 2010-12-02 2011-04-13 大唐移动通信设备有限公司 Method and system for acquiring radio measurement report
CN103108024A (en) * 2012-11-14 2013-05-15 福建联迪商用设备有限公司 Incremental downloading method for multi-media self-service terminal
CN104301929A (en) * 2014-09-30 2015-01-21 大唐移动通信设备有限公司 Measurement report reporting method and equipment
CN105338107A (en) * 2015-11-20 2016-02-17 上海斐讯数据通信技术有限公司 Stronghold operation synchronous management system and stronghold operation synchronous management method
CN106790489A (en) * 2016-12-14 2017-05-31 成都华为技术有限公司 Parallel data loading method and system
US20170187800A1 (en) * 2015-12-28 2017-06-29 Le Holdings (Beijing) Co., Ltd. File synchronization method, electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753404A (en) * 2008-12-12 2010-06-23 Tcl集团股份有限公司 Network resource downloading method
CN102014411A (en) * 2010-12-02 2011-04-13 大唐移动通信设备有限公司 Method and system for acquiring radio measurement report
CN103108024A (en) * 2012-11-14 2013-05-15 福建联迪商用设备有限公司 Incremental downloading method for multi-media self-service terminal
CN104301929A (en) * 2014-09-30 2015-01-21 大唐移动通信设备有限公司 Measurement report reporting method and equipment
CN105338107A (en) * 2015-11-20 2016-02-17 上海斐讯数据通信技术有限公司 Stronghold operation synchronous management system and stronghold operation synchronous management method
US20170187800A1 (en) * 2015-12-28 2017-06-29 Le Holdings (Beijing) Co., Ltd. File synchronization method, electronic device
CN106790489A (en) * 2016-12-14 2017-05-31 成都华为技术有限公司 Parallel data loading method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519332A (en) * 2019-07-31 2019-11-29 浪潮电子信息产业股份有限公司 A kind of file backup method of server, correlation technique, relevant apparatus
CN114697316A (en) * 2022-04-24 2022-07-01 平安科技(深圳)有限公司 Batch downloading method, device and equipment of data and computer readable medium
CN114697316B (en) * 2022-04-24 2024-03-12 平安科技(深圳)有限公司 Batch downloading method, device and equipment of data and computer readable medium

Also Published As

Publication number Publication date
CN109547253B (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN108667930B (en) Dynamic data source configuration and automatic switching method
CN108763090A (en) Test environment dispositions method, device, computer equipment and storage medium
CN107894919A (en) Timed task triggering method, device, equipment and readable storage medium storing program for executing
CN110309051A (en) Method, system, equipment and the storage medium of management of test cases
CN109634730A (en) Method for scheduling task, device, computer equipment and storage medium
CN110677462B (en) Access processing method, system, device and storage medium for multi-block chain network
CN110996339B (en) eSIM resource management platform and management method
CN109547253A (en) Document down loading method, device, computer equipment and storage medium
CN115858083A (en) Container CPU resource scheduling and isolating method and device, storage medium and electronic equipment
JP6405255B2 (en) COMMUNICATION SYSTEM, QUEUE MANAGEMENT SERVER, AND COMMUNICATION METHOD
CN105933380A (en) Data transmission method, device and terminal
CN110175099A (en) Interface changes reminding method, device, computer equipment and storage medium
CN109783254A (en) Asynchronism callback method, apparatus, computer equipment and storage medium
CN110689228A (en) Test service scheduling method and device, computer equipment and storage medium
CN110460967A (en) SMS platform test method, device, computer equipment and storage medium
CN109254765A (en) Timing task management method, apparatus, computer equipment and storage medium
US20090157682A1 (en) Managing maintenance tasks for computer programs
CN109525675A (en) North orientation server file method for down loading, device, computer equipment and storage medium
CN105450679B (en) Carry out the method and system of data cloud storage
CN109190888A (en) project evaluation distribution method, device, terminal device and storage medium
CN110489138A (en) A kind of application update method, device and storage medium
CN110298549A (en) Project task processing method, device, equipment and the medium of airport passenger throughput
CN110113217A (en) Micro services management method, device, management platform and storage medium
CN109753613A (en) A kind of method and device loading Web page picture
CN115118612A (en) Resource quota management method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant