CN106302763A - A kind of establishment task minute wheel method for down loading and system - Google Patents

A kind of establishment task minute wheel method for down loading and system Download PDF

Info

Publication number
CN106302763A
CN106302763A CN201610696907.5A CN201610696907A CN106302763A CN 106302763 A CN106302763 A CN 106302763A CN 201610696907 A CN201610696907 A CN 201610696907A CN 106302763 A CN106302763 A CN 106302763A
Authority
CN
China
Prior art keywords
task
task list
file
verification
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610696907.5A
Other languages
Chinese (zh)
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.)
Beijing Tocel Electronics Co Ltd
Original Assignee
Beijing Tocel Electronics 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 Beijing Tocel Electronics Co Ltd filed Critical Beijing Tocel Electronics Co Ltd
Priority to CN201610696907.5A priority Critical patent/CN106302763A/en
Publication of CN106302763A publication Critical patent/CN106302763A/en
Pending legal-status Critical Current

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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to terminal data processing technical field, it is specifically related to a kind of establishment task minute wheel method for down loading and system, first determine whether whether this locality exists task list, if not existing, then the assignment file that download task list and task list include, if existing, then verify task list, and the assignment file that download task list includes, by the technical program, effectively overcoming existing inspection terminal the most in the art, to obtain patrol task process numerous and diverse or depend on the situation of network unduly.

Description

A kind of establishment task minute wheel method for down loading and system
Technical field
The present invention relates to terminal data processing technical field, be specifically related to a kind of establishment task minute wheel method for down loading and be System.
Background technology
Conventional inspection terminal downloading task is that employing PnP device copies the mode of patrol task by task from service Device end equipment is copied in inspection terminal, or patrol task is disposably downloaded in terminal by network, this both of which There is certain defect.
Using first kind of way, i.e. directly from server end, patrol task is copied to inspection terminal, staff obtains The mode patrolling and examining data is the most loaded down with trivial details, needs the data on server to be copied out from machine room or other PCs every time Come;And real-time for task is the most unfriendly, if add new patrol task it is necessary to wait until next one copy temporarily Cycle just can find, easily cause the phenomenon missed.
Use the second way, i.e. disposably patrol task is downloaded to inspection terminal by network, the requirement to network The highest, when unstable networks, the patrol task file that some are bigger cannot be downloaded, during downloading, if gone out Existing network network interrupts, in addition it is also necessary to re-downloads file, thus causes the waste of network;And patrol task is disposably downloaded Also it is the biggest problem to inspection terminal to the parsing of inspection terminal, for the inspection terminal equipment solution that hardware device is relatively weak Analyse big file and need long time, so for downloading the data to from starting first or for there is no data cached terminal Resolve complete overlong time, be fatal for Consumer's Experience.
Use which kind of method for down loading can avoid the first that patrol task direct copying causes behaviour to inspection terminal simultaneously Make loaded down with trivial details and patrol task data to update and with the second, patrol task is disposably downloaded to inspection terminal to network not in time Depend on unduly, become technological difficulties.
Summary of the invention
Therefore, the technical problem to be solved in the present invention is to overcome inspection terminal of the prior art to obtain patrol task mistake Journey is loaded down with trivial details or depends on the defect of network unduly, thus provides a kind of establishment task minute wheel method for down loading and system, particularly as follows:
A kind of establishment task minute wheel method for down loading, comprises the steps:
Judge whether that task list, described task list include each attribute taking turns assignment file;
If there is described task list, then verify described task list, by verification then using described task list as work as Front task list;
If there is not task list or not validated, then re-download task list as current task list;
Judge whether this locality exists according to current task list and each take turns assignment file, if not existing, by wheel download described respectively Wheel assignment file.
Above-mentioned method, wherein, if this locality exists and each takes turns assignment file, then verifies and each takes turns assignment file, if not passing through school Test, re-download not validated assignment file.
Above-mentioned method, wherein, the step of the described task list of described verification includes that the verification of md5 value and task list are raw Become time check.
Above-mentioned method, wherein, the verification of described md5 value and task list generate time check, including:
Judge that the md5 value of described task list is the most identical with the md5 value of this task list of storage in server;
If it is different, then verify failure, otherwise, it is judged that described task list generate this of storage in time and server The generation time of business list is the most identical;
If it is different, then verify failure, otherwise, verify successfully.
Above-mentioned method, wherein, each process taking turns assignment file of described verification includes the md5 value verification of file, number of tasks Amount verification.
Above-mentioned method, wherein, md5 value, the verification of task quantity to described each wheel assignment file, including:
Determine assignment file to be verified;
The md5 value of assignment file to be verified is compared with the md5 value of this file to be verified of storage in server;
If the two is inconsistent, then verifies failure, otherwise, the task quantity comprised in file to be verified is deposited in server The task quantity that this file to be verified of storage comprises compares;
If the two is inconsistent, then verifying failure, otherwise, verification is passed through.
Above-mentioned method, wherein, also includes:
The task that local reception sends to server downloads notice;
Download described task and download the assignment file that notice includes.
Above-mentioned method, wherein, described in judge whether task list before, also include:
Judge that whether current slot is the time period of batch store tasks file;
The most then download default task list and task list includes respectively takes turns assignment file.
A kind of establishment task minute wheel download system, including:
Task of respectively taking turns in local terminal, download task list and described task list;
Server, storage has each task in described task list and described task list;
Correction verification module, each task verified in described task list and task list is the most successfully downloaded.
Above-mentioned system, wherein, also includes:
Monitor module, monitor whether server sends the notice of downloading task file.
Technical solution of the present invention, has the advantage that
1. the present invention provide establishment classification of task method for down loading and system, first determine whether this locality whether exist task row Table, if not existing, then the assignment file that download task list and task list include, if existing, then verify task list, and The assignment file that download task list includes, by the technical program, effectively overcomes existing inspection terminal in the art and obtains Patrol task process is numerous and diverse or depends on the situation of network unduly.
2. the present invention provide establishment classification of task method for down loading and system, respectively task list and assignment file are carried out Verification, effectively prevent task list or the inaccurate defect of assignment file of download, meanwhile, monitors comprising of server transmission The notice that assignment file is downloaded, it is not necessary to downloaded often wheel file and all accessed under server checks whether that new assignment file needs Carry, save the time, improve speed of download.
Accompanying drawing explanation
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, below will be to specifically In embodiment or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, in describing below Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not paying creative work Put, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the concrete example working out task minute wheel method for down loading in the embodiment of the present invention 1.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is clearly and completely described, it is clear that described enforcement Example is a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill The every other embodiment that personnel are obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
If additionally, the most non-structure of technical characteristic involved in invention described below difference embodiment Become conflict just can be combined with each other.
Embodiment 1
The open a kind of establishment task minute wheel method for down loading of the present embodiment, sees structure described in Fig. 1, and the method includes walking as follows Rapid:
Step S1, it may be judged whether there is task list, described task list includes each attribute taking turns assignment file, its In, the attribute of assignment file includes each taking turns the attribute informations such as the major key of assignment file, title, length.
Step S2, if there is described task list, then verifies described task list, by verification then by described task list As current task list, using the task list by verification as current task list.
Step S3, if there is not task list or not validated, then re-downloads task list and arranges as current task Table, it is understood that there may be task list downloads the completeest situation with regard to terminal downloads, owing to whole task list is as an xml document, When can't pass for downloading to verify completely, now, then deleting not validated task list, and re-downloading task list, As current task list.
According to current task list, step S4, judges whether this locality exists and each takes turns assignment file, if not existing, by under wheel Carry described each wheel assignment file, the file in task list respectively taken turns file and is downloaded by wheel, namely downloaded one take turns appoint After the assignment file of business, preserve to caching, then download another assignment file taking turns patrol task, continue to preserve to caching, and not It is that the file in whole task list is downloaded together.
The establishment task that above-described embodiment provides divides opinion method for down loading, first determines whether whether this locality exists task list, if Do not exist, then the assignment file that download task list and task list include, if existing, then verify task list, and download The assignment file that task list includes, by the technical program, effectively overcomes the existing acquisition of inspection terminal in the art and patrols and examines Task process is numerous and diverse or depends on the situation of network unduly.
As a preferred embodiment of the invention, in above-mentioned steps S4, if this locality exists and each takes turns assignment file, then verification is each Wheel assignment file, if not validated, re-downloads not validated assignment file, however not excluded that have a kind of situation, and task arranges Table is downloaded complete, and the assignment file in task list has downloaded a part, then when starting next time to download, to task list and The partial task file comprised in this task list through downloading verifies, to task list and the task of having passed through verification File does not re-downloads, and the assignment file never going through verification starts to download.
On this basis, further, each process taking turns assignment file of described verification includes the md5 value verification of file, appoints Business quantity verification
On this basis, further, the verification of md5 value, the verification of task quantity to described each wheel assignment file, bag Include:
Step S41, determines assignment file to be verified, for the determination of file to be verified, the most in the server to task Task in list is provided with sequence, when file is verified, can but be not limited only to, according to the row in task list Sequence verifies.
Step S42, makees the md5 value of assignment file to be verified with the md5 value of this file to be verified of storage in server Comparison, owing to each assignment file all includes one and only one md5 value as an independent xml document, is downloaded to this The md5 value of the assignment file on ground and the md5 value comparison of this assignment file of storage in server.
Step S43, if the two is inconsistent, then verifies failure, otherwise, by the task quantity comprised in file to be verified and clothes The task quantity that in business device, this file to be verified of storage comprises compares, and each assignment file divides takes turns individually download, each Assignment file comprises several tasks, needs during verification the quantity of task is verified.
Step S44, if the two is inconsistent, then verifies failure, and otherwise, verification is passed through, by this method of calibration, effective guarantee The correctness of assignment file and effectiveness.
As a preferred embodiment of the invention, the step verifying described task list includes the verification of md5 value and task List generates time check, and each file all includes a md5 value, and the md5 value of each file has uniqueness, task list And each assignment file is an xml document, each xml document all contains the generation time of this xml document, by verification Md5 value and generation time can effectively determine whether the task list of download is required task list.
On this basis, further, the verification of described md5 value and task list generate time check, including:
Step S21, it is judged that in the md5 value of described task list and server, whether the md5 value of this task list of storage Identical;
Step S22, if it is different, then verify failure, otherwise, it is judged that the generation time of described task list deposits in server The generation time of this task list of storage is the most identical;
Step S23, if it is different, then verify failure, otherwise, verifies successfully, by md5 value and generate the time verification, Effectively guarantee that task list effectively and is current task list.
As a preferred embodiment of the invention, also include:
The task that local reception sends to server downloads notice, downloads when there being task to need, and server is as management Center first obtains, and then server informs that locally-downloaded terminal needs assignment file, notice to include needs in an informed way The attribute of downloading task file, it is to avoid locally-downloaded terminal needs to be spaced preset time period need to access a server, to look into See the need of the technological deficiency downloading new task file.
Download described task and download the assignment file that notice includes, by the task attribute comprised in notice, in service Device is searched the assignment file comprising this attribute, is downloaded to this locality.
As a preferred embodiment of the invention, it may be judged whether before there is task list, also include:
Step S01, it is judged that whether current slot is the time period of batch store tasks file;
Step S02, the most then download default task list and task list includes respectively takes turns assignment file.
Be so designed that, be to patrol and examine operation owing to not performing general evening, i.e. inspection terminal is in free time, now downloads Task list and assignment file, preserve the patrol task file of nearest 2 days in general cache, meanwhile, is performing one day patrol After inspection task, caching is automatically deleted this patrol task file.
The establishment classification of task method for down loading of present invention offer and system, carry out school to task list and assignment file respectively Test, effectively prevent task list or the inaccurate defect of assignment file of download, meanwhile, monitor comprising of server transmission and appoint The notice of business file download, it is not necessary to downloaded often wheel file and all accessed under server checks whether that new assignment file needs Carry, save the time, improve speed of download.
Embodiment 2
The present embodiment provides a kind of establishment task minute wheel download system, including local terminal, server and correction verification module, its In:
Local terminal task of respectively taking turns in download task list and described task list, local terminal is that intelligence sets Standby, can be mobile phone or panel computer.
Server storage has each task in described task list and described task list.
Each task that correction verification module verifies in described task list and task list is the most successfully downloaded.
As one preferred embodiment of the present invention, establishment task minute wheel download system the most also includes:
Monitor module, monitor whether server sends the notice of downloading task file.
Obviously, above-described embodiment is only for clearly demonstrating example, and not restriction to embodiment.Right For those of ordinary skill in the field, can also make on the basis of the above description other multi-form change or Variation.Here without also cannot all of embodiment be given exhaustive.And the obvious change thus extended out or Change among still in the protection domain of the invention.

Claims (10)

1. an establishment task minute wheel method for down loading, it is characterised in that comprise the steps:
Judge whether that task list, described task list include each attribute information taking turns assignment file;
If there is described task list, then verify described task list, then that described task list is former as working as by verification Business list;
If there is not task list or not validated, then re-download task list as current task list;
Judge whether this locality exists according to current task list and each take turns assignment file, if not existing, downloading described each wheel by wheel and appointing Business file.
Method the most according to claim 1, it is characterised in that if this locality exists and each takes turns assignment file, then verify each wheel and appoint Business file, if not validated, re-downloads not validated assignment file.
Method the most according to claim 1, it is characterised in that the step of the described task list of described verification includes md5 value Verification and task list generate time check.
Method the most according to claim 3, it is characterised in that the verification of described md5 value and task list generate time check, Including:
Judge that the md5 value of described task list is the most identical with the md5 value of this task list of storage in server;
If it is different, then verify failure, otherwise, it is judged that the time that generates of described task list and this task row of storage in server The generation time of table is the most identical;
If it is different, then verify failure, otherwise, verify successfully.
Method the most according to claim 2, it is characterised in that each process taking turns assignment file of described verification includes file The verification of md5 value, the verification of task quantity.
Method the most according to claim 5, it is characterised in that the verification of md5 value, the number of tasks to described each wheel assignment file The verification of amount, including:
Determine assignment file to be verified;
The md5 value of assignment file to be verified is compared with the md5 value of this file to be verified of storage in server;
If the two is inconsistent, then verify failure, otherwise, task quantity and the storage in server that will comprise in file to be verified The task quantity that this file to be verified comprises compares;
If the two is inconsistent, then verifying failure, otherwise, verification is passed through.
Method the most according to claim 1, it is characterised in that also include:
The task that local reception sends to server downloads notice;
Download described task and download the assignment file that notice includes.
Method the most according to claim 1, it is characterised in that described in judge whether task list before, also include:
Judge that whether current slot is the time period of batch store tasks file;
The most then download default task list and task list includes respectively takes turns assignment file.
9. an establishment task minute wheel download system, it is characterised in that including:
Task of respectively taking turns in local terminal, download task list and described task list;
Server, storage has each task in described task list and described task list;
Correction verification module, each task verified in described task list and task list is the most successfully downloaded.
System the most according to claim 9, it is characterised in that also include: monitor module, monitors whether server sends The notice of downloading task file.
CN201610696907.5A 2016-08-19 2016-08-19 A kind of establishment task minute wheel method for down loading and system Pending CN106302763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610696907.5A CN106302763A (en) 2016-08-19 2016-08-19 A kind of establishment task minute wheel method for down loading and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610696907.5A CN106302763A (en) 2016-08-19 2016-08-19 A kind of establishment task minute wheel method for down loading and system

Publications (1)

Publication Number Publication Date
CN106302763A true CN106302763A (en) 2017-01-04

Family

ID=57661986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610696907.5A Pending CN106302763A (en) 2016-08-19 2016-08-19 A kind of establishment task minute wheel method for down loading and system

Country Status (1)

Country Link
CN (1) CN106302763A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337323A (en) * 2018-03-19 2018-07-27 深圳增强现实技术有限公司 A kind of metering instrument data AR Compare Systems and method based on full terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377746A (en) * 2007-08-31 2009-03-04 鸿富锦精密工业(深圳)有限公司 System and method for updating arranged task
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game
CN102195928A (en) * 2010-03-02 2011-09-21 新奥特(北京)视频技术有限公司 System for verifying data integrity of new media program
CN102523268A (en) * 2011-12-08 2012-06-27 北京新媒传信科技有限公司 Client side upgrading method and system
US20120233342A1 (en) * 2011-03-11 2012-09-13 Google Inc. Opportunistic Network Updates
CN102843400A (en) * 2011-06-23 2012-12-26 珠海市君天电子科技有限公司 method and system for downloading file
CN103428251A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Download task allocation method and device
CN103701841A (en) * 2012-09-27 2014-04-02 腾讯科技(深圳)有限公司 Download task list synchronizing method and device for mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377746A (en) * 2007-08-31 2009-03-04 鸿富锦精密工业(深圳)有限公司 System and method for updating arranged task
CN102195928A (en) * 2010-03-02 2011-09-21 新奥特(北京)视频技术有限公司 System for verifying data integrity of new media program
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game
US20120233342A1 (en) * 2011-03-11 2012-09-13 Google Inc. Opportunistic Network Updates
CN102843400A (en) * 2011-06-23 2012-12-26 珠海市君天电子科技有限公司 method and system for downloading file
CN102523268A (en) * 2011-12-08 2012-06-27 北京新媒传信科技有限公司 Client side upgrading method and system
CN103428251A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Download task allocation method and device
CN103701841A (en) * 2012-09-27 2014-04-02 腾讯科技(深圳)有限公司 Download task list synchronizing method and device for mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337323A (en) * 2018-03-19 2018-07-27 深圳增强现实技术有限公司 A kind of metering instrument data AR Compare Systems and method based on full terminal

Similar Documents

Publication Publication Date Title
US20190042659A1 (en) Data writing and reading and apparatus and cloud storage system
CN109347675A (en) Server configuration method, device and electronic equipment
CN104158886B (en) Flow-type performing method for applications
WO2018049888A1 (en) Application data migration method and device
CN107395659A (en) A kind of method and device of service handling and common recognition
CN104836843A (en) Client application program updating method and device
CN102081650A (en) Method for rapidly displaying user interface of embedded type platform
US10430441B1 (en) Tagging resources of a remote computing service based on locality
CN103607424A (en) Server connection method and server system
CN107368513B (en) Method and device for updating client database
CN112015696B (en) Data access method, data relationship setting method, data access device, data relationship setting device and storage medium
CN110795495A (en) Data processing method and device, electronic equipment and computer readable medium
CN106302763A (en) A kind of establishment task minute wheel method for down loading and system
US8108523B2 (en) Automatic extension of distributed managed ranges in a multi-master system
CN114816272B (en) Magnetic disk management system under Kubernetes environment
CN114756261B (en) Container cluster upgrading method and system, electronic equipment and medium
CN103207789B (en) Application server constant value dynamic updating method and system
CN111031126A (en) Cluster cache sharing method, system, equipment and storage medium
CN111367921A (en) Data object refreshing method and device
CN110503504A (en) Information identifying method, device and the equipment of networking products
CN109670122A (en) Address information earth-filling method, device, equipment and computer readable storage medium
CN112417259B (en) Media resource processing method, device, equipment and storage medium
CN114117280A (en) Page static resource using method and device, terminal equipment and storage medium
CN105760396B (en) A kind of webpage loading method and device
CN109165365B (en) Method for updating picture by using cache frame and timestamp in android native application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104