CN105530323B - File upgrading method, related equipment and system - Google Patents

File upgrading method, related equipment and system Download PDF

Info

Publication number
CN105530323B
CN105530323B CN201610109697.5A CN201610109697A CN105530323B CN 105530323 B CN105530323 B CN 105530323B CN 201610109697 A CN201610109697 A CN 201610109697A CN 105530323 B CN105530323 B CN 105530323B
Authority
CN
China
Prior art keywords
upgrade
file
upgrading
client
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610109697.5A
Other languages
Chinese (zh)
Other versions
CN105530323A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610109697.5A priority Critical patent/CN105530323B/en
Publication of CN105530323A publication Critical patent/CN105530323A/en
Application granted granted Critical
Publication of CN105530323B publication Critical patent/CN105530323B/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

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

Abstract

The embodiment of the invention discloses a file upgrading method, related equipment and a system. The file upgrading method comprises the following steps: receiving upgrade request information of a client, wherein the upgrade request information comprises file information of a requested upgrade file; determining an upgrade type corresponding to the upgrade file, wherein the upgrade type comprises rapid upgrade and common upgrade; if the upgrade type is the common upgrade, judging whether the client is allocated with a download opportunity; and if the client is judged to be distributed to the downloading opportunity, sending a downloading path on the upgrading server to the client. By adopting the embodiment of the invention, the client can be subjected to time-sharing downloading control management according to the upgrading type of the file requested to be upgraded, so that whether the file is upgraded or not can be found in time.

Description

A kind of document upgrading method, relevant device and system
Technical field
The present invention relates to document upgrading technical field more particularly to a kind of document upgrading methods, relevant device and system.
Background technique
With the development of internet technology, mountable various software in client, and the software of installation can be upgraded. The mode of the software of client upgrading at present is to inquire file included in the software that active client is installed to upgrade server With the presence or absence of the file upgraded, if inquiring in the presence of the file for needing to upgrade, downloads and rise from upgrade server File after grade is to replace the file before upgrading, to realize software upgrading.
However, in the mode of current file upgrading, server to the upgrade requests of all clients to treat mode identical, If the whole network client requests upgrade file simultaneously, the upgrade file can be downloaded simultaneously, it in turn, can not be same to upgrading is requested simultaneously The client of one file carries out download management at times, if leading to the upgrade file, there are problems, will affect all request liters The client of grade file.
Summary of the invention
The embodiment of the invention provides a kind of document upgrading method, relevant device and systems.Solve can not to and meanwhile ask The technical issues of asking the client of upgrading same file to carry out download management at times.
The embodiment of the present invention first aspect provides a kind of document upgrading method, this method can include:
The request upgrade information of client is received, includes the file of requested upgrade file in the request upgrade information Information;
Determine that upgrading type corresponding to the upgrade file, the upgrading type include quickly upgrading and common upgrading;
If the upgrading type is the common upgrading, judge whether the client is assigned to downloading machine meeting;
If judging, the client is assigned to the downloading machine meeting, and the download path on upgrade server is sent To the client.
As optional embodiment, after the request upgrade information for receiving client, the method also includes:
File identification and FileVersion are obtained from the file information;
Judge the corresponding FileVersion of file identification described in upgrade server whether in the request upgrade information FileVersion is consistent;
Wherein, upgrading type corresponding to the determination upgrade file includes:
If judging inconsistent, it is determined that upgrading type corresponding to the upgrade file.
As optional embodiment, upgrading type corresponding to the determination upgrade file includes:
The lookup upgrading type corresponding with the upgrade file in preset file and the corresponding table of upgrading type;Or
Determine that corresponding upgrading type, the upgrading type are one or more corresponding according to the file attribute of the upgrade file A file attribute.
As optional embodiment, after upgrading type corresponding to the determination file, the method also includes:
If the corresponding upgrading type of the file is the quick upgrading, the downloading by upgrade server is executed Path is sent to the step of client.
As optional embodiment, it is described judge the client whether have downloading machine can before, the method also includes:
Downloading opportunity values are randomly assigned to the client;
Wherein, described to judge whether the client has downloading machine will include:
Judge whether the downloading opportunity values are less than or equal to predetermined probabilities threshold value;
If judging to be less than the predetermined probabilities threshold value, it is determined that the client has the downloading machine meeting.
The embodiment of the present invention second aspect provides a kind of document upgrading method, this method can include:
Request upgrade information is sent to control server, the request upgrade information includes the files-designated of request upgrade file Knowledge and FileVersion;
Receive the response message that the control server is sent for the request upgrade information;
If the response message expression received needs to upgrade, download path is obtained from the response message;
The upgrade file is downloaded from upgrade server according to the download path.
It is described that the upgrade file packet is downloaded from upgrade server according to the download path as optional embodiment It includes:
Parse the upgrading type for including in the download path;
The upgrade file is searched in the corresponding file of upgrading type described in the upgrade server;
When finding the upgrade file, the upgrade file is downloaded.
The embodiment of the present invention third aspect provides a kind of control server, the control server can include:
Receiving module includes requested in the request upgrade information for receiving the request upgrade information of client The file information of upgrade file;
Determining module, for determining that upgrading type corresponding to the upgrade file, the upgrading type include quickly rising Grade and common upgrading;
First judgment module, if determining that the upgrading type is the common upgrading, judgement for the determining module Whether the client is assigned to downloading machine meeting;
Sending module, if judging that the client is assigned to the downloading machine meeting for the first judgment module, The download path on upgrade server is then sent to the client.
As optional embodiment, further includes:
Module is obtained, for being believed after the request upgrade information that the receiving module receives client from the file File identification and FileVersion are obtained in breath;
Second judgment module, for judge the corresponding FileVersion of file identification described in upgrade server whether with it is described Request the FileVersion in upgrade information consistent;
Wherein, the determining module is also used to:
If second judgment module is judged inconsistent, it is determined that upgrading type corresponding to the upgrade file.
As optional embodiment, the determining module includes:
Searching unit, in preset file and lookup liter corresponding with the upgrade file in the corresponding table of upgrading type Grade type;Or
First determination unit, for determining corresponding upgrading type, the liter according to the file attribute of the upgrade file The corresponding one or more file attributes of grade type.
As optional embodiment, the sending module is also used to:
If the corresponding upgrading type of the file is the quick upgrading, the download path by upgrade server It is sent to the client.
As optional embodiment, further includes:
Distribution module, for before the first judgment module judges whether the client has downloading machine meeting, to institute It states client and is randomly assigned downloading opportunity values;
Wherein, the first judgment module includes:
Judging unit, for judging whether the downloading opportunity values are less than or equal to predetermined probabilities threshold value;
Second determination unit, if judging to be less than the predetermined probabilities threshold value for the judging unit, it is determined that institute Stating client has the downloading machine meeting.
The embodiment of the present invention fourth aspect provides a kind of client, the client can include:
Sending module, for sending request upgrade information to control server, the request upgrade information includes that request rises The file identification and FileVersion of grade file;
Receiving module, the response message sent for receiving the control server for the request upgrade information;
Module is obtained, if the response message expression received for the receiving module needs to upgrade, from described Download path is obtained in response message;
Download module, for downloading the upgrade file from upgrade server according to the download path.
As optional embodiment, the download module includes:
Resolution unit, for parsing the upgrading type for including in the download path;
Searching unit, for searching the upgrading in the corresponding file of upgrading type described in the upgrade server File;
Download unit, for downloading the upgrade file when the searching unit finds the upgrade file.
The aspect of the embodiment of the present invention the 5th provides a kind of control server, the control server may include processor and Memory, the memory are used to call the program code of the memory storage for storing program code, the processor, To execute the method in first aspect.
The aspect of the embodiment of the present invention the 6th provides a kind of client, which may include processor and memory, The memory is for storing program code, and the processor is used to call the program code of the memory storage, to execute Method in second aspect.
The 7th aspect of the embodiment of the present invention provides a kind of upgrade-system, including at least one client, control server And upgrade server, in which: control server includes control server described in third or the 5th aspect, and client includes the 4th Or the 6th aspect described in control server.
In the embodiment of the present invention, when receiving the request upgrade information of client, it can determine whether that client passes through the request Upgrade information requests whether the file of upgrading needs to upgrade, if this document needs to upgrade, can determine corresponding to this document Upgrade type, and according to different upgrading types, determines the response time that feedback client can upgrade;If it is determined that the upgrading When upgrading type corresponding to file is common upgrading, it can further judge whether the client is assigned to downloading machine meeting, if Judge that the client is assigned to the downloading machine meeting, then download path can be sent to the client, so that client can root The upgraded version of this document is downloaded to from upgrade server according to the download path.By the above-mentioned means, can be to according to being requested The upgrading type of the file of upgrading carries out the management of downloading control at times to client, after finding document upgrading in time Whether problem can be had.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow chart of an embodiment of one of present invention document upgrading method;
Fig. 2 is the flow chart of another embodiment of one of present invention document upgrading method;
Fig. 3 is the flow chart of the another embodiment of one of present invention document upgrading method;
Fig. 4 is the flow chart of the another embodiment of one of present invention document upgrading method;
Fig. 5 is the structural schematic diagram of an embodiment of one of present invention control server;
Fig. 6 is the structural schematic diagram of another embodiment of one of present invention control server;
Fig. 7 is the structural schematic diagram of an embodiment of one of present invention client;
Fig. 8 is the structural schematic diagram of the another embodiment of one of present invention control server;
Fig. 9 is the structural schematic diagram of another embodiment of one of present invention client;
Figure 10 is the structural schematic diagram of an embodiment of one of present invention upgrade-system.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is only the present invention The embodiment of a part, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having Every other embodiment obtained under the premise of creative work is made, should fall within the scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Below with reference to the accompanying drawings the embodiment of the present invention is described.Wherein, the control server in the embodiment of the present invention It can be interactively communicated with client and upgrade server, which can be as logical between client and upgrade server Believe node.
It is the flow chart of an embodiment of one of present invention document upgrading method referring to Fig. 1, Fig. 1.This method can be by Control server is realized.This method may include following steps.
Step S101 receives the request upgrade information of client, includes requested upgrading in the request upgrade information The file information of file.
In one embodiment, the request upgrade information for receiving client shows that client is needed to the software installed In at least one file upgraded.Wherein, in the software stored in upgrade server after file version updating, control can be passed through Server voluntarily notifies client, asks whether to need to upgrade the file in the software or the software, if receiving The request upgrade information of client shows that client needs to update the FileVersion of the upgrade file;Alternatively, by client not In the case that reception has update notification, upgrade information is requested in spontaneous transmission, to request upgrade file.Wherein, above situation Under may include in the request upgrade information that receives requested upgrade file the file information, this document information may include file Mark and FileVersion, file identification may include filename, and the information such as file MD5 value can controlled by this document mark Corresponding file is found in server or upgrade server, and the version of client current file can be determined by fileversion number Whether whether this number be latest edition number, i.e., need to upgrade the version file.
Step S102, determines upgrading type corresponding to the upgrade file, the upgrading type include quickly upgrading and Common upgrading.
In one embodiment, after receiving the request upgrade information of client, it may be determined that liter corresponding to this document Grade type, wherein the upgrading type may include quick upgrading and common upgrading.Specifically, upgrading type can pass through file attribute It distinguishes, if the file attribute of upgrade file is configuration file, the error probability of the class file is small, and when software upgrading, Needing to configure file can be only achieved the quick use of function, therefore in upgrading, the upgrading type of the class file can be defined as Quickly upgrading, for the alternative document in software, such as file attribute is DLL or EXE non-configuration file, which is generally The file used is really executed in software program, the error probability in turn of the class file is big, therefore upgrading type can be defined as Common upgrading.
Optionally, file can be established in control server and upgrades the mapping table of type, in the mapping table Each list item may include a file and its corresponding upgrading type, as may include file identification, FileVersion, file in list item The information such as upgrading type can find this article in the mapping table established by the request upgrade information of client The corresponding upgrading type of part.Control server can also be solved according to above-mentioned rule, in the request upgrade information for receiving client The file attribute of wherein requested upgrade file is analysed, and determines the upgrading type of this document according to file attribute.
Step S103 judges whether the client is assigned to downloading if the upgrading type is the common upgrading Chance.
In one embodiment, however, it is determined that the upgrading type for going out upgrade file is common upgrading, then can determine whether the client Whether downloading machine meeting is assigned to.Specifically, control server needs if having multiple client while requesting to download the upgrade file Downloading machine meeting is distributed for each client, the client for being assigned to downloading machine meeting can obtain download address, unassigned Client needs to downloading machine meeting continue to strive for downloading machine meeting in next assignment period.
Step S104, if judging, the client is assigned to the downloading machine meeting, under on upgrade server It carries path and is sent to the client.
In one embodiment, if judging, the client is assigned to downloading machine meeting, can will be on upgrade server Download path is sent to client.It is sent to specifically, control server can generate download path according to the information of above-mentioned acquisition Client can also request the download path of the upgrade file to upgrade server.The form of download path can be the path URL, such as Http:// pc001.ks.kprotect.com/fast/cmcm/fnsign.dat or http: // Pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc..
In the embodiment of the present invention, when receiving the request upgrade information of client, it can determine whether that client passes through the request Upgrade information requests whether the file of upgrading needs to upgrade, if this document needs to upgrade, can determine corresponding to this document Upgrade type, and according to different upgrading types, determines and send the response time that client can upgrade;If it is determined that the upgrading When upgrading type corresponding to file is common upgrading, it can further judge whether the client is assigned to downloading machine meeting, if Judge that the client is assigned to the downloading machine meeting, then download path can be sent to the client, so that client can root The upgraded version of this document is downloaded to from upgrade server according to the download path.By the above-mentioned means, can be to according to being requested The upgrading type of the file of upgrading carries out the management of downloading control at times to client, after finding document upgrading in time Whether problem can be had.
Referring to Fig. 2, Fig. 2 is the flow chart of another embodiment of one of present invention document upgrading method.This method It can be realized by control server.This method may include following steps.
Step S201 receives the request upgrade information of client, includes requested upgrading in the request upgrade information The file information of file.
The embodiment of the present invention mainly describes client and is not receiving upgrade server or control server for a certain text When the upgrade notification of part, the case where requesting upgrade information is sent to control server according to the default frequency.Certainly, the present invention is implemented If example further includes upgrade server or scalable control server notice client a certain software therein, the unknown tool of client The All Files information for including in software can be sent to control server by request upgrade information by the upgrade file of body, or Person upgrades a file in software according to the frequency is sent by request upgrade information every time.Control server can receive the visitor The request upgrade information at family end requests whether one or more files of upgrading need to rise to determine in request upgrade information Grade.
Step S202 obtains file identification and FileVersion from the file information.
It in one embodiment, can be from request upgrade information institute after receiving the request upgrade information of client transmission The file identification and FileVersion of requested upgrade file are obtained in the file information for including.File identification may include filename, The information such as file MD5 value.
Step S203, judges whether the corresponding FileVersion of file identification described in upgrade server upgrades with the request FileVersion in information is consistent.
In one embodiment, after getting above- mentioned information, corresponding file can be found by file identification, in turn Whether the FileVersion that can determine whether that this document FileVersion corresponding in appreciation server and client are sent is consistent, if not Unanimously, show the new FileVersion in appreciation server there are the upgrade file, show that the upgrade file needs to upgrade.It needs Illustrate, control server can file in real-time synchronization upgrade server FileVersion, client can also got After the file information of transmission, the indicated corresponding FileVersion of file into upgrade server inquiry the file information, with visitor The FileVersion that family end is sent compares.This embodiment of the present invention without limitation.
If judging unanimously, to show that there is no new for requested one or more upgrade files in the request upgrade information FileVersion, can to the client send be directed to the request upgrade information response message, the response message show without pair The upgrade file of request is upgraded.
Step S204, if judging inconsistent, it is determined that upgrading type corresponding to the upgrade file, the upgrading class Type includes quickly upgrading and common upgrading.
In one embodiment, if judging the upgraded version of upgrade file and visitor in upgrade server by step S203 The upgraded version for the upgrade file that family end is sent is inconsistent, then shows that the upgrade file needs to upgrade, then can further determine that this Upgrading type corresponding to upgrade file, wherein upgrading type may include quick upgrading and common upgrading.
The mode for determining upgrading type corresponding to upgrade file can be any one in following manner:
One, the lookup upgrading type corresponding with the upgrade file in preset file and the corresponding table of upgrading type.
Specifically, upgrading class corresponding to each file can be preset in preset file table corresponding with upgrading type Type may include optionally file identification, the FileVersion synchronous with upgrade server, upgrading type in the list item of the correspondence table Etc. information.When the file information sent by client, the corresponding table item in the correspondence table can be found, so as to from the correspondence The upgrading type of upgrade file is found in table.
Two, determine that corresponding upgrading type, the upgrading type are one corresponding according to the file attribute of the upgrade file Or multiple file attributes.
Specifically, control server can also determine that this is corresponding according to the file attribute of the requested upgrade file of client Upgrade type.The file attribute of upgrade file may be embodied in the filename in file identification.Upgrading type can pass through file category Property distinguish, if the file attribute of upgrade file be configuration file, the error probability of the class file is small, and software upgrading When, needing to configure file can be only achieved the quick use of function, therefore in upgrading, the upgrading type of the class file can be defined Quickly to upgrade, for the alternative document in software, such as file attribute is DLL or EXE non-configuration file, and the class file is general Really to execute the file used in software program, the error probability in turn of the class file is big, therefore upgrading type can be defined Commonly to upgrade.
Step S205, if the upgrading type is the common upgrading, Xiang Suoshu client is randomly assigned downloading opportunity values.
In one embodiment, however, it is determined that, can be to the client when upgrading type for going out the upgrade file is common upgrading It is randomly assigned downloading opportunity values.Specifically, can divide according to requesting the client terminal quantity for upgrading the upgrade file to determine to download simultaneously Value range with value.For example, downloading opportunity values if the client terminal quantity that request upgrades the upgrade file is 100 Value range be 1~100;If the client terminal quantity that request upgrades the upgrade file is 50, the value of opportunity values is downloaded Range is 1~50.Control server can be that each client distributes a downloading opportunity values in the value range, wherein every The downloading opportunity values that a client is assigned to are different, so that control server can be controlled while be requested according to which Client be downloaded at times.
Step S206, judges whether the downloading opportunity values are less than or equal to predetermined probabilities threshold value.
In one embodiment, the client probability for being able to carry out downloading every time can be preset, if the probability can be 20%, if The quantity of client is 100, then preset probability threshold value is 20, preset general if the quantity of client is 50 Rate threshold value is 10.It is less than predetermined probabilities threshold value if the downloading opportunity values of client distribution, such as works as preset probability When threshold value is 20, if the downloading opportunity values that the client is assigned to are any value in 1~20, show the client quilt It is assigned to downloading machine meeting, for other clients, the client that such as downloading opportunity values of distribution are 21~100 then needs It is carried out to redistribute downloading opportunity values in next assignment period, wherein the value that can be preferentially randomly assigned in 1~20, until The downloading opportunity values of client are assigned in 1~20 section, then show to win distribution by multiple period all clients Chance.Certainly, the client understood for being not assigned to downloading machine, can drop the request upgrade information of the client, until visitor When family end does not receive the response message of control server in the given time, request upgrading is sent after preset period of time again Information request upgrades this document;S201 can be re-execute the steps;The sound for not obtaining downloading machine meeting can also be sent to the client Information is answered, so that the client be notified to retransmit the request upgrade information after preset period of time.
Step S207 sends out the download path on upgrade server if judging to be less than the predetermined probabilities threshold value Give the client.
In one embodiment, default if judging that the assigned downloading opportunity values of the client are less than in step S206 Probability threshold value, then show that the client has been assigned to downloading machine meeting, the download path on upgrade server can be sent out Give client.Specifically, control server, which can generate download path according to the information of above-mentioned acquisition, is sent to client, it can also The download path of the upgrade file is requested to upgrade server.The form of download path can be the path URL, such as http: // Pc001.ks.kprotect.com/fast/cmcm/fnsign.dat or http://pc001.ks.kprotect.com/ Bin/cmcm/kbasesrv.exe etc..
Optionally, the upgrade file can be also downloaded from upgrade server according to the download path of generation and can be by the upgrading File is transferred to client.
In the embodiment of the present invention, when receiving the request upgrade information of client, it can determine whether that client passes through the request Upgrade information requests whether the file of upgrading needs to upgrade, if this document needs to upgrade, can determine corresponding to this document Upgrade type, and according to different upgrading types, determines the response time that feedback client can upgrade;If it is determined that the upgrading When upgrading type corresponding to file is common upgrading, it can further judge whether the client is assigned to downloading machine meeting, if Judge that the client is assigned to the downloading machine meeting, then download path can be sent to the client, so that client can root The upgraded version of this document is downloaded to from upgrade server according to the download path.By the above-mentioned means, can be to according to being requested The upgrading type of the file of upgrading carries out the management of downloading control at times to client, after finding document upgrading in time Whether problem can be had.
Referring to Fig. 3, Fig. 3 is the flow chart of the another embodiment of one of present invention document upgrading method.This method It can be realized by client.This method may include following steps.
Step S301 sends request upgrade information to control server, and the request upgrade information includes request upgrading text The file identification and FileVersion of part.
In one embodiment, request upgrade information can be sent to control server, which may include asking Ask the file identification and FileVersion of upgrade file.Specifically, can receive what upgrade server or control server were sent Request upgrade information is sent to control server for after the upgrade notification of software, can also periodically be sent to control server Request upgrade information.Wherein, it requests in upgrade information to may include one or more the file informations for requesting upgrade files, such as request Upgrade information may include the file information of the All Files in a software to upgrade all files that can upgrade in the software, And then software upgrading is completed, it may also comprise the file information of a file in the software, the embodiment of the present invention is not construed as limiting.
Step S302 receives the response message that the control server is sent for the request upgrade information.
In one embodiment, after sending request upgrade information to the control server, it can receive the control server The response message sent for the request upgrade information, wherein the response message can be used for indicating requesting to be asked in upgrade information The upgrade file asked needs to upgrade and does not need to upgrade;If the request upgrade information requests multiple upgrade files, response message It may further indicate that the upgrade file and the upgrade file for not needing upgrading that needs upgrade.
Step S303, if the response message expression received needs to upgrade, under obtaining in the response message Carry path.
In one embodiment, it if the response message expression received needs to upgrade, can be obtained from the response message Download path.Specifically, needing to upgrade if receiving response message expression, it can determine that the client has downloading machine meeting, it can Download path is obtained from the response message, required for downloading to from upgrade server according to the download path Upgrade file.
Optionally, if the client does not receive response message in predetermined period, indicate that the client is not assigned to Downloading machine meeting then can execute step S101 in next sending cycle, i.e., send request upgrading letter to control server again Breath, until receiving response message.
Step S304 downloads the upgrade file according to the download path from upgrade server.
In one embodiment, after receiving response message, can be downloaded from upgrade server according to download path should Upgrade file.Optionally, the upgrade file can be downloaded in the following manner:
Parse the upgrading type for including in the download path;
The upgrade file is searched in the corresponding file of upgrading type described in the upgrade server;
When finding the upgrade file, the upgrade file is downloaded.
Specifically, the format of download path can be the path URL, such as http://pc001.ks.kprotect.com/fast/ Cmcm/fnsign.dat or http://pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc..It is such as above-mentioned For download path format it is found that as in above-mentioned download path, fast can represent quickly upgrading type, and bin can represent common upgrading class Type.Upgrade file is managed by upgrading classification of type in upgrade server, such as parses the upgrading type in download path, it can The position where upgrade file is quickly found, and then the upgrade file can be got according to file identification, it can be to upgrading text Part is downloaded.
In the embodiment of the present invention, by sending request upgrade information to control server, and receives control server and be directed to The respond request that the request upgrade information is sent, determines whether requested upgrade file needs to upgrade, if desired upgrades, then may be used The upgrade file is downloaded to from upgrade server according to the download path in respective request information, it is controllable by control server It makes the download time of the client and the transmission pressure that clear all clients are requested to upgrade server can be delayed.
Referring to Fig. 4, Fig. 4 is the flow chart of the another embodiment of one of present invention document upgrading method.Such as Fig. 4 institute Show, this method describe pass through the one way in which of client, control server and upgrade server to document upgrading, the party Method specifically may include following steps.
Step S401, client send request upgrade information to control server.
Step S402 determines the upgrading of the upgrade file after control server receives the request upgrade information of the client Type.
Step S403, if control server determines that the upgrading type is common upgrading, judge the client whether by It is assigned to downloading machine meeting.
Step S404, if judging, the client is assigned to downloading machine meeting, and download path is sent to the client.
The download path is sent to upgrade server by step S405, client.
Step S406, upgrade server find corresponding upgrade file according to the download path.
The upgrade file is transmitted to client by step S407, upgrade server.
The specific descriptions of above-mentioned steps can be found in the description of mode step in FIG. 1 to FIG. 3, wouldn't repeat herein.
Optionally, in the embodiment of the present invention, after control server receives the request upgrade information of client, control clothes Business device or upgrade server can send the upgrade notification for being directed to a software to client.
Optionally, it in the embodiment of the present invention, after control server receives the request upgrade information of client, also can determine whether Whether the requested upgrade file of request upgrade information needs to upgrade.
Through the embodiment of the present invention, control server can be made to control the time of client downloads upgrade file, it can The management of downloading control at times is carried out to client to according to the upgrading type for the file for requesting upgrading, so as to send out in time Whether there can be problem after existing document upgrading.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of an embodiment of one of present invention control server.Control clothes Business device may include receiving module 501, determining module 502, first judgment module 503, sending module 504.
Wherein, receiving module 501 include in the request upgrade information for receiving the request upgrade information of client The file information of requested upgrade file.
In one embodiment, receiving module 501 receives the request upgrade information of client, shows that client is needed to institute At least one file is upgraded in the software of installation.Wherein, in the software stored in upgrade server after file version updating, Client can be notified by control server or voluntarily, ask whether to need to rise the file in the software or the software Grade, if receiving the request upgrade information of client, shows that client needs to update the FileVersion of the upgrade file;Alternatively, By client in the case where not received update notification, upgrade information is requested in spontaneous transmission, to request upgrade file.Its In, it may include the file information of requested upgrade file, this document letter in the request upgrade information that is received under above situation Breath may include file identification and FileVersion, and file identification may include filename, and the information such as file MD5 value pass through this document Mark can find corresponding file in control server or upgrade server, and can determine client by fileversion number Whether whether the version number of current file is latest edition number, i.e., need to upgrade the version file.
Determining module 502, for determining that upgrading type corresponding to the upgrade file, the upgrading type include quick Upgrading and common upgrading.
In one embodiment, after receiving module 501 receives the request upgrade information of client, determining module 502 It can determine upgrading type corresponding to this document, wherein the upgrading type may include quick upgrading and common upgrading.Specifically, Upgrading type can be distinguished by file attribute, if the file attribute of upgrade file is configuration file, the error of the class file Probability is small, and when software upgrading, and needing to configure file can be only achieved the quick use of function, therefore in upgrading, such text The upgrading type of part can be defined as quickly upgrading, and for the alternative document in software, such as file attribute is that DLL or EXE is non- Configuration file, the class file are generally the file for really executing and using in software program, and the error probability in turn of the class file is big, Therefore upgrading type can be defined as commonly upgrading.
Optionally, file can be established in control server and upgrades the mapping table of type, in the mapping table Each list item may include a file and its corresponding upgrading type, as may include file identification, FileVersion, file in list item The information such as upgrading type can find this article in the mapping table established by the request upgrade information of client The corresponding upgrading type of part.Control server can also be solved according to above-mentioned rule, in the request upgrade information for receiving client The file attribute of wherein requested upgrade file is analysed, and determines the upgrading type of this document according to file attribute.
First judgment module 503, if determining that the upgrading type is the common liter for the determining module 502 Grade, judges whether the client is assigned to downloading machine meeting.
In one embodiment, however, it is determined that module 502 determines that the upgrading type of upgrade file is common upgrading, then first Judgment module 503 can determine whether the client is assigned to downloading machine meeting.Specifically, if under having multiple client while requesting The upgrade file is carried, control server needs to distribute downloading machine meeting for each client, is assigned to the client of downloading machine meeting Download address can be obtained, the client needs for being not assigned to downloading machine meeting continue to strive for downloading machine in next assignment period Meeting.
Sending module 504, if judging that the client is assigned to the downloading for the first judgment module 503 Download path on upgrade server is then sent to the client by chance.
In one embodiment, if first judgment module 503 judges that the client is assigned to downloading machine meeting, mould is sent Download path on upgrade server can be sent to client by block 504.Specifically, control server can be according to above-mentioned acquisition Information generate download path be sent to client, the download path of the upgrade file can also be requested to upgrade server.Downloading The form in path can be the path URL, such as http://pc001.ks.kprotect.com/fast/cmcm/fnsign.dat, or Http:// pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc..
In the embodiment of the present invention, when receiving the request upgrade information of client, it can determine whether that client passes through the request Upgrade information requests whether the file of upgrading needs to upgrade, if this document needs to upgrade, can determine corresponding to this document Upgrade type, and according to different upgrading types, determines and send the response time that client can upgrade;If it is determined that the upgrading When upgrading type corresponding to file is common upgrading, it can further judge whether the client is assigned to downloading machine meeting, if Judge that the client is assigned to the downloading machine meeting, then download path can be sent to the client, so that client can root The upgraded version of this document is downloaded to from upgrade server according to the download path.By the above-mentioned means, can be to according to being requested The upgrading type of the file of upgrading carries out the management of downloading control at times to client, after finding document upgrading in time Whether problem can be had.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another embodiment of one of present invention control server.The control Control server may include receiving module 601, obtain module 602, the second judgment module 603, determining module 604, distribution module 605, first judgment module 606, sending module 607.
Wherein, receiving module 601 include in the request upgrade information for receiving the request upgrade information of client The file information of requested upgrade file.
The embodiment of the present invention mainly describes client and is not receiving upgrade server or control server for a certain text When the upgrade notification of part, the case where requesting upgrade information is sent to control server according to the default frequency.Certainly, the present invention is implemented If example further includes upgrade server or scalable control server notice client a certain software therein, the unknown tool of client The All Files information for including in software can be sent to control server by request upgrade information by the upgrade file of body, or Person upgrades a file in software according to the frequency is sent by request upgrade information every time.Receiving module 601 can receive the visitor The request upgrade information at family end requests whether one or more files of upgrading need to rise to determine in request upgrade information Grade.
Module 602 is obtained, for obtaining file identification and FileVersion from the file information.
In one embodiment, after receiving module 601 receives the request upgrade information of client transmission, module is obtained 602 can obtain the file identification and FileVersion of requested upgrade file from the file information that request upgrade information is included. File identification may include filename, the information such as file MD5 value.
Second judgment module 603, for judge the corresponding FileVersion of file identification described in upgrade server whether with FileVersion in the request upgrade information is consistent.
In one embodiment, after acquisition module 602 gets above- mentioned information, correspondence can be found by file identification File, and then the second judgment module 603 can determine whether this document FileVersion corresponding in appreciation server and client Whether the FileVersion of transmission is consistent, if inconsistent, shows the new FileVersion in appreciation server there are the upgrade file, Show that the upgrade file needs to upgrade.It should be noted that control server can file in real-time synchronization upgrade server FileVersion, can also be indicated into upgrade server inquiry the file information after the file information for getting client transmission The corresponding FileVersion of file, to be compared with the FileVersion that client is sent.It is not limited in this embodiment of the present invention It is fixed.
If judging unanimously, to show that there is no new for requested one or more upgrade files in the request upgrade information FileVersion, can to the client send be directed to the request upgrade information response message, the response message show without pair The upgrade file of request is upgraded.
Determining module 604, if judging for second judgment module 603 inconsistent, it is determined that the upgrade file Corresponding upgrading type.
In one embodiment, if judging the upgrading of upgrade file in upgrade server by the second judgment module 603 Version and the upgraded version for the upgrade file that client is sent are inconsistent, then show that the upgrade file needs to upgrade, it is determined that mould Block 604 can further determine that upgrading type corresponding to the upgrade file, wherein upgrading type may include quick upgrading and common Upgrading.
Determining module 604 may include following one or more units:
Searching unit, the lookup upgrading class corresponding with the upgrade file in preset file and the corresponding table of upgrading type Type.
Specifically, upgrading class corresponding to each file can be preset in preset file table corresponding with upgrading type Type may include optionally file identification, the FileVersion synchronous with upgrade server, upgrading type in the list item of the correspondence table Etc. information.When the file information sent by client, the corresponding table item in the correspondence table can be found, so as to from the correspondence The upgrading type of upgrade file is found in table.
First determination unit, for determining corresponding upgrading type, the liter according to the file attribute of the upgrade file The corresponding one or more file attributes of grade type.
Specifically, control server can also determine that this is corresponding according to the file attribute of the requested upgrade file of client Upgrade type.The file attribute of upgrade file may be embodied in the filename in file identification.Upgrading type can pass through file category Property distinguish, if the file attribute of upgrade file be configuration file, the error probability of the class file is small, and software upgrading When, needing to configure file can be only achieved the quick use of function, therefore in upgrading, the upgrading type of the class file can be defined Quickly to upgrade, for the alternative document in software, such as file attribute is DLL or EXE non-configuration file, and the class file is general Really to execute the file used in software program, the error probability in turn of the class file is big, therefore upgrading type can be defined Commonly to upgrade.
Distribution module 605, for being randomly assigned downloading opportunity values to the client.
In one embodiment, however, it is determined that when module 604 determines that the upgrading type of the upgrade file is common upgrading, point Downloading opportunity values can be randomly assigned to the client with module 605.Specifically, can according to simultaneously request to upgrade the upgrade file Client terminal quantity determines the value range of downloading apportioning cost.For example, if request upgrades the client terminal quantity of the upgrade file It is 100, then the value range for downloading opportunity values is 1~100;If the client terminal quantity that request upgrades the upgrade file is 50 A, then the value range for downloading opportunity values is 1~50.Control server can be each client distribution one in the value range A downloading opportunity values, wherein the downloading opportunity values that each client is assigned to are different, thus according to which, control clothes Business device can control while the client requested is downloaded at times.
First judgment module 606 is sentenced if determining that the upgrading type is the common upgrading for the determining module Whether the client of breaking is assigned to downloading machine meeting.
In the embodiment of the present invention, first judgment module 606 may include with lower unit:
Judging unit, for judging whether the downloading opportunity values are less than or equal to predetermined probabilities threshold value.
Second determination unit, if judging to be less than the predetermined probabilities threshold value for the judging unit, it is determined that institute Stating client has the downloading machine meeting.
In one embodiment, the client probability for being able to carry out downloading every time can be preset, if the probability can be 20%, if The quantity of client is 100, then preset probability threshold value is 20, preset general if the quantity of client is 50 Rate threshold value is 10.It is less than predetermined probabilities threshold value if the downloading opportunity values of client distribution, such as works as preset probability When threshold value is 20, if the downloading opportunity values that the client is assigned to are any value in 1~20, show the client quilt It is assigned to downloading machine meeting, for other clients, the client that such as downloading opportunity values of distribution are 21~100 then needs It is carried out to redistribute downloading opportunity values in next assignment period, wherein the value that can be preferentially randomly assigned in 1~20, until The downloading opportunity values of client are assigned in 1~20 section, then show to win distribution by multiple period all clients Chance.Certainly, the client understood for being not assigned to downloading machine, can drop the request upgrade information of the client, until visitor When family end does not receive the response message of control server in the given time, request upgrading is sent after preset period of time again Information request upgrades this document;I.e. receiving module 601 receives request upgrade information again;It can also send to the client and not obtain The response message of downloading machine meeting, so that the client be notified to retransmit the request upgrade information after preset period of time.
Sending module 607, if judging that the client is assigned to the downloading for the first judgment module 606 Download path on upgrade server is then sent to the client by chance.
In one embodiment, if first judgment module 606 judges that the client is assigned to downloading machine meeting, mould is sent Download path on upgrade server can be sent to client by block 607.Specifically, control server can be according to above-mentioned acquisition Information generate download path be sent to client, the download path of the upgrade file can also be requested to upgrade server.Downloading The form in path can be the path URL, such as http://pc001.ks.kprotect.com/fast/cmcm/fnsign.dat, or Http:// pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc..
In the embodiment of the present invention, when receiving the request upgrade information of client, it can determine whether that client passes through the request Upgrade information requests whether the file of upgrading needs to upgrade, if this document needs to upgrade, can determine corresponding to this document Upgrade type, and according to different upgrading types, determines and send the response time that client can upgrade;If it is determined that the upgrading When upgrading type corresponding to file is common upgrading, it can further judge whether the client is assigned to downloading machine meeting, if Judge that the client is assigned to the downloading machine meeting, then download path can be sent to the client, so that client can root The upgraded version of this document is downloaded to from upgrade server according to the download path.By the above-mentioned means, can be to according to being requested The upgrading type of the file of upgrading carries out the management of downloading control at times to client, after finding document upgrading in time Whether problem can be had.
Sending module 607, if being also used to the determining module 604 determines that the corresponding upgrading type of the file is described Quickly upgrading, then the download path by upgrade server is sent to the client.
In the embodiment of the present invention, when receiving the request upgrade information of client, it can determine whether that client passes through the request Upgrade information requests whether the file of upgrading needs to upgrade, if this document needs to upgrade, can determine corresponding to this document Upgrade type, and according to different upgrading types, determines the response time that feedback client can upgrade;If it is determined that the upgrading When upgrading type corresponding to file is common upgrading, it can further judge whether the client is assigned to downloading machine meeting, if Judge that the client is assigned to the downloading machine meeting, then download path can be sent to the client, so that client can root The upgraded version of this document is downloaded to from upgrade server according to the download path.By the above-mentioned means, can be to according to being requested The upgrading type of the file of upgrading carries out the management of downloading control at times to client, after finding document upgrading in time Whether problem can be had.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of an embodiment of one of present invention client.The client can Include: sending module 701, receiving module 702, obtain module 703, download module 704.
Sending module 701, for sending request upgrade information to control server, the request upgrade information includes request The file identification and FileVersion of upgrade file.
In one embodiment, sending module 701 can send request upgrade information, request upgrading letter to control server Breath may include the file identification and FileVersion for requesting upgrade file.Specifically, upgrade server or control clothes can received Request upgrade information is sent to control server after the upgrade notification for software that device is sent of being engaged in, it can also be periodically to control Server sends request upgrade information.Wherein, it requests in upgrade information to may include one or more files for requesting upgrade files Information, such as request upgrade information may include the file information of All Files in a software with upgrade it is all in the software can The file of upgrading, and then software upgrading is completed, it may also comprise the file information of a file in the software, the embodiment of the present invention It is not construed as limiting.
Receiving module 702, the response message sent for receiving the control server for the request upgrade information.
In one embodiment, after sending module 701 sends request upgrade information to the control server, receiving module 702, which can receive the control server, is directed to the response message that the request upgrade information is sent, wherein the response message can be used for table Show that requested upgrade file needs to upgrade and do not need to upgrade in request upgrade information;If request upgrade information request is multiple Upgrade file, then response message may further indicate that the upgrade file and the upgrade file for not needing upgrading that needs upgrade.
Module 703 is obtained, if the response message expression for the receiving module 702 to receive needs to upgrade, Download path is obtained from the response message.
In one embodiment, if the response message expression that receiving module 702 receives needs to upgrade, module is obtained 703 can obtain download path from the response message.Specifically, needing to upgrade if receiving response message expression, can determine The client has downloading machine meeting, download path can be obtained from the response message, so as to the basis from upgrade server The download path downloads to required upgrade file.
Optionally, if the client does not receive response message in predetermined period, indicate that the client is not assigned to Downloading machine meeting then can execute step S101 in next sending cycle, i.e., send request upgrading letter to control server again Breath, until receiving response message.
Download module 704, for downloading the upgrade file from upgrade server according to the download path.
In one embodiment, after receiving response message, download module 704 can be according to download path from upgrade service The upgrade file is downloaded in device.Optionally, download module may include with lower unit:
Resolution unit, for parsing the upgrading type for including in the download path;
Searching unit, for searching the upgrading in the corresponding file of upgrading type described in the upgrade server File;
Download unit, for downloading the upgrade file when searching unit finds the upgrade file.
Specifically, the format of download path can be the path URL, such as http://pc001.ks.kprotect.com/fast/ Cmcm/fnsign.dat or http://pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc..It is such as above-mentioned For download path format it is found that as in above-mentioned download path, fast can represent quickly upgrading type, and bin can represent common upgrading class Type.Upgrade file is managed by upgrading classification of type in upgrade server, such as parses the upgrading type in download path, it can The position where upgrade file is quickly found, and then the upgrade file can be got according to file identification, it can be to upgrading text Part is downloaded.
In the embodiment of the present invention, by sending request upgrade information to control server, and receives control server and be directed to The respond request that the request upgrade information is sent, determines whether requested upgrade file needs to upgrade, if desired upgrades, then may be used The upgrade file is downloaded to from upgrade server according to the download path in respective request information, it is controllable by control server It makes the download time of the client and the transmission pressure that clear all clients are requested to upgrade server can be delayed.
Referring to Fig. 8, Fig. 8 is the structural schematic diagram of the another embodiment of one of present invention control server.The control Control server may include: at least one processor 501, such as CPU, at least one transceiver 503, and memory 504 and at least One communication bus 502.Wherein, communication bus 502 is for realizing the connection communication between these components, and transceiver 503 can be with Wireline interface and wireless interface including standard, memory 504 can be high speed RAM memory, be also possible to non-labile Memory (non-volatile memory), such as at least one magnetic disk storage, optionally, memory 504 be can also be at least One is located remotely from the storage device of aforementioned processor 501.Wherein, batch processing code, and processor are stored in memory 504 The program code stored in 501 calling memories 504, for performing the following operations:
The request upgrade information of client is received, includes the file of requested upgrade file in the request upgrade information Information;
Determine that upgrading type corresponding to the upgrade file, the upgrading type include quickly upgrading and common upgrading;
If the upgrading type is the common upgrading, judge whether the client is assigned to downloading machine meeting;
If judging, the client is assigned to the downloading machine meeting, and the download path on upgrade server is sent To the client.
As optional embodiment, after the request upgrade information for receiving client, the processor 501 is also used to The program code stored in memory 504 is called, to execute following operation:
File identification and FileVersion are obtained from the file information;
Judge the corresponding FileVersion of file identification described in upgrade server whether in the request upgrade information FileVersion is consistent;
Wherein, upgrading type corresponding to the determination upgrade file includes:
If judging inconsistent, it is determined that upgrading type corresponding to the upgrade file.
As optional embodiment, the concrete mode for determining upgrading type corresponding to the upgrade file is stated are as follows:
The lookup upgrading type corresponding with the upgrade file in preset file and the corresponding table of upgrading type;Or
Determine that corresponding upgrading type, the upgrading type are one or more corresponding according to the file attribute of the upgrade file A file attribute.
As optional embodiment, after upgrading type corresponding to the determination file, the processor 501 is also For calling the program code stored in memory 504, to execute following operation:
If the corresponding upgrading type of the file is the quick upgrading, the downloading by upgrade server is executed Path is sent to the step of client.
As optional embodiment, it is described judge the client whether have downloading machine can before, the processor 501 also For calling the program code stored in memory 504, to execute following operation:
Downloading opportunity values are randomly assigned to the client;
Wherein, described to judge whether the client has downloading machine will include:
Judge whether the downloading opportunity values are less than or equal to predetermined probabilities threshold value;
If judging to be less than the predetermined probabilities threshold value, it is determined that the client has the downloading machine meeting.
In the embodiment of the present invention, when receiving the request upgrade information of client, it can determine whether that client passes through the request Upgrade information requests whether the file of upgrading needs to upgrade, if this document needs to upgrade, can determine corresponding to this document Upgrade type, and according to different upgrading types, determines the response time that feedback client can upgrade;If it is determined that the upgrading When upgrading type corresponding to file is common upgrading, it can further judge whether the client is assigned to downloading machine meeting, if Judge that the client is assigned to the downloading machine meeting, then download path can be sent to the client, so that client can root The upgraded version of this document is downloaded to from upgrade server according to the download path.By the above-mentioned means, can be to according to being requested The upgrading type of the file of upgrading carries out the management of downloading control at times to client, after finding document upgrading in time Whether problem can be had.
Referring to Fig. 9, Fig. 9 is the structural schematic diagram of the another embodiment of one of present invention client.The client It may include: at least one processor 501, such as CPU, at least one transceiver 503, memory 504 and at least one communication Bus 502.Wherein, communication bus 502 may include standard for realizing the connection communication between these components, transceiver 503 Wireline interface and wireless interface, memory 504 can be high speed RAM memory, is also possible to non-labile memory (non-volatile memory), such as at least one magnetic disk storage, optionally, memory 504 can also be at least one position In the storage device far from aforementioned processor 501.Wherein, batch processing code is stored in memory 504, and processor 501 is adjusted With the program code stored in memory 504, for performing the following operations:
Request upgrade information is sent to control server, the request upgrade information includes the files-designated of request upgrade file Knowledge and FileVersion;
Receive the response message that the control server is sent for the request upgrade information;
If the response message expression received needs to upgrade, download path is obtained from the response message;
The upgrade file is downloaded from upgrade server according to the download path.
It is described that the upgrade file is downloaded from upgrade server according to the download path as optional embodiment Concrete mode are as follows:
Parse the upgrading type for including in the download path;
The upgrade file is searched in the corresponding file of upgrading type described in the upgrade server;
When finding the upgrade file, the upgrade file is downloaded.
In the embodiment of the present invention, by sending request upgrade information to control server, and receives control server and be directed to The respond request that the request upgrade information is sent, determines whether requested upgrade file needs to upgrade, if desired upgrades, then may be used The upgrade file is downloaded to from upgrade server according to the download path in respective request information, it is controllable by control server It makes the download time of the client and the transmission pressure that clear all clients are requested to upgrade server can be delayed.
Referring to Fig. 10, Figure 10 is the structural schematic diagram of an embodiment of one of present invention upgrade-system.The upgrading It may include 10011~1001N of at least one client, control server 1002, upgrade server 1003 in system.
Wherein, 10011~1001N of client may include client described in Fig. 7 or Fig. 9, and implement shown in executable Fig. 3 Method described in example;Control server may include control server described in Fig. 5, Fig. 6 or Fig. 8, and executable Fig. 1 or figure Method described in 2 illustrated embodiments.The upgrade-system can also carry out method described in embodiment illustrated in fig. 4.
The embodiment of the invention also provides a kind of computer storage mediums, for being stored as used in above-mentioned control server Computer software instructions, it includes for executing program designed by above method embodiment.
The embodiment of the invention also provides a kind of computer storage mediums, for being stored as calculating used in above-mentioned client Machine software instruction, it includes for executing program designed by above method embodiment.
Although combining each embodiment herein, invention has been described, however, implementing the claimed invention In the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is real Other variations of the existing open embodiment.In the claims, " comprising " (comprising) word is not excluded for other compositions Part or step, "a" or "an" are not excluded for multiple situations.Claim may be implemented in single processor or other units In several functions enumerating.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these are arranged It applies to combine and generates good effect.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware Part can also use other distribution forms, such as pass through the wired or wireless telecommunication system of Internet or other.
The present invention be referring to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/ Or block diagram describes.It should be understood that each process that can be realized by computer program instructions in flowchart and/or the block diagram and/ Or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer program instructions To general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one A machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizing The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, do not departing from this hair In the case where bright spirit and scope, it can be carry out various modifications and is combined.Correspondingly, the specification and drawings are only institute The exemplary illustration of the invention that attached claim is defined, and be considered as covered in the scope of the invention any and all and repair Change, change, combining or equivalent.Obviously, those skilled in the art various changes and modifications can be made to the invention without It is detached from the spirit and scope of the present invention.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (17)

1. a kind of document upgrading method characterized by comprising
The request upgrade information of client is received, includes the file letter of requested upgrade file in the request upgrade information Breath;
Determine upgrading type corresponding to the upgrade file, the upgrading type includes quickly upgrading and commonly upgrades, described The error probability for quickly upgrading corresponding upgrade file is less than the error probability for commonly upgrading corresponding upgrade file;
If the upgrading type is the common upgrading, judge whether the client is assigned to downloading machine meeting;
If judging, the client is assigned to the downloading machine meeting, and the download path on upgrade server is sent to institute State client;
If the corresponding upgrading type of the file is the quick upgrading, the download path by upgrade server is executed The step of being sent to the client.
2. method as described in claim 1, which is characterized in that after the request upgrade information for receiving client, the side Method further include:
File identification and FileVersion are obtained from the file information;
Judge the corresponding FileVersion of file identification described in upgrade server whether with it is described request upgrade information in file Version is consistent;
Wherein, upgrading type corresponding to the determination upgrade file includes:
If judging inconsistent, it is determined that upgrading type corresponding to the upgrade file.
3. method as claimed in claim 1 or 2, which is characterized in that upgrading type corresponding to the determination upgrade file Include:
The lookup upgrading type corresponding with the upgrade file in preset file and the corresponding table of upgrading type;Or
Corresponding upgrading type, the corresponding one or more texts of the upgrading type are determined according to the file attribute of the upgrade file Part attribute.
4. method as described in claim 1, which is characterized in that it is described judge the client whether have downloading machine can before, institute State method further include:
Downloading opportunity values are randomly assigned to the client;
Wherein, described to judge whether the client has downloading machine will include:
Judge whether the downloading opportunity values are less than or equal to predetermined probabilities threshold value;
If judging to be less than the predetermined probabilities threshold value, it is determined that the client has the downloading machine meeting.
5. method as described in claim 1, which is characterized in that the method also includes:
According to the value range for requesting the client terminal quantity for upgrading the upgrade file to determine downloading opportunity values simultaneously.
6. a kind of document upgrading method characterized by comprising
To control server send request upgrade information, it is described request upgrade information include request upgrade file file identification and FileVersion;
The response message that the control server is sent for the request upgrade information is received, the response message is by the control The corresponding FileVersion of control server file identification according to upgrade server whether in the request upgrade information FileVersion is consistent, upgrading type corresponding to the upgrade file, send the request upgrade information client whether by Being assigned to downloading machine can obtain, and the upgrading type includes quickly upgrading and commonly upgrades, described quickly to upgrade corresponding upgrading The error probability of file is less than the error probability for commonly upgrading corresponding upgrade file, described in the upgrade server The corresponding FileVersion of file identification and the FileVersion in the request upgrade information are inconsistent, and the upgrading type is institute When stating quick upgrading, the control server determines that the response message expression needs to upgrade, when institute in the upgrade server It states the corresponding FileVersion of file identification and the FileVersion in the request upgrade information is inconsistent, the upgrading type is institute Common upgrading is stated, and the client is assigned to downloading machine meeting, then the control server determines that the response message indicates It needs to upgrade;
If the response message expression received needs to upgrade, download path is obtained from the response message;
The upgrade file is downloaded from the upgrade server according to the download path.
7. method as claimed in claim 6, which is characterized in that described to download institute from upgrade server according to the download path Stating upgrade file includes:
Parse the upgrading type for including in the download path;
The upgrade file is searched in the corresponding file of upgrading type described in the upgrade server;
When finding the upgrade file, the upgrade file is downloaded.
8. a kind of control server characterized by comprising
Receiving module includes requested upgrading in the request upgrade information for receiving the request upgrade information of client The file information of file;
Determining module, for determining upgrading type corresponding to the upgrade file, the upgrading type include quickly upgrading and Common upgrading, the error probability for quickly upgrading corresponding upgrade file, which is less than, described commonly upgrades corresponding upgrade file Error probability;
First judgment module, if determining the upgrading type for the common upgrading, described in judgement for the determining module Whether client is assigned to downloading machine meeting;
Sending module will if judging that the client is assigned to the downloading machine meeting for the first judgment module Download path on upgrade server is sent to the client;
The sending module is also used to:
If the upgrading type is the quick upgrading, the download path by upgrade server is sent to the client End.
9. control server as claimed in claim 8, which is characterized in that further include:
Obtain module, for the receiving module receive client request upgrade information after, from the file information Obtain file identification and FileVersion;
Second judgment module, for judge the corresponding FileVersion of file identification described in upgrade server whether with the request FileVersion in upgrade information is consistent;
Wherein, the determining module is also used to:
If second judgment module is judged inconsistent, it is determined that upgrading type corresponding to the upgrade file.
10. the control server as described in claim 8 or 9, which is characterized in that the determining module includes:
Searching unit, in preset file and lookup upgrading class corresponding with the upgrade file in the corresponding table of upgrading type Type;Or
First determination unit, for determining corresponding upgrading type, the upgrading class according to the file attribute of the upgrade file The corresponding one or more file attributes of type.
11. control server as claimed in claim 8, which is characterized in that further include:
Distribution module, for before the first judgment module judges whether the client has downloading machine meeting, to the visitor Family end is randomly assigned downloading opportunity values;
Wherein, the first judgment module includes:
Judging unit, for judging whether the downloading opportunity values are less than or equal to predetermined probabilities threshold value;
Second determination unit, if judging to be less than the predetermined probabilities threshold value for the judging unit, it is determined that the visitor There is the downloading machine meeting at family end.
12. control server as claimed in claim 11, which is characterized in that the determining module is also used to according to while requesting The client terminal quantity for upgrading the upgrade file determines the value range of downloading opportunity values.
13. a kind of client characterized by comprising
Sending module, for sending request upgrade information to control server, the request upgrade information includes request upgrading text The file identification and FileVersion of part;
Receiving module, the response message sent for receiving the control server for the request upgrade information, the sound Answer whether information is asked with described as the corresponding FileVersion of control server file identification according to upgrade server Ask that the FileVersion in upgrade information is consistent, upgrading type corresponding to the upgrade file, sends the request upgrade information Client whether be assigned to downloading machine and can obtain, the upgrading type includes quickly upgrading and common upgrading, it is described quickly The error probability for upgrading corresponding upgrade file is less than the error probability for commonly upgrading corresponding upgrade file, when the liter The corresponding FileVersion of file identification described in grade server and the FileVersion in the request upgrade information are inconsistent, and institute When to state upgrading type be the quick upgrading, the control server determines that response message expression needs to upgrade, when described The corresponding FileVersion of file identification described in upgrade server and the FileVersion in the request upgrade information are inconsistent, institute Stating upgrading type is the common upgrading, and the client is assigned to downloading machine meeting, then the control server determines institute Response message expression is stated to need to upgrade;
Module is obtained, if the response message expression for the receiving module to receive needs to upgrade, from the response Download path is obtained in information;
Download module, for downloading the upgrade file from the upgrade server according to the download path.
14. client as claimed in claim 13, which is characterized in that the download module includes:
Resolution unit, for parsing the upgrading type for including in the download path;
Searching unit, for searching the upgrading text in the corresponding file of upgrading type described in the upgrade server Part;
Download unit, for downloading the upgrade file when the searching unit finds the upgrade file.
15. a kind of control server, which is characterized in that including processor and memory, the memory is for storing program generation Code, the processor are used to call the program code of the memory storage, to execute following operation:
The request upgrade information of client is received, includes the file letter of requested upgrade file in the request upgrade information Breath;
Determine upgrading type corresponding to the upgrade file, the upgrading type includes quickly upgrading and commonly upgrades, described The error probability for quickly upgrading corresponding upgrade file is less than the error probability for commonly upgrading corresponding upgrade file;
If the upgrading type is the common upgrading, judge whether the client is assigned to downloading machine meeting;
If judging, the client is assigned to the downloading machine meeting, and the download path on upgrade server is sent to institute State client;
If the corresponding upgrading type of the file is the quick upgrading, the download path by upgrade server is executed The step of being sent to the client.
16. a kind of client, which is characterized in that including processor and memory, the memory is for storing program code, institute Processor is stated for calling the program code of the memory storage, to execute following operation:
To control server send request upgrade information, it is described request upgrade information include request upgrade file file identification and FileVersion;
The response message that the control server is sent for the request upgrade information is received, the response message is by the control The corresponding FileVersion of control server file identification according to upgrade server whether in the request upgrade information FileVersion is consistent, upgrading type corresponding to the upgrade file, send the request upgrade information client whether by Being assigned to downloading machine can obtain, and the upgrading type includes quickly upgrading and commonly upgrades, described quickly to upgrade corresponding upgrading The error probability of file is less than the error probability for commonly upgrading corresponding upgrade file, described in the upgrade server The corresponding FileVersion of file identification and the FileVersion in the request upgrade information are inconsistent, and the upgrading type is institute When stating quick upgrading, the control server determines that the response message expression needs to upgrade, when institute in the upgrade server It states the corresponding FileVersion of file identification and the FileVersion in the request upgrade information is inconsistent, the upgrading type is institute Common upgrading is stated, and the client is assigned to downloading machine meeting, then the control server determines that the response message indicates It needs to upgrade;
If the response message expression received needs to upgrade, download path is obtained from the response message;
The upgrade file is downloaded from the upgrade server according to the download path.
17. a kind of upgrade-system, which is characterized in that including at least one client, control server and upgrade server, In:
The control server includes the control server as described in any one of claim 8~12 or claim 15;
The client includes the client as described in claim 13 or 14 or 16.
CN201610109697.5A 2016-02-26 2016-02-26 File upgrading method, related equipment and system Active CN105530323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610109697.5A CN105530323B (en) 2016-02-26 2016-02-26 File upgrading method, related equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610109697.5A CN105530323B (en) 2016-02-26 2016-02-26 File upgrading method, related equipment and system

Publications (2)

Publication Number Publication Date
CN105530323A CN105530323A (en) 2016-04-27
CN105530323B true CN105530323B (en) 2019-06-25

Family

ID=55772299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610109697.5A Active CN105530323B (en) 2016-02-26 2016-02-26 File upgrading method, related equipment and system

Country Status (1)

Country Link
CN (1) CN105530323B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161083A (en) * 2016-06-14 2016-11-23 上海斐讯数据通信技术有限公司 A kind of method for upgrading software of web-transporting device
CN106202458B (en) * 2016-07-15 2019-09-17 深圳市永达电子信息股份有限公司 It is a kind of that quickly real-time detection and the method for file in upgrading operation system can be restored
CN106598645B (en) * 2016-11-18 2020-11-20 北京安云世纪科技有限公司 Application upgrading method and device and mobile terminal
CN111427595B (en) * 2019-09-03 2024-03-05 杭州海康威视数字技术股份有限公司 Client upgrading method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905538A (en) * 2006-08-10 2007-01-31 华为技术有限公司 Loading upgrading control method and apparatus for application apparatus
CN104717636A (en) * 2013-12-13 2015-06-17 成都鼎桥通信技术有限公司 Software upgrading method, terminal device and over-the-air download server
CN105025105A (en) * 2015-07-27 2015-11-04 广州华多网络科技有限公司 Request handling method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905538A (en) * 2006-08-10 2007-01-31 华为技术有限公司 Loading upgrading control method and apparatus for application apparatus
CN104717636A (en) * 2013-12-13 2015-06-17 成都鼎桥通信技术有限公司 Software upgrading method, terminal device and over-the-air download server
CN105025105A (en) * 2015-07-27 2015-11-04 广州华多网络科技有限公司 Request handling method and device

Also Published As

Publication number Publication date
CN105530323A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN111083722B (en) Method and device for pushing model and requesting model, and storage medium
CN105530323B (en) File upgrading method, related equipment and system
CN107589952A (en) Intelligent upgrade method, device and system
KR101495341B1 (en) Method and System for assigning IDs to software compoents
CN103237060B (en) A kind of data object acquisition, Apparatus and system
CN110099369B (en) Method and device for processing information in M2M
CN109542851A (en) File updating method, apparatus and system
CN105049502A (en) Method of upgrading equipment software in cloud network management system and device
CN106571942B (en) Configuration data updating method, client and server
CN110825400B (en) Certificate updating method and system of application program client
CN108664799B (en) Permission setting method and device for equipment management application
CN104253869A (en) Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device
WO2007001121A1 (en) Device management system and method for setting configuration-value therein
CN112134908B (en) Application adaptation method, server, medium and vehicle-mounted multimedia system
CN103003809B (en) For equipment and the method and system of managing remote subscriber interface
CN111683114A (en) Method and device for upgrading equipment program, terminal equipment and storage medium
CN111176706A (en) Terminal upgrading method and device, electronic equipment and storage medium
CN109471713B (en) Method and device for inquiring information
CN111865676B (en) Method, device, server and storage medium for updating and checking configuration file
CN104104701A (en) Online service configuration updating method and system
CN110597600A (en) Method for modifying application configuration parameters of distributed system and distributed system
CN108156246B (en) File distribution method, system, server and client
CN110602221A (en) Notification level processing method and device and readable storage medium
CN103327026A (en) Data updating method and updating system
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium

Legal Events

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