CN106612309A - Configuration file update method, device and system - Google Patents

Configuration file update method, device and system Download PDF

Info

Publication number
CN106612309A
CN106612309A CN201510697100.9A CN201510697100A CN106612309A CN 106612309 A CN106612309 A CN 106612309A CN 201510697100 A CN201510697100 A CN 201510697100A CN 106612309 A CN106612309 A CN 106612309A
Authority
CN
China
Prior art keywords
configuration file
undated parameter
subprogram
data
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510697100.9A
Other languages
Chinese (zh)
Other versions
CN106612309B (en
Inventor
王杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510697100.9A priority Critical patent/CN106612309B/en
Publication of CN106612309A publication Critical patent/CN106612309A/en
Application granted granted Critical
Publication of CN106612309B publication Critical patent/CN106612309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a configuration file update method, device and system, which relates to the technical field of information. The problem of low configuration file update success rate is solved. According to the main technical scheme provided by the invention, update parameters in a configuration file sent by a server are received first, and then whether an update subroutine corresponding to the update parameters is in a resolution plug-in is detected; the resolution plug-in includes at least one update subroutine; if the update subroutine corresponding to the update parameters exists, update data corresponding to the update parameters are analyzed according to the update subroutine; and finally the update data corresponding to the update parameters are sent to the server, so that the server updates the configuration file according to the update data. The configuration file update method, device and system are mainly used for updating the configuration file.

Description

The update method of configuration file, apparatus and system
Technical field
The present invention relates to areas of information technology, more particularly to a kind of update method of configuration file, device and it is System.
Background technology
During collection user data, it usually needs made which ginseng specifically gather in configuration file middle finger Number, and the acquisition parameter in configuration file is set, then firstly the need of writing parsing corresponding with configuration file solution Program, then parses the gathered data corresponding with acquisition parameter in configuration file by analysis program, finally Gathered data is mapped as into the data structure of correlation and adds the data structure logic relied on by gathered data.
At present, newly add an acquisition parameter in configuration file, then it is corresponding firstly the need of modification configuration file Analysis program, is then parsed to acquisition parameter by lump-sum analysis program, with institute in acquisition analysis result The corresponding gathered data of acquisition parameter is stated, the corresponding Mapping data structure of gathered data is finally changed and is added The data structure logic relied on by gathered data.If however, modification lump-sum analysis program in there is mistake, Whole resolving will be then caused all to fail, so as to obtain and acquisition parameter pair by analysis result The gathered data answered, carry out existing configuration file to be updated to power low.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of update method of configuration file, apparatus and system, main Syllabus is to improve configuration file to be updated to power.
To reach above-mentioned purpose, present invention generally provides following technical scheme:
On the one hand, a kind of update method of configuration file is embodiments provided, the method includes:
Undated parameter in the configuration file that the reception server sends;
Insert with the presence or absence of renewal subprogram corresponding with the undated parameter, the parsing in detection parsing plug-in unit At least including a renewal subprogram in part;
If existing, update the data corresponding with the undated parameter is parsed according to the renewal subprogram;
Corresponding with the undated parameter will update the data and be sent to the server, so that the server More new configuration file is updated the data according to described.
On the other hand, the embodiment of the present invention also provides the update method of another kind of configuration file, and the method includes:
Undated parameter in client send configuration file so that client according to parsing plug-in unit in more New subprogram parses update the data corresponding with the undated parameter;
Receive update the data corresponding with the undated parameter;
More new configuration file updated the data according to preset data structure.
On the other hand, the embodiment of the present invention also provides a kind of updating device of configuration file, and the device includes:
Receiving unit, the undated parameter in the configuration file sent for the reception server;
Detector unit, updates sub- journey with the presence or absence of corresponding with the undated parameter for detecting in parsing plug-in unit Sequence, at least including a renewal subprogram in the parsing plug-in unit;
Resolution unit, if for there is the renewal subprogram, according to it is described renewal subprogram parse with The undated parameter is corresponding to be updated the data;
Transmitting element, is sent to the server for corresponding with the undated parameter updating the data, with So that the server updates the data more new configuration file according to described.
On the other hand, the embodiment of the present invention also provides a kind of updating device of configuration file, and the device includes:
Transmitting element, for the undated parameter in client send configuration file so that client according to Renewal subprogram in parsing plug-in unit parses update the data corresponding with the undated parameter;
Receiving unit, for receiving update the data corresponding with the undated parameter;
Updating block, for updating the data more new configuration file according to preset data structure.
On the other hand, the embodiment of the present invention also provides a kind of more new system of configuration file, and the system includes: Server and client side;
The server, for the undated parameter in the client send configuration file;
The client, updates son with the presence or absence of corresponding with the undated parameter for detecting in parsing plug-in unit Program, if there is renewal subprogram corresponding with the undated parameter, according to the renewal subprogram parsing Go out it is corresponding with the undated parameter update the data, corresponding with the undated parameter will update the data and be sent to The server;
The server, is additionally operable to update the data more new configuration file according to described.
By above-mentioned technical proposal, technical scheme provided in an embodiment of the present invention at least has following advantages:
Embodiments provide a kind of update method of configuration file, first apparatus and system, server For to the undated parameter in client send configuration file, client is according to the undated parameter for receiving, inspection Survey in parsing plug-in unit with the presence or absence of renewal subprogram corresponding with the undated parameter, if existing and the renewal The corresponding renewal subprogram of parameter, then parse according to the renewal subprogram corresponding with the undated parameter Update the data, then corresponding with the undated parameter will update the data and be sent to the server, and finally take Business device updates the data more new configuration file according to preset data structure.With at present by lump-sum analysis program pair Undated parameter in configuration file carries out parsing and compares, what the embodiment of the present invention, first the reception server sent Undated parameter in configuration file, then with the presence or absence of corresponding in the undated parameter in detection parsing plug-in unit Subprogram is updated, if there is renewal subprogram corresponding with the undated parameter, sub- journey is updated according to described Sequence parse it is corresponding with the undated parameter update the data, if depositing in existing analysis program so as to solve The problem of whole resolving failure will be caused in mistake, so improve configuration file be updated to power.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to embodiment or existing skill Accompanying drawing to be used needed for art description is briefly described, it should be apparent that, drawings in the following description are only Only it is some embodiments of the present invention, for those of ordinary skill in the art, is not paying creative labor On the premise of dynamic, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of update method flow chart of configuration file provided in an embodiment of the present invention;
Fig. 2 is the update method flow chart of another kind of configuration file provided in an embodiment of the present invention;
Fig. 3 is the update method flow chart of another configuration file provided in an embodiment of the present invention;
Fig. 4 is the update method flow chart of another configuration file provided in an embodiment of the present invention;
Fig. 5 is a kind of updating device structural representation of configuration file provided in an embodiment of the present invention;
Fig. 6 is the updating device structural representation of another kind of configuration file provided in an embodiment of the present invention;
Fig. 7 is a kind of updating device structural representation of configuration file provided in an embodiment of the present invention;
Fig. 8 is the updating device structural representation of another kind of configuration file provided in an embodiment of the present invention;
Fig. 9 is a kind of renewal system structure diagram of configuration file provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing in accompanying drawing The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should not be by Embodiments set forth here is limited.On the contrary, there is provided these embodiments are able to be best understood from this It is open, and the scope of the present disclosure complete can be conveyed to those skilled in the art.
To make the advantage of technical solution of the present invention clearer, with reference to the accompanying drawings and examples to present invention work Describe in detail.
A kind of update method of configuration file is embodiments provided, as shown in figure 1, methods described bag Include:
101st, the undated parameter in the configuration file that the reception server sends.
Wherein, the undated parameter can be acquisition parameter newly-increased in configuration file, or configuration text The control parameter increased newly in part, the embodiment of the present invention are not specifically limited.It is for the embodiment of the present invention, described Acquisition parameter is used to gather some specific data in client, and for example, the acquisition parameter can specifically be adopted The data messages such as telephone number, geographical position, address list, photograph album in collection client.The control parameter For controlling the operation of client, data upload, data forwarding of client etc. can be specifically controlled, this Bright embodiment is not specifically limited.
102nd, with the presence or absence of renewal subprogram corresponding with the undated parameter in detection parsing plug-in unit.
Wherein, at least including a renewal subprogram, the parsing plug-in unit and renewal in the parsing plug-in unit Program is the analysis program for pre-setting, for parsing content related in configuration file.In the present invention In embodiment, with plug-in unit logic realization, it is one big to parse plug-in unit for the parsing plug-in unit and renewal subprogram Plug-in unit, parsing plug-in unit in be built-in with multiple analysis program subboards, that is, update subprogram be all with plug-in unit Form is stored in the middle of parsing plug-in unit, then calls correspondence when parsing plug-in unit and running into the data of related needs parsing Renewal subprogram parsed.
For example, the parsing plug-in unit can be with as described below, and the content wherein in config nodes is whole parsing Plug-in unit, item1, item2, item3 respectively parse the renewal subprogram in plug-in unit.
<config>
<Item1att1='a'>test1</item1>
<Item2att2='a'>test2</item1>
<Item3attb='a'>test3</item1>
</config>
It should be noted that the embodiment of the present invention can pass through the corresponding tag name of undated parameter and analysis program In renewal subprogram tag name, judge parsing plug-in unit in the presence or absence of it is corresponding with the undated parameter more New subprogram, some attribute informations it can in addition contain pass through undated parameter whether there is in judging parsing plug-in unit Renewal subprogram corresponding with the undated parameter, the embodiment of the present invention are not specifically limited.
For the embodiment of the present invention, overall resolution logic needs not rely on the parsing of local, that is, allows portion Decompose analysis and lump-sum analysis decoupling, related renewal subprogram is called running into when correlation needs the data of parsing, Such that it is able to improve the efficiency and success rate of program parsing.
If the 103, existing, renewal number corresponding with the undated parameter is parsed according to the renewal subprogram According to.
For the embodiment of the present invention, if there is parsing plug-in unit corresponding with the undated parameter in parsing plug-in unit, Then according to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, therefore, at this The resolving of bright middle undated parameter not relying on overall analysis program, but by with the undated parameter It is corresponding parsing plug-in unit parse it is corresponding with the undated parameter update the data, such that it is able to improve parsing more The efficiency and success rate of new parameter.
For example, it is the telephone number for obtaining client to receive the undated parameter in configuration file, then sentence first With the presence or absence of renewal subprogram corresponding with telephone number in disconnected parsing plug-in unit, if existing corresponding with telephone number Renewal subprogram, then update subprogram and parse the telephone number of client by described, you can to parse Go out the corresponding telephone number of client 15411221121.
104th, corresponding with the undated parameter will update the data and be sent to the server.
Further, so that the server updates the data more new configuration file according to described, need explanation , when the undated parameter is control parameter, the control parameter is only used for the operation for controlling client, Therefore without the need for control parameter is sent to server.In embodiments of the present invention, the reception server sends first Configuration file in undated parameter, then detection parsing plug-in unit in the presence or absence of corresponding with the undated parameter Renewal subprogram, in the parsing plug-in unit at least including one renewal subprogram, if exist and the renewal The corresponding renewal subprogram of parameter, then parse according to the renewal subprogram corresponding with the undated parameter Update the data, finally corresponding with the undated parameter will update the data and be sent to the server, so that The server updates the data more new configuration file according to described.For the embodiment of the present invention, due to the present invention The resolution logic of entirety need not rely on the parsing of local, that is, allow part analysis and lump-sum analysis decoupling, The renewal subprogram of correlation is called when the data of related needs parsing are run into, such that it is able to improve program parsing Efficiency and success rate.
A kind of update method of configuration file is embodiments provided, server is for client first Undated parameter in send configuration file, client are parsed in plug-in unit according to the undated parameter for receiving, detection With the presence or absence of renewal subprogram corresponding with the undated parameter, if presence is corresponding with the undated parameter more New subprogram, then according to the renewal subprogram parse it is corresponding with the undated parameter update the data, so After corresponding with the undated parameter will update the data and be sent to the server, last server is according to preset Data structure updates the data more new configuration file.With the current lump-sum analysis program that passes through in configuration file Undated parameter carries out parsing and compares, in the configuration file that the embodiment of the present invention, first the reception server send Undated parameter, then with the presence or absence of in the corresponding renewal subprogram of the undated parameter in detection parsing plug-in unit, If there is renewal subprogram corresponding with the undated parameter, parsed and institute according to the renewal subprogram State that undated parameter is corresponding to be updated the data, if there is mistake in existing analysis program and will lead so as to solve Cause the problem of whole resolving failure, so improve configuration file be updated to power.
The update method of another kind of configuration file is embodiments provided, as shown in Fig. 2 methods described Including:
201st, the undated parameter in the configuration file that the reception server sends.
Wherein, the undated parameter can be acquisition parameter newly-increased in configuration file, or configuration text The control parameter increased newly in part, the embodiment of the present invention are not specifically limited.It is for the embodiment of the present invention, described Acquisition parameter is used to gather some specific data in client, and for example, the acquisition parameter can specifically be adopted The data messages such as telephone number, geographical position, address list, photograph album in collection client.The control parameter For controlling the operation of client, data upload, data forwarding of client etc. can be specifically controlled, this Bright embodiment is not specifically limited.
202nd, with the presence or absence of renewal subprogram corresponding with the undated parameter in detection parsing plug-in unit.
Wherein, at least including a renewal subprogram, the parsing plug-in unit and renewal in the parsing plug-in unit Program is the analysis program for pre-setting, for parsing content related in configuration file.In the present invention In embodiment, with plug-in unit logic realization, it is one big to parse plug-in unit for the parsing plug-in unit and renewal subprogram Plug-in unit, parsing plug-in unit in be built-in with multiple analysis program subboards, that is, update subprogram be all with plug-in unit Form is stored in the middle of parsing plug-in unit, calls correlation when parsing plug-in unit and running into the data of related needs parsing Update subprogram.
It should be noted that the embodiment of the present invention can pass through the corresponding tag name of undated parameter and analysis program In renewal subprogram tag name, judge parsing plug-in unit in the presence or absence of it is corresponding with the undated parameter more New subprogram, some attribute informations it can in addition contain pass through undated parameter whether there is in judging parsing plug-in unit Renewal subprogram corresponding with the undated parameter, the embodiment of the present invention are not specifically limited.
For the embodiment of the present invention, overall resolution logic needs not rely on the parsing of local, that is, allows portion Decompose analysis and lump-sum analysis decoupling, related renewal subprogram is called running into when correlation needs the data of parsing, Such that it is able to improve the efficiency and success rate of program parsing.
If 203a, presence, renewal corresponding with the undated parameter is parsed according to the renewal subprogram Data.
For the embodiment of the present invention, if there is parsing plug-in unit corresponding with the undated parameter in parsing plug-in unit, Then according to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, therefore, at this The resolving of bright middle undated parameter not relying on overall analysis program, but by with the undated parameter It is corresponding parsing plug-in unit parse it is corresponding with the undated parameter update the data, such that it is able to improve parsing more The efficiency and success rate of new parameter.
If 203b, not existing, send to server and obtain renewal subprogram corresponding with the undated parameter Solicited message.
Wherein, step 203b for step 203a step arranged side by side, if parsing plug-in unit in do not exist with it is described more The corresponding renewal subprogram of new parameter, then send to server and obtain renewal corresponding with the undated parameter PROGRAMMED REQUESTS information, further, so that the server is sent to client according to the solicited message Renewal subprogram corresponding with the undated parameter.Therefore, by sending acquisition and the renewal to server Parameter is corresponding to update subprogram solicited message, and corresponding renewal subprogram can be obtained from the middle of server, The parsing plug-in unit in client can be timely updated so as to the solicited message for passing through transmission, and then solution can be improved The success rate of analysis undated parameter.
For the embodiment of the present invention, methods described also includes:Receive the server sending with the renewal The corresponding renewal subprogram of parameter;Output information, the information are used for whether prompting to update described Parsing plug-in unit;If receiving the confirmation of the information, will it is corresponding with the undated parameter more New subprogram is saved in local parsing plug-in unit.Wherein, the information can be dialog box prompting letter Breath, text prompt information, verbal cue information etc., the embodiment of the present invention is not specifically limited.For example, visitor After the renewal subprogram corresponding with the undated parameter that the server sends is received, output " is at family end It is no to update parsing plug-in unit " information, if after user confirms the information, ginseng will be updated with described The corresponding renewal subprogram of number is saved in the parsing plug-in unit of client.It should be noted that update parsing inserting Part updates corresponding application program in the middle of client, can realize that server end is matched somebody with somebody by updating parsing plug-in unit The function of newly increasing in putting file.In embodiments of the present invention, prompted the user whether by exporting information Parsing plug-in unit is updated, user can be made independently to choose whether more new application, so as to improve Consumer's Experience.
204a, corresponding with the undated parameter will update the data and be sent to the server.
Further, so that the server updates the data more new configuration file according to described, need explanation , when the undated parameter is control parameter, the control parameter is only used for the operation for controlling client, Therefore without the need for control parameter is sent to server.In embodiments of the present invention, the reception server sends first Configuration file in undated parameter, then detection parsing plug-in unit in the presence or absence of corresponding with the undated parameter Renewal subprogram, in the parsing plug-in unit at least including one renewal subprogram, if exist and the renewal The corresponding renewal subprogram of parameter, then parse according to the renewal subprogram corresponding with the undated parameter Update the data, finally corresponding with the undated parameter will update the data and be sent to the server, so that The server updates the data more new configuration file according to described.For the embodiment of the present invention, due to the present invention The resolution logic of entirety need not rely on the parsing of local, that is, allow part analysis and lump-sum analysis decoupling, The renewal subprogram of correlation is called when the data of related needs parsing are run into, such that it is able to improve program parsing Efficiency and success rate.
For the embodiment of the present invention, adaptable scene is as follows, but is not limited only to this and includes:If clothes Collection telephone number parameter is newly increased in the configuration file of business device end, then client the reception server end first is sent out The telephone number parameter for sending, then detects in local parsing plug-in unit with the presence or absence of corresponding with telephone number parameter Renewal subprogram, if there is corresponding with telephone number parameter renewal subprogram, update sub according to described Program parse it is corresponding with telephone number parameter update the data, then update the data the service of being sent to by described Device end, so that the server updates the data more new configuration file according to described;If local parsing plug-in unit In there is no renewal subprogram corresponding with the telephone number parameter, then to server send obtain and phone Number argument it is corresponding update subprogram solicited message so that the server according to the solicited message to Client sends renewal subprogram corresponding with telephone number parameter.In embodiments of the present invention, receive first Server send configuration file in undated parameter, then detection parsing plug-in unit in the presence or absence of in it is described more The corresponding renewal subprogram of new parameter, if there is renewal subprogram corresponding with the undated parameter, basis It is described renewal subprogram parse it is corresponding with the undated parameter update the data, so as to solve existing solution If there is a problem of in analysis program, mistake will cause whole resolving failure, and then improve configuration file Be updated to power.
The update method of another kind of configuration file is embodiments provided, server is for client first Undated parameter in the send configuration file of end, client is according to the undated parameter for receiving, detection parsing plug-in unit In with the presence or absence of renewal subprogram corresponding with the undated parameter, if exist it is corresponding with the undated parameter Update subprogram, then according to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, Then corresponding with the undated parameter will update the data and be sent to the server, last server will be according to pre- That puts data structure updates the data more new configuration file.With the current lump-sum analysis program that passes through in configuration file Undated parameter carry out parsing and compare, in the configuration file that the embodiment of the present invention, first the reception server send Undated parameter, then with the presence or absence of in the corresponding renewal subprogram of the undated parameter in detection parsing plug-in unit, If there is renewal subprogram corresponding with the undated parameter, parsed and institute according to the renewal subprogram State that undated parameter is corresponding to be updated the data, if there is mistake in existing analysis program and will lead so as to solve Cause the problem of whole resolving failure, so improve configuration file be updated to power.
The update method of another configuration file is embodiments provided, as shown in figure 3, methods described Including:
301st, to the undated parameter in client send configuration file.
Further, so that client according to update subprogram parse it is corresponding with the undated parameter more New data, wherein, the undated parameter can be acquisition parameter newly-increased in configuration file, or matches somebody with somebody The control parameter increased newly in putting file, the embodiment of the present invention are not specifically limited.For the embodiment of the present invention, The acquisition parameter is used to gather some specific data in client, and for example, the acquisition parameter specifically may be used To gather the data messages such as the telephone number in client, geographical position, address list, photograph album.The control Parameter is used for the operation for controlling client, can specifically control data upload, data forwarding of client etc., The embodiment of the present invention is not specifically limited.
302nd, receive update the data corresponding with the undated parameter.
303rd, more new configuration file updated the data according to preset data structure.
Wherein, the preset storage organization does not rely on specific data structure, is specifically as follows loose number According to structure, for example, the preset structure can be set, dictionary etc., and the embodiment of the present invention is not done and specifically limited It is fixed.In embodiments of the present invention, after parsing update the data corresponding with the undated parameter, developer Need not go to change the structure of the data structure that configuration file parsing needs, and only need to unified with one Analysis result container is come into contacts with, i.e., only need analysis result is put in set or dictionary, so as to according to preset number More new configuration file is updated the data according to structure, manual amendment's data structure mistake can be prevented, and then improved The more success rate of new configuration file.
The update method of another configuration file is embodiments provided, server is for client first Undated parameter in the send configuration file of end, client is according to the undated parameter for receiving, detection parsing plug-in unit In with the presence or absence of renewal subprogram corresponding with the undated parameter, if exist it is corresponding with the undated parameter Update subprogram, then according to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, Then corresponding with the undated parameter will update the data and be sent to the server, last server will be according to pre- That puts data structure updates the data more new configuration file.Need with current developer modification configuration file parsing The structure of data structure compare, the embodiment of the present invention is first to the renewal in client send configuration file Parameter, then receives the updating the data corresponding with the undated parameter of client transmission, finally according to preset Data structure updates the data more new configuration file, as preset storage organization does not rely on specific data knot Structure, therefore more new configuration file updated the data according to preset data structure, manual amendment's data can be prevented Construction error, and then improve the success rate of more new configuration file.
The update method of another configuration file is embodiments provided, as shown in figure 4, methods described Including:
401st, to the undated parameter in client send configuration file.
Further, so that client according to update subprogram parse it is corresponding with the undated parameter more New data, wherein, the undated parameter can be acquisition parameter newly-increased in configuration file, or matches somebody with somebody The control parameter increased newly in putting file, the embodiment of the present invention are not specifically limited.For the embodiment of the present invention, The acquisition parameter is used to gather some specific data in client, and for example, the acquisition parameter specifically may be used To gather the data messages such as the telephone number in client, geographical position, address list, photograph album.The control Parameter is used for the operation for controlling client, can specifically control data upload, data forwarding of client etc., The embodiment of the present invention is not specifically limited.
402nd, receive update the data corresponding with the undated parameter.
403rd, update the data more new configuration file according to dictionary data structure or Collection data structures.
In embodiments of the present invention, after parsing update the data corresponding with the undated parameter, developer Need not go to change the structure of the data structure that configuration file parsing needs, and only need to unified with one Analysis result container is come into contacts with, i.e., only need analysis result is put in set or dictionary, so as to according to preset number More new configuration file is updated the data according to structure, manual amendment's data structure mistake can be prevented, and then improved The more success rate of new configuration file.
For the embodiment of the present invention, methods described also includes:Detect whether to receive the acquisition of client transmission Renewal subprogram solicited message corresponding with the undated parameter;If receiving, send to client and institute State the corresponding renewal subprogram of undated parameter so that the client will it is corresponding with the undated parameter more New subprogram is saved in local parsing plug-in unit.
The update method of another configuration file is embodiments provided, server is for client first Undated parameter in the send configuration file of end, client is according to the undated parameter for receiving, detection parsing plug-in unit In with the presence or absence of renewal subprogram corresponding with the undated parameter, if exist it is corresponding with the undated parameter Update subprogram, then according to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, Then corresponding with the undated parameter will update the data and be sent to the server, last server will be according to pre- That puts data structure updates the data more new configuration file.Need with current developer modification configuration file parsing The structure of data structure compare, the embodiment of the present invention is first to the renewal in client send configuration file Parameter, then receives the updating the data corresponding with the undated parameter of client transmission, finally according to preset Data structure updates the data more new configuration file, as preset storage organization does not rely on specific data knot Structure, therefore more new configuration file updated the data according to preset data structure, manual amendment's data can be prevented Construction error, and then improve the success rate of more new configuration file.
Further, the embodiment of the present invention provides a kind of updating device of configuration file, as shown in figure 5, institute Stating device includes:Receiving unit 51, detector unit 52, resolution unit 53, transmitting element 54.
Receiving unit 51, the undated parameter in the configuration file sent for the reception server.
Detector unit 52, updates son with the presence or absence of corresponding with the undated parameter for detecting in parsing plug-in unit Program, at least including a renewal subprogram in the parsing plug-in unit.
Resolution unit 53, if for there is the renewal subprogram, being parsed according to the renewal subprogram It is corresponding with the undated parameter to update the data.
Transmitting element 54, is sent to the server for corresponding with the undated parameter updating the data, So that the server updates the data more new configuration file according to described.
It should be noted that other of each functional unit involved by a kind of client provided in an embodiment of the present invention It is corresponding to describe, the correspondence description of method shown in Fig. 1 is may be referred to, be will not be described here.
A kind of client is embodiments provided, server is for client send configuration file first In undated parameter, client according to the undated parameter for receiving, in detection parsing plug-in unit with the presence or absence of with institute The corresponding renewal subprogram of undated parameter is stated, if there is renewal subprogram corresponding with the undated parameter, According to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, then will with it is described more Corresponding the updating the data of new parameter is sent to the server, last server according to preset data structure more New data more new configuration file.With the undated parameter in configuration file is carried out by lump-sum analysis program at present Parsing is compared, the embodiment of the present invention, the undated parameter in the configuration file that the reception server sends first, so Afterwards with the presence or absence of in the corresponding renewal subprogram of the undated parameter in detection parsing plug-in unit, if exist with it is described The corresponding renewal subprogram of undated parameter, then parse and the undated parameter pair according to the renewal subprogram That what is answered updates the data, if so as to solve exist in existing analysis program mistake will cause it is whole parsed The problem of journey failure, so improve configuration file be updated to power.
Further, the embodiment of the present invention provides the updating device of another kind of configuration file, as shown in fig. 6, The client includes:Receiving unit 61, detector unit 62, resolution unit 63, transmitting element 64.
Receiving unit 61, the undated parameter in the configuration file sent for the reception server.
Detector unit 62, updates son with the presence or absence of corresponding with the undated parameter for detecting in parsing plug-in unit Program, at least including a renewal subprogram in the parsing plug-in unit.
Resolution unit 63, if for there is the renewal subprogram, being parsed according to the renewal subprogram It is corresponding with the undated parameter to update the data.
Transmitting element 64, is sent to the server for corresponding with the undated parameter updating the data, So that the server updates the data more new configuration file according to described.
The transmitting element 64, if being additionally operable to there is no the renewal subprogram, sends to server and obtains Renewal subprogram solicited message corresponding with the undated parameter, so that the server is according to the request Information sends renewal subprogram corresponding with the undated parameter to client.
Further, the renewal of the configuration file can also include:Output unit 65, storage unit 66.
The receiving unit 61, be additionally operable to receive the server sends it is corresponding with the undated parameter more New subprogram.
The output unit 65, for exporting information, the information is used for whether prompting to update institute State parsing plug-in unit.
The storage unit 66, if the confirmation for receiving the information, will with it is described more The corresponding renewal subprogram of new parameter is saved in local parsing plug-in unit.
It should be noted that each involved by the updating device of another kind of configuration file provided in an embodiment of the present invention Other corresponding descriptions of functional unit, may be referred to the correspondence description of method shown in Fig. 2, will not be described here.
The updating device of another kind of configuration file is embodiments provided, server is for client first Undated parameter in the send configuration file of end, client is according to the undated parameter for receiving, detection parsing plug-in unit In with the presence or absence of renewal subprogram corresponding with the undated parameter, if exist it is corresponding with the undated parameter Update subprogram, then according to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, Then corresponding with the undated parameter will update the data and be sent to the server, last server will be according to pre- That puts data structure updates the data more new configuration file.With the current lump-sum analysis program that passes through in configuration file Undated parameter carry out parsing and compare, in the configuration file that the embodiment of the present invention, first the reception server send Undated parameter, then with the presence or absence of in the corresponding renewal subprogram of the undated parameter in detection parsing plug-in unit, If there is renewal subprogram corresponding with the undated parameter, parsed and institute according to the renewal subprogram State that undated parameter is corresponding to be updated the data, if there is mistake in existing analysis program and will lead so as to solve Cause the problem of whole resolving failure, so improve configuration file be updated to power.
Further, the embodiment of the present invention provides a kind of updating device of configuration file, as shown in fig. 7, institute The updating device for stating configuration file includes:Transmitting element 71, receiving unit 72, updating block 73.
Transmitting element 71, for the undated parameter in client send configuration file, so that client root Update the data corresponding with the undated parameter is parsed according to the renewal subprogram in parsing plug-in unit.
Receiving unit 72, for receiving update the data corresponding with the undated parameter.
Updating block 73, for updating the data more new configuration file according to preset data structure.
It should be noted that each work(involved by a kind of updating device of configuration file provided in an embodiment of the present invention Other corresponding descriptions of energy unit, may be referred to the correspondence description of method shown in Fig. 3, will not be described here.
A kind of updating device of configuration file is embodiments provided, server is for client first Undated parameter in send configuration file, client are parsed in plug-in unit according to the undated parameter for receiving, detection With the presence or absence of renewal subprogram corresponding with the undated parameter, if presence is corresponding with the undated parameter more New subprogram, then according to the renewal subprogram parse it is corresponding with the undated parameter update the data, so After corresponding with the undated parameter will update the data and be sent to the server, last server is according to preset Data structure updates the data more new configuration file.Change what configuration file parsing needed with current developer The structure of data structure is compared, and the embodiment of the present invention is joined to the renewal in client send configuration file first Number, then receives the updating the data corresponding with the undated parameter of client transmission, finally according to preset number More new configuration file is updated the data according to structure, as preset storage organization does not rely on specific data structure, Therefore more new configuration file updated the data according to preset data structure, manual amendment's data structure can be prevented Mistake, and then improve the success rate of more new configuration file.
Further, the embodiment of the present invention provides the updating device of another kind of configuration file, as shown in figure 8, The updating device of the configuration file includes:Transmitting element 81, receiving unit 82, updating block 83.
Transmitting element 81, for the undated parameter in client send configuration file, so that client root Update the data corresponding with the undated parameter is parsed according to the renewal subprogram in parsing plug-in unit.
Receiving unit 82, for receiving update the data corresponding with the undated parameter.
Updating block 83, for updating the data more new configuration file according to preset data structure.
Further, the updating device of the configuration file also includes:Detector unit 84.
The detector unit 84, for detecting whether receiving the acquisition of client transmission and the undated parameter Corresponding renewal subprogram solicited message.
The transmitting element 81, if being additionally operable to receive renewal subprogram solicited message corresponding with undated parameter, Then send corresponding with parameter renewal subprogram to client so that the client will with it is described more The corresponding renewal subprogram of new parameter is saved in local parsing plug-in unit.
The updating block 83, specifically for updating the data according to dictionary data structure or Collection data structures More new configuration file.
It should be noted that each involved by the updating device of another kind of configuration file provided in an embodiment of the present invention Other corresponding descriptions of functional unit, may be referred to the correspondence description of method shown in Fig. 4, will not be described here.
The updating device of another kind of configuration file is embodiments provided, can be sent to client first Undated parameter in configuration file, client according to the undated parameter for receiving, in detection parsing plug-in unit whether There is renewal subprogram corresponding with the undated parameter, if there is renewal corresponding with the undated parameter Program, then according to it is described renewal subprogram parse it is corresponding with the undated parameter update the data, then will Update the data corresponding with the undated parameter is sent to the server, and last server is according to preset data Structure updates the data more new configuration file.The data that configuration file parsing needs are changed with current developer The structure of structure is compared, the embodiment of the present invention first to the undated parameter in client send configuration file, Then the updating the data corresponding with the undated parameter of client transmission is received, is tied finally according to preset data Structure updates the data more new configuration file, as preset storage organization does not rely on specific data structure, because This updates the data more new configuration file according to preset data structure, and manual amendment's data structure can be prevented wrong Miss, and then improve the success rate of more new configuration file.
Further, the embodiment of the present invention provides a kind of more new system of configuration file, as shown in figure 9, institute The system of stating includes:Server 91 and client 92.
The server 91, for the undated parameter in 92 send configuration file of the client.
The client 92, for detecting in parsing plug-in unit with the presence or absence of renewal corresponding with the undated parameter Subprogram, if there is renewal subprogram corresponding with the undated parameter, according to the renewal subprogram solution Precipitation is corresponding with the undated parameter to be updated the data, and corresponding with the undated parameter will update the data transmission To the server 91.
The server 91, is additionally operable to update the data more new configuration file according to described.
A kind of more new system of configuration file is embodiments provided, server is for client first Undated parameter in send configuration file, client are parsed in plug-in unit according to the undated parameter for receiving, detection With the presence or absence of renewal subprogram corresponding with the undated parameter, if presence is corresponding with the undated parameter more New subprogram, then according to the renewal subprogram parse it is corresponding with the undated parameter update the data, so After corresponding with the undated parameter will update the data and be sent to the server, last server is according to preset Data structure updates the data more new configuration file.With the current lump-sum analysis program that passes through in configuration file Undated parameter carries out parsing and compares, in the configuration file that the embodiment of the present invention, first the reception server send Undated parameter, then with the presence or absence of in the corresponding renewal subprogram of the undated parameter in detection parsing plug-in unit, If there is renewal subprogram corresponding with the undated parameter, parsed and institute according to the renewal subprogram State that undated parameter is corresponding to be updated the data, if there is mistake in existing analysis program and will lead so as to solve Cause the problem of whole resolving failure, so improve configuration file be updated to power.
Through the above description of the embodiments, those skilled in the art can be understood that this It is bright to add the mode of required common hardware to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme substantially or Person says that the part contributed to prior art can be embodied in the form of software product, and the computer is soft Part product is stored in the storage medium that can read, such as the floppy disk of computer, hard disk or CD etc., if including Dry instruction is used so that a computer equipment (can be personal computer, server, or the network equipment Deng) perform method described in each embodiment of the invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art the invention discloses technical scope in, can readily occur in Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should It is defined by the scope of the claims.

Claims (10)

1. a kind of update method of configuration file, it is characterised in that include:
Undated parameter in the configuration file that the reception server sends;
Insert with the presence or absence of renewal subprogram corresponding with the undated parameter, the parsing in detection parsing plug-in unit At least including a renewal subprogram in part;
If existing, update the data corresponding with the undated parameter is parsed according to the renewal subprogram;
Corresponding with the undated parameter will update the data and be sent to the server, so that the server More new configuration file is updated the data according to described.
2. the update method of configuration file according to claim 1, it is characterised in that the detection solution Analysis plug-in unit in the presence or absence of it is corresponding with the undated parameter renewal subprogram after, methods described also includes:
If not existing, send to server and obtain renewal subprogram request letter corresponding with the undated parameter Breath, so that the server sends with the undated parameter corresponding to client according to the solicited message Update subprogram.
3. the update method of configuration file according to claim 2, it is characterised in that methods described is also Including:
Receive the renewal subprogram corresponding with the undated parameter that the server sends;
Output information, the information are used for whether prompting to update the parsing plug-in unit;
If receiving the confirmation of the information, corresponding with the undated parameter sub- journey will be updated Sequence is saved in local parsing plug-in unit.
4. a kind of update method of configuration file, it is characterised in that include:
Undated parameter in client send configuration file so that client according to parsing plug-in unit in more New subprogram parses update the data corresponding with the undated parameter;
Receive update the data corresponding with the undated parameter;
More new configuration file updated the data according to preset data structure.
5. the update method of configuration file according to claim 4, it is characterised in that methods described is also Including:
Detect whether that the acquisition for receiving client transmission is corresponding with the undated parameter and update subprogram request Information;
If receiving, renewal subprogram corresponding with the undated parameter is sent to client, so that institute State client renewal subprogram corresponding with the undated parameter is saved in local parsing plug-in unit.
6. the update method of configuration file according to claim 5, it is characterised in that the basis is pre- The more new configuration file that updates the data for putting data structure includes:
More new configuration file is updated the data according to dictionary data structure or Collection data structures.
7. a kind of updating device of configuration file, it is characterised in that include:
Receiving unit, the undated parameter in the configuration file sent for the reception server;
Detector unit, updates sub- journey with the presence or absence of corresponding with the undated parameter for detecting in parsing plug-in unit Sequence, at least including a renewal subprogram in the parsing plug-in unit;
Resolution unit, if for there is the renewal subprogram, according to it is described renewal subprogram parse with The undated parameter is corresponding to be updated the data;
Transmitting element, is sent to the server for corresponding with the undated parameter updating the data, with So that the server updates the data more new configuration file according to described.
8. device according to claim 7, it is characterised in that
The transmitting element, if being additionally operable to there is no the renewal subprogram, to server send obtain with The undated parameter is corresponding to update subprogram solicited message, so that the server is according to the request letter Cease to client and send renewal subprogram corresponding with the undated parameter.
9. a kind of updating device of configuration file, it is characterised in that include:
Transmitting element, for the undated parameter in client send configuration file so that client according to Renewal subprogram in parsing plug-in unit parses update the data corresponding with the undated parameter;
Receiving unit, for receiving update the data corresponding with the undated parameter;
Updating block, for updating the data more new configuration file according to preset data structure.
10. the more new system of a kind of configuration file, it is characterised in that include:Server and client side;
The server, for the undated parameter in the client send configuration file;
The client, updates son with the presence or absence of corresponding with the undated parameter for detecting in parsing plug-in unit Program, if there is renewal subprogram corresponding with the undated parameter, according to the renewal subprogram parsing Go out it is corresponding with the undated parameter update the data, corresponding with the undated parameter will update the data and be sent to The server;
The server, is additionally operable to update the data more new configuration file according to described.
CN201510697100.9A 2015-10-22 2015-10-22 The update method of configuration file, apparatus and system Active CN106612309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510697100.9A CN106612309B (en) 2015-10-22 2015-10-22 The update method of configuration file, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510697100.9A CN106612309B (en) 2015-10-22 2015-10-22 The update method of configuration file, apparatus and system

Publications (2)

Publication Number Publication Date
CN106612309A true CN106612309A (en) 2017-05-03
CN106612309B CN106612309B (en) 2019-09-06

Family

ID=58612594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510697100.9A Active CN106612309B (en) 2015-10-22 2015-10-22 The update method of configuration file, apparatus and system

Country Status (1)

Country Link
CN (1) CN106612309B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595220A (en) * 2018-04-25 2018-09-28 上海掌门科技有限公司 Processing method, equipment and the computer readable storage medium of application component
CN109240998A (en) * 2018-08-24 2019-01-18 网宿科技股份有限公司 Configurable document analysis method
CN113791801A (en) * 2021-09-07 2021-12-14 浙江三维利普维网络有限公司 Application program updating method and device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030038968A1 (en) * 2001-08-27 2003-02-27 Hisanori Kawaura Image forming apparatus, program updating method and recording medium
US7194386B1 (en) * 2005-10-17 2007-03-20 Microsoft Corporation Automated collection of information
CN101561915A (en) * 2009-06-05 2009-10-21 阿里巴巴集团控股有限公司 Plug-in unit acquiring method, system and device thereof
CN104881444A (en) * 2015-05-14 2015-09-02 微梦创科网络科技(中国)有限公司 Method and system for updating caching server in website
CN104965726A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Configuration updating method, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030038968A1 (en) * 2001-08-27 2003-02-27 Hisanori Kawaura Image forming apparatus, program updating method and recording medium
US7194386B1 (en) * 2005-10-17 2007-03-20 Microsoft Corporation Automated collection of information
CN101561915A (en) * 2009-06-05 2009-10-21 阿里巴巴集团控股有限公司 Plug-in unit acquiring method, system and device thereof
CN104965726A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Configuration updating method, apparatus and system
CN104881444A (en) * 2015-05-14 2015-09-02 微梦创科网络科技(中国)有限公司 Method and system for updating caching server in website

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595220A (en) * 2018-04-25 2018-09-28 上海掌门科技有限公司 Processing method, equipment and the computer readable storage medium of application component
CN108595220B (en) * 2018-04-25 2021-04-16 上海掌门科技有限公司 Application component processing method and device and computer readable storage medium
CN109240998A (en) * 2018-08-24 2019-01-18 网宿科技股份有限公司 Configurable document analysis method
CN109240998B (en) * 2018-08-24 2022-03-01 网宿科技股份有限公司 Configurable file parsing method
CN113791801A (en) * 2021-09-07 2021-12-14 浙江三维利普维网络有限公司 Application program updating method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN106612309B (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN110069354A (en) The full link trace method of micro services and micro services framework
US20190281476A1 (en) Telecommunications network troubleshooting systems
CN107203395A (en) Resource graded method, device and computer-readable recording medium and electronic equipment
CN106576054A (en) Network device configuration framework
CN107800795A (en) The processing method and processing device of block information
CN101610501A (en) Device firmware upgrade system and method, device management server and portable terminal
CN108023808A (en) message distributing method and device in application program
CN103647701B (en) The control method and device of instantaneous communication system message forwarding
CN105338128B (en) Domain name analytic method and domain name mapping device
CN106612309A (en) Configuration file update method, device and system
CN102903043B (en) Paying server and payment channel acquisition methods
CN108234171A (en) A kind of data processing method, system and device
CN103152261B (en) A kind of Link State Protocol Data Unit fragment message generates dissemination method and equipment
CN109873867A (en) Express cabinet information transmission method, device and system, express cabinet and storage medium
US20200012545A1 (en) Event to serverless function workflow instance mapping mechanism
CN107634975A (en) A kind of method of data synchronization, equipment and system
CN114691398A (en) Rule-based fault analysis method, device, equipment and storage medium
CN108207012A (en) A kind of flow control methods, device, terminal and system
CN109324815A (en) Monitoring method, device, equipment and the computer readable storage medium of system upgrade
CN112543170A (en) Software-defined wide area network management method, device and system, and storage medium
CN106992905A (en) Long-distance service method and system after network link failure
CN111061453A (en) Voice interaction method and device for APP ecosystem
CN107979630A (en) A kind of information acquisition method and device
CN106875184A (en) Abnormal scene analogy method, device and equipment
CN109981386B (en) Network quality testing method, testing server and testing system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant