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

File upgrading method, related equipment and system Download PDF

Info

Publication number
CN105530323A
CN105530323A CN201610109697.5A CN201610109697A CN105530323A CN 105530323 A CN105530323 A CN 105530323A CN 201610109697 A CN201610109697 A CN 201610109697A CN 105530323 A CN105530323 A CN 105530323A
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.)
Granted
Application number
CN201610109697.5A
Other languages
Chinese (zh)
Other versions
CN105530323B (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 

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, particularly relate to a kind of document upgrading method, relevant device and system.
Background technology
Along with the development of Internet technology, client can install various software, and can the software installed be upgraded.Whether the mode of current client upgrade software exists the file that needs carry out upgrading for the file comprised in the software installed to upgrade server inquiry active client, if inquire the file existing and need upgrading, then download the file after upgrading to replace the file before upgrading from upgrade server, thus realize software upgrading.
But, in the mode of current file upgrading, server to the upgrade request of all clients to treat mode identical, if the whole network client asks upgrade file simultaneously, then together with time download this upgrade file, and then, download management at times cannot be carried out to the client of identical file of asking to upgrade simultaneously, if cause this upgrade file to have problems, by the client of all this upgrade files of request of impact.
Summary of the invention
Embodiments provide a kind of document upgrading method, relevant device and system.Solving cannot to the technical problem of asking the client of upgrading identical file to carry out download management at times simultaneously.
Embodiments of the invention first aspect provides a kind of document upgrading method, and the method can comprise:
Receive the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file;
Determine the upgrading type corresponding to described upgrade file, described upgrading type comprises upgrading and common upgrading fast;
If described upgrading type is described common upgrading, judge whether described client is assigned to downloading machine meeting;
If judge, described client is assigned to described downloading machine meeting, then the download path on upgrade server is sent to described client.
As optional embodiment, after the request upgrade information of described reception client, described method also comprises:
File identification and FileVersion is obtained from described fileinfo;
Judge that whether the FileVersion that file identification described in upgrade server is corresponding is consistent with the FileVersion in described request upgrade information;
Wherein, describedly determine that the upgrading type corresponding to described upgrade file comprises:
If judge inconsistent, then determine the upgrading type corresponding to described upgrade file.
As optional embodiment, describedly determine that the upgrading type corresponding to described upgrade file comprises:
Preset file with upgrade type is corresponding show in search the upgrading type corresponding with described upgrade file; Or
Corresponding upgrading type is determined, the corresponding one or more file attribute of described upgrading type according to the file attribute of described upgrade file.
As optional embodiment, after the described upgrading type determined corresponding to described file, described method also comprises:
If the upgrading type that described file is corresponding is described quick upgrading, then perform described step download path on upgrade server being sent to described client.
As optional embodiment, described judge described client whether have downloading machine can before, described method also comprises:
Opportunity values is downloaded to described client Random assignment;
Wherein, describedly judge whether described client has downloading machine to comprise:
Judge whether described download opportunity values is less than or equal to predetermined probabilities threshold value;
Be less than described predetermined probabilities threshold value if judge, then determine that described client has described downloading machine meeting.
Embodiments of the invention second aspect provides a kind of document upgrading method, and the method can comprise:
Send request upgrade information to Control Server, described request upgrade information comprises file identification and the FileVersion of request upgrade file;
Receive the response message that described Control Server sends for described request upgrade information;
If the described response message received represents need upgrading, then from described response message, obtain download path;
From upgrade server, described upgrade file is downloaded according to described download path.
As optional embodiment, describedly from upgrade server, download described upgrade file according to described download path and comprise:
Resolve the upgrading type comprised in described download path;
Described upgrade file is searched from the file that type of upgrading described in described upgrade server is corresponding;
When finding described upgrade file, download described upgrade file.
The embodiments of the invention third aspect provides a kind of Control Server, and this Control Server can comprise:
Receiver module, for receiving the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file;
Determination module, for determining the upgrading type corresponding to described upgrade file, described upgrading type comprises upgrading and common upgrading fast;
First judge module, if determine that described upgrading type is described common upgrading for described determination module, judges whether described client is assigned to downloading machine meeting;
Sending module, if judge that described client is assigned to described downloading machine meeting for described first judge module, then sends to described client by the download path on upgrade server.
As optional embodiment, also comprise:
Acquisition module, after receiving the request upgrade information of client at described receiver module, obtains file identification and FileVersion from described fileinfo;
Second judge module, whether consistent with the FileVersion in described request upgrade information for judging the FileVersion that file identification described in upgrade server is corresponding;
Wherein, described determination module also for:
If described second judge module is judged inconsistent, then determine the upgrading type corresponding to described upgrade file.
As optional embodiment, described determination module comprises:
Search unit, for preset file with upgrade type is corresponding show in search the upgrading type corresponding with described upgrade file; Or
First determining unit, for determining corresponding upgrading type according to the file attribute of described upgrade file, the corresponding one or more file attribute of described upgrading type.
As optional embodiment, described sending module also for:
If the upgrading type that described file is corresponding is described quick upgrading, then described download path on upgrade server is sent to described client.
As optional embodiment, also comprise:
Distribution module, before judging whether described client has downloading machine meeting at described first judge module, downloads opportunity values to described client Random assignment;
Wherein, described first judge module comprises:
Judging unit, for judging whether described download opportunity values is less than or equal to predetermined probabilities threshold value;
Second determining unit, if judge to be less than described predetermined probabilities threshold value for described judging unit, then determines that described client has described downloading machine meeting.
Embodiments of the invention fourth aspect provides a kind of client, and this client can comprise:
Sending module, for sending request upgrade information to Control Server, described request upgrade information comprises file identification and the FileVersion of request upgrade file;
Receiver module, for receiving the response message that described Control Server sends for described request upgrade information;
Acquisition module, if the described response message received for described receiver module represents need upgrading, then obtains download path from described response message;
Download module, for downloading described upgrade file according to described download path from upgrade server.
As optional embodiment, described download module comprises:
Resolution unit, for resolving the upgrading type comprised in described download path;
Search unit, for searching described upgrade file from file corresponding to type of upgrading described in described upgrade server;
Download unit, for when described in search unit find described upgrade file time, download described upgrade file.
Embodiments of the invention the 5th aspect provides a kind of Control Server, this Control Server can comprise processor and memory, described memory is used for program code stored, the program code that described processor stores for calling described memory, to perform the method in first aspect.
Embodiments of the invention the 6th aspect provides a kind of client, this client can comprise processor and memory, described memory is used for program code stored, the program code that described processor stores for calling described memory, to perform the method in second aspect.
The embodiment of the present invention the 7th aspect provides a kind of upgrade-system, comprise at least one client, Control Server and upgrade server, wherein: Control Server comprises the Control Server described in the 3rd or the 5th aspect, client comprises the Control Server described in the 4th or the 6th aspect.
In the embodiment of the present invention, when receiving the request upgrade information of client, can judge client pass through this request upgrade information ask upgrade file the need of upgrading, if this file needs upgrading, then can determine the upgrading type corresponding to this file, and according to different upgrading types, determine the response time that feedback client can be upgraded; If when the upgrading type determining corresponding to this upgrade file is common upgrading, can judge whether this client is assigned to downloading machine meeting further, if judge, this client is assigned to described downloading machine meeting, then can send download path to this client, thus client can download to the upgraded version of this file from upgrade server according to this download path.By the way, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of an embodiment of a kind of document upgrading method in the present invention;
Fig. 2 is the flow chart of another embodiment of a kind of document upgrading method in the present invention;
Fig. 3 is the flow chart of the another embodiment of a kind of document upgrading method in the present invention;
Fig. 4 is the flow chart of the another embodiment of a kind of document upgrading method in the present invention;
Fig. 5 is the structural representation of an embodiment of a kind of Control Server in the present invention;
Fig. 6 is the structural representation of another embodiment of a kind of Control Server in the present invention;
Fig. 7 is the structural representation of an embodiment of a kind of client in the present invention;
Fig. 8 is the structural representation of the another embodiment of a kind of Control Server in the present invention;
Fig. 9 is the structural representation of another embodiment of a kind of client in the present invention;
Figure 10 is the structural representation of an embodiment of a kind of upgrade-system in the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " and " the 4th " etc. in specification of the present invention and claims and described accompanying drawing are for distinguishing different object, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic step of these processes, method, product or equipment or unit.
Below with reference to the accompanying drawings embodiments of the invention are described.Wherein, the Control Server in the embodiment of the present invention can with client and upgrade server interactive communication, this Control Server can as the communication node between client and upgrade server.
It is the flow chart of an embodiment of a kind of document upgrading method in the present invention see Fig. 1, Fig. 1.The method can be realized by Control Server.The method can comprise the following steps.
Step S101, receive the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file.
In one embodiment, receive the request upgrade information of client, show that client needs are upgraded at least one file in installed software.Wherein, after the software file version updating stored in upgrade server, by Control Server or notify client voluntarily, inquiry is upgraded the need of to the file in this software or this software, if receive the request upgrade information of client, show that client needs to upgrade the FileVersion of this upgrade file; Or by client when not received update notification, spontaneous sends request upgrade information, in order to ask upgrade file.Wherein, the fileinfo of asked upgrade file can be comprised in the request upgrade information received in above-mentioned situation, this fileinfo can comprise file identification and FileVersion, file identification can comprise filename, the information such as file MD5 value, corresponding file can be found by this file identification in Control Server or upgrade server, and whether be latest edition number by the version number of fileversion number determination client current file, namely upgrade the need of to this version file.
Step S102, determines the upgrading type corresponding to described upgrade file, and described upgrading type comprises upgrading and common upgrading fast.
In one embodiment, when after the request upgrade information receiving client, can determine the upgrading type corresponding to this file, wherein, this upgrading type can comprise upgrading and common upgrading fast.Concrete, upgrading type is distinguished by file attribute, if the file attribute of upgrade file is configuration file, the error probability of this class file is little, and during software upgrading, need configuration file just can reach the quick use of function, therefore when upgrading, the upgrading type of this class file can be defined as quick upgrading, for the alternative document in software, if file attribute is the non-configuration file such as DLL or EXE, this class file is generally the true file performing use in software program, this class file so that error probability large, therefore type of upgrading can be defined as common upgrading.
Optionally, the mapping table of file and upgrading type can be set up in Control Server, each list item in this mapping table can comprise the upgrading type of a file and correspondence thereof, as can file identification be comprised in list item, FileVersion, the information such as document upgrading type, by the request upgrade information of client, can find upgrading type corresponding to this file in set up mapping table.Control Server also according to above-mentioned rule, when receiving the request upgrade information of client, can be resolved the file attribute of wherein asked upgrade file, and determining the upgrading type of this file according to file attribute.
Step S103, if described upgrading type is described common upgrading, judges whether described client is assigned to downloading machine meeting.
In one embodiment, if determine, the upgrading type of upgrade file is common upgrading, then can judge whether this client is assigned to downloading machine meeting.Concrete, if there is multiple client to ask to download this upgrade file simultaneously, Control Server needs for each client distributes downloading machine meeting, the client being assigned to downloading machine meeting can obtain download address, and the client not being assigned to downloading machine meeting needs to continue to strive for downloading machine meeting in next assignment period.
Step S104, if judge, described client is assigned to described downloading machine meeting, then the download path on upgrade server is sent to described client.
In one embodiment, if judge, this client is assigned to downloading machine meeting, the download path on upgrade server can be sent to client.Concrete, Control Server can generate download path according to the information of above-mentioned acquisition and send to client, also can to the download path of this upgrade file of upgrade server request.The form of download path can be URL path, 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, can judge client pass through this request upgrade information ask upgrade file the need of upgrading, if this file needs upgrading, then can determine the upgrading type corresponding to this file, and according to different upgrading types, determine the response time that transmission client can be upgraded; If when the upgrading type determining corresponding to this upgrade file is common upgrading, can judge whether this client is assigned to downloading machine meeting further, if judge, this client is assigned to described downloading machine meeting, then can send download path to this client, thus client can download to the upgraded version of this file from upgrade server according to this download path.By the way, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Refer to Fig. 2, Fig. 2 is the flow chart of another embodiment of a kind of document upgrading method in the present invention.The method can be realized by Control Server.The method can comprise the following steps.
Step S201, receive the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file.
The embodiment of the present invention mainly describes client when not receiving upgrade notification for a certain file of upgrade server or Control Server, sends request the situation of upgrade information according to the default frequency to Control Server.Certainly, if the embodiment of the present invention also comprise upgrade server or Control Server notice client a certain software wherein scalable time, the unknown concrete upgrade file of client, the All Files information comprised in software can be sent to Control Server by request upgrade information, or it is according to the transmission frequency, each by a file in request upgrade information upgrade software.Control Server can receive the request upgrade information of this client, to determine to ask institute's request is upgraded in upgrade information one or more files the need of upgrading.
Step S202, obtains file identification and FileVersion from described fileinfo.
In one embodiment, after receiving the request upgrade information that client sends, can obtain from the fileinfo that comprises of request upgrade information ask file identification and the FileVersion of upgrade file.The information such as file identification can comprise filename, file MD5 value.
Step S203, judges that whether the FileVersion that file identification described in upgrade server is corresponding is consistent with the FileVersion in described request upgrade information.
In one embodiment, after getting above-mentioned information, corresponding file is found by file identification, and then can judge that whether the FileVersion corresponding in appreciation server of this file is consistent with the FileVersion that client sends, if inconsistent, show the new FileVersion that there is this upgrade file in appreciation server, show that this upgrade file needs upgrading.It should be noted that, Control Server can the FileVersion of file in real-time synchronization upgrade server, also can after the fileinfo getting client transmission, the FileVersion that file indicated in upgrade server inquiry file information is corresponding, contrasts with the FileVersion sent with client.Do not limit in this embodiment of the present invention.
If judge consistent, then show that one or more upgrade files of asking in this request upgrade information do not exist new FileVersion, can to the response message of this client transmission for this request upgrade information, this response message shows without the need to upgrading to the upgrade file of request.
Step S204, if judge inconsistent, then determines the upgrading type corresponding to described upgrade file, and described upgrading type comprises upgrading and common upgrading fast.
In one embodiment, if judge that the upgraded version of the upgrade file that the upgraded version of upgrade file in upgrade server and client send is inconsistent by step S203, then show that this upgrade file needs upgrading, then can determine the upgrading type corresponding to this upgrade file further, wherein, type of upgrading can comprise upgrading and common upgrading fast.
Determine that the mode of the upgrading type corresponding to upgrade file can be with any one under type:
One, preset file with upgrade type is corresponding show in search the upgrading type corresponding with described upgrade file.
Concrete, the file preset and upgrading type is corresponding show in can pre-set upgrading type corresponding to each file, optionally, the information such as file identification, the FileVersion synchronous with upgrade server, type of upgrading in the list item that this correspondence is shown, can be comprised.When the fileinfo sent by client, the corresponding list item in this correspondence table can be found, thus the upgrading type of upgrade file can be found from this correspondence table.
Two, corresponding upgrading type is determined according to the file attribute of described upgrade file, the corresponding one or more file attribute of described upgrading type.
Concrete, the file attribute of the upgrade file that Control Server also can be asked according to client determines the upgrading type of this correspondence.The file attribute of upgrade file may be embodied in the filename in file identification.Upgrading type is distinguished by file attribute, if the file attribute of upgrade file is configuration file, the error probability of this class file is little, and during software upgrading, need configuration file just can reach the quick use of function, therefore when upgrading, the upgrading type of this class file can be defined as quick upgrading, for the alternative document in software, if file attribute is the non-configuration file such as DLL or EXE, this class file to be generally in software program and truly to perform the file used, this class file so that error probability large, type of therefore upgrading can be defined as common upgrading.
Step S205, if described upgrading type is described common upgrading, downloads opportunity values to described client Random assignment.
In one embodiment, if when the upgrading type determining this upgrade file is common upgrading, opportunity values can be downloaded to this client Random assignment.Concrete, can determine to download according to the client terminal quantity of this upgrade file of asking to upgrade simultaneously the span of apportioning cost.Illustrate, if the client terminal quantity of this upgrade file of request upgrading is 100, then the span downloading opportunity values is 1 ~ 100; If the client terminal quantity of this upgrade file of request upgrading is 50, then the span downloading opportunity values is 1 ~ 50.Control Server can distribute one for each client and download opportunity values in this span, wherein, the download opportunity values that each client is assigned to is all different, thus according to which, the client that Control Server can control to ask simultaneously is downloaded at times.
Step S206, judges whether described download opportunity values is less than or equal to predetermined probabilities threshold value.
In one embodiment, the predeterminable client probability that at every turn can carry out downloading, as this probability can be 20%, if the quantity of client is 100, the probability threshold value then preset is 20, if the quantity of client is 50, then the probability threshold value preset is 10.If the download opportunity values that this client is distributed is less than predetermined probabilities threshold value, as when the probability threshold value preset is 20, if the download opportunity values that this client is assigned to is the arbitrary value in 1 ~ 20, then show that this client has been assigned to downloading machine meeting, for other clients, download opportunity values as distributed is the client of 21 ~ 100, then need to redistribute download opportunity values to it in next assignment period, wherein, can value preferentially in Random assignment 1 ~ 20, until the download opportunity values being assigned to client is all interval 1 ~ 20, then show to win dispenser meeting by all clients of multiple cycle.Certainly, for the client not being assigned to downloading machine meeting, the request upgrade information of this client discardable, until when client does not receive the response message of Control Server in the given time, again sends this request upgrade information request and to upgrade this file after preset period of time; Step S201 can be re-executed; Also can send to this client the response message not obtaining downloading machine meeting, thus notify that this client resends this request upgrade information after preset period of time.
Step S207, is less than described predetermined probabilities threshold value, then the download path on upgrade server is sent to described client if judge.
In one embodiment, the download opportunity values that this client is assigned with if judge in step S206 is less than default probability threshold value, then show that this client has been assigned to downloading machine meeting, the download path on upgrade server can be sent to client.Concrete, Control Server can generate download path according to the information of above-mentioned acquisition and send to client, also can to the download path of this upgrade file of upgrade server request.The form of download path can be URL path, as http://pc001.ks.kprotect.com/fast/cmcm/fnsign.dat, or http://pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc.
Optionally, also can from upgrade server, download this upgrade file according to the download path generated and this upgrade file can be transferred to client.
In the embodiment of the present invention, when receiving the request upgrade information of client, can judge client pass through this request upgrade information ask upgrade file the need of upgrading, if this file needs upgrading, then can determine the upgrading type corresponding to this file, and according to different upgrading types, determine the response time that feedback client can be upgraded; If when the upgrading type determining corresponding to this upgrade file is common upgrading, can judge whether this client is assigned to downloading machine meeting further, if judge, this client is assigned to described downloading machine meeting, then can send download path to this client, thus client can download to the upgraded version of this file from upgrade server according to this download path.By the way, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Refer to Fig. 3, Fig. 3 is the flow chart of the another embodiment of a kind of document upgrading method in the present invention.The method can be realized by client.The method can comprise the following steps.
Step S301, sends request upgrade information to Control Server, and described request upgrade information comprises file identification and the FileVersion of request upgrade file.
In one embodiment, can send request upgrade information to Control Server, this request upgrade information can comprise file identification and the FileVersion of request upgrade file.Concrete, can receive that upgrade server or Control Server send for the upgrade notification of software after send request upgrade information to Control Server, also periodically can send request upgrade information to Control Server.Wherein, the fileinfo of one or more request upgrade file can be comprised in request upgrade information, the fileinfo of the All Files in a software can be comprised with files that can upgrade all in this software of upgrading as asked upgrade information, and then complete software upgrading, also can comprise the fileinfo of a file in this software, the embodiment of the present invention is not construed as limiting.
Step S302, receives the response message that described Control Server sends for described request upgrade information.
In one embodiment, after sending request upgrade information to this Control Server, can receive the response message that this Control Server sends for this request upgrade information, wherein, this response message can be used for representing that the upgrade file needs of asking in request upgrade information are upgraded and do not need upgrading; If the multiple upgrade file of this request upgrade information request, then response message also can indicate the upgrade file needing the upgrade file of upgrading and do not need to upgrade.
Step S303, if the described response message received represents need upgrading, then obtains download path from described response message.
In one embodiment, if the response message received represents need upgrading, then download path can be obtained from this response message.Concrete, represent need upgrading if receive response message, then can determine that this client possesses downloading machine meeting, download path can be obtained from this response message, thus from upgrade server, required upgrade file can be downloaded to according to this download path.
Optionally, if this client does not receive response message in predetermined period, represent that this client is not assigned to downloading machine meeting, then can send in the cycle at next, perform step S101, namely again send request upgrade information to Control Server, until receive response message.
Step S304, downloads described upgrade file according to described download path from upgrade server.
In one embodiment, after receiving response message, this upgrade file can be downloaded according to download path from upgrade server.Optionally, by downloading this upgrade file with under type:
Resolve the upgrading type comprised in described download path;
Described upgrade file is searched from the file that type of upgrading described in described upgrade server is corresponding;
When finding described upgrade file, download described upgrade file.
Concrete, the form of download path can be URL path, as http://pc001.ks.kprotect.com/fast/cmcm/fnsign.dat, or http://pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc.As known in above-mentioned download path form, as in above-mentioned download path, fast can represent type of upgrading fast, and bin can represent common upgrading type.By upgrading classification of type management upgrade file in upgrade server, as parsed the upgrading type in download path, the position at upgrade file place can be found fast, and then this upgrade file can be got according to file identification, can download this upgrade file.
In the embodiment of the present invention, by sending request upgrade information to Control Server, and receive the response request that Control Server sends for this request upgrade information, determine that asked upgrade file is the need of upgrading, if desired upgrade, then can download to this upgrade file according to the download path in respective request information from upgrade server, the download time of this client can be controlled by Control Server and the transmission pressure of clear all clients to upgrade server request can be delayed.
Refer to Fig. 4, Fig. 4 is the flow chart of the another embodiment of a kind of document upgrading method in the present invention.As shown in Figure 4, this method describe by client, Control Server and the upgrade server wherein a kind of mode to document upgrading, the method specifically can comprise the following steps.
Step S401, client sends request upgrade information to Control Server.
Step S402, after Control Server receives the request upgrade information of this client, determines the upgrading type of this upgrade file.
Step S403, if Control Server determines that this upgrading type is common upgrading, then judges whether this client is assigned to downloading machine meeting.
Step S404, if judge, this client is assigned to downloading machine meeting, then download path is sent to this client.
Step S405, this download path is sent to upgrade server by client.
Step S406, upgrade server finds corresponding upgrade file according to this download path.
Step S407, this upgrade file is transferred to client by upgrade server.
The specific descriptions of above-mentioned steps see the description of mode step in Fig. 1 ~ Fig. 3, wouldn't be able to repeat at this.
Optionally, in the embodiment of the present invention, receive the request upgrade information of client at Control Server after, Control Server or upgrade server can to the upgrade notification of client transmission for a software.
Optionally, in the embodiment of the present invention, after Control Server receives the request upgrade information of client, also can judge that upgrade file that this request upgrade information asks is the need of upgrading.
Pass through the embodiment of the present invention, the time of Control Server to client downloads upgrade file can be made to control, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Refer to Fig. 5, Fig. 5 is the structural representation of an embodiment of a kind of Control Server in the present invention.Control Server can comprise receiver module 501, determination module 502, first judge module 503, sending module 504.
Wherein, receiver module 501, for receiving the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file.
In one embodiment, receiver module 501 receives the request upgrade information of client, shows that client needs are upgraded at least one file in installed software.Wherein, after the software file version updating stored in upgrade server, by Control Server or notify client voluntarily, inquiry is upgraded the need of to the file in this software or this software, if receive the request upgrade information of client, show that client needs to upgrade the FileVersion of this upgrade file; Or by client when not received update notification, spontaneous sends request upgrade information, in order to ask upgrade file.Wherein, the fileinfo of asked upgrade file can be comprised in the request upgrade information received in above-mentioned situation, this fileinfo can comprise file identification and FileVersion, file identification can comprise filename, the information such as file MD5 value, corresponding file can be found by this file identification in Control Server or upgrade server, and whether be latest edition number by the version number of fileversion number determination client current file, namely upgrade the need of to this version file.
Determination module 502, for determining the upgrading type corresponding to described upgrade file, described upgrading type comprises upgrading and common upgrading fast.
In one embodiment, after receiver module 501 receives the request upgrade information of client, determination module 502 can determine the upgrading type corresponding to this file, and wherein, this upgrading type can comprise upgrading and common upgrading fast.Concrete, upgrading type is distinguished by file attribute, if the file attribute of upgrade file is configuration file, the error probability of this class file is little, and during software upgrading, need configuration file just can reach the quick use of function, therefore when upgrading, the upgrading type of this class file can be defined as quick upgrading, for the alternative document in software, if file attribute is the non-configuration file such as DLL or EXE, this class file is generally the true file performing use in software program, this class file so that error probability large, therefore type of upgrading can be defined as common upgrading.
Optionally, the mapping table of file and upgrading type can be set up in Control Server, each list item in this mapping table can comprise the upgrading type of a file and correspondence thereof, as can file identification be comprised in list item, FileVersion, the information such as document upgrading type, by the request upgrade information of client, can find upgrading type corresponding to this file in set up mapping table.Control Server also according to above-mentioned rule, when receiving the request upgrade information of client, can be resolved the file attribute of wherein asked upgrade file, and determining the upgrading type of this file according to file attribute.
First judge module 503, if determine that described upgrading type is described common upgrading for described determination module 502, judges whether described client is assigned to downloading machine meeting.
In one embodiment, if determination module 502 determines that the upgrading type of upgrade file is common upgrading, then the first judge module 503 can judge whether this client is assigned to downloading machine meeting.Concrete, if there is multiple client to ask to download this upgrade file simultaneously, Control Server needs for each client distributes downloading machine meeting, the client being assigned to downloading machine meeting can obtain download address, and the client not being assigned to downloading machine meeting needs to continue to strive for downloading machine meeting in next assignment period.
Sending module 504, if judge that described client is assigned to described downloading machine meeting for described first judge module 503, then sends to described client by the download path on upgrade server.
In one embodiment, if the first judge module 503 judges that this client is assigned to downloading machine meeting, the download path on upgrade server can be sent to client by sending module 504.Concrete, Control Server can generate download path according to the information of above-mentioned acquisition and send to client, also can to the download path of this upgrade file of upgrade server request.The form of download path can be URL path, 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, can judge client pass through this request upgrade information ask upgrade file the need of upgrading, if this file needs upgrading, then can determine the upgrading type corresponding to this file, and according to different upgrading types, determine the response time that transmission client can be upgraded; If when the upgrading type determining corresponding to this upgrade file is common upgrading, can judge whether this client is assigned to downloading machine meeting further, if judge, this client is assigned to described downloading machine meeting, then can send download path to this client, thus client can download to the upgraded version of this file from upgrade server according to this download path.By the way, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Refer to Fig. 6, Fig. 6 is the structural representation of another embodiment of a kind of Control Server in the present invention.This Control Server can comprise receiver module 601, acquisition module 602, second judge module 603, determination module 604, distribution module 605, first judge module 606, sending module 607.
Wherein, receiver module 601, for receiving the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file.
The embodiment of the present invention mainly describes client when not receiving upgrade notification for a certain file of upgrade server or Control Server, sends request the situation of upgrade information according to the default frequency to Control Server.Certainly, if the embodiment of the present invention also comprise upgrade server or Control Server notice client a certain software wherein scalable time, the unknown concrete upgrade file of client, the All Files information comprised in software can be sent to Control Server by request upgrade information, or it is according to the transmission frequency, each by a file in request upgrade information upgrade software.Receiver module 601 can receive the request upgrade information of this client, to determine to ask institute's request is upgraded in upgrade information one or more files the need of upgrading.
Acquisition module 602, for obtaining file identification and FileVersion from described fileinfo.
In one embodiment, after receiver module 601 receives the request upgrade information that client sends, acquisition module 602 can obtain from the fileinfo that comprises of request upgrade information ask file identification and the FileVersion of upgrade file.The information such as file identification can comprise filename, file MD5 value.
Second judge module 603, whether consistent with the FileVersion in described request upgrade information for judging the FileVersion that file identification described in upgrade server is corresponding.
In one embodiment, after acquisition module 602 gets above-mentioned information, corresponding file is found by file identification, and then second judge module 603 can judge that whether the FileVersion corresponding in appreciation server of this file consistent with the FileVersion that client sends, if inconsistent, show the new FileVersion that there is this upgrade file in appreciation server, show that this upgrade file needs upgrading.It should be noted that, Control Server can the FileVersion of file in real-time synchronization upgrade server, also can after the fileinfo getting client transmission, the FileVersion that file indicated in upgrade server inquiry file information is corresponding, contrasts with the FileVersion sent with client.Do not limit in this embodiment of the present invention.
If judge consistent, then show that one or more upgrade files of asking in this request upgrade information do not exist new FileVersion, can to the response message of this client transmission for this request upgrade information, this response message shows without the need to upgrading to the upgrade file of request.
Determination module 604, if judge inconsistent for described second judge module 603, then determines the upgrading type corresponding to described upgrade file.
In one embodiment, if judge that the upgraded version of the upgrade file that the upgraded version of upgrade file in upgrade server and client send is inconsistent by the second judge module 603, then show that this upgrade file needs upgrading, then determination module 604 can determine the upgrading type corresponding to this upgrade file further, wherein, type of upgrading can comprise upgrading and common upgrading fast.
Determination module 604 can comprise following one or more unit:
Search unit, preset file with upgrade type is corresponding show in search the upgrading type corresponding with described upgrade file.
Concrete, the file preset and upgrading type is corresponding show in can pre-set upgrading type corresponding to each file, optionally, the information such as file identification, the FileVersion synchronous with upgrade server, type of upgrading in the list item that this correspondence is shown, can be comprised.When the fileinfo sent by client, the corresponding list item in this correspondence table can be found, thus the upgrading type of upgrade file can be found from this correspondence table.
First determining unit, for determining corresponding upgrading type according to the file attribute of described upgrade file, the corresponding one or more file attribute of described upgrading type.
Concrete, the file attribute of the upgrade file that Control Server also can be asked according to client determines the upgrading type of this correspondence.The file attribute of upgrade file may be embodied in the filename in file identification.Upgrading type is distinguished by file attribute, if the file attribute of upgrade file is configuration file, the error probability of this class file is little, and during software upgrading, need configuration file just can reach the quick use of function, therefore when upgrading, the upgrading type of this class file can be defined as quick upgrading, for the alternative document in software, if file attribute is the non-configuration file such as DLL or EXE, this class file to be generally in software program and truly to perform the file used, this class file so that error probability large, type of therefore upgrading can be defined as common upgrading.
Distribution module 605, for downloading opportunity values to described client Random assignment.
In one embodiment, if when determination module 604 determines that the upgrading type of this upgrade file is common upgrading, distribution module 605 can download opportunity values to this client Random assignment.Concrete, can determine to download according to the client terminal quantity of this upgrade file of asking to upgrade simultaneously the span of apportioning cost.Illustrate, if the client terminal quantity of this upgrade file of request upgrading is 100, then the span downloading opportunity values is 1 ~ 100; If the client terminal quantity of this upgrade file of request upgrading is 50, then the span downloading opportunity values is 1 ~ 50.Control Server can distribute one for each client and download opportunity values in this span, wherein, the download opportunity values that each client is assigned to is all different, thus according to which, the client that Control Server can control to ask simultaneously is downloaded at times.
First judge module 606, if determine that described upgrading type is described common upgrading for described determination module, judges whether described client is assigned to downloading machine meeting.
In the embodiment of the present invention, the first judge module 606 can comprise with lower unit:
Judging unit, for judging whether described download opportunity values is less than or equal to predetermined probabilities threshold value.
Second determining unit, if judge to be less than described predetermined probabilities threshold value for described judging unit, then determines that described client has described downloading machine meeting.
In one embodiment, the predeterminable client probability that at every turn can carry out downloading, as this probability can be 20%, if the quantity of client is 100, the probability threshold value then preset is 20, if the quantity of client is 50, then the probability threshold value preset is 10.If the download opportunity values that this client is distributed is less than predetermined probabilities threshold value, as when the probability threshold value preset is 20, if the download opportunity values that this client is assigned to is the arbitrary value in 1 ~ 20, then show that this client has been assigned to downloading machine meeting, for other clients, download opportunity values as distributed is the client of 21 ~ 100, then need to redistribute download opportunity values to it in next assignment period, wherein, can value preferentially in Random assignment 1 ~ 20, until the download opportunity values being assigned to client is all interval 1 ~ 20, then show to win dispenser meeting by all clients of multiple cycle.Certainly, for the client not being assigned to downloading machine meeting, the request upgrade information of this client discardable, until when client does not receive the response message of Control Server in the given time, again sends this request upgrade information request and to upgrade this file after preset period of time; Namely receiver module 601 receives request upgrade information again; Also can send to this client the response message not obtaining downloading machine meeting, thus notify that this client resends this request upgrade information after preset period of time.
Sending module 607, if judge that described client is assigned to described downloading machine meeting for described first judge module 606, then sends to described client by the download path on upgrade server.
In one embodiment, if the first judge module 606 judges that this client is assigned to downloading machine meeting, the download path on upgrade server can be sent to client by sending module 607.Concrete, Control Server can generate download path according to the information of above-mentioned acquisition and send to client, also can to the download path of this upgrade file of upgrade server request.The form of download path can be URL path, 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, can judge client pass through this request upgrade information ask upgrade file the need of upgrading, if this file needs upgrading, then can determine the upgrading type corresponding to this file, and according to different upgrading types, determine the response time that transmission client can be upgraded; If when the upgrading type determining corresponding to this upgrade file is common upgrading, can judge whether this client is assigned to downloading machine meeting further, if judge, this client is assigned to described downloading machine meeting, then can send download path to this client, thus client can download to the upgraded version of this file from upgrade server according to this download path.By the way, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Sending module 607, if also determine that the upgrading type that described file is corresponding is described quick upgrading for described determination module 604, then describedly sends to described client by the download path on upgrade server.
In the embodiment of the present invention, when receiving the request upgrade information of client, can judge client pass through this request upgrade information ask upgrade file the need of upgrading, if this file needs upgrading, then can determine the upgrading type corresponding to this file, and according to different upgrading types, determine the response time that feedback client can be upgraded; If when the upgrading type determining corresponding to this upgrade file is common upgrading, can judge whether this client is assigned to downloading machine meeting further, if judge, this client is assigned to described downloading machine meeting, then can send download path to this client, thus client can download to the upgraded version of this file from upgrade server according to this download path.By the way, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Refer to Fig. 7, Fig. 7 is the structural representation of an embodiment of a kind of client in the present invention.This client can comprise: sending module 701, receiver module 702, acquisition module 703, download module 704.
Sending module 701, for sending request upgrade information to Control Server, described request upgrade information comprises file identification and the FileVersion of request upgrade file.
In one embodiment, sending module 701 can send request upgrade information to Control Server, and this request upgrade information can comprise file identification and the FileVersion of request upgrade file.Concrete, can receive that upgrade server or Control Server send for the upgrade notification of software after send request upgrade information to Control Server, also periodically can send request upgrade information to Control Server.Wherein, the fileinfo of one or more request upgrade file can be comprised in request upgrade information, the fileinfo of the All Files in a software can be comprised with files that can upgrade all in this software of upgrading as asked upgrade information, and then complete software upgrading, also can comprise the fileinfo of a file in this software, the embodiment of the present invention is not construed as limiting.
Receiver module 702, for receiving the response message that described Control Server sends for described request upgrade information.
In one embodiment, after sending module 701 sends request upgrade information to this Control Server, receiver module 702 can receive the response message that this Control Server sends for this request upgrade information, wherein, this response message can be used for representing that the upgrade file needs of asking in request upgrade information are upgraded and do not need upgrading; If the multiple upgrade file of this request upgrade information request, then response message also can indicate the upgrade file needing the upgrade file of upgrading and do not need to upgrade.
Acquisition module 703, if the described response message received for described receiver module 702 represents need upgrading, then obtains download path from described response message.
In one embodiment, if the response message that receiver module 702 receives represents need upgrading, then acquisition module 703 can obtain download path from this response message.Concrete, represent need upgrading if receive response message, then can determine that this client possesses downloading machine meeting, download path can be obtained from this response message, thus from upgrade server, required upgrade file can be downloaded to according to this download path.
Optionally, if this client does not receive response message in predetermined period, represent that this client is not assigned to downloading machine meeting, then can send in the cycle at next, perform step S101, namely again send request upgrade information to Control Server, until receive response message.
Download module 704, for downloading described upgrade file according to described download path from upgrade server.
In one embodiment, after receiving response message, download module 704 can download this upgrade file according to download path from upgrade server.Optionally, download module can comprise with lower unit:
Resolution unit, for resolving the upgrading type comprised in described download path;
Search unit, for searching described upgrade file from file corresponding to type of upgrading described in described upgrade server;
Download unit, for when searching unit and finding described upgrade file, downloads described upgrade file.
Concrete, the form of download path can be URL path, as http://pc001.ks.kprotect.com/fast/cmcm/fnsign.dat, or http://pc001.ks.kprotect.com/bin/cmcm/kbasesrv.exe etc.As known in above-mentioned download path form, as in above-mentioned download path, fast can represent type of upgrading fast, and bin can represent common upgrading type.By upgrading classification of type management upgrade file in upgrade server, as parsed the upgrading type in download path, the position at upgrade file place can be found fast, and then this upgrade file can be got according to file identification, can download this upgrade file.
In the embodiment of the present invention, by sending request upgrade information to Control Server, and receive the response request that Control Server sends for this request upgrade information, determine that asked upgrade file is the need of upgrading, if desired upgrade, then can download to this upgrade file according to the download path in respective request information from upgrade server, the download time of this client can be controlled by Control Server and the transmission pressure of clear all clients to upgrade server request can be delayed.
Refer to Fig. 8, Fig. 8 is the structural representation of the another embodiment of a kind of Control Server in the present invention.This Control Server can comprise: at least one processor 501, as CPU, and at least one transceiver 503, memory 504 and at least one communication bus 502.Wherein, communication bus 502 is for realizing the connection communication between these assemblies, transceiver 503 can comprise wireline interface and the wave point of standard, memory 504 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), as at least one magnetic disc store, optionally, memory 504 can also be that at least one is positioned at the storage device away from aforementioned processor 501.Wherein, in memory 504, store batch processing code, and processor 501 calls the program code stored in memory 504, for performing following operation:
Receive the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file;
Determine the upgrading type corresponding to described upgrade file, described upgrading type comprises upgrading and common upgrading fast;
If described upgrading type is described common upgrading, judge whether described client is assigned to downloading machine meeting;
If judge, described client is assigned to described downloading machine meeting, then the download path on upgrade server is sent to described client.
As optional embodiment, after the request upgrade information of described reception client, described processor 501 also for call in memory 504 store program code, to perform following operation:
File identification and FileVersion is obtained from described fileinfo;
Judge that whether the FileVersion that file identification described in upgrade server is corresponding is consistent with the FileVersion in described request upgrade information;
Wherein, describedly determine that the upgrading type corresponding to described upgrade file comprises:
If judge inconsistent, then determine the upgrading type corresponding to described upgrade file.
As optional embodiment, the concrete mode stating the upgrading type determined corresponding to described upgrade file is:
Preset file with upgrade type is corresponding show in search the upgrading type corresponding with described upgrade file; Or
Corresponding upgrading type is determined, the corresponding one or more file attribute of described upgrading type according to the file attribute of described upgrade file.
As optional embodiment, after the described upgrading type determined corresponding to described file, described processor 501 also for call in memory 504 store program code, to perform following operation:
If the upgrading type that described file is corresponding is described quick upgrading, then perform described step download path on upgrade server being sent to described client.
As optional embodiment, described judge described client whether have downloading machine can before, described processor 501 also for call in memory 504 store program code, to perform following operation:
Opportunity values is downloaded to described client Random assignment;
Wherein, describedly judge whether described client has downloading machine to comprise:
Judge whether described download opportunity values is less than or equal to predetermined probabilities threshold value;
Be less than described predetermined probabilities threshold value if judge, then determine that described client has described downloading machine meeting.
In the embodiment of the present invention, when receiving the request upgrade information of client, can judge client pass through this request upgrade information ask upgrade file the need of upgrading, if this file needs upgrading, then can determine the upgrading type corresponding to this file, and according to different upgrading types, determine the response time that feedback client can be upgraded; If when the upgrading type determining corresponding to this upgrade file is common upgrading, can judge whether this client is assigned to downloading machine meeting further, if judge, this client is assigned to described downloading machine meeting, then can send download path to this client, thus client can download to the upgraded version of this file from upgrade server according to this download path.By the way, can to according to ask the upgrading type of the file of upgrading to carry out downloading control management at times to client, thus whether be able to have problems after Timeliness coverage document upgrading.
Refer to Fig. 9, Fig. 9 is the structural representation of the another embodiment of a kind of client in the present invention.This client can comprise: at least one processor 501, as CPU, and at least one transceiver 503, memory 504 and at least one communication bus 502.Wherein, communication bus 502 is for realizing the connection communication between these assemblies, transceiver 503 can comprise wireline interface and the wave point of standard, memory 504 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), as at least one magnetic disc store, optionally, memory 504 can also be that at least one is positioned at the storage device away from aforementioned processor 501.Wherein, in memory 504, store batch processing code, and processor 501 calls the program code stored in memory 504, for performing following operation:
Send request upgrade information to Control Server, described request upgrade information comprises file identification and the FileVersion of request upgrade file;
Receive the response message that described Control Server sends for described request upgrade information;
If the described response message received represents need upgrading, then from described response message, obtain download path;
From upgrade server, described upgrade file is downloaded according to described download path.
As optional embodiment, the described concrete mode downloading described upgrade file according to described download path from upgrade server is:
Resolve the upgrading type comprised in described download path;
Described upgrade file is searched from the file that type of upgrading described in described upgrade server is corresponding;
When finding described upgrade file, download described upgrade file.
In the embodiment of the present invention, by sending request upgrade information to Control Server, and receive the response request that Control Server sends for this request upgrade information, determine that asked upgrade file is the need of upgrading, if desired upgrade, then can download to this upgrade file according to the download path in respective request information from upgrade server, the download time of this client can be controlled by Control Server and the transmission pressure of clear all clients to upgrade server request can be delayed.
Refer to Figure 10, Figure 10 is the structural representation of an embodiment of a kind of upgrade-system in the present invention.At least one client 10011 ~ 1001N can be comprised, Control Server 1002, upgrade server 1003 in this upgrade-system.
Wherein, client 10011 ~ 1001N can comprise the client described in Fig. 7 or Fig. 9, and can perform embodiment illustrated in fig. 3 described in method; Control Server can comprise the Control Server described in Fig. 5, Fig. 6 or Fig. 8, and Fig. 1 can be performed or embodiment illustrated in fig. 2 described in method.This upgrade-system also can perform embodiment illustrated in fig. 4 described in method.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium, and for saving as above-mentioned Control Server computer software instructions used, it comprises the program for performing designed by said method embodiment.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium, and for saving as above-mentioned client computer software instructions used, it comprises the program for performing designed by said method embodiment.
Although at this, in conjunction with each embodiment, invention has been described; but; in enforcement the present invention for required protection process, those skilled in the art, by checking described accompanying drawing, disclosure and appended claims, can understand and realize other changes of described disclosed embodiment.In the claims, other parts or step do not got rid of in " comprising " (comprising) word, and "a" or "an" does not get rid of multiple situations.Single processor or other unit can realize some the functions enumerated in claim.Describe some measure in mutually different dependent claims, but this does not represent that these measures can not combine and produces good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.Computer program stores/is distributed in suitable medium, provides or as the part of hardware, also can adopt other distribution forms together with other hardware, as by Internet or other wired or wireless telecommunication system.
The present invention describes with reference to the flow chart of the method for the embodiment of the present invention, device (equipment) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although in conjunction with specific features and embodiment, invention has been described, apparent, without departing from the spirit and scope of the present invention, can carry out various amendment and combination to it.Correspondingly, this specification and accompanying drawing are only the exemplary illustrations of the present invention that claims define, and be considered as covering in the scope of the invention arbitrarily and all modifications, change, combination or equivalent.Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a document upgrading method, is characterized in that, comprising:
Receive the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file;
Determine the upgrading type corresponding to described upgrade file, described upgrading type comprises upgrading and common upgrading fast;
If described upgrading type is described common upgrading, judge whether described client is assigned to downloading machine meeting;
If judge, described client is assigned to described downloading machine meeting, then the download path on upgrade server is sent to described client.
2. method as claimed in claim 1, it is characterized in that, after the request upgrade information of described reception client, described method also comprises:
File identification and FileVersion is obtained from described fileinfo;
Judge that whether the FileVersion that file identification described in upgrade server is corresponding is consistent with the FileVersion in described request upgrade information;
Wherein, describedly determine that the upgrading type corresponding to described upgrade file comprises:
If judge inconsistent, then determine the upgrading type corresponding to described upgrade file.
3. method as claimed in claim 1 or 2, is characterized in that, describedly determines that the upgrading type corresponding to described upgrade file comprises:
Preset file with upgrade type is corresponding show in search the upgrading type corresponding with described upgrade file; Or
Corresponding upgrading type is determined, the corresponding one or more file attribute of described upgrading type according to the file attribute of described upgrade file.
4. method as claimed in claim 3, it is characterized in that, after the described upgrading type determined corresponding to described file, described method also comprises:
If the upgrading type that described file is corresponding is described quick upgrading, then perform described step download path on upgrade server being sent to described client.
5. method as claimed in claim 1, is characterized in that, described judge described client whether have downloading machine can before, described method also comprises:
Opportunity values is downloaded to described client Random assignment;
Wherein, describedly judge whether described client has downloading machine to comprise:
Judge whether described download opportunity values is less than or equal to predetermined probabilities threshold value;
Be less than described predetermined probabilities threshold value if judge, then determine that described client has described downloading machine meeting.
6. a document upgrading method, is characterized in that, comprising:
Send request upgrade information to Control Server, described request upgrade information comprises file identification and the FileVersion of request upgrade file;
Receive the response message that described Control Server sends for described request upgrade information;
If the described response message received represents need upgrading, then from described response message, obtain download path;
From upgrade server, described upgrade file is downloaded according to described download path.
7. method as claimed in claim 6, is characterized in that, describedly from upgrade server, downloads described upgrade file according to described download path and comprises:
Resolve the upgrading type comprised in described download path;
Described upgrade file is searched from the file that type of upgrading described in described upgrade server is corresponding;
When finding described upgrade file, download described upgrade file.
8. a Control Server, is characterized in that, comprising:
Receiver module, for receiving the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file;
Determination module, for determining the upgrading type corresponding to described upgrade file, described upgrading type comprises upgrading and common upgrading fast;
First judge module, if determine that described upgrading type is described common upgrading for described determination module, judges whether described client is assigned to downloading machine meeting;
Sending module, if judge that described client is assigned to described downloading machine meeting for described first judge module, then sends to described client by the download path on upgrade server.
9. a client, is characterized in that, comprising:
Sending module, for sending request upgrade information to Control Server, described request upgrade information comprises file identification and the FileVersion of request upgrade file;
Receiver module, for receiving the response message that described Control Server sends for described request upgrade information;
Acquisition module, if the described response message received for described receiver module represents need upgrading, then obtains download path from described response message;
Download module, for downloading described upgrade file according to described download path from upgrade server.
10. a Control Server, is characterized in that, comprises processor and memory, and described memory is used for program code stored, the program code that described processor stores for calling described memory, to perform following operation:
Receive the request upgrade information of client, described request upgrade information comprises the fileinfo of asked upgrade file;
Determine the upgrading type corresponding to described upgrade file, described upgrading type comprises upgrading and common upgrading fast;
If described upgrading type is described common upgrading, judge whether described client is assigned to downloading machine meeting;
If judge, described client is assigned to described downloading machine meeting, then the download path on upgrade server is sent to described client.
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 true CN105530323A (en) 2016-04-27
CN105530323B 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)

Cited By (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
CN106202458A (en) * 2016-07-15 2016-12-07 深圳市永达电子信息股份有限公司 A kind of can detect and recover the method for file in upgrading operation system the most in real time
CN106598645A (en) * 2016-11-18 2017-04-26 北京奇虎科技有限公司 Application updating method and device and mobile terminal
CN111427595A (en) * 2019-09-03 2020-07-17 杭州海康威视数字技术股份有限公司 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

Cited By (7)

* 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
CN106202458A (en) * 2016-07-15 2016-12-07 深圳市永达电子信息股份有限公司 A kind of can detect and recover the method for file in upgrading operation system the most in real time
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
CN106598645A (en) * 2016-11-18 2017-04-26 北京奇虎科技有限公司 Application updating method and device and mobile terminal
CN106598645B (en) * 2016-11-18 2020-11-20 北京安云世纪科技有限公司 Application upgrading method and device and mobile terminal
CN111427595A (en) * 2019-09-03 2020-07-17 杭州海康威视数字技术股份有限公司 Client upgrading method, device and system
CN111427595B (en) * 2019-09-03 2024-03-05 杭州海康威视数字技术股份有限公司 Client upgrading method, device and system

Also Published As

Publication number Publication date
CN105530323B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN110737658B (en) Data fragment storage method, device, terminal and readable storage medium
CN108074177B (en) Data reconciliation method, system and computer-readable storage medium
US20210337046A1 (en) Intelligent scheduling method, terminal device, edge node cluster and intelligent scheduling system
CN102694861B (en) A kind of terminal application software sorting technique, Apparatus and system based on cloud
CN108173774B (en) Client upgrading method and system
CN108235763B (en) Detection system, method and related device
CN105530323A (en) File upgrading method, related equipment and system
CN104219316A (en) Method and device for processing call request in distributed system
CN109905256A (en) A kind of firmware update and device
CN110730090B (en) Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN106453460B (en) File distribution method, device and system
CN111381842A (en) Robot upgrading method, electronic equipment and server
CN111327647A (en) Method and device for providing service to outside by container and electronic equipment
CN113778623A (en) Resource processing method and device, electronic equipment and storage medium
CN112764803A (en) Version upgrading method and device, storage medium and electronic device
WO2021101446A1 (en) System, method and apparatus downloading update package, and device and readable storage medium thereof
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
CN109495319B (en) Method, device and equipment for determining fault information of CDN node
CN104104701A (en) Online service configuration updating method and system
CN106612295B (en) Application downloading method, application pushing method, application downloading device, application pushing device and application downloading system
CN111147585A (en) Equipment upgrading method, device, storage medium and system
WO2023020071A1 (en) Upgrade package acquisition method and smart device
CN107682271B (en) Method and device for generating routing line
CN113596795B (en) Device binding method, device and computer readable 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