CN104714827B - Update of plug-in method and device - Google Patents
Update of plug-in method and device Download PDFInfo
- Publication number
- CN104714827B CN104714827B CN201510149905.XA CN201510149905A CN104714827B CN 104714827 B CN104714827 B CN 104714827B CN 201510149905 A CN201510149905 A CN 201510149905A CN 104714827 B CN104714827 B CN 104714827B
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000004048 modification Effects 0.000 claims description 19
- 238000012986 modification Methods 0.000 claims description 19
- 230000008859 change Effects 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 13
- 238000005457 optimization Methods 0.000 claims description 9
- 238000004458 analytical method Methods 0.000 claims description 6
- 230000001360 synchronised effect Effects 0.000 claims description 5
- 239000003607 modifier Substances 0.000 claims description 4
- 230000008901 benefit Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000002427 irreversible effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 208000033748 Device issues Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Abstract
The present invention provides a kind of update of plug-in method and devices.This method includes:The update of plug-in configuration file of the plug-in unit host that scheduling Cloud Server is issued to, wherein, the update of plug-in configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule;Call the second plugin information list for including having installed plugin information in the plug-in unit host stored in the plug-in unit host;The first plugin information list and the second plugin information list are compared, selects the plug-in unit host that newer plug-in unit is needed to be added to update queue according to the update of plug-in rule;Plug-in unit in the update queue is updated.Technical solution provided in an embodiment of the present invention so that the problems such as update of plug-in unit is intelligent, solves plug-in version control, and compatibility controls reduces the collapse rate of plug-in application.
Description
Technical field
The present invention relates to computer processing technology field, more particularly to a kind of update of plug-in method and device.
Background technology
In software development, Function Extension is carried out to software for convenience, plug-in unit mode may be used and developed, it will be soft
The function package one by one to be realized of part is in plug-in unit, finally by each plug-in unit in software main program packet (i.e. plug-in unit
Host) in issue together.
In the prior art, the mechanism of update of plug-in is all directly to cover, no matter whether current host supports the plug-in unit, in this way
Update mode have the following problems:1) host possibly can not be compatible with newer plug-in unit, and then lead to application crashes;If it 2) inserts
The framework of part manager has adjustment, the incompatible plug-in unit of issued plug-in unit host's None- identified;3) host can not have selection
Plug-in unit is updated to property, plug-in version is uncontrollable.It would therefore be highly desirable to it solves the above problems.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly
State the update of plug-in method and device of problem.
One side according to the present invention provides a kind of update of plug-in method, applied to plug-in unit host, including:
The update of plug-in configuration file of the plug-in unit host that scheduling Cloud Server is issued to, wherein, the update of plug-in
Configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule;
Call the second plug-in unit letter for including having installed plugin information in the plug-in unit host stored in the plug-in unit host
Cease list;
The first plugin information list and the second plugin information list are compared, is selected according to the update of plug-in rule
Selecting the plug-in unit host needs newer plug-in unit to be added to update queue;
Plug-in unit in the update queue is updated.
Optionally, the method further includes:After to be updated, according to the second plugin information row described in update results modification
Table.
Optionally, it is synchronous to receive the cloud service if the update of plug-in configuration file in the Cloud Server has modification
The modified update of plug-in configuration file that device issues, for updating the former update of plug-in configuration file in the plug-in unit host.
Optionally, the first plugin information list and/or the second plugin information list include at least one following:
Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
Optionally, the version number because it is at least one following the reason of change:
Framework upgrades;
Code change leads to incompatible pervious version;
Function upgrading and optimization.
Optionally, the version number uses X.X.X forms, wherein every X represents a reason of version variation.
Optionally, the plug-in unit host includes at least one following:
Server;
Client;
Using.
Other side according to the present invention provides a kind of update of plug-in method, applied to Cloud Server, including:
Whether the update of plug-in configuration file for judging to store in the Cloud Server changes, wherein, the update of plug-in
Configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule;
If so, the update of plug-in configuration file after variation is issued to plug-in unit host, institute is compared by the plug-in unit host
It states including of being stored in the first plugin information list and the plug-in unit host and the of plugin information has been installed in the plug-in unit host
Two plugin information lists, and then select the plug-in unit host that newer plug-in unit is needed to be added to more according to the update of plug-in rule
New queue, to be updated to the plug-in unit in the update queue.
Optionally, the first plugin information list and/or the second plugin information list include at least one following:
Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
Another aspect according to the present invention additionally provides a kind of update of plug-in device, applied to plug-in unit host, including:
Input/output interface, suitable for receiving the update of plug-in configuration file of the plug-in unit host that Cloud Server is issued to,
Wherein, the update of plug-in configuration file includes the first plugin information list of all plugin informations and preset update of plug-in
Rule;
File scheduler, suitable for dispatching the update of plug-in configuration file;And call what is stored in the plug-in unit host
The second plugin information list including having installed plugin information in the plug-in unit host;
Analyses and comparison device, suitable for comparing the first plugin information list and the second plugin information list, according to institute
Stating update of plug-in rule selects the plug-in unit host that newer plug-in unit is needed to be added to update queue;
Renovator, suitable for being updated to the plug-in unit in the update queue.
Optionally, described device further includes:
List modifier, after to be updated, according to the second plugin information list described in update results modification.
Optionally, the input/output interface is further adapted for:If the update of plug-in configuration file in the Cloud Server exists
Modification, the synchronous modified update of plug-in configuration file for receiving the Cloud Server and issuing;
The renovator is further adapted for:It is updated in the plug-in unit host using the modified update of plug-in configuration file of reception
Former update of plug-in configuration file.
Optionally, the first plugin information list and/or the second plugin information list include at least one following:
Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
Optionally, the version number because it is at least one following the reason of change:
Framework upgrades;
Code change leads to incompatible pervious version;
Function upgrading and optimization.
Optionally, the version number uses X.X.X forms, wherein every X represents a reason of version variation.
Optionally, the plug-in unit host includes at least one following:
Server;
Client;
Using.
Another aspect according to the present invention additionally provides a kind of update of plug-in device, applied to Cloud Server, including:
Information determining device, suitable for judging whether the update of plug-in configuration file stored in the Cloud Server changes,
In, the update of plug-in configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule
Then;
If the judging result suitable for described information determining device is yes, the update of plug-in after variation is matched for information follower
It puts file and is issued to plug-in unit host, compared in the first plugin information list and the plug-in unit host and deposited by the plug-in unit host
The the second plugin information list for including having installed plugin information in the plug-in unit host of storage, and then advised according to the update of plug-in
Then select the plug-in unit host that newer plug-in unit is needed to be added to update queue, to be carried out more to the plug-in unit in the update queue
Newly.
Optionally, the first plugin information list and/or the second plugin information list include at least one following:
Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
In the embodiment of the present invention, a update of plug-in configuration file is safeguarded first, due to being wrapped in update of plug-in configuration file
The first plugin information list of all plugin informations and preset update of plug-in rule have been included, thus can be according to update of plug-in
Configuration file accurately and rapidly determine plug-in unit host can with newer plug-in unit, i.e., compatible with plug-in unit host update plug-in unit, thus
It solves the problem of not determining whether plug-in unit host is compatible with newer plug-in unit and then may lead to application crashes in the prior art.
Further, in the embodiment of the present invention by the first plugin information list in update of plug-in configuration file with having been installed in plug-in unit host
Second plugin information list of plugin information is compared, and plug-in unit host is selected to need newer insert according to update of plug-in rule
Part is added to update queue, so as to fulfill the purpose of plug-in unit selectively, is neatly updated.In addition, relative to each plug-in unit place
Main or client, Cloud Server are more easily implemented unified management and operation, in the embodiment of the present invention update of plug-in configuration file by
Cloud Server issues, i.e., is configured by Cloud Server, can it is timely, convenient, neatly update update of plug-in configuration file, i.e.,
First plugin information list of all plugin informations and preset update of plug-in rule, carry so as to fulfill to each plug-in unit host
For accurate update of plug-in configuration file, the effectively newer purpose of plug-in unit is realized.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
According to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will be brighter
The above and other objects, advantages and features of the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field
Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the update of plug-in method according to an embodiment of the invention applied to plug-in unit host;
Fig. 2 shows the flow charts of the update of plug-in method according to an embodiment of the invention applied to Cloud Server;
Fig. 3 shows the structural representation of the update of plug-in device according to an embodiment of the invention applied to plug-in unit host
Figure;
Fig. 4 shows that the structure of the update of plug-in device in accordance with another embodiment of the present invention applied to plug-in unit host is shown
It is intended to;And
Fig. 5 shows the structural representation of the update of plug-in device according to an embodiment of the invention applied to Cloud Server
Figure.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
In order to solve the above technical problems, the present invention provides a kind of update of plug-in method, applied to plug-in unit host.Fig. 1 shows
The flow chart of the update of plug-in method according to an embodiment of the invention applied to plug-in unit host is gone out.As shown in Figure 1, the party
Method includes at least following steps S102 to step S108.
Step S102, the update of plug-in configuration file of plug-in unit host that scheduling Cloud Server is issued to, wherein, update of plug-in
Configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule.
Step S104, the second plug-in unit letter for including having installed plugin information in plug-in unit host stored in plug-in unit host is called
Cease list.
Step S106, the first plugin information list and the second plugin information list are compared, is selected according to update of plug-in rule
Plug-in unit host needs newer plug-in unit to be added to update queue.
Step S108, the plug-in unit in update queue is updated.
In the embodiment of the present invention, a update of plug-in configuration file is safeguarded first, due to being wrapped in update of plug-in configuration file
The first plugin information list of all plugin informations and preset update of plug-in rule have been included, thus can be according to update of plug-in
Configuration file accurately and rapidly determine plug-in unit host can with newer plug-in unit, i.e., compatible with plug-in unit host update plug-in unit, thus
It solves the problem of not determining whether plug-in unit host is compatible with newer plug-in unit and then may lead to application crashes in the prior art.
Further, in the embodiment of the present invention by the first plugin information list in update of plug-in configuration file with having been installed in plug-in unit host
Second plugin information list of plugin information is compared, and plug-in unit host is selected to need newer insert according to update of plug-in rule
Part is added to update queue, so as to fulfill the purpose of plug-in unit selectively, is neatly updated.In addition, relative to each plug-in unit place
Main or client, Cloud Server are more easily implemented unified management and operation, in the embodiment of the present invention update of plug-in configuration file by
Cloud Server issues, i.e., is configured by Cloud Server, can it is timely, convenient, neatly update update of plug-in configuration file, i.e.,
First plugin information list of all plugin informations and preset update of plug-in rule, carry so as to fulfill to each plug-in unit host
For accurate update of plug-in configuration file, the effectively newer purpose of plug-in unit is realized.
In the embodiment of the present invention, plug-in unit host mentioned above can be server, client, using etc., the present invention simultaneously
It is not restricted.
It can include the title of plug-in unit in the first plugin information list referred in above step S102, unique mark, say
Bright, download address etc..Here, plug-in unit unique mark can be MD5 (Message Digest Algorithm5, the information of plug-in unit
Digest algorithm 5) value or SHA1 (Secure Hash Algorithm1, Secure Hash Algorithm 1) value etc..It is specifically, of the invention
Unique hash (Hash) value of plug-in unit, i.e. MD5 values are calculated in embodiment by MD5 algorithms.The typical case of MD5 algorithms is
Informative abstract (Message-Digest) is generated to a segment information (Message), to prevent from being tampered.MD5 works as entire file
Make a big text message, scaling method is become by its irreversible character string, produces this unique MD5 informative abstract.When
So, the embodiment of the present invention is feasible using the cryptographic Hash that other algorithms calculate executable file according to actual conditions, such as
Using SHA1 etc., the present invention is not intended to limit this.
In addition, the preset update of plug-in rule referred in step S102, such as when whether the version of anterior plug-in host is located at
Range is either when whether the version of anterior plug-in host belongs to random version number or currently inserts between minimum version and highest version
Whether the version of part host, which belongs to, is ignored version number, etc..For another example, currently installed whether plug-in unit is located at installable minimum version
This range between highest version has either currently installed whether plug-in unit belongs to installable random version number or currently pacified
It plugs part and whether belongs to installable and ignore version number, etc..Further, version number described herein is because at least one following
Reason changes, such as framework upgrading, code change lead to incompatible pervious version, function upgrading and optimization.At this point, version
This number may be used X.X.X forms, wherein every X represents a reason of version variation.
The plug-in unit in update queue is updated in step S108, after to be updated, according to update results modification the
Two plugin information lists, so as to subsequent comparison and update.
In the preferred embodiment of the present invention, if the update of plug-in configuration file in Cloud Server has modification, synchronize and connect
The modified update of plug-in configuration file that Cloud Server issues is received, for updating the configuration text of the former update of plug-in in plug-in unit host
So as to make the update of plug-in unit intelligent, good support is provided for plug-platform for part.
Correspondingly, the present invention provides a kind of update of plug-in method, applied to Cloud Server.Fig. 2 shows according to this hair
The flow chart of the update of plug-in method applied to Cloud Server of bright one embodiment.As shown in Fig. 2, this method include at least with
Lower step S202 to step S204.
Whether the update of plug-in configuration file for step S202, judging to store in Cloud Server changes, wherein, update of plug-in
Configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule, if so, continuing to hold
Row step S204;Otherwise, terminate this flow.
Step S204, the update of plug-in configuration file after variation is issued to plug-in unit host, first is compared by plug-in unit host
What is stored in plugin information list and plug-in unit host includes having installed the second plugin information list of plugin information in plug-in unit host,
And then select plug-in unit host that newer plug-in unit is needed to be added to update queue according to update of plug-in rule, in update queue
Plug-in unit is updated.
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 occurs
During variation, the update of plug-in configuration file after variation is issued to plug-in unit host in time, is carried so as to fulfill to each plug-in unit host
For the purpose of accurate update of plug-in configuration file.
It can include the title of plug-in unit in the first plugin information list referred in above step S202, unique mark, say
Bright, download address etc..Here, plug-in unit unique mark can be MD5 values or SHA1 values of plug-in unit etc..Specifically, the present invention is real
Apply unique hash (Hash) value for calculating plug-in unit in example by MD5 algorithms, i.e. MD5 values.The typical case of MD5 algorithms is pair
One segment information (Message) generates informative abstract (Message-Digest), to prevent from being tampered.MD5 by entire file as
One big text message becomes scaling method by its irreversible character string, produces this unique MD5 informative abstract.Certainly,
The embodiment of the present invention according to actual conditions using other algorithms calculate executable file cryptographic Hash be it is feasible, for example, by using
SHA1 etc., the present invention are not intended to limit this.
In addition, the preset update of plug-in rule referred in step S202, such as when whether the version of anterior plug-in host is located at
Range is either when whether the version of anterior plug-in host belongs to random version number or currently inserts between minimum version and highest version
Whether the version of part host, which belongs to, is ignored version number, etc..For another example, currently installed whether plug-in unit is located at installable minimum version
This range between highest version has either currently installed whether plug-in unit belongs to installable random version number or currently pacified
It plugs part and whether belongs to installable and ignore version number, etc..Further, version number described herein is because at least one following
Reason changes, such as framework upgrading, code change lead to incompatible pervious version, function upgrading and optimization.At this point, version
This number may be used X.X.X forms, wherein every X represents a reason of version variation.In addition, referred in step S204
Include title, unique mark, explanation, download address of plug-in unit etc. in two plugin information lists.
It should be noted that in practical application, combination may be used in above-mentioned all optional embodiments arbitrary group of mode
It closes, forms the alternative 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, applied to plug-in unit host.
Fig. 3 shows the structure diagram of the update of plug-in device according to an embodiment of the invention applied to plug-in unit host.Such as Fig. 3
Shown, which can at least include:Input/output interface 310, file scheduler 320, analyses and comparison device 330 and update
Device 340.
Now introduce each composition of the update of plug-in device applied to plug-in unit host of the embodiment of the present invention or the function of device
And the connection relation between each section:
Text is configured suitable for receiving the update of plug-in for the plug-in unit host that Cloud Server is issued in input/output interface 310
Part, wherein, first plugin information list and preset plug-in unit of the update of plug-in configuration file including all plugin informations are more
New rule;
File scheduler 320 is coupled with input/output interface 310, suitable for dispatching the update of plug-in configuration file;
And call the second plugin information row for including having installed plugin information in the plug-in unit host stored in the plug-in unit host
Table;
Analyses and comparison device 330 is coupled with file scheduler 320, suitable for comparing the first plugin information list and institute
The second plugin information list is stated, selects the plug-in unit host that newer plug-in unit is needed to be added to more according to the update of plug-in rule
New queue;
Renovator 340 is coupled with analyses and comparison device 330, suitable for being updated to the plug-in unit in the update queue.
In an embodiment of the present invention, as shown in figure 4, the device of Fig. 3 displayings can also include:List modifier 410, with
Renovator 340 is coupled, after to be updated, according to the second plugin information list described in update results modification.
In an embodiment of the present invention, the input/output interface 310 is further adapted for:If the plug-in unit in the Cloud Server
There is modification, the synchronous modified update of plug-in configuration file for receiving the Cloud Server and issuing in more new configuration file;
The renovator 340 is further adapted for:The plug-in unit place is updated using the modified update of plug-in configuration file of reception
Former update of plug-in configuration file in master.
In an embodiment of the present invention, the first plugin information list and/or the second plugin information list include
It is at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
In an embodiment of the present invention, the version number because it is at least one following the reason of change:
Framework upgrades;
Code change leads to incompatible pervious version;
Function upgrading and optimization.
In an embodiment of the present invention, the version number uses X.X.X forms, wherein every X represents the one of version variation
A reason.
In an embodiment of the present invention, the plug-in unit host includes at least one following:
Server;
Client;
Using.
Correspondingly, the embodiment of the present invention additionally provides a kind of update of plug-in device, applied to Cloud Server.Fig. 5 is shown
The structure diagram of update of plug-in device according to an embodiment of the invention applied to Cloud Server.As shown in figure 5, the dress
Putting can at least include:Information determining device 510 and information follower 520.
Information determining device 510, suitable for judging whether the update of plug-in configuration file stored in the Cloud Server changes,
Wherein, the update of plug-in configuration file includes the first plugin information list of all plugin informations and preset update of plug-in
Rule;
Information follower 520 is coupled with information determining device 510, if the judging result suitable for described information determining device is
It is that the update of plug-in configuration file after variation is then issued to plug-in unit host, first plug-in unit is compared by the plug-in unit host
What is stored in information list and the plug-in unit host includes having installed the second plugin information of plugin information in the plug-in unit host
List, and then select the plug-in unit host that newer plug-in unit is needed to be added to update queue according to the update of plug-in rule, with
Plug-in unit in the update queue is updated.
In an embodiment of the present invention, the first plugin information list and/or the second plugin information list include
It is at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach
Following advantageous effect:
In the embodiment of the present invention, a update of plug-in configuration file is safeguarded first, due to being wrapped in update of plug-in configuration file
The first plugin information list of all plugin informations and preset update of plug-in rule have been included, thus can be according to update of plug-in
Configuration file accurately and rapidly determine plug-in unit host can with newer plug-in unit, i.e., compatible with plug-in unit host update plug-in unit, thus
It solves the problem of not determining whether plug-in unit host is compatible with newer plug-in unit and then may lead to application crashes in the prior art.
Further, in the embodiment of the present invention by the first plugin information list in update of plug-in configuration file with having been installed in plug-in unit host
Second plugin information list of plugin information is compared, and plug-in unit host is selected to need newer insert according to update of plug-in rule
Part is added to update queue, so as to fulfill the purpose of plug-in unit selectively, is neatly updated.In addition, relative to each plug-in unit place
Main or client, Cloud Server are more easily implemented unified management and operation, in the embodiment of the present invention update of plug-in configuration file by
Cloud Server issues, i.e., is configured by Cloud Server, can it is timely, convenient, neatly update update of plug-in configuration file, i.e.,
First plugin information list of all plugin informations and preset update of plug-in rule, carry so as to fulfill to each plug-in unit host
For accurate update of plug-in configuration file, the effectively newer purpose of plug-in unit is realized.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of arbitrary
It mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor
Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) come realize in update of plug-in device according to embodiments of the present invention some or
The some or all functions of person's whole component.The present invention is also implemented as perform method as described herein one
Divide either whole equipment or program of device (for example, computer program and computer program product).Such this hair of realization
Bright program can may be stored on the computer-readable medium or can have the form of one or more signal.It is such
Signal can be downloaded from internet website to be obtained either providing on carrier signal or providing in the form of any other.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame
Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention
Example property embodiment, still, without departing from the spirit and scope of the present invention, still can according to the present disclosure directly
Determine or derive many other variations or modifications consistent with the principles of the invention.Therefore, the scope of the present invention is understood that and recognizes
It is set to and covers other all these variations or modifications.
The invention discloses A1, a kind of update of plug-in method, applied to plug-in unit host, including:
The update of plug-in configuration file of the plug-in unit host that scheduling Cloud Server is issued to, wherein, the update of plug-in
Configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule;
Call the second plug-in unit letter for including having installed plugin information in the plug-in unit host stored in the plug-in unit host
Cease list;
The first plugin information list and the second plugin information list are compared, is selected according to the update of plug-in rule
Selecting the plug-in unit host needs newer plug-in unit to be added to update queue;
Plug-in unit in the update queue is updated.
A2, the method according to claim A1, wherein, it further includes:After to be updated, according to update results modification
The second plugin information list.
A3, the method according to claim A1 or A2, wherein, if the update of plug-in configuration text in the Cloud Server
There is modification, the synchronous modified update of plug-in configuration file for receiving the Cloud Server and issuing, for updating described insert in part
Former update of plug-in configuration file in part host.
A4, according to claim A1-A3 any one of them methods, wherein, the first plugin information list and/or institute
The second plugin information list is stated including at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
A5, the method according to claim A4, wherein, the version number because it is at least one following the reason of become
Change:
Framework upgrades;
Code change leads to incompatible pervious version;
Function upgrading and optimization.
A6, the method according to claim A5, wherein, the version number uses X.X.X forms, wherein every X generation
One reason of table version variation.
A7, according to claim A1-A6 any one of them methods, wherein, the plug-in unit host include it is following at least it
One:
Server;
Client;
Using.
The invention also discloses B8, a kind of update of plug-in method, applied to Cloud Server, including:
Whether the update of plug-in configuration file for judging to store in the Cloud Server changes, wherein, the update of plug-in
Configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule;
If so, the update of plug-in configuration file after variation is issued to plug-in unit host, institute is compared by the plug-in unit host
It states including of being stored in the first plugin information list and the plug-in unit host and the of plugin information has been installed in the plug-in unit host
Two plugin information lists, and then select the plug-in unit host that newer plug-in unit is needed to be added to more according to the update of plug-in rule
New queue, to be updated to the plug-in unit in the update queue.
B9, the method according to claim B8, wherein, the first plugin information list and/or it is described second insert
Part information list includes at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
The invention also discloses C10, a kind of update of plug-in device, applied to plug-in unit host, including:
Input/output interface, suitable for receiving the update of plug-in configuration file of the plug-in unit host that Cloud Server is issued to,
Wherein, the update of plug-in configuration file includes the first plugin information list of all plugin informations and preset update of plug-in
Rule;
File scheduler, suitable for dispatching the update of plug-in configuration file;And call what is stored in the plug-in unit host
The second plugin information list including having installed plugin information in the plug-in unit host;
Analyses and comparison device, suitable for comparing the first plugin information list and the second plugin information list, according to institute
Stating update of plug-in rule selects the plug-in unit host that newer plug-in unit is needed to be added to update queue;
Renovator, suitable for being updated to the plug-in unit in the update queue.
C11, the device according to claim C10, wherein, it further includes:
List modifier, after to be updated, according to the second plugin information list described in update results modification.
C12, the device according to claim C10 or C11, wherein,
The input/output interface is further adapted for:If there is modification in the update of plug-in configuration file in the Cloud Server, together
Step receives the modified update of plug-in configuration file that the Cloud Server issues;
The renovator is further adapted for:It is updated in the plug-in unit host using the modified update of plug-in configuration file of reception
Former update of plug-in configuration file.
C13, according to claim C10-C12 any one of them devices, wherein, the first plugin information list and/
Or the second plugin information list is including at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
C14, the device according to claim C13, wherein, the version number because it is at least one following the reason of occur
Variation:
Framework upgrades;
Code change leads to incompatible pervious version;
Function upgrading and optimization.
C15, the device according to claim C14, wherein, the version number uses X.X.X forms, wherein every X
Represent a reason of version variation.
C16, according to claim C10-C15 any one of them devices, wherein, the plug-in unit host include it is following at least
One of:
Server;
Client;
Using.
The invention also discloses D17, a kind of update of plug-in device, applied to Cloud Server, including:
Information determining device, suitable for judging whether the update of plug-in configuration file stored in the Cloud Server changes,
In, the update of plug-in configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule
Then;
If the judging result suitable for described information determining device is yes, the update of plug-in after variation is matched for information follower
It puts file and is issued to plug-in unit host, compared in the first plugin information list and the plug-in unit host and deposited by the plug-in unit host
The the second plugin information list for including having installed plugin information in the plug-in unit host of storage, and then advised according to the update of plug-in
Then select the plug-in unit host that newer plug-in unit is needed to be added to update queue, to be carried out more to the plug-in unit in the update queue
Newly.
D18, the device according to claim D17, wherein, the first plugin information list and/or described second
Plugin information list includes at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
Claims (18)
1. a kind of update of plug-in method, applied to plug-in unit host, including:
The update of plug-in configuration file of the plug-in unit host that scheduling Cloud Server is issued to, wherein, the update of plug-in configuration
File includes the first plugin information list of all plugin informations and preset update of plug-in rule;
Call the second plugin information row for including having installed plugin information in the plug-in unit host stored in the plug-in unit host
Table;
The first plugin information list and the second plugin information list are compared, institute is selected according to the update of plug-in rule
Stating plug-in unit host needs newer plug-in unit to be added to update queue;
Plug-in unit in the update queue is updated;
If there is modification, the synchronous modification for receiving the Cloud Server and issuing in the update of plug-in configuration file in the Cloud Server
Update of plug-in configuration file afterwards, for updating the former update of plug-in configuration file in the plug-in unit host.
2. it according to the method described in claim 1, wherein, further includes:After to be updated, the according to update results modification
Two plugin information lists.
3. method according to claim 1 or 2, wherein, the first plugin information list and/or second plug-in unit letter
List is ceased including at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
4. according to the method described in claim 3, wherein, the version number because it is at least one following the reason of change:
Framework upgrades;
Code change leads to incompatible pervious version;
Function upgrading and optimization.
5. according to the method described in claim 4, wherein, the version number uses X.X.X forms, wherein every X represents version
One reason of variation.
6. method according to claim 1 or 2, wherein, the plug-in unit host includes at least one following:
Server;
Client;
Using.
7. a kind of update of plug-in method, applied to Cloud Server, including:
Whether the update of plug-in configuration file for judging to store in the Cloud Server changes, wherein, the update of plug-in configuration
File includes the first plugin information list of all plugin informations and preset update of plug-in rule;
If so, the update of plug-in configuration file after variation is issued to plug-in unit host, described the is compared by the plug-in unit host
It the second of plugin information inserts stored in one plugin information list and the plug-in unit host include having installed in the plug-in unit host
Part information list, and then select the plug-in unit host that newer plug-in unit is needed to be added to update team according to the update of plug-in rule
Row, to be updated to the plug-in unit in the update queue.
8. according to the method described in claim 7, wherein, the first plugin information list and/or second plugin information
List includes at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
9. a kind of update of plug-in device, applied to plug-in unit host, including:
Input/output interface, suitable for receiving the update of plug-in configuration file of the plug-in unit host that Cloud Server is issued to,
In, the update of plug-in configuration file includes the first plugin information list of all plugin informations and preset update of plug-in rule
Then;
File scheduler, suitable for dispatching the update of plug-in configuration file;And call what is stored in the plug-in unit host to include
Second plugin information list of plugin information has been installed in the plug-in unit host;
Analyses and comparison device suitable for comparing the first plugin information list and the second plugin information list, is inserted according to described
Part update rule selects the plug-in unit host that newer plug-in unit is needed to be added to update queue;
Renovator, suitable for being updated to the plug-in unit in the update queue;
The input/output interface is further adapted for:If the update of plug-in configuration file in the Cloud Server has modification, synchronize and connect
Receive the modified update of plug-in configuration file that the Cloud Server issues;
The renovator is further adapted for:The original in the plug-in unit host is updated using the modified update of plug-in configuration file of reception
Update of plug-in configuration file.
10. device according to claim 9, wherein, it further includes:
List modifier, after to be updated, according to the second plugin information list described in update results modification.
11. device according to claim 9 or 10, wherein, the first plugin information list and/or second plug-in unit
Information list includes at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
12. according to the devices described in claim 11, wherein, the version number because it is at least one following the reason of change:
Framework upgrades;
Code change leads to incompatible pervious version;
Function upgrading and optimization.
13. device according to claim 12, wherein, the version number uses X.X.X forms, wherein every X represents version
One reason of this variation.
14. device according to claim 9 or 10, wherein, the plug-in unit host includes at least one following:
Server;
Client;
Using.
15. a kind of update of plug-in device, applied to Cloud Server, including:
Information determining device, suitable for judging whether the update of plug-in configuration file stored in the Cloud Server changes, wherein, institute
It states update of plug-in configuration file and includes the first plugin information list of all plugin informations and preset update of plug-in rule;
If the judging result suitable for described information determining device is yes, text is configured in update of plug-in after variation by information follower
Part is issued to plug-in unit host, compares what is stored in the first plugin information list and the plug-in unit host by the plug-in unit host
The second plugin information list including having installed plugin information in the plug-in unit host, and then selected according to the update of plug-in rule
Selecting the plug-in unit host needs newer plug-in unit to be added to update queue, to be updated to the plug-in unit in the update queue.
16. device according to claim 15, wherein, the first plugin information list and/or second plug-in unit letter
List is ceased including at least one following:Title, explanation, the download address of plug-in unit;
The update of plug-in rule includes at least one following:
It is current installed plug-in unit whether between installable minimum version and highest version range;
Currently install whether plug-in unit belongs to installable random version number;
It is current plug-in unit be installed whether belong to installable ignore version number.
17. a kind of electronic equipment, wherein, including:
Processor;And
The memory of storage computer executable instructions is arranged to, the executable instruction makes the processor when executed
Perform update of plug-in method according to any one of claim 1 to 8.
18. a kind of computer readable storage medium, wherein, the computer-readable recording medium storage one or more program,
One or more of programs by the electronic equipment including multiple application programs when being performed so that the electronic equipment performs root
According to update of plug-in method described in any item of the claim 1 to 8.
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 CN104714827A (en) | 2015-06-17 |
CN104714827B true 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) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045596A (en) * | 2015-07-31 | 2015-11-11 | 百度在线网络技术(北京)有限公司 | Plug-in calling method and apparatus |
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 |
CN107273142B (en) * | 2017-07-12 | 2021-04-23 | 北京龙之心科技有限公司 | Program updating method, program running 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 |
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 |
CN109032651B (en) * | 2018-08-24 | 2022-06-10 | 深圳创维-Rgb电子有限公司 | Application updating 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 |
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 |
CN114942774B (en) * | 2022-07-26 | 2022-11-08 | 中恒信息科技(广州)有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN104714827A (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104714827B (en) | Update of plug-in method and device | |
CN108279932B (en) | Method and device for dynamically configuring user interface of mobile terminal | |
US8504827B1 (en) | Document server and client device document viewer and editor | |
CN110147281A (en) | Optimize method, apparatus, the electronic equipment that snowflake algorithm is applied in financial business | |
CN110738038A (en) | Contract text generation method, device, equipment and computer readable storage medium | |
US20130254758A1 (en) | Application Construction for Execution on Diverse Computing Infrastructures | |
CA2847393C (en) | Deployment of software across an enterprise system | |
CN110018835B (en) | YANG model configuration data processing method and device, terminal device and storage medium | |
CN110795328A (en) | Interface testing method and device | |
CN112130842A (en) | Page generation method and device | |
CN112947919A (en) | Method and device for constructing service model and processing service request | |
US8615751B2 (en) | Seeding product information | |
CN103220336B (en) | The implementation method of vector clock and system in a kind of file synchronization | |
CN104899338A (en) | Method for pushing APP in search promotion result, device and browser | |
CN114756227A (en) | Resource release processing method and device | |
CN113312900A (en) | Data verification method and device | |
CN114722108A (en) | Customer service data processing method and device, electronic equipment and storage medium | |
US9661056B2 (en) | Modification free extension of web based applications | |
CN106648795A (en) | Updating method and device of application program | |
CN113535221A (en) | Method and device for managing application version | |
CN109840073B (en) | Method and device for realizing business process | |
CN113535270B (en) | Software starting method and device | |
CN111984616A (en) | Method, device and system for updating shared file | |
CN111753675A (en) | Picture type junk mail identification method and device | |
CN112835609A (en) | Method and device for modifying dependent package download address |
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 | ||
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. |