CN101860532A - Saving and loading method for multiprocess configuration files - Google Patents

Saving and loading method for multiprocess configuration files Download PDF

Info

Publication number
CN101860532A
CN101860532A CN201010171149A CN201010171149A CN101860532A CN 101860532 A CN101860532 A CN 101860532A CN 201010171149 A CN201010171149 A CN 201010171149A CN 201010171149 A CN201010171149 A CN 201010171149A CN 101860532 A CN101860532 A CN 101860532A
Authority
CN
China
Prior art keywords
configuration file
configuration
configuration files
preservation
background server
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
Application number
CN201010171149A
Other languages
Chinese (zh)
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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201010171149A priority Critical patent/CN101860532A/en
Publication of CN101860532A publication Critical patent/CN101860532A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a saving and loading method for multiprocess configuration files, which avoids the situation of system residual detection or false detection caused by code varieties in modifying, verifying and loading processes of the configuration files in a multi-user unit system. The method comprises the following steps of: after the system is started, firstly, loading initial configuration files stored in a special storage by a background server; reading the configuration files in the special storage by means of a serial port command by a foreground client, and carrying out standardized edition on the configuration files; analyzing the standardized-edited configuration files by an analyzing module in the foreground client and an assorted software program to generate a vector table; carrying out matching verification on the configuration files with registered code commands, and transmitting the verified correct configuration files to the background server in the form of coding by a communication module; and extracting the codes of the configuration files by means of a configuration management module by the background server, and decoding and then updating and saving the configuration files to the special storage.

Description

The preservation of multi-process configuration file and loading method
Technical field
The invention belongs to the communication system technical field, relate to the preservation and the loading method of the configuration file of process in the multi-user unit system, particularly be configured the method for modification, verification and preservation on the foreground.
Background technology
In communication technique field, because systemic-function from strength to strength, the functional module in system is also more and more, and the module of operation also can be a lot of simultaneously in each system, these modules all are to move in the mode of process or thread, and each intermodule is not certain existence alternately.If use the method for a configuration file of a module, will cause configuration file quantity many, the fractionation of file and the integration of file when deriving when being not easy to import.Solution to this problem is that these modules configured are tried every possible means to unite at present, manage by another intermediate module, design Configuration Manager by research and development, can be good at by Configuration Manager that configuration file with a plurality of processes carries out the subregion storage and management is called.
Though each process has had unified management, what increase is a large amount of processing procedures thereupon.The general multi-user unit system configuration that in communication system, all adopts server and client to form, each client all can be carried out functional configuration according to the needs of oneself, and so many user needs to handle by background server in the process of client configuration, for example, the user makes amendment, standardizes in client to edit and disposes, standardization editor, verification, and the preservation process all finish at server, code in the configuration file that generates after preserving is very numerous and diverse, and the error rate also just increased when server carried out verification.Prior art is general to adopt two kinds of contents that form is write configuration file: 1), defined parameters, and parameter=value; 2), adopt the XML form.Though the form of defined parameters is simple when writing, in various configuration file repeatability clearly, the user is not easy to understand when revising code, parameter can not embody its real connotation.Simultaneously, the parameter of each function is not fully independently, and the value of certain parameter may have influence on another parameter range.When a plurality of parameters import respectively, if some makeing mistakes then cause the configuration file disappearance, thereby functional block can not be moved normally.So for the customer, separation instrumentation carries out off-line ground configuration specification editor, has become can not finishing of a task.Adopt the XML mode, this mode is understood than being easier to, for the customer because the form of XML has standard definition.But when making in this way, then need oneself to realize or use three parts's XML parsing module, rewrite concrete XML resolving code at the situation of oneself then.In the time of can causing XML node type or nodal community additions and deletions or modification like this, just must revise the change that the XML resolving code adapts to XML, error rate is bigger.
More than Shuo Ming problems of the prior art are: at first, the verification of configuration file is in background process, owing to code, the various code that causes of parameter repeat, can accurately verification when verification, be subjected to the influence of the parameter value range problem of configuration file in addition, system can influence the stability of system when loading configuration; In order to cooperate modification, verification, preservation and the loading procedure to configuration file, the mode of writing of configuration file content can not solve well in the prior art.
Summary of the invention
The objective of the invention is to solve and in the multi-user unit system, avoid in configuration file modification, verification and loading procedure, causing the situation of system's omission or flase drop to take place owing to code is various, the preservation and the loading method of multi-process configuration file have been designed, with the modification of configuration file, be kept at foreground client and carry out, when reducing the operating pressure of background server, improve the stability of process configuration file.
The present invention for realizing the technical scheme that goal of the invention adopts is, the preservation of multi-process configuration file and loading method, above method is applied in the multi-user unit system that is made up of background server and one group of foreground client, the configuration file of process is kept in the private memory, the preservation of configuration file realizes by Configuration Manager with loading, comprises in the concrete steps of above method:
1., after system start-up finishes, at first background server loads the initial configuration file of storing in the private memory;
2., foreground client reads configuration file in the private memory by serial ports instruction, and to the configuration file editor that standardizes;
3., by parsing module in the foreground client and software kit program vector table is resolved, generated to standardization editor's configuration file, mate verification with registered code commands, and proper configuration file after the verification is issued to background server with coding form by communication module;
4., background server extracts the configuration file coding by Configuration Manager, after the decoding configuration file upgraded being kept in the private memory.
The user was to carry out verification and preservation by server when revising and preserve configuration file in the past, key of the present invention is the verification on backstage and preservation are adjusted into the foreground client processing, be provided with intermediate storage unit and supporting verification software program in foreground client, be transferred in the private memory of background server by communication module again, so that the system loads configuration file.In addition, by adopting the write form of order line CLI to configuration file, strengthened user's readability, make the user convenient and swift when standardization editor configuration, the verification software that while is provided with by foreground client, when revising, increased the inspection when configuration file imports, do not needed to do extra deploy content and check code.Owing to adopt order line to write configuration file, when the background server loading configuration file, directly call content, the repeatability of order is lower, has increased the stability of system in loading procedure, increases the consistency and the integrality of development progress and data.
Embodiment
The preservation of multi-process configuration file and loading method, above method is applied in the multi-user unit system that is made up of background server and one group of foreground client, the configuration file of process is kept in the private memory, the preservation of configuration file realizes that by Configuration Manager the concrete steps of above method are with loading:
1., after system start-up finishes, at first background server loads the initial configuration file of storing in the private memory;
2., foreground client reads configuration file in the private memory by serial ports instruction, and to the configuration file editor that standardizes;
3., by parsing module in the foreground client and software kit program vector table is resolved, generated to standardization editor's configuration file, mate verification with registered code commands, and proper configuration file after the verification is issued to background server with coding form by communication module;
4., background server extracts the configuration file coding by Configuration Manager, after the decoding configuration file upgraded being kept in the private memory.
The mode of writing of above-mentioned configuration file adopts the form of the capable CLI of command interface.
Above-mentioned step 2. in, foreground client directly shows by the message distribution module the result that standardization editor's configuration file carries out verification, if configuration error, the request user is configured again.
The configuration file that foreground client reads in the private memory by serial ports instruction is connected with serial line interface by PC, online order line to the configuration file editor that standardizes.
Foreground client reads configuration file in the private memory by the serial line interface download configuration file by serial ports instruction, and off-line is to the order line of the configuration file editor that standardizes.
The content of standardization editor configuration file comprises: user cipher configuration, quality of service configuration, VLAN, the configuration of group of networks management agreement and port status configuration.
Method of the present invention is in specific implementation process, after system start-up, the user is at first by foreground client need make amendment to configuration file according to oneself, wherein revise is that user's utility command row standardizes according to the function that oneself will realize and updates, correct errors by direct verification of the verification software of foregrounding and prompting when revising, carry out configuration by external interface after modification is finished and preserve, and be saved in intermediate storage unit.External interface will send message behind the coding to the message distribution module, and store the appointed area of intermediate storage unit into.This message is self-defining by internal system, use be three layer protocols (UDP or TCP).
By communication module that the private memory that the configuration file of preserving in the intermediate storage unit is sent to background server is medium to be loaded then.During the loading configuration file content, the content in the configuration file reads line by line.
The present invention is the mode of writing that adopts order line, and the parsing and the processing procedure of order are:
Whether 1) at first want the grammer of resolve command legal, this part can be finished by the fractionation of command string.Can pass through some spcial characters during fractionation, such as the space, left and right sides angle brackets, left and right sides bracket, left and right sides braces, center.If do not match before and after the bracket, perhaps certain bracket is placed on the place that should not put, all belongs to syntax error.
2) after parsing is finished, can generate a vector table.Mate by vector table and the order line of in code, having registered.If the match is successful, then be a legal order line, otherwise can't find entrance function.This is a very complicated process.Need a large amount of logical codes to finish.
3) parameter verification.

Claims (6)

1. the preservation of multi-process configuration file and loading method, above method is applied in the multi-user unit system that is made up of background server and one group of foreground client, the configuration file of process is kept in the private memory, the preservation of configuration file realizes by Configuration Manager with loading, it is characterized in that: comprise in the concrete steps of described method:
1., after system start-up finishes, at first background server loads the initial configuration file of storing in the private memory;
2., foreground client reads configuration file in the private memory by serial ports instruction, and to the configuration file editor that standardizes;
3., by parsing module in the foreground client and software kit program vector table is resolved, generated to standardization editor's configuration file, mate verification with registered code commands, and proper configuration file after the verification is issued to background server with coding form by communication module;
4., background server extracts the configuration file coding by Configuration Manager, after the decoding configuration file upgraded being kept in the private memory, forms the multi-user unit system intermediate database corresponding with the above client.
2. the preservation of multi-process configuration file according to claim 1 and loading method is characterized in that: the mode of writing of described configuration file adopts the form of the capable CLI of command interface.
3. the preservation of multi-process configuration file according to claim 1 and loading method, it is characterized in that: described step 2. in, the result that the configuration file that foreground client is edited standardization carries out verification directly shows by the message distribution module, if configuration error, the request user is configured again.
4. the preservation of multi-process configuration file according to claim 1 and loading method, it is characterized in that: the configuration file that foreground client reads in the private memory by serial ports instruction is connected with serial line interface by PC, online order line to the configuration file editor that standardizes.
5. the preservation of multi-process configuration file according to claim 1 and loading method, it is characterized in that: foreground client reads configuration file in the private memory by the serial line interface download configuration file by serial ports instruction, and off-line is to the order line of the configuration file editor that standardizes.
6. the preservation of multi-process configuration file according to claim 1 and loading method is characterized in that: the content of standardization editor configuration file comprises: user cipher configuration, quality of service configuration, VLAN, the configuration of group of networks management agreement and port status configuration.
CN201010171149A 2010-05-07 2010-05-07 Saving and loading method for multiprocess configuration files Pending CN101860532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010171149A CN101860532A (en) 2010-05-07 2010-05-07 Saving and loading method for multiprocess configuration files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010171149A CN101860532A (en) 2010-05-07 2010-05-07 Saving and loading method for multiprocess configuration files

Publications (1)

Publication Number Publication Date
CN101860532A true CN101860532A (en) 2010-10-13

Family

ID=42946190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010171149A Pending CN101860532A (en) 2010-05-07 2010-05-07 Saving and loading method for multiprocess configuration files

Country Status (1)

Country Link
CN (1) CN101860532A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567081A (en) * 2010-12-07 2012-07-11 腾讯科技(深圳)有限公司 Multi-process-based global setting method and multi-process-based global setting system
CN103607702A (en) * 2013-11-15 2014-02-26 上海大汉三通通信股份有限公司 A method and system for carrying out communication among different platforms in short message service
CN109976798A (en) * 2019-02-02 2019-07-05 杭州迪普科技股份有限公司 A kind of reminding method and device
CN111209125A (en) * 2019-12-31 2020-05-29 瑞斯康达科技发展股份有限公司 Multi-process command line implementation method
CN113312072A (en) * 2021-06-11 2021-08-27 北京百度网讯科技有限公司 Configuration file updating method and device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1530851A (en) * 2003-03-12 2004-09-22 智邦科技股份有限公司 System and method for automatically arranged stackable network device
CN101551808A (en) * 2009-05-13 2009-10-07 山东中创软件商用中间件股份有限公司 Technology supporting multi-process embedded tree-based databases
CN100568186C (en) * 2006-09-08 2009-12-09 国际商业机器公司 Be used for the serialized method and system of integrality between implementation process
CN101604259A (en) * 2009-06-10 2009-12-16 深圳市共进电子有限公司 A kind of method of the multi-process synchronous scheduling based on embedded system
US7640335B1 (en) * 2002-01-11 2009-12-29 Mcafee, Inc. User-configurable network analysis digest system and method
CN101621398A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 Client/server system and method for automatic multi-client synchronous configuration thereof
WO2010017217A2 (en) * 2008-08-04 2010-02-11 Adtech-Gesi, Llc Methods, equipment and systems utilizing pre-stored picture data to represent missing video data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7640335B1 (en) * 2002-01-11 2009-12-29 Mcafee, Inc. User-configurable network analysis digest system and method
CN1530851A (en) * 2003-03-12 2004-09-22 智邦科技股份有限公司 System and method for automatically arranged stackable network device
CN100568186C (en) * 2006-09-08 2009-12-09 国际商业机器公司 Be used for the serialized method and system of integrality between implementation process
CN101621398A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 Client/server system and method for automatic multi-client synchronous configuration thereof
WO2010017217A2 (en) * 2008-08-04 2010-02-11 Adtech-Gesi, Llc Methods, equipment and systems utilizing pre-stored picture data to represent missing video data
CN101551808A (en) * 2009-05-13 2009-10-07 山东中创软件商用中间件股份有限公司 Technology supporting multi-process embedded tree-based databases
CN101604259A (en) * 2009-06-10 2009-12-16 深圳市共进电子有限公司 A kind of method of the multi-process synchronous scheduling based on embedded system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567081A (en) * 2010-12-07 2012-07-11 腾讯科技(深圳)有限公司 Multi-process-based global setting method and multi-process-based global setting system
CN102567081B (en) * 2010-12-07 2016-04-13 腾讯科技(深圳)有限公司 Based on overall method to set up and the system of multi-process
CN103607702A (en) * 2013-11-15 2014-02-26 上海大汉三通通信股份有限公司 A method and system for carrying out communication among different platforms in short message service
CN103607702B (en) * 2013-11-15 2018-09-07 上海大汉三通通信股份有限公司 A kind of method and system communicated between different platform in short message service
CN109976798A (en) * 2019-02-02 2019-07-05 杭州迪普科技股份有限公司 A kind of reminding method and device
CN111209125A (en) * 2019-12-31 2020-05-29 瑞斯康达科技发展股份有限公司 Multi-process command line implementation method
CN111209125B (en) * 2019-12-31 2023-09-26 瑞斯康达科技发展股份有限公司 Multi-process command line implementation method
CN113312072A (en) * 2021-06-11 2021-08-27 北京百度网讯科技有限公司 Configuration file updating method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
CN101860532A (en) Saving and loading method for multiprocess configuration files
CN108134690B (en) Network service deployment process control method, device and system
US10761816B2 (en) Method and system for determining interface compatibility based on component model
CN101088071A (en) Method and device for secure parameterization of electronic devices
CN109284140B (en) Configuration method and related equipment
CN102981882B (en) Analytic method and device
CN104572644A (en) Database updating device and database updating method
CN106878363A (en) A kind of information processing method, apparatus and system
CN105721451B (en) A kind of prolongable Modbus protocol analysis method and device
CN111831318A (en) Micro-service management system capable of automatically generating codes and code generation method
CN110795091B (en) Modularized route decoupling method, storage medium, electronic equipment and system
CN111399828A (en) Model-driven logic device modeling method and terminal
CN111984561A (en) IPMI command processing method, system, device and medium for BMC
CN111857860A (en) Method and system for realizing safe loading of plug-in
CN111209021A (en) Batch automatic burning method and system
CN108897556B (en) Set-top box production data writing method
CN106610899B (en) Test case generation method and device
CN112035169B (en) Jump processing method and device, computer equipment and computer readable storage medium
CN113001538B (en) Command analysis method and system
CN112685043A (en) Asynchronous conversion method, device and equipment of callback function and readable storage medium
US9672080B2 (en) Systems and methods for enabling dynamic calls via filtering, grouping, and substitution mechanisms
CN106599156A (en) Dynamic interceptor management method based on struts2 interceptor
CN105630634A (en) Application system disaster recovery backup switching method and device
CN111339378A (en) Character command auditing method and system in operation and maintenance management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518000, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Applicant after: Shenzhen Gongjin Electronics Co., Ltd.

Address before: 518000, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Applicant before: Shenzhen Gongjin Electronics Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN GONGJIN ELECTRONICS CO., LTD. TO: SHENZHEN GONGJIN ELECTRONIC CO., LTD.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20101013