CN109885320A - A kind of update method of configuration information, device and electronic equipment - Google Patents
A kind of update method of configuration information, device and electronic equipment Download PDFInfo
- Publication number
- CN109885320A CN109885320A CN201811639993.1A CN201811639993A CN109885320A CN 109885320 A CN109885320 A CN 109885320A CN 201811639993 A CN201811639993 A CN 201811639993A CN 109885320 A CN109885320 A CN 109885320A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration information
- information
- item
- configuration item
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention provides update method, device and the electronic equipment of a kind of configuration information, and the method is used for client, the method includes the steps: obtain configuration information to be updated, wherein the configuration information includes the content in configuration item and configuration item;Target configuration information is obtained from server end, and judges whether the target configuration information has update;If there is update, the content in the configuration item and configuration item in the configuration information to be updated is compared with the content in the configuration item and configuration item in the target configuration information then, obtains the content in the configuration item and configuration item of update and determine to update configuration information and update.The present invention can be improved configuration information update efficiency.
Description
Technical field
The present invention relates to Internet technical fields more particularly to a kind of update method of configuration information, device and electronics to set
It is standby.
Background technique
In this current mobile Internet trend, cell phone system, computer system, application program etc. are in development process
Competitive market promotes user experience, attracts user, needs constantly to update configuration, realize the upgrading of version, repairing loophole,
Increase interesting, practical new function, provides more conveniences for user.The existing method for updating configuration, is fixed from some
Position acquisition update configuration, and by the configuration of whole updating and history configuration be replaced realization configuration update so that more
New speed is slow, it is seen then that the existing configuration method that updates leads to problems such as to update low efficiency in the presence of the speed updated slowly.
Summary of the invention
The embodiment of the present invention provides update method, device and the electronic equipment of a kind of configuration information, can be improved update effect
Rate.
In a first aspect, the embodiment of the present invention provides a kind of update method of configuration information, the method is used for client, institute
State method comprising steps of
Obtain configuration information to be updated, wherein configuration information includes the content in configuration item and configuration item;
Target configuration information is obtained from server end, and judges whether the target configuration information has update;
If there is update, by the content and the target in the configuration item and configuration item in the configuration information to be updated
The content in configuration item and configuration item in configuration information is compared, and is obtained in the configuration item and configuration item of update
Content simultaneously determines update configuration information and update.
Optionally, if described have update, in the configuration item and configuration item in the configuration information to be updated
Appearance be compared with the content in the configuration item and configuration item in the target configuration information, obtain the configuration item of update with
And it content in configuration item and determines and updates configuration information and include: the step of update
It will be in the content and the target configuration information in the configuration item and configuration item in the configuration information to be updated
Configuration item and configuration item in content one-to-one correspondence compare;
It will be different from the configuration item and configuration item in the configuration information to be updated in the target configuration information
Content replaces corresponding configuration item in the configuration information to be updated and the content in configuration item, and will replacement configuration item and
Content in replacement configuration item is stored in the configuration information to be updated;
Retain the history configuration item and history being identical in the target configuration information in the configuration information to be updated
Content in configuration item;
According to the content in content, history configuration item and the history configuration item in replacement configuration item and replacement configuration item
Composition updates configuration information and is updated.
Optionally, described to retain the history configuration being identical in the target configuration information in the configuration information to be updated
After content in item and history configuration item, further includes:
Content in the configuration item and configuration item that newly increase in the target configuration information is increased described to be updated
In configuration information, and the content in newly-increased configuration item and newly-increased configuration item is stored in the configuration information to be updated;
According to the content in replacement configuration item and configuration item, the content in history configuration item and history configuration item, with
And the content composition in newly-increased configuration item and newly-increased configuration item updates configuration information and is updated.
Optionally, described the step of obtaining target configuration information from server end, includes:
Target configuration information is obtained from server-side database, wherein described to match from server-side database acquisition target
Confidence cease the step of include:
The configuration information to be updated is sent to server end;Receive server-side database return with it is described to be updated
The homogenous configurations information of configuration information same type;
Using homogenous configurations information as target configuration information;
It is described to judge whether target configuration information has the step of update to include:
Database monitoring information is obtained from server end;If the database monitoring information meets preset condition, judge
Target configuration information has update.
Optionally, described the step of obtaining target configuration information from server end, includes:
Described cache from server end obtains target configuration information, wherein described to match from server end caching acquisition target
Confidence cease the step of include:
The configuration information to be updated is sent to server end;
Receive the homogenous configurations information of server end caching return and the configuration information same type to be updated;
Using homogenous configurations information as target configuration information;
It is described to judge whether target configuration information has the step of update to include:
It is cached from server end and obtains caching monitoring information;If the caching monitoring information meets preset condition, judge
Target configuration information has update.
Optionally, the method also includes:
Obtain current network state;
If current network disconnects, the solicited message for updating configuration information is obtained to local send;
If local authorization, configuration information is updated from local acquisition and is updated.
Optionally, the method also includes:
Pushed information will be updated based on updating configuration information and generating, and the update pushed information is pushed to application, used
To prompt the configuration information applied described in user to have update.
The second aspect embodiment of the present invention provides a kind of updating device of configuration information, comprising:
Module is obtained, for obtaining configuration information to be updated, wherein configuration information includes in configuration item and configuration item
Content;
Judgment module for obtaining target configuration information from server end, and judges whether the target configuration information has
It updates;
Update module, if for there is update, it will be in the configuration item and configuration item in the configuration information to be updated
Content is compared with the content in the configuration item and configuration item in the target configuration information, obtains the configuration item of update
And content and determining update configuration information and update in configuration item.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising: memory, processor and are stored in described
On memory and the computer program that can run on the processor, the processor are realized when executing the computer program
Step in method provided in an embodiment of the present invention.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
Computer program is stored in matter, the computer program is realized when being executed by processor in method provided in an embodiment of the present invention
The step of.
In the embodiment of the present invention, pass through and obtain configuration information to be updated, wherein the configuration information include configuration item and
Content in configuration item;Target configuration information is obtained from server end, and judges whether the target configuration information has update;If
There is update, then it will be in the content and the target configuration information in the configuration item and configuration item in the configuration information to be updated
Configuration item and configuration item in content be compared, obtain the content and determination in the configuration item and configuration item of update
Update configuration information and update.The present invention can quickly find the configuration item for having update in configuration information, and according to described
There is the configuration item of update to realize the update of client configuration information, the configuration item not updated remains unchanged, that is, the present invention is not necessarily to
All configuration items are updated, so as to improve the update efficiency of client configuration information.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the update method of configuration information provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the update method of another configuration information provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the update method of another configuration information provided in an embodiment of the present invention;
Fig. 4 is a kind of updating device structural schematic diagram of configuration information provided in an embodiment of the present invention;
Fig. 5 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Figure 1, Fig. 1 is a kind of flow diagram of the update method of configuration information provided in an embodiment of the present invention,
The method is used for client, as shown in Figure 1, the described method comprises the following steps:
101, configuration information to be updated is obtained, wherein configuration information includes the content in configuration item and configuration item.
Wherein, above-mentioned configuration information to be updated is the currently used configuration information of client, can be with configuration form
Form exists.The number for the configuration item that above-mentioned configuration information includes can be one or more, plurality of for more than or equal to 2
Positive integer, the type of configuration item are also possible to a variety of.The number of configuration item can be configured in advance according to the needs of client;
Content in above-mentioned configuration item includes the configuration content being arranged in configuration item, and each configuration item has in a corresponding configuration
Hold, wherein the configuration content can be the composition such as numerical value, model text, letter, symbol.What above-mentioned configuration information included matches
The content in item and configuration item is set, for example, the configuration information in 7 system of Windows includes classification: 2.8Windows experience
Index;Processor: Intel (R) Pentium (R) CPU G4560@3,50GHZ 3.50GHZ;Memory (RAM): 8.00GB is installed;
System type: 64 bit manipulation systems.Also it can be understood that being, classification, processor, installation memory (RAM), system type and
Pen and touch are the configuration item of 7 system of Windows;And respectively 2.8Windows corresponding with each configuration item experience index,
Intel (R) Pentium (R) CPU G4560@3,50GHZ 3.50GHZ and 8.00GB, 64 bit manipulation systems are Windows
Content in the configuration item of 7 systems.The content in configuration item and configuration item in this example only serves the effect of illustration,
It is not the restriction to configuration information of the invention.
102, target configuration information is obtained from server end, and judges whether the target configuration information has update.
Wherein, above-mentioned target configuration information is with the configuration information same type of client in server end with confidence
Breath, the target configuration information are that developer modifies or issues for the configuration information in client.Described in above-mentioned judgement
Whether target configuration information has update can be, the configuration in the configuration information to be updated in target configuration information and client
And configuration in content it is all the same when, illustrate the currently used configuration information of client be it is newest, that is to say, bright service
The renewable target configuration information of configuration information to be updated of client is not present in device end, also further illustrates that target matches confidence
Breath does not update;When the configuration item in the configuration information to be updated in target configuration information and client and the content in configuration
When different and/or part is different, illustrate version of the currently used configuration information of client compared to the configuration information of server end
This is lower, that is to say, the renewable target configuration information of configuration information to be updated in prescribed server end there are client,
Further instruction target configuration information has update;Alternatively, when there is the configuration item newly increased in target configuration information and match
When setting the content in item, also illustrate the base of target configuration item developer number of existing configuration item in configuration information to be updated
Increase new configuration item on plinth and configure corresponding configuration content in new configuration item, and then obtains target configuration information,
That also illustrates that the target configuration information has update.
If 103, there is update, by the configuration item and configuration item in the configuration information to be updated content with it is described
The content in configuration item and configuration item in target configuration information is compared, and obtains the configuration item and configuration item of update
In content and determine and update configuration information and update.
Wherein, the above-mentioned configuration item for having update can be the configuration item of configuration information to be updated and matching for target configuration information
Set that item is identical but configuration item that content in configuration item is different;And/or the configuration item that is newly increased in target configuration information and
Content in configuration item.
In embodiments of the present invention, pass through and obtain configuration information to be updated, wherein the configuration information include configuration item with
And the content in configuration item;Target configuration information is obtained from server end, and judges whether the target configuration information has update;
If there is update, by the configuration item and configuration item in the configuration information to be updated content and the target configuration information
In configuration item and configuration item in content be compared, obtain the content in the configuration item and configuration item of update and true
Surely configuration information and update are updated.The present invention can quickly find the configuration item for having update in configuration information, and according to institute
The configuration item for stating update realizes the update of client configuration information, and the configuration item not updated remains unchanged, that is, the present invention without
All configuration items need to be updated, so as to improve the update efficiency of client configuration information.
Referring to fig. 2, Fig. 2 is the flow diagram of the update method of another configuration information provided in an embodiment of the present invention;
As shown in Fig. 2, if described have update, by the configuration item and configuration item in the configuration information to be updated content and institute
The content stated in configuration item and configuration item in target configuration information is compared, and obtains configuration item and the configuration of update
Content and determining the step of updating configuration information and update in include:
201, the content in the configuration item and configuration item in the configuration information to be updated is matched into confidence with the target
Content one-to-one correspondence in configuration item and configuration item in breath compares.
Specifically, by content and target configuration in the configuration item and configuration item in the configuration information to be updated
The configuration item of same type and the content in configuration item play chess to compare one by one in information.For example, configuration information to be updated includes
System type: 32-bit operating system;Memory (RAM): 8.00GB is installed;Classification: 2.8Windows experiences index.Target matches confidence
Breath includes system type: 64 bit manipulation systems;Memory (RAM): 16.00GB is installed;Classification: 2.8Windows experiences index.That
Just by the " system type: 64 in " system type: 32-bit operating system " and target configuration information in configuration information to be updated
Bit manipulation system " compares;And " installation memory (RAM): 8.00GB " in configuration information to be updated is matched into confidence with target
" installation memory (RAM): 16.00GB " in breath is compared;By " the classification: 2.8Windows body in configuration information to be updated
Test index " it is compared with " classification: 2.8Windows experience index " in configuration information to be updated.Configuration item in this example
And the content in configuration item only serves the effect of illustration, is not the restriction to configuration information of the invention.
202, the configuration item and configuration item being different from the configuration information to be updated in the target configuration information
In content replace corresponding configuration item in the configuration information to be updated and the content in configuration item, and configuration item will be replaced
And the content in replacement configuration item is stored in the configuration information to be updated.
Specifically, after according to the comparison one by one in step 201, it is not difficult to find out that, " the system class in target configuration information
Type: 64 bit manipulation systems " is different from " system type: 32-bit operating system " in configuration information to be updated;It is to be updated to match confidence
" installation memory (RAM): 8.00GB " is different from " installation memory (RAM): the 16.00GB " in target configuration information in breath;So
Just " system type: 64 bit manipulation systems " and " installation memory (RAM): 16.00GB " in target configuration information is replaced respectively
" system type: 32-bit operating system " and " installation memory (RAM): 8.00GB " in configuration information to be updated is changed, and is protected
There are in configuration information to be updated.
203, retain the history configuration item being identical in the configuration information to be updated in the target configuration information and
Content in history configuration item.
Specifically, " the classification: 2.8Windows experience after according to the comparison in step 201, in configuration information to be updated
Index " is identical as " classification: 2.8Windows experiences index " in configuration information to be updated, then can there is no need to be replaced
Directly retain " classification: 2.8Windows experiences index " in configuration information to be updated in configuration information to be updated.
204, according in content, history configuration item and the history configuration item in replacement configuration item and replacement configuration item
Content composition updates configuration information and is updated.
Above-mentioned history configuration item is the configuration item that configuration item to be updated is not replaced.Above-mentioned replacement configuration item is to replace
Configuration item after changing configuration information to be updated.
In the above-described embodiment, can by by configuration information to be updated and target configuration information configuration item and
Content in configuration item is compared one by one, and the configuration item for having update in target configuration information is replaced configuration information to be updated
The configuration item of middle same type obtains replacement configuration item and replaces the content in configuration item, and including configuration information to be updated
In it is original and do not have in target configuration information update history configuration item and history configuration item in content, then will replace
The content changing configuration item and replacing in content, history configuration item and the history configuration item in configuration item is recombinated to obtain more
New configuration information realizes the quick update of configuration information, thus is avoided that whole target configuration information replacing to be updated match
Confidence ceases the problem for causing renewal speed slow, further increases the update efficiency of configuration information.
It is the flow diagram of the update method of another configuration information provided in an embodiment of the present invention referring to Fig. 3, Fig. 3;
As shown in figure 3, it is described retain be identical in the configuration information to be updated history configuration item in the target configuration information with
And after the content in history configuration item, further includes:
305, by the configuration item and configuration item that are newly increased in the target configuration information content increase it is described to
It updates in configuration information, and the content in newly-increased configuration item and newly-increased configuration item is stored in the configuration information to be updated
In.
Specifically, obtaining the increased configuration item of target configuration information and configuration on the basis of step 201,202,203
Content in, for example, configuration information to be updated includes system type: 64 bit manipulation systems;Memory (RAM): 8.00GB is installed.
Target configuration information includes system type: 64 bit manipulation systems;Memory (RAM): 16.00GB is installed;Classification: 2.8Windows body
Test index.So just " it is with target configuration information by " system type: 64 bit manipulation systems " in configuration information to be updated
System type: 64 bit manipulation systems " compares to obtain the content in history configuration item and history configuration item;And it will be to be updated
" installation memory (RAM): 8.00GB " is carried out with " installation memory (RAM): the 16.00GB " in target configuration information in configuration information
Comparison obtains replacement configuration item and replaces the content in configuration item.Target configuration information is compared with configuration information to be updated
Later, there is no " classification: 2.8Windows experiences index " in configuration information to be updated, that is to say, that in target configuration information
" classification: 2.8Windows experiences index " newly increases.The increase configuration item that thus target configuration information is newly increased with
And configuration content " classification: 2.8Windows experiences index " is stored in configuration information to be updated.
306, according in replacement configuration item and configuration item content, in history configuration item and history configuration item in
Content composition in appearance and newly-increased configuration item and newly-increased configuration item updates configuration information and is updated.
Above-mentioned newly-increased configuration item is originally no in configuration information to be updated, is matching of newly increasing of target configuration information
Set item.Specifically, on the basis of step 306, by newly-increased configuration item and newly-increased configuration item content " classification:
2.8Windows experiences index " with replacement configuration item and replace content " installation memory (RAM): 16.00GB " in configuration item,
And the content " system type: 64 bit manipulation systems " in history configuration item and history configuration item merges to obtain to update and match
Confidence breath, wherein updating configuration information includes: system type: 64 bit manipulation systems;Memory (RAM): 16.00GB is installed;Point
Grade: 2.8Windows experiences index.
In the above-described embodiment, more enough to be quickly found out replacement configuration item and replace the content in configuration item and increase newly
Content in configuration item and newly-increased configuration item, and with the history configuration item not updated in configuration information to be updated and newly
The content increased in configuration item collectively constitutes update configuration information, is updated according to the update configuration information to configuration information, and
It is not integrally to be updated target configuration information, further increases the update efficiency of configuration information.
Optionally, described the step of obtaining target configuration information from server end, includes:
Target configuration information is obtained from server-side database, wherein described to match from server-side database acquisition target
The step of confidence ceases includes: that configuration information to be updated is sent to server end;Server-side database is received to return and to more
The homogenous configurations information of new configuration information same type;Using homogenous configurations information as target configuration information;The judgement target is matched
It includes: to obtain database monitoring information from server end that whether confidence breath, which has the step of update,;If database monitoring information meets
Preset condition then judges that the target configuration information has update.
Wherein, above-mentioned server-side database can store the configuration information of multiple client.Above-mentioned homogenous configurations letter
Breath can be the configuration information of the same client, for example, client is QQ client, then what server-side database returned
Configuration information is naturally also the configuration information of QQ client, that is to say, that target configuration information and equal to configuration information to be updated
It is the configuration information of QQ client.The database monitoring information is referred to as database acknowledgement information, database receipt letter
Breath includes: to update mark, which can be numerical value, can also be symbol, letter etc..The preset condition can be, than
Such as, numerical value is set as 200 and represents target configuration information having update;Numerical value is set as 304 and represents the no update of target configuration information;That
Only it need to judge that the numerical value in the database acknowledgement information is 200 or 304, if 200, then it is assumed that have update, if numerical value
It is 304, then it is assumed that do not update.Above-mentioned update mark can be configured according to the hobby and demand of developer.
In the above-described embodiment, target configuration information can be got from the database of server, provide one kind
Obtain the mode of target configuration information.
Optionally, described the step of obtaining target configuration information from server end includes: that described cache from server end is obtained
Take target configuration information, wherein described the step of caching acquisition target configuration information from server end includes: by configuration to be updated
Information is sent to server end;Receive the homogenous configurations information of server end caching return and configuration information same type to be updated;
Using homogenous configurations information as target configuration information;It is described that judge whether target configuration information has the step of update include: from clothes
Business device end caching obtains caching monitoring information;If caching monitoring information meets preset condition, judge that target configuration information has more
Newly.
Wherein, above-mentioned server end caching can store the configuration information of multiple client.Above-mentioned homogenous configurations information
It can be the configuration information of the same client, for example, client is QQ client, then the configuration that server end caching returns
Information is naturally also the configuration information of QQ client, that is, the configuration information of target configuration information i.e. QQ client.It should
Caching monitoring information is referred to as caching acknowledgement information, which includes: to update mark, which can be with
It is numerical value, can also be symbol, letter etc..The preset condition can be, for example, numerical value, which is set as 200, represents target with confidence
Breath has update;Numerical value is set as 304 and represents the no update of target configuration information;It so need to only judge the numerical value in the acknowledgement information
It is 200 or 304, if 200, then it is assumed that have update, if numerical value is 304, then it is assumed that do not update.Above-mentioned update mark can be with
It is configured according to the hobby of developer and demand.
In the above-described embodiment, target configuration information can be got from server buffer, provide a kind of acquisition
The mode of target configuration information, and obtain target configuration information from server buffer and can be improved speed, it further increases
The update efficiency of configuration information.
Optionally, the method also includes: obtain current network state;If current network disconnects, to local hair
Send the solicited message for obtaining and updating configuration information;If local authorization, configuration information is updated from local acquisition and is updated.
Specifically, can not send the configuration information being updated to when exploitation environment cannot connect to server end
When server end obtains target configuration information for client, the update configuration information updated is stored in local file by developer
In, client can read the update configuration information updated from local file, and realize that the configuration of client updates.
In the above-described embodiment, update configuration information can be got from local file, provide a kind of obtain more
The mode of new configuration information, and obtain update configuration information from local file and can be improved the speed for obtaining and updating configuration information
Degree, further increases the update efficiency of configuration information.
Optionally, the method also includes: pushed information will be updated based on updating configuration information and generating, and by the update
Pushed information is pushed to application, to prompt the configuration information applied described in user to have update.
Wherein, above-mentioned update pushed information can be including updating configuration information and notification information, for notifying user
The configuration for carrying out client updates.After determining update configuration information, which is fabricated to update push letter
The update pushed information is pushed an application by breath, and application in this way can notify user, and the configuration information of this application has update,
It can be updated.It of courses, user, which also can choose, not to be updated.
In the above-described embodiment, user configuration information can be reminded to have update by application.
Referring to fig. 4, Fig. 4 provides a kind of updating device structural schematic diagram of configuration information for the embodiment of the present invention, such as Fig. 4 institute
Show, comprising:
Module 401 is obtained, for obtaining configuration information to be updated, wherein the configuration information includes configuration item and matches
Set the content in item;
Whether judgment module 402 for obtaining target configuration information from server end, and judges the target configuration information
There is update;
Update module 403, if for there is update, it will be in the configuration item and configuration item in the configuration information to be updated
Content be compared with the content in the configuration item and configuration item in the target configuration information, obtain the configuration of update
Item and the content in configuration item simultaneously determine update configuration information and update;
The updating device of configuration information provided in an embodiment of the present invention can be realized each reality in above method embodiment
Mode and beneficial effect having the same are applied, to avoid repeating, which is not described herein again.
It is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention referring to Fig. 5, Fig. 5, as shown in figure 5, packet
It includes: memory, processor and being stored in the computer program that can be run on the memory and on the processor, in which:
The computer program that processor 501 is used to that memory 502 to be called to store executes following steps:
Obtain configuration information to be updated, wherein configuration information includes the content in configuration item and configuration item;From server
End obtains target configuration information, and judges whether the target configuration information has update;If there is update, to be updated match described
In the content in configuration item and configuration item and configuration item and configuration item in the target configuration information in confidence breath
Content is compared, and obtains the content in the configuration item and configuration item of update and determine to update configuration information and update.
Optionally, if processor 501 execute it is described have update, by the configuration item in the configuration information to be updated with
And the content in configuration item is compared with the content in the configuration item and configuration item in the target configuration information, is had
The configuration item of update and the content in configuration item simultaneously determine that the step of updating configuration information and update includes:
It will be in the content and the target configuration information in the configuration item and configuration item in the configuration information to be updated
Configuration item and configuration item in content one-to-one correspondence compare;
It will be different from the configuration item and configuration item in the configuration information to be updated in the target configuration information
Content replaces corresponding configuration item in the configuration information to be updated and the content in configuration item, and will replacement configuration item and
Content in replacement configuration item is stored in the configuration information to be updated;
Retain the history configuration item and history being identical in the target configuration information in the configuration information to be updated
Content in configuration item;
According to the content in content, history configuration item and the history configuration item in replacement configuration item and replacement configuration item
Composition updates configuration information and is updated.
Optionally, the target configuration is identical in the reservation configuration information to be updated that processor 501 executes
After the content in history configuration item and history configuration item in information, further includes:
Content in the configuration item and configuration item that newly increase in the target configuration information is increased described to be updated
In configuration information, and the content in newly-increased configuration item and newly-increased configuration item is stored in the configuration information to be updated;
According to the content in replacement configuration item and configuration item, the content in history configuration item and history configuration item, with
And the content composition in newly-increased configuration item and newly-increased configuration item updates configuration information and is updated.
Optionally, described the step of obtaining target configuration information from server end of the execution of processor 501, includes:
Target configuration information is obtained from server-side database, wherein described to match from server-side database acquisition target
Confidence cease the step of include:
Configuration information to be updated is sent to server end;Server-side database is received to return and configuration information to be updated
The homogenous configurations information of same type;
Using homogenous configurations information as target configuration information;
What processor 501 executed described judges whether the target configuration information has the step of update to include:
Database monitoring information is obtained from server end;If database monitoring information meets preset condition, target is judged
Configuration information has update.
Optionally, described the step of obtaining target configuration information from server end of the execution of processor 501, includes:
Described cache from server end obtains target configuration information, wherein described to match from server end caching acquisition target
Confidence cease the step of include:
Configuration information to be updated is sent to server end;
Receive the homogenous configurations information of server end caching return and configuration information same type to be updated;
Using homogenous configurations information as target configuration information;
What processor 501 executed described judges whether the target configuration information has the step of update to include:
It is cached from server end and obtains caching monitoring information;If caching monitoring information meets preset condition, target is judged
Configuration information has update.
Optionally, processor 501 is also used to execute acquisition current network state;
If current network disconnects, the solicited message for updating configuration information is obtained to local send;
If local authorization, configuration information is updated from local acquisition and is updated.
Optionally, processor 501, which will be also used to execute, to update pushed information based on updating configuration information and generating, and will be described
It updates pushed information and is pushed to application, to prompt the configuration information applied described in user to have update.
It should be noted that above-mentioned electronic equipment can be for example: computer, client, mobile phone etc..
The updating device of configuration information provided in an embodiment of the present invention can be realized each embodiment party in embodiment of the method
Formula, and identical beneficial effect can be reached, to avoid repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize that the update method of configuration information provided in an embodiment of the present invention is real when being executed by processor
Each process in example is applied, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (10)
1. a kind of update method of configuration information, which is characterized in that the method is used for client, the method includes the steps:
Obtain configuration information to be updated, wherein configuration information includes the content in configuration item and configuration item;
Target configuration information is obtained from server end, and judges whether the target configuration information has update;
If there is update, by the content and target configuration in the configuration item and configuration item in the configuration information to be updated
The content in configuration item and configuration item in information is compared, and obtains the content in the configuration item and configuration item of update
And it determines and updates configuration information and update.
2. the method according to claim 1, wherein if described have update, by the configuration information to be updated
In configuration item and configuration item in content and the target configuration information in configuration item and configuration item in content into
Row compares, and obtains the content in the configuration item and configuration item of update and determines the step of updating configuration information and updating packet
It includes:
By the content in the configuration item and configuration item in the configuration information to be updated and matching in the target configuration information
The content one-to-one correspondence set in item and configuration item compares;
The content being different from the configuration item and configuration item in the configuration information to be updated in the target configuration information
Corresponding configuration item in the configuration information to be updated and the content in configuration item are replaced, and will replacement configuration item and replacement
Content in configuration item is stored in the configuration information to be updated;
Retain the history configuration item being identical in the target configuration information in the configuration information to be updated and history configuration
Content in;
According to the content composition in content, history configuration item and the history configuration item in replacement configuration item and replacement configuration item
It updates configuration information and is updated.
3. according to the method described in claim 2, it is characterized in that, being identical to institute in the reservation configuration information to be updated
After stating the content in the history configuration item and history configuration item in target configuration information, further includes:
Content in the configuration item and configuration item that newly increase in the target configuration information is increased in the configuration to be updated
In information, and the content in newly-increased configuration item and newly-increased configuration item is stored in the configuration information to be updated;
According to the content in content, history configuration item and the history configuration item in replacement configuration item and configuration item, Yi Jixin
The content composition increased in configuration item and newly-increased configuration item updates configuration information and is updated.
4. the method according to claim 1, wherein described the step of obtaining target configuration information from server end
Include:
Target configuration information is obtained from server-side database, wherein described to obtain target with confidence from server-side database
The step of breath includes:
The configuration information to be updated is sent to server end;Server-side database is received to return and the configuration to be updated
The homogenous configurations information of information same type;
Using homogenous configurations information as target configuration information;
It is described to judge whether target configuration information has the step of update to include:
Database monitoring information is obtained from server end;If the database monitoring information meets preset condition, target is judged
Configuration information has update.
5. according to the method described in claim 4, it is characterized in that, described the step of obtaining target configuration information from server end
Include:
Described cache from server end obtains target configuration information, wherein described cache from server end obtains target with confidence
The step of breath includes:
The configuration information to be updated is sent to server end;
Receive the homogenous configurations information of server end caching return and the configuration information same type to be updated;
Using homogenous configurations information as target configuration information;
It is described to judge whether target configuration information has the step of update to include:
It is cached from server end and obtains caching monitoring information;If the caching monitoring information meets preset condition, target is judged
Configuration information has update.
6. the method according to claim 1, wherein the method also includes:
Obtain current network state;
If current network disconnects, the solicited message for updating configuration information is obtained to local send;
If local authorization, configuration information is updated from local acquisition and is updated.
7. method according to claim 1 to 6, which is characterized in that the method also includes:
Pushed information will be updated based on updating configuration information and generating, and the update pushed information is pushed to application, to mention
Show that the configuration information applied described in user has update.
8. a kind of updating device of configuration information characterized by comprising
Module is obtained, for obtaining configuration information to be updated, wherein configuration information includes interior in configuration item and configuration item
Hold;
Judgment module for obtaining target configuration information from server end, and judges whether the target configuration information has update;
Update module, if for there is update, by the content in the configuration item and configuration item in the configuration information to be updated
Be compared with the content in the configuration item and configuration item in the target configuration information, obtain update configuration item and
Content and determining update configuration information and update in configuration item.
9. a kind of electronic equipment characterized by comprising memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, the processor is realized when executing the computer program as in claim 1 to 7
Step in any one the method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor such as the step in any one of claims 1 to 7 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811639993.1A CN109885320A (en) | 2018-12-29 | 2018-12-29 | A kind of update method of configuration information, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811639993.1A CN109885320A (en) | 2018-12-29 | 2018-12-29 | A kind of update method of configuration information, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109885320A true CN109885320A (en) | 2019-06-14 |
Family
ID=66925505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811639993.1A Pending CN109885320A (en) | 2018-12-29 | 2018-12-29 | A kind of update method of configuration information, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885320A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111193789A (en) * | 2019-12-25 | 2020-05-22 | 微民保险代理有限公司 | Subscription information pushing method and device, computer equipment and readable storage medium |
CN112463259A (en) * | 2020-12-18 | 2021-03-09 | 杭州搜车网科技有限公司 | Configuration information generation method, device, electronic device and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667131A (en) * | 2009-10-14 | 2010-03-10 | 中兴通讯股份有限公司 | Mobile terminal and updating method of configuration information thereof |
CN103220163A (en) * | 2012-01-19 | 2013-07-24 | 阿里巴巴集团控股有限公司 | Updating method and system of configuring information |
CN103428188A (en) * | 2012-05-25 | 2013-12-04 | 北京小米科技有限责任公司 | Method and apparatus for file updating, and associated equipment |
CN106990979A (en) * | 2017-01-22 | 2017-07-28 | 阿里巴巴集团控股有限公司 | A kind of configuration information update method, system, client and server |
CN107241204A (en) * | 2016-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | Configuration information method for pushing and device |
CN108121559A (en) * | 2017-12-29 | 2018-06-05 | 重庆金融资产交易所有限责任公司 | Configuration file method for pushing, server and storage medium |
CN108696374A (en) * | 2017-04-10 | 2018-10-23 | 北京京东尚科信息技术有限公司 | Update the method and apparatus of client configuration |
CN108733399A (en) * | 2017-04-13 | 2018-11-02 | 北京京东尚科信息技术有限公司 | The method and apparatus that dynamic updates configuration data |
-
2018
- 2018-12-29 CN CN201811639993.1A patent/CN109885320A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667131A (en) * | 2009-10-14 | 2010-03-10 | 中兴通讯股份有限公司 | Mobile terminal and updating method of configuration information thereof |
CN103220163A (en) * | 2012-01-19 | 2013-07-24 | 阿里巴巴集团控股有限公司 | Updating method and system of configuring information |
CN103428188A (en) * | 2012-05-25 | 2013-12-04 | 北京小米科技有限责任公司 | Method and apparatus for file updating, and associated equipment |
CN107241204A (en) * | 2016-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | Configuration information method for pushing and device |
CN106990979A (en) * | 2017-01-22 | 2017-07-28 | 阿里巴巴集团控股有限公司 | A kind of configuration information update method, system, client and server |
CN108696374A (en) * | 2017-04-10 | 2018-10-23 | 北京京东尚科信息技术有限公司 | Update the method and apparatus of client configuration |
CN108733399A (en) * | 2017-04-13 | 2018-11-02 | 北京京东尚科信息技术有限公司 | The method and apparatus that dynamic updates configuration data |
CN108121559A (en) * | 2017-12-29 | 2018-06-05 | 重庆金融资产交易所有限责任公司 | Configuration file method for pushing, server and storage medium |
Non-Patent Citations (1)
Title |
---|
LI BO: "ServiceComb示例讲解微服务配置中心选型与对接", 《HTTPS://SERVICECOMB.INCUBATOR.APACHE.ORG/CN/DOCS/CONFIG_CENTER_INTEGRATION/》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111193789A (en) * | 2019-12-25 | 2020-05-22 | 微民保险代理有限公司 | Subscription information pushing method and device, computer equipment and readable storage medium |
CN112463259A (en) * | 2020-12-18 | 2021-03-09 | 杭州搜车网科技有限公司 | Configuration information generation method, device, electronic device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103404113B (en) | A kind of notice method for pushing, device and system | |
US8745202B2 (en) | Tracking remote browser crashes via cookies | |
US20190286657A1 (en) | Object clustering method and system | |
CN102355500B (en) | Service push method and device | |
US8639806B2 (en) | Notice of restored malfunctioning links | |
EP2788887A1 (en) | Contextual and location awareness for device interaction | |
CN104133765B (en) | The test case sending method of network activity and test case server | |
CN107071066A (en) | page access method and device | |
US11329985B2 (en) | Server-side persistent device identification for fraud prevention systems | |
CN102135874A (en) | Demonstration method and system for icon in computer graphic interface, and client thereof | |
CN111143723A (en) | Page jump method and device, electronic equipment and storage medium | |
CN109542851A (en) | File updating method, apparatus and system | |
CN109885320A (en) | A kind of update method of configuration information, device and electronic equipment | |
CN109274584A (en) | Cut-in method, device, client device and the storage medium of access server | |
EP2946312A2 (en) | Systems and methods for displaying user-generated content | |
Wang et al. | Reliable web service selection via QoS uncertainty computing | |
CN115168162B (en) | Multi-gray-scale issuing method and device based on ingess controller in container environment and storage medium | |
Zhu et al. | Information spreading on weighted multiplex social network | |
CN104765609A (en) | Software related resource recommendation method, obtaining method and corresponding device | |
KR20210007155A (en) | Network server to manage user subscription and method of operating thereof | |
Liu et al. | Optimal convergence in naming game with geography-based negotiation on small-world networks | |
CN113254235A (en) | Message transmission method and device under multi-test environment | |
US20230205619A1 (en) | Common platform for fulfilling different actions | |
CN110780040A (en) | Harmful gas data processing method and device, electronic equipment and storage medium | |
Zhao et al. | CAPred: A prediction model for timely QoS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190614 |
|
RJ01 | Rejection of invention patent application after publication |