CN104714827A - Plug-in update method and device - Google Patents
Plug-in update method and device Download PDFInfo
- Publication number
- CN104714827A CN104714827A CN201510149905.XA CN201510149905A CN104714827A CN 104714827 A CN104714827 A CN 104714827A CN 201510149905 A CN201510149905 A CN 201510149905A CN 104714827 A CN104714827 A CN 104714827A
- Authority
- CN
- China
- Prior art keywords
- plug
- update
- unit
- information list
- configuration file
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a plug-in update method and device. The method comprises the following steps: scheduling a plug-in update configuration file transmitted to a plug-in host by a cloud server, wherein the plug-in update configuration file comprises a first plug-in information list of all plug-in information and a preset plug-in update rule; calling a second plug-in information list which is stored in the plug-in host and comprises installed plug-in information in the plug-in host; comparing the first plug-in information list and the second plug-in information list, and selecting a plug-in needing to be updated by the plug-in host to be added into an update queue according to the plug-in update rule; and updating the plug-in in the update queue. According to the technical scheme provided by the embodiment of the invention, the plug-in is intelligently updated, the plug-in version control, compatibility control and other problems are solved, and the breakdown ratio of plug-in application is reduced.
Description
Technical field
The present invention relates to computer processing technology field, particularly relate to a kind of update of plug-in method and device.
Background technology
In software development, conveniently Function Extension is carried out to software, plug-in unit mode can be adopted to develop, and each plug-in unit, in plug-in unit, is finally integrated in software main program bag (i.e. plug-in unit host) and together issues by the function package one by one that will be realized by software.
In prior art, the mechanism of update of plug-in is all direct covering, no matter whether current host supports this plug-in unit, such update mode exists following problem: 1) host may the compatible plug-in unit upgraded, and then causes application crashes; 2) if the framework of plugin manager has adjustment, the plug-in unit that the plug-in unit host None-identified issued is incompatible; 3) host cannot upgrade plug-in unit selectively, and plug-in version is uncontrollable.Therefore, the problems referred to above urgently to be resolved hurrily.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the update of plug-in method solved the problem at least in part and device.
According to one aspect of the present invention, provide a kind of update of plug-in method, be applied to plug-in unit host, comprise:
The update of plug-in configuration file of the described plug-in unit host that scheduling Cloud Server is issued to, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
Call store in described plug-in unit host comprise in described plug-in unit host the second plugin information list of having installed plugin information;
First plugin information list described in comparison and described second plugin information list, according to described update of plug-in rules selection, plug-in unit host needs the plug-in unit upgraded to join renewal queue;
Plug-in unit in described renewal queue is upgraded.
Alternatively, described method also comprises: after end to be updated, the second plugin information list according to renewal results modification.
Alternatively, if the update of plug-in configuration file in described Cloud Server exists amendment, the synchronous amended update of plug-in configuration file receiving described Cloud Server and issue, for upgrading the former update of plug-in configuration file in described plug-in unit host.
Alternatively, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
Alternatively, described version number changes because of following reason one of at least:
Framework is upgraded;
Code change causes incompatible version in the past;
Function upgrading and optimization.
Alternatively, described version number adopts X.X.X form, and wherein every X represents a reason of version change.
Alternatively, described plug-in unit host comprise following one of at least:
Server;
Client;
Application.
According to another aspect of the present invention, provide a kind of update of plug-in method, be applied to Cloud Server, comprise:
Judge whether the update of plug-in configuration file stored in described Cloud Server changes, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
If, then the update of plug-in configuration file after change is issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in described plug-in unit host by what store in the first plugin information list described in described plug-in unit host comparison and described plug-in unit host, and then plug-in unit host needs the plug-in unit upgraded to join renewal queue, to upgrade the plug-in unit in described renewal queue according to described update of plug-in rules selection.
Alternatively, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
According to another aspect of the present invention, additionally provide a kind of update of plug-in device, be applied to plug-in unit host, comprise:
Input/output interface, be suitable for the update of plug-in configuration file receiving the described plug-in unit host that Cloud Server is issued to, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
File scheduler, is suitable for execution cost update of plug-in configuration file; And, call store in described plug-in unit host comprise in described plug-in unit host the second plugin information list of having installed plugin information;
Analyses and comparison device, is suitable for the first plugin information list described in comparison and described second plugin information list, and according to described update of plug-in rules selection, plug-in unit host needs the plug-in unit upgraded to join renewal queue;
Renovator, is suitable for upgrading the plug-in unit in described renewal queue.
Alternatively, described device also comprises:
List modifier, after being suitable for end to be updated, the second plugin information list according to renewal results modification.
Alternatively, described input/output interface is also suitable for: if the update of plug-in configuration file in described Cloud Server exists amendment, the synchronous amended update of plug-in configuration file receiving described Cloud Server and issue;
Described renovator is also suitable for: the amended update of plug-in configuration file that utilization receives upgrades the former update of plug-in configuration file in described plug-in unit host.
Alternatively, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
Alternatively, described version number changes because of following reason one of at least:
Framework is upgraded;
Code change causes incompatible version in the past;
Function upgrading and optimization.
Alternatively, described version number adopts X.X.X form, and wherein every X represents a reason of version change.
Alternatively, described plug-in unit host comprise following one of at least:
Server;
Client;
Application.
According to another aspect of the invention, additionally provide a kind of update of plug-in device, be applied to Cloud Server, comprise:
Information determining device, whether the update of plug-in configuration file being suitable for judging to store in described Cloud Server changes, and wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
Information follower, if the judged result being suitable for described information determining device is yes, then the update of plug-in configuration file after change is issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in described plug-in unit host by what store in the first plugin information list described in described plug-in unit host comparison and described plug-in unit host, and then plug-in unit host needs the plug-in unit upgraded to join renewal queue, to upgrade the plug-in unit in described renewal queue according to described update of plug-in rules selection.
Alternatively, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
In the embodiment of the present invention, first a update of plug-in configuration file is safeguarded, owing to including the first plugin information list of all plugin informations in update of plug-in configuration file, with the update of plug-in rule preset, thus can determine according to update of plug-in configuration file the plug-in unit that plug-in unit host can upgrade accurately and rapidly, namely with the renewal plug-in unit of plug-in unit host compatibility, thus solve in prior art and cannot determine the whether compatible plug-in unit upgraded of plug-in unit host, and then the problem of application crashes may be caused.Further, in the embodiment of the present invention, the second plugin information list of having installed plugin information in the first plugin information list in update of plug-in configuration file and plug-in unit host is compared, and need the plug-in unit upgraded to join renewal queue according to update of plug-in rules selection plug-in unit host, thus realize the object upgrading plug-in unit selectively, neatly.In addition, relative to each plug-in unit host or client, Cloud Server is easier to realize unified management and operation, in the embodiment of the present invention, update of plug-in configuration file is issued by Cloud Server, namely be configured by Cloud Server, can timely, convenient, upgrade update of plug-in configuration file neatly, i.e. the first plugin information list of all plugin informations, with the update of plug-in rule preset, thus realize providing update of plug-in configuration file accurately to each plug-in unit host, realize the object effectively upgraded of plug-in unit.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
According to hereafter by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the process flow diagram of the update of plug-in method being applied to plug-in unit host according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of the update of plug-in method being applied to Cloud Server according to an embodiment of the invention;
Fig. 3 shows the structural representation of the update of plug-in device being applied to plug-in unit host according to an embodiment of the invention;
Fig. 4 shows the structural representation of the update of plug-in device being applied to plug-in unit host in accordance with another embodiment of the present invention; And
Fig. 5 shows the structural representation of the update of plug-in device being applied to Cloud Server according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
For solving the problems of the technologies described above, the invention provides a kind of update of plug-in method, being applied to plug-in unit host.Fig. 1 shows the process flow diagram of the update of plug-in method being applied to plug-in unit host according to an embodiment of the invention.As shown in Figure 1, the method at least comprises the following steps S102 to step S108.
The update of plug-in configuration file of the plug-in unit host that step S102, scheduling Cloud Server are issued to, wherein, update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset.
Step S104, call store in plug-in unit host comprise in plug-in unit host the second plugin information list of having installed plugin information.
Step S106, comparison first plugin information list and the second plugin information list, need the plug-in unit upgraded to join renewal queue according to update of plug-in rules selection plug-in unit host.
Step S108, the plug-in unit upgraded in queue to be upgraded.
In the embodiment of the present invention, first a update of plug-in configuration file is safeguarded, owing to including the first plugin information list of all plugin informations in update of plug-in configuration file, with the update of plug-in rule preset, thus can determine according to update of plug-in configuration file the plug-in unit that plug-in unit host can upgrade accurately and rapidly, namely with the renewal plug-in unit of plug-in unit host compatibility, thus solve in prior art and cannot determine the whether compatible plug-in unit upgraded of plug-in unit host, and then the problem of application crashes may be caused.Further, in the embodiment of the present invention, the second plugin information list of having installed plugin information in the first plugin information list in update of plug-in configuration file and plug-in unit host is compared, and need the plug-in unit upgraded to join renewal queue according to update of plug-in rules selection plug-in unit host, thus realize the object upgrading plug-in unit selectively, neatly.In addition, relative to each plug-in unit host or client, Cloud Server is easier to realize unified management and operation, in the embodiment of the present invention, update of plug-in configuration file is issued by Cloud Server, namely be configured by Cloud Server, can timely, convenient, upgrade update of plug-in configuration file neatly, i.e. the first plugin information list of all plugin informations, with the update of plug-in rule preset, thus realize providing update of plug-in configuration file accurately to each plug-in unit host, realize the object effectively upgraded of plug-in unit.
In the embodiment of the present invention, plug-in unit host mentioned above can be server, client, application etc., and the present invention is not restricted.
The title, unique identification, explanation, download address etc. of plug-in unit can be comprised above in the first plugin information list mentioned in step S102.Here, plug-in unit unique identification can be MD5 (MessageDigest Algorithm5, the message digest algorithm 5) value or SHA1 (Secure Hash Algorithm1, Secure Hash Algorithm 1) value etc. of plug-in unit.Concrete, calculated unique hash (Hash) value of plug-in unit in the embodiment of the present invention by MD5 algorithm, i.e. MD5 value.The typical apply of MD5 algorithm produces informative abstract (Message-Digest) to a segment information (Message), to prevent from being tampered.Whole file is used as a Long Binary information by MD5, by its irreversible character string mapping algorithm, creates the MD5 informative abstract that this is unique.Certainly, the cryptographic hash that the embodiment of the present invention adopts other algorithms to calculate executable file according to actual conditions is all feasible, and such as adopt SHA1 etc., the present invention does not limit this.
In addition, the update of plug-in the preset rule mentioned in step S102, as whether being positioned at scope between minimum version and most highest version when the version of anterior plug-in host, or when whether the version of anterior plug-in host belongs to random version number, or whether the version of working as anterior plug-in host belongs to is ignored version number, etc.And for example, whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version, or whether current plug-in unit of having installed belongs to installable random version number, or whether current plug-in unit of having installed belongs to installable version number of ignoring, etc.Further, the version number mentioned here changes because of following reason one of at least, as framework upgrading, code change cause incompatible before version, function upgrading and optimization etc.Now, version number can adopt X.X.X form, and wherein every X represents a reason of version change.
In step S108, the plug-in unit upgraded in queue is upgraded, after end to be updated, according to the list of renewal results modification second plugin information, so that follow-up comparison and renewal.
In preferred version of the present invention, if there is amendment in the update of plug-in configuration file in Cloud Server, then synchronously receive the amended update of plug-in configuration file that Cloud Server issues, for upgrading the former update of plug-in configuration file in plug-in unit host, thus make the renewal of plug-in unit intelligent, for plug-platform provides good support.
Accordingly, the invention provides a kind of update of plug-in method, be applied to Cloud Server.Fig. 2 shows the process flow diagram of the update of plug-in method being applied to Cloud Server according to an embodiment of the invention.As shown in Figure 2, the method at least comprises the following steps S202 to step S204.
Step S202, judge whether the update of plug-in configuration file stored in Cloud Server changes, wherein, update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset, and if so, then continues to perform step S204; Otherwise, terminate this flow process.
Step S204, by change after update of plug-in configuration file be issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in plug-in unit host by what store in plug-in unit host comparison first plugin information list and plug-in unit host, and then need the plug-in unit upgraded to join renewal queue according to update of plug-in rules selection plug-in unit host, to upgrade the plug-in unit upgraded in queue.
In the embodiment of the present invention, update of plug-in configuration file is safeguarded by Cloud Server, when update of plug-in configuration file changes, in time the update of plug-in configuration file after change is issued to plug-in unit host, thus realizes the object that update of plug-in configuration file is accurately provided to each plug-in unit host.
The title, unique identification, explanation, download address etc. of plug-in unit can be comprised above in the first plugin information list mentioned in step S202.Here, plug-in unit unique identification can be the MD5 value or SHA1 value etc. of plug-in unit.Concrete, calculated unique hash (Hash) value of plug-in unit in the embodiment of the present invention by MD5 algorithm, i.e. MD5 value.The typical apply of MD5 algorithm produces informative abstract (Message-Digest) to a segment information (Message), to prevent from being tampered.Whole file is used as a Long Binary information by MD5, by its irreversible character string mapping algorithm, creates the MD5 informative abstract that this is unique.Certainly, the cryptographic hash that the embodiment of the present invention adopts other algorithms to calculate executable file according to actual conditions is all feasible, and such as adopt SHA1 etc., the present invention does not limit this.
In addition, the update of plug-in the preset rule mentioned in step S202, as whether being positioned at scope between minimum version and most highest version when the version of anterior plug-in host, or when whether the version of anterior plug-in host belongs to random version number, or whether the version of working as anterior plug-in host belongs to is ignored version number, etc.And for example, whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version, or whether current plug-in unit of having installed belongs to installable random version number, or whether current plug-in unit of having installed belongs to installable version number of ignoring, etc.Further, the version number mentioned here changes because of following reason one of at least, as framework upgrading, code change cause incompatible before version, function upgrading and optimization etc.Now, version number can adopt X.X.X form, and wherein every X represents a reason of version change.In addition, the title, unique identification, explanation, download address etc. of plug-in unit is included in the second plugin information list mentioned in step S204.
It should be noted that, in practical application, above-mentioned all Alternate embodiments can adopt the mode combination in any of combination, and form optional embodiment of the present invention, this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of update of plug-in device, is applied to plug-in unit host.Fig. 3 shows the structural representation of the update of plug-in device being applied to plug-in unit host according to an embodiment of the invention.As shown in Figure 3, this device at least can comprise: input/output interface 310, file scheduler 320, analyses and comparison device 330 and renovator 340.
Now introduce the annexation be applied between each composition of the update of plug-in device of plug-in unit host or the function of device and each several part of the embodiment of the present invention:
Input/output interface 310, be suitable for the update of plug-in configuration file receiving the described plug-in unit host that Cloud Server is issued to, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
File scheduler 320, is coupled with input/output interface 310, is suitable for execution cost update of plug-in configuration file; And, call store in described plug-in unit host comprise in described plug-in unit host the second plugin information list of having installed plugin information;
Analyses and comparison device 330, is coupled with file scheduler 320, is suitable for the first plugin information list described in comparison and described second plugin information list, and according to described update of plug-in rules selection, plug-in unit host needs the plug-in unit upgraded to join renewal queue;
Renovator 340, is coupled with analyses and comparison device 330, is suitable for upgrading the plug-in unit in described renewal queue.
In an embodiment of the present invention, as shown in Figure 4, the device that Fig. 3 shows can also comprise: list modifier 410, is coupled with renovator 340, after being suitable for end to be updated, and the second plugin information list according to renewal results modification.
In an embodiment of the present invention, described input/output interface 310 is also suitable for: if the update of plug-in configuration file in described Cloud Server exists amendment, the synchronous amended update of plug-in configuration file receiving described Cloud Server and issue;
Described renovator 340 is also suitable for: the amended update of plug-in configuration file that utilization receives upgrades the former update of plug-in configuration file in described plug-in unit host.
In an embodiment of the present invention, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
In an embodiment of the present invention, described version number changes because of following reason one of at least:
Framework is upgraded;
Code change causes incompatible version in the past;
Function upgrading and optimization.
In an embodiment of the present invention, described version number adopts X.X.X form, and wherein every X represents a reason of version change.
In an embodiment of the present invention, described plug-in unit host comprise following one of at least:
Server;
Client;
Application.
Accordingly, the embodiment of the present invention additionally provides a kind of update of plug-in device, is applied to Cloud Server.Fig. 5 shows the structural representation of the update of plug-in device being applied to Cloud Server according to an embodiment of the invention.As shown in Figure 5, this device at least can comprise: information determining device 510 and information follower 520.
Information determining device 510, whether the update of plug-in configuration file being suitable for judging to store in described Cloud Server changes, and wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
Information follower 520, be coupled with information determining device 510, if the judged result being suitable for described information determining device is yes, then the update of plug-in configuration file after change is issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in described plug-in unit host by what store in the first plugin information list described in described plug-in unit host comparison and described plug-in unit host, and then plug-in unit host needs the plug-in unit upgraded to join renewal queue, to upgrade the plug-in unit in described renewal queue according to described update of plug-in rules selection.
In an embodiment of the present invention, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
According to the combination of any one preferred embodiment above-mentioned or multiple preferred embodiment, the embodiment of the present invention can reach following beneficial effect:
In the embodiment of the present invention, first a update of plug-in configuration file is safeguarded, owing to including the first plugin information list of all plugin informations in update of plug-in configuration file, with the update of plug-in rule preset, thus can determine according to update of plug-in configuration file the plug-in unit that plug-in unit host can upgrade accurately and rapidly, namely with the renewal plug-in unit of plug-in unit host compatibility, thus solve in prior art and cannot determine the whether compatible plug-in unit upgraded of plug-in unit host, and then the problem of application crashes may be caused.Further, in the embodiment of the present invention, the second plugin information list of having installed plugin information in the first plugin information list in update of plug-in configuration file and plug-in unit host is compared, and need the plug-in unit upgraded to join renewal queue according to update of plug-in rules selection plug-in unit host, thus realize the object upgrading plug-in unit selectively, neatly.In addition, relative to each plug-in unit host or client, Cloud Server is easier to realize unified management and operation, in the embodiment of the present invention, update of plug-in configuration file is issued by Cloud Server, namely be configured by Cloud Server, can timely, convenient, upgrade update of plug-in configuration file neatly, i.e. the first plugin information list of all plugin informations, with the update of plug-in rule preset, thus realize providing update of plug-in configuration file accurately to each plug-in unit host, realize the object effectively upgraded of plug-in unit.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the update of plug-in device of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, although multiple exemplary embodiment of the present invention is illustrate and described herein detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive other modification many or amendment of meeting the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.
The invention discloses A1, a kind of update of plug-in method, be applied to plug-in unit host, comprise:
The update of plug-in configuration file of the described plug-in unit host that scheduling Cloud Server is issued to, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
Call store in described plug-in unit host comprise in described plug-in unit host the second plugin information list of having installed plugin information;
First plugin information list described in comparison and described second plugin information list, according to described update of plug-in rules selection, plug-in unit host needs the plug-in unit upgraded to join renewal queue;
Plug-in unit in described renewal queue is upgraded.
A2, method according to claim A1, wherein, also comprise: after end to be updated, the second plugin information list according to renewal results modification.
A3, method according to claim A1 or A2, wherein, if the update of plug-in configuration file in described Cloud Server exists amendment, the synchronous amended update of plug-in configuration file receiving described Cloud Server and issue, for upgrading the former update of plug-in configuration file in described plug-in unit host.
A4, method according to any one of claim A1-A3, wherein, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
A5, method according to claim A4, wherein, described version number changes because of following reason one of at least:
Framework is upgraded;
Code change causes incompatible version in the past;
Function upgrading and optimization.
A6, method according to claim A5, wherein, described version number adopts X.X.X form, and wherein every X represents a reason of version change.
A7, method according to any one of claim A1-A6, wherein, described plug-in unit host comprise following one of at least:
Server;
Client;
Application.
The invention also discloses B8, a kind of update of plug-in method, be applied to Cloud Server, comprise:
Judge whether the update of plug-in configuration file stored in described Cloud Server changes, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
If, then the update of plug-in configuration file after change is issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in described plug-in unit host by what store in the first plugin information list described in described plug-in unit host comparison and described plug-in unit host, and then plug-in unit host needs the plug-in unit upgraded to join renewal queue, to upgrade the plug-in unit in described renewal queue according to described update of plug-in rules selection.
B9, method according to claim B8, wherein, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
The invention also discloses C10, a kind of update of plug-in device, be applied to plug-in unit host, comprise:
Input/output interface, be suitable for the update of plug-in configuration file receiving the described plug-in unit host that Cloud Server is issued to, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
File scheduler, is suitable for execution cost update of plug-in configuration file; And, call store in described plug-in unit host comprise in described plug-in unit host the second plugin information list of having installed plugin information;
Analyses and comparison device, is suitable for the first plugin information list described in comparison and described second plugin information list, and according to described update of plug-in rules selection, plug-in unit host needs the plug-in unit upgraded to join renewal queue;
Renovator, is suitable for upgrading the plug-in unit in described renewal queue.
C11, device according to claim C10, wherein, also comprise:
List modifier, after being suitable for end to be updated, the second plugin information list according to renewal results modification.
C12, device according to claim C10 or C11, wherein,
Described input/output interface is also suitable for: if the update of plug-in configuration file in described Cloud Server exists amendment, the synchronous amended update of plug-in configuration file receiving described Cloud Server and issue;
Described renovator is also suitable for: the amended update of plug-in configuration file that utilization receives upgrades the former update of plug-in configuration file in described plug-in unit host.
C13, device according to any one of claim C10-C12, wherein, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
C14, device according to claim C13, wherein, described version number changes because of following reason one of at least:
Framework is upgraded;
Code change causes incompatible version in the past;
Function upgrading and optimization.
C15, device according to claim C14, wherein, described version number adopts X.X.X form, and wherein every X represents a reason of version change.
C16, device according to any one of claim C10-C15, wherein, described plug-in unit host comprise following one of at least:
Server;
Client;
Application.
The invention also discloses D17, a kind of update of plug-in device, be applied to Cloud Server, comprise:
Information determining device, whether the update of plug-in configuration file being suitable for judging to store in described Cloud Server changes, and wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
Information follower, if the judged result being suitable for described information determining device is yes, then the update of plug-in configuration file after change is issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in described plug-in unit host by what store in the first plugin information list described in described plug-in unit host comparison and described plug-in unit host, and then plug-in unit host needs the plug-in unit upgraded to join renewal queue, to upgrade the plug-in unit in described renewal queue according to described update of plug-in rules selection.
D18, device according to claim D17, wherein, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
Claims (10)
1. a update of plug-in method, is applied to plug-in unit host, comprises:
The update of plug-in configuration file of the described plug-in unit host that scheduling Cloud Server is issued to, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
Call store in described plug-in unit host comprise in described plug-in unit host the second plugin information list of having installed plugin information;
First plugin information list described in comparison and described second plugin information list, according to described update of plug-in rules selection, plug-in unit host needs the plug-in unit upgraded to join renewal queue;
Plug-in unit in described renewal queue is upgraded.
2. method according to claim 1, wherein, also comprises: after end to be updated, the second plugin information list according to renewal results modification.
3. method according to claim 1 and 2, wherein, if the update of plug-in configuration file in described Cloud Server exists amendment, the synchronous amended update of plug-in configuration file receiving described Cloud Server and issue, for upgrading the former update of plug-in configuration file in described plug-in unit host.
4. the method according to any one of claim 1-3, wherein, described first plugin information list and/or described second plugin information list comprise following one of at least: the title of plug-in unit, explanation, download address;
Described update of plug-in rule comprise following one of at least:
Whether current plug-in unit of having installed is positioned at scope between installable minimum version and most highest version;
Whether current plug-in unit of having installed belongs to installable random version number;
Whether current plug-in unit of having installed belongs to installable and ignores version number.
5. method according to claim 4, wherein, described version number changes because of following reason one of at least:
Framework is upgraded;
Code change causes incompatible version in the past;
Function upgrading and optimization.
6. method according to claim 5, wherein, described version number adopts X.X.X form, and wherein every X represents a reason of version change.
7. a update of plug-in method, is applied to Cloud Server, comprising:
Judge whether the update of plug-in configuration file stored in described Cloud Server changes, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
If, then the update of plug-in configuration file after change is issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in described plug-in unit host by what store in the first plugin information list described in described plug-in unit host comparison and described plug-in unit host, and then plug-in unit host needs the plug-in unit upgraded to join renewal queue, to upgrade the plug-in unit in described renewal queue according to described update of plug-in rules selection.
8. a update of plug-in device, is applied to plug-in unit host, comprises:
Input/output interface, be suitable for the update of plug-in configuration file receiving the described plug-in unit host that Cloud Server is issued to, wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
File scheduler, is suitable for execution cost update of plug-in configuration file; And, call store in described plug-in unit host comprise in described plug-in unit host the second plugin information list of having installed plugin information;
Analyses and comparison device, is suitable for the first plugin information list described in comparison and described second plugin information list, and according to described update of plug-in rules selection, plug-in unit host needs the plug-in unit upgraded to join renewal queue;
Renovator, is suitable for upgrading the plug-in unit in described renewal queue.
9. device according to claim 8, wherein, also comprises:
List modifier, after being suitable for end to be updated, the second plugin information list according to renewal results modification.
10. a update of plug-in device, is applied to Cloud Server, comprising:
Information determining device, whether the update of plug-in configuration file being suitable for judging to store in described Cloud Server changes, and wherein, described update of plug-in configuration file comprises the first plugin information list of all plugin informations, and the update of plug-in rule preset;
Information follower, if the judged result being suitable for described information determining device is yes, then the update of plug-in configuration file after change is issued to plug-in unit host, the second plugin information list of having installed plugin information is comprised in described plug-in unit host by what store in the first plugin information list described in described plug-in unit host comparison and described plug-in unit host, and then plug-in unit host needs the plug-in unit upgraded to join renewal queue, to upgrade the plug-in unit in described renewal queue according to described update of plug-in rules selection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149905.XA CN104714827B (en) | 2015-03-31 | 2015-03-31 | Update of plug-in method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149905.XA CN104714827B (en) | 2015-03-31 | 2015-03-31 | Update of plug-in method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104714827A true CN104714827A (en) | 2015-06-17 |
CN104714827B CN104714827B (en) | 2018-06-08 |
Family
ID=53414197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510149905.XA Active CN104714827B (en) | 2015-03-31 | 2015-03-31 | Update of plug-in method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104714827B (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045596A (en) * | 2015-07-31 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | Plug-in calling method and apparatus |
CN105511909A (en) * | 2015-11-26 | 2016-04-20 | 北京奇虎科技有限公司 | Plug-in processing method and device |
CN106155739A (en) * | 2016-06-30 | 2016-11-23 | 北京奇虎科技有限公司 | A kind of plug-in unit control metering method, server, client and control amount platform |
CN106791978A (en) * | 2016-12-14 | 2017-05-31 | 未来电视有限公司 | Quick version iteration method based on internet television client |
CN107204863A (en) * | 2016-03-16 | 2017-09-26 | 杭州海康威视数字技术股份有限公司 | A kind of plug-in control method, device and cloud storage system for cloud storage system |
CN107273142A (en) * | 2017-07-12 | 2017-10-20 | 北京潘达互娱科技有限公司 | Method for updating program, program operating method and device |
CN107526602A (en) * | 2017-09-05 | 2017-12-29 | 郑州云海信息技术有限公司 | A kind of cmc method for updating edition and device |
CN107656750A (en) * | 2017-10-16 | 2018-02-02 | 深圳大宇无限科技有限公司 | Update of plug-in method and device |
CN108845812A (en) * | 2018-05-31 | 2018-11-20 | 康键信息技术(深圳)有限公司 | Update of plug-in method, apparatus, computer equipment and storage medium |
CN108874466A (en) * | 2018-06-08 | 2018-11-23 | Oppo(重庆)智能科技有限公司 | Control call method, electronic device and computer readable storage medium |
CN108920167A (en) * | 2018-08-03 | 2018-11-30 | 腾讯科技(深圳)有限公司 | A kind of application program update method, apparatus and intelligent sound box |
CN108984224A (en) * | 2018-06-13 | 2018-12-11 | 中国平安人寿保险股份有限公司 | A kind of plug-in management method, computer readable storage medium and terminal device |
CN109032651A (en) * | 2018-08-24 | 2018-12-18 | 深圳创维-Rgb电子有限公司 | Using update method, intelligent terminal and computer readable storage medium |
CN109308189A (en) * | 2018-09-27 | 2019-02-05 | 珠海市君天电子科技有限公司 | A kind of configuration file update method, device and electronic equipment |
CN111427595A (en) * | 2019-09-03 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Client upgrading method, device and system |
CN113626045A (en) * | 2021-08-24 | 2021-11-09 | 挂号网(杭州)科技有限公司 | Method and device for installing development tool, electronic equipment and storage medium |
CN114942774A (en) * | 2022-07-26 | 2022-08-26 | 中恒信息科技(广州)有限公司 | BIM modeling software-based plug-in function hot updating method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8438556B2 (en) * | 2005-06-30 | 2013-05-07 | Canon Kabushiki Kaisha | Peripheral device control system, its control method, and information processing apparatus, and computer program and computer-readable storage medium |
CN103399792A (en) * | 2013-07-24 | 2013-11-20 | 佳都新太科技股份有限公司 | Implementation scheme of Android-based plug-in applications |
CN103645923A (en) * | 2013-12-26 | 2014-03-19 | 浙江宇天科技股份有限公司 | Insert installation method and system |
CN104199666A (en) * | 2014-09-09 | 2014-12-10 | 北京京东尚科信息技术有限公司 | Dynamic configuration method and device for application program |
-
2015
- 2015-03-31 CN CN201510149905.XA patent/CN104714827B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8438556B2 (en) * | 2005-06-30 | 2013-05-07 | Canon Kabushiki Kaisha | Peripheral device control system, its control method, and information processing apparatus, and computer program and computer-readable storage medium |
CN103399792A (en) * | 2013-07-24 | 2013-11-20 | 佳都新太科技股份有限公司 | Implementation scheme of Android-based plug-in applications |
CN103645923A (en) * | 2013-12-26 | 2014-03-19 | 浙江宇天科技股份有限公司 | Insert installation method and system |
CN104199666A (en) * | 2014-09-09 | 2014-12-10 | 北京京东尚科信息技术有限公司 | Dynamic configuration method and device for application program |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045596A (en) * | 2015-07-31 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | Plug-in calling method and apparatus |
CN105511909A (en) * | 2015-11-26 | 2016-04-20 | 北京奇虎科技有限公司 | Plug-in processing method and device |
CN105511909B (en) * | 2015-11-26 | 2018-09-11 | 北京奇虎科技有限公司 | Handle the method and device of plug-in unit |
CN107204863A (en) * | 2016-03-16 | 2017-09-26 | 杭州海康威视数字技术股份有限公司 | A kind of plug-in control method, device and cloud storage system for cloud storage system |
CN106155739A (en) * | 2016-06-30 | 2016-11-23 | 北京奇虎科技有限公司 | A kind of plug-in unit control metering method, server, client and control amount platform |
CN106791978A (en) * | 2016-12-14 | 2017-05-31 | 未来电视有限公司 | Quick version iteration method based on internet television client |
CN107273142A (en) * | 2017-07-12 | 2017-10-20 | 北京潘达互娱科技有限公司 | Method for updating program, program operating method and device |
CN107526602A (en) * | 2017-09-05 | 2017-12-29 | 郑州云海信息技术有限公司 | A kind of cmc method for updating edition and device |
CN107656750A (en) * | 2017-10-16 | 2018-02-02 | 深圳大宇无限科技有限公司 | Update of plug-in method and device |
CN108845812B (en) * | 2018-05-31 | 2024-04-05 | 康键信息技术(深圳)有限公司 | Plug-in updating method, device, computer equipment and storage medium |
CN108845812A (en) * | 2018-05-31 | 2018-11-20 | 康键信息技术(深圳)有限公司 | Update of plug-in method, apparatus, computer equipment and storage medium |
CN108874466A (en) * | 2018-06-08 | 2018-11-23 | Oppo(重庆)智能科技有限公司 | Control call method, electronic device and computer readable storage medium |
CN108874466B (en) * | 2018-06-08 | 2021-10-29 | Oppo(重庆)智能科技有限公司 | Control calling method, electronic device and computer readable storage medium |
CN108984224A (en) * | 2018-06-13 | 2018-12-11 | 中国平安人寿保险股份有限公司 | A kind of plug-in management method, computer readable storage medium and terminal device |
CN108920167A (en) * | 2018-08-03 | 2018-11-30 | 腾讯科技(深圳)有限公司 | A kind of application program update method, apparatus and intelligent sound box |
CN109032651A (en) * | 2018-08-24 | 2018-12-18 | 深圳创维-Rgb电子有限公司 | Using update method, intelligent terminal and computer readable storage medium |
CN109308189A (en) * | 2018-09-27 | 2019-02-05 | 珠海市君天电子科技有限公司 | A kind of configuration file update method, device and electronic equipment |
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 |
CN113626045A (en) * | 2021-08-24 | 2021-11-09 | 挂号网(杭州)科技有限公司 | Method and device for installing development tool, electronic equipment and storage medium |
CN114942774A (en) * | 2022-07-26 | 2022-08-26 | 中恒信息科技(广州)有限公司 | BIM modeling software-based plug-in function hot updating method |
Also Published As
Publication number | Publication date |
---|---|
CN104714827B (en) | 2018-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104714827A (en) | Plug-in update method and device | |
CN105045631A (en) | Method and device for upgrading client-side applications | |
CN103699410A (en) | Method and device for updating application programs | |
CN106209925A (en) | Page loading method, client and system | |
CN104063239A (en) | Application program update method of mobile terminal, server and client | |
CN104731625A (en) | Method, device and mobile terminal for loading plugin | |
CN108762767B (en) | Application publishing method, device and computer readable storage medium | |
CN103544035A (en) | Application clearing method and device for mobile terminal | |
CN109213533B (en) | Advertisement SDK dynamic loading method, device and terminal | |
CN104461567A (en) | Method and system for releasing software package | |
US11474796B1 (en) | Build system for distributed applications | |
CN106775781B (en) | Method and device for reducing application installation packages and electronic equipment | |
JP7048663B2 (en) | Code execution methods, devices, rendering devices, storage media, and programs | |
CN111026439A (en) | Application program compatibility method, device, equipment and computer storage medium | |
CN110888639A (en) | Business code compiling and packaging method and device | |
CN103500114A (en) | Method and device for installing application program | |
CN112835568A (en) | Project construction method and device | |
CN103500099A (en) | Method for achieving quick software secondary development through expansion points and expansion | |
CN113535220B (en) | Code packet management method and device | |
JP7010562B2 (en) | Wrapping method, registration method, device, rendering device, and program | |
CN104850791A (en) | Method and system for processing tasks | |
KR102141749B1 (en) | APP program execution method and device | |
CN105260200A (en) | Processing method and device for upgrading operating system | |
CN111610982B (en) | Application program development method, device and related system | |
CN109739868B (en) | Data processing method and related equipment thereof |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220728 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |