CN101136825A - Asynchronous configuration information management method and system for client terminal/server structure - Google Patents

Asynchronous configuration information management method and system for client terminal/server structure Download PDF

Info

Publication number
CN101136825A
CN101136825A CNA2007101639101A CN200710163910A CN101136825A CN 101136825 A CN101136825 A CN 101136825A CN A2007101639101 A CNA2007101639101 A CN A2007101639101A CN 200710163910 A CN200710163910 A CN 200710163910A CN 101136825 A CN101136825 A CN 101136825A
Authority
CN
China
Prior art keywords
configuration information
configuration
management
active
memory
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
CNA2007101639101A
Other languages
Chinese (zh)
Other versions
CN101136825B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101639101A priority Critical patent/CN101136825B/en
Publication of CN101136825A publication Critical patent/CN101136825A/en
Application granted granted Critical
Publication of CN101136825B publication Critical patent/CN101136825B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The configuration information management system is composed of configuration management server (CMS) end, some configuration management client (CMC) ends, and independent memory and random memory mainly. The independent memory is as storage position of configuration file, and the random memory is as storage position of active configuration information (ACI). Being embedded in each application session (AP), CMC end provides each operational function for the active configuration information for AP the CMC end is located in. CMS checks-up whether ACI is modified regularly and forwardly; if yes, CMS saves current ACI as new configuration file. Raising stability for storing information of system configuration and efficiency for executing application session, the invention is not influenced by system operation and running each application including system upgrade.

Description

A kind of asynchronous configuration information management method of client terminal/server structure and system
Technical field
The invention belongs to the realization technology of multiprocess system internal configuration information management, particularly a kind of asynchronous configuration information management method, and the configuration information management system that adopts this method.
Background technology
In embedded systems such as Web TV (IPTV) set-top box, the method for preserving a configuration file under catalogue is separately usually adopted in the configuration management of a plurality of application processes.Make in this way, if configuration file is destroyed, wherein all configuration informations will be lost, and may cause the system can't operate as normal; And after software system updating, also can't preserve the customized information that disposes before the user.
At the problems referred to above, having occurred a kind of complementing each other with two parts of configuration informations at present is the double copies configuring management method of characteristics.But identical information is kept at different places and has brought the nonsynchronous problem of data under the abnormal conditions again.Meanwhile, all also there are following weakness in two kinds of methods more than: each is used the configuration information that disperses to be stored in everywhere and is difficult to be shared; The a series of frequent file operation that managing configuration information is brought has also reduced the execution efficient of using.
Summary of the invention
The technical problem to be solved in the present invention is that the multi-process configuration information for embedded system provides a kind of good stability based on client terminal/server structure, management method that efficient is high, is difficult for sharing to solve configuration information data in the prior art, the not high problem of execution efficient of application process; The present invention also provides a kind of configuration information management system that adopts this method.
For solving the problems of the technologies described above, the configuration information management method based on client terminal/server structure that the present invention proposes is as follows:
Use relatively independent memory device or memory partition memory location, with relatively for a long time, stably preserve configuration file as configuration file;
System's each several part initial configuration is provided by the configuration management server unification, the configuration file of configuration management server reading and saving when starting also resolves to active configuration information, and active configuration information is stored in the random asccess memory (RAM) that the fast reading and writing access ability can be provided;
The configuration management client is embedded in each application process, for the application process at its place provides various operating functions to active configuration information, follows the rule of read-write mutual exclusion between the operations of each configuration management client to active configuration information;
Whether the configuration management client does not directly report to configuration management server to the operating result of active configuration information, and be modified by the regular initiatively Survey Operations configuration information of configuration management server.When being checked through active configuration information and being modified, configuration management server saves as new configuration file with current active configuration information.
Described active configuration information is become with some auxiliary management parameter group by three grades of chained lists.Wherein, three grades of chained lists comprise the concrete data of each configuration item; Auxiliary management parameters comprises reading and writing data mark, modification time, configuration information index etc., is used for the various operations of auxiliary configuration administrative client to active configuration information.
Described configuration management client comprises every inquiries at different levels, modification, interpolation and deletion to the operation of active configuration information.
Many times, the configuration management client is to carry out in groups even in bulk to the modification of active configuration information, writes configuration file so continually it is come into force, and must bring unnecessary busy for configuration management server and whole system.For this reason, configuration management server Survey Operations configuration information of the present invention and the method for preserving configuration file can be improved to: if do not revise, then wait for next time and checking; If modification is arranged, judge then whether the time gap current time of Last modification surpasses the time limit of setting:, then wait for next time and checking if do not surpass the time limit of setting; If surpassed the time limit of setting, configuration management server saves as new configuration file with current active configuration information.Like this, can effectively avoid client to active configuration information to bring revise in groups, in batch configuration management server and whole system unnecessary busy, improve the storage stability of system configuration information and the execution efficient of application process.
As mentioned above, in fact configuration management server of the present invention is not that the Synchronous Processing client is upgraded the modification of configuration information data, therefore is called asynchronous configuration information management method.
The asynchronous configuration information management system based on client terminal/server structure that the present invention proposes mainly is made up of configuration management server end, some configuration management clients, Stand Alone Memory and random asccess memory (RAM).
Stand Alone Memory is used for relatively for a long time, stably preserving configuration file as the memory location of configuration file; Random asccess memory is used for the configuration information of temporary transient storage activities as the memory location of active configuration information, and random asccess memory can provide the fast reading and writing access ability.
The configuration management client is embedded in each application process, for the application process at its place provides various operating functions to active configuration information, follow the rule of read-write mutual exclusion between the operations of each configuration management client to active configuration information, the configuration management client temporarily is stored in the random asccess memory the operating result of active configuration information, and does not directly report to configuration management server.
Whether configuration management server regularly initiatively Survey Operations configuration information is modified, and when being checked through active configuration information and being modified, configuration management server saves as new configuration file with current active configuration information.
Described Stand Alone Memory can be quickflashing (Flash) memory or other alternative memories.
Described active configuration information is become with some auxiliary management parameter group by three grades of chained lists.Wherein, three grades of chained lists comprise the concrete data of each configuration item; Auxiliary management parameters comprises reading and writing data mark, modification time, configuration information index etc., is used for the various operations of auxiliary configuration administrative client to active configuration information.
Described configuration management client comprises every inquiries at different levels, modification, interpolation and deletion to the operation of active configuration information.
The flow process that adopts following method improvement configuration management server Survey Operations configuration information and preserve configuration file, can effectively avoid client to active configuration information to bring revise in groups, in batch configuration management server and whole system unnecessary busy, improve the storage stability of system configuration information and the execution efficient of application process:, then wait for next time and checking if do not revise; If modification is arranged, judge then whether the time gap current time of Last modification surpasses the time limit of setting:, then wait for next time and checking if do not surpass the time limit of setting; If surpassed the time limit of setting, configuration management server saves as new configuration file with current active configuration information.
The present invention is based on the asynchronous configuration information management method and the system of client terminal/server structure, use relatively independent data storage device or memory partition memory location as configuration file, can guarantee that configuration file can stablize long preservation, and be not subjected to system's operation and comprise system upgrade each use the influence of operation; The three grades of list structures and the auxiliary management parameters of active configuration information can be the client configuration information operation of providing convenience efficiently, and rational space management can be provided; Configuration management server of the present invention is not synchronously to handle client the modification of configuration information data is upgraded, it is unnecessary busy effectively to have avoided client to bring for configuration management server and whole system to revising in groups, in batch of active configuration information, has improved the storage stability of system configuration information and the execution efficient of application process.
Description of drawings
Fig. 1 is a configuration information management of the present invention system basic block diagram.
Fig. 2 is the flow chart that configuration management server of the present invention is preserved configuration file.
Fig. 3 is the structural representation of three grades of chained lists of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is described in further detail.
Fig. 1 is the structural representation of configuration information management of the present invention system.As shown in the figure, the asynchronous configuration information management system of present embodiment mainly is made up of configuration management server end, a plurality of configuration management client, quickflashing (Flash) memory and random asccess memory (RAM).
The Flash memory is as the memory location of configuration file, and the space of the 256K size that present embodiment begins certain physics address on the Flash memory is used for all profile informations of stable storage system as a configure partition independently; The zone of a certain-length of application is used for the configuration information of temporary transient storage activities as the memory location of active configuration information on the RAM memory, and the RAM memory can provide the fast reading and writing access ability.
The configuration management client is embedded in each application process, for the application process at its place provides various operating functions to active configuration information, follow the rule of read-write mutual exclusion between the operations of each configuration management client to active configuration information, the configuration management client is kept in the RAM memory the operating result of active configuration information, and does not directly report to the configuration management server end.
Whether configuration management server end regularly active Survey Operations configuration information is modified: if do not revise, then wait for next time and checking; If modification is arranged, judge then whether the time gap current time of Last modification surpasses the time limit of setting:, then wait for next time and checking if do not surpass the time limit of setting; If surpassed the time limit of setting, the configuration management server end saves as new effective configuration file with current active configuration information, is stored in the Flash memory.
Below in the IPTV set-top-box system, be applied as example with the present invention, describe operational process of the present invention in detail.When the IPTV set-top-box system starts, at first move configuration management server, the operational process of server is as follows:
(1) various initialization operations, and check the availability of required all resources of configuration information management system's normal operation, comprise the availability of each memory;
(2) on the Flash memory, choose up-to-date available effective configuration file;
(3) resolve this configuration file, and configuration information that will be wherein is converted to three grades of linked list data structure and stores on the RAM memory;
(4) allow the client-access active configuration information, inquire about, read, revise, add, bookkeeping such as deletion;
(5) data markers of 1 second time circulatory monitoring RAM memory fixed position is at interval determined the modification situation of active configuration information, and with 100 milliseconds be the performance of judging in the time limit when last group or a collection of configuration modification, its process is as shown in Figure 2;
(6) when satisfying condition three grades of current list structures are converted to configuration file format, write the Flash memory, write data is finished and is new effective configuration file;
(7) restore data is labeled as " unmodified ";
(8) continue (5) circularly monitoring that goes on foot.
Each client promptly can the access activity configuration information after server prepares, and its flow process is generally:
(1) initialization client, the mirror image of acquisition active configuration information;
(2) when needs access configuration information, check its Read-Write Locks earlier, allow operation just to continue, do not allow then to wait for certain hour;
(3) configuration information is made corresponding operating, for example read the configuration information item and be presented at user interface or directly apply to volume, standard etc., and for example the information of having done on user interface or the function to revise is write configuration;
(4) if revised configuration information, then " revise " at the appointed position mark, and the time of record modification.
The present invention adopts general configuration file form, stores Flash memory and the object that resolves to active configuration information into as configuration management server, and the configuration file form is as follows:
[section-X」
key-X-001=value-X-001
The form of considering general generic configuration file is item-key-key assignments (section-key-value) form, and active configuration information of the present invention is become with some auxiliary management parameter group by three grades of chained lists, for client-access and operation.Three grades of chained lists comprise the concrete data of each configuration item, three grades of list structures as shown in Figure 3: the first order is " (section) ", and the second level is " key (key) ", and the third level is " key assignments (value) ".Auxiliary management parameters comprises reading and writing data mark, modification time, configuration information index etc.The reading and writing data mark is used for the read-write reference count of recording configuration information, with auxiliary realization read-write mutual exclusion; Modification time has write down the time of Last modification active configuration information; The memory location of configuration information index summary record configuration information item is with convenient accessed, and the information that has also write down the idle free space of memory is used for distribution, the recovery and reuse in managed storage space.The structure of active configuration information is unified open to all configuration management clients, and this data structure can be the configuration information operation efficiently of providing convenience of configuration management client, and rational space management can be provided.
The present invention is based on the asynchronous configuration information management method and the system of client terminal/server structure, use relatively independent data storage device or memory partition memory location as configuration file, can guarantee that configuration file can stablize long preservation, and be not subjected to system's operation and comprise system upgrade each use the influence of operation.Configuration management server of the present invention is not synchronously to handle client the modification of configuration information data is upgraded, it is unnecessary busy effectively to have avoided client to bring for configuration management server and whole system to revising in groups, in batch of active configuration information, has improved the storage stability of system configuration information and the execution efficient of application process.

Claims (10)

1. the asynchronous configuration information management method of a client terminal/server structure is characterized in that, uses relatively independent memory device or the memory partition memory location as configuration file, with relatively for a long time, stably preserve configuration file;
System's each several part initial configuration is provided by the configuration management server unification, the configuration file of configuration management server reading and saving when starting also resolves to active configuration information, and this active configuration information is stored in the random asccess memory that the fast reading and writing access ability can be provided;
The configuration management client is embedded in each application process, for the application process at its place provides various operating functions to active configuration information, follows the rule of read-write mutual exclusion between the operations of each configuration management client to active configuration information;
The configuration management client does not directly report to configuration management server to the operating result of active configuration information, and whether be modified by the regular initiatively Survey Operations configuration information of configuration management server, when being checked through active configuration information and being modified, configuration management server saves as new configuration file with current active configuration information.
2. asynchronous configuration information management method according to claim 1 is characterized in that, described configuration management server Survey Operations configuration information and the method for preserving configuration file further comprise:
If do not revise, then wait for next time and checking; If modification is arranged, judge then whether the time gap current time of Last modification surpasses the time limit of setting:, then wait for next time and checking if do not surpass the time limit of setting; If surpassed the time limit of setting, configuration management server saves as new configuration file with current active configuration information.
3. asynchronous configuration information management method according to claim 1 and 2 is characterized in that, described active configuration information is become with some auxiliary management parameter group by three grades of chained lists; Three grades of chained lists comprise the concrete data of each configuration item; Auxiliary management parameters comprises reading and writing data mark, modification time and configuration information index, is used for the various operations of auxiliary configuration administrative client to active configuration information.
4. asynchronous configuration information management method according to claim 3 is characterized in that, described configuration management client comprises every inquiries at different levels, modification, interpolation and deletion to the operation of active configuration information.
5. the asynchronous configuration information management system of a client terminal/server structure is characterized in that mainly being made up of configuration management server end, some configuration management clients, Stand Alone Memory and random asccess memory;
Stand Alone Memory is used for relatively for a long time, stably preserving configuration file as the memory location of configuration file; Random asccess memory is used for the configuration information of temporary transient storage activities as the memory location of active configuration information, and random asccess memory can provide the fast reading and writing access ability;
The configuration management client is embedded in each application process, for the application process at its place provides various operating functions to active configuration information, follow the rule of read-write mutual exclusion between the operations of each configuration management client to active configuration information, the configuration management client temporarily is stored in the random asccess memory the operating result of active configuration information, and does not directly report to configuration management server;
Whether configuration management server regularly initiatively Survey Operations configuration information is modified, and when being checked through active configuration information and being modified, configuration management server saves as new configuration file with current active configuration information.
6. asynchronous configuration information management system according to claim 5 is characterized in that, described configuration management server Survey Operations configuration information and the method for preserving configuration file further comprise:
If do not revise, then wait for next time and checking; If modification is arranged, judge then whether the time gap current time of Last modification surpasses the time limit of setting:, then wait for next time and checking if do not surpass the time limit of setting; If surpassed the time limit of setting, configuration management server saves as new configuration file with current active configuration information.
7. according to claim 5 or 6 described asynchronous configuration information management systems, it is characterized in that described active configuration information is become with some auxiliary management parameter group by three grades of chained lists; Three grades of chained lists comprise the concrete data of each configuration item; Auxiliary management parameters comprises reading and writing data mark, modification time and configuration information index, is used for the various operations of auxiliary configuration administrative client to active configuration information.
8. asynchronous configuration information management system according to claim 7 is characterized in that, described configuration management client comprises every inquiries at different levels, modification, interpolation and deletion to the operation of active configuration information.
9. according to claim 5 or 6 described asynchronous configuration information management systems, it is characterized in that described Stand Alone Memory is quickflashing (Flash) memory.
10. asynchronous configuration information management system according to claim 8 is characterized in that, described Stand Alone Memory is quickflashing (Flash) memory.
CN2007101639101A 2007-10-10 2007-10-10 Asynchronous configuration information management method and system for client terminal/server structure Expired - Fee Related CN101136825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101639101A CN101136825B (en) 2007-10-10 2007-10-10 Asynchronous configuration information management method and system for client terminal/server structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101639101A CN101136825B (en) 2007-10-10 2007-10-10 Asynchronous configuration information management method and system for client terminal/server structure

Publications (2)

Publication Number Publication Date
CN101136825A true CN101136825A (en) 2008-03-05
CN101136825B CN101136825B (en) 2010-06-09

Family

ID=39160673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101639101A Expired - Fee Related CN101136825B (en) 2007-10-10 2007-10-10 Asynchronous configuration information management method and system for client terminal/server structure

Country Status (1)

Country Link
CN (1) CN101136825B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566943A (en) * 2008-04-24 2009-10-28 深圳市同洲电子股份有限公司 Method, terminal and system for controlling terminal software functions
CN101799780A (en) * 2010-03-10 2010-08-11 成都市华为赛门铁克科技有限公司 Configuration information file processing method, system, server, and virtual tape library equipment
CN101355775B (en) * 2008-08-15 2011-09-21 中兴通讯股份有限公司 Apparatus for leading configuration data with batch and mutual exclusion method for multi-client terminal
CN102546558A (en) * 2010-12-29 2012-07-04 中兴通讯股份有限公司 Method for switching protocols in optical network unit and optical network unit
CN102567081A (en) * 2010-12-07 2012-07-11 腾讯科技(深圳)有限公司 Multi-process-based global setting method and multi-process-based global setting system
CN102780703A (en) * 2012-08-07 2012-11-14 青岛海信宽带多媒体技术有限公司 Information writing system and method of set-top box
CN103365747A (en) * 2013-07-10 2013-10-23 深圳市共进电子股份有限公司 Automatic configuration reducing method for embedded electronic equipment, and automatic configuration reducing system
CN104104532A (en) * 2013-04-07 2014-10-15 浙江大华技术股份有限公司 Information processing method, device and system
CN105827452A (en) * 2016-04-20 2016-08-03 上海斐讯数据通信技术有限公司 Router configuration information storage method, restoration method, device, router and server
CN110632429A (en) * 2019-10-09 2019-12-31 哈尔滨市科佳通用机电股份有限公司 Configuration method for testing items of on-board detector of cab signal on-board equipment
CN112099841A (en) * 2020-08-28 2020-12-18 北京同邦卓益科技有限公司 Method and system for generating configuration file

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100363895C (en) * 2001-12-05 2008-01-23 微软公司 Configuration and management system for movable and imbedded equipment
CN1992735A (en) * 2005-12-28 2007-07-04 中兴通讯股份有限公司 Implementation method for IPTV set-top box access network and service fulfillment
CN100403799C (en) * 2006-04-11 2008-07-16 华为技术有限公司 System and method for implementing IPTV application control

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566943A (en) * 2008-04-24 2009-10-28 深圳市同洲电子股份有限公司 Method, terminal and system for controlling terminal software functions
CN101355775B (en) * 2008-08-15 2011-09-21 中兴通讯股份有限公司 Apparatus for leading configuration data with batch and mutual exclusion method for multi-client terminal
CN101799780A (en) * 2010-03-10 2010-08-11 成都市华为赛门铁克科技有限公司 Configuration information file processing method, system, server, and virtual tape library equipment
CN102567081A (en) * 2010-12-07 2012-07-11 腾讯科技(深圳)有限公司 Multi-process-based global setting method and multi-process-based global setting system
CN102546558A (en) * 2010-12-29 2012-07-04 中兴通讯股份有限公司 Method for switching protocols in optical network unit and optical network unit
CN102546558B (en) * 2010-12-29 2015-10-21 中兴通讯股份有限公司 The changing method of agreement and optical network unit in a kind of optical network unit
CN102780703A (en) * 2012-08-07 2012-11-14 青岛海信宽带多媒体技术有限公司 Information writing system and method of set-top box
CN104104532B (en) * 2013-04-07 2017-06-16 浙江大华技术股份有限公司 A kind of information processing method, apparatus and system
CN104104532A (en) * 2013-04-07 2014-10-15 浙江大华技术股份有限公司 Information processing method, device and system
CN103365747A (en) * 2013-07-10 2013-10-23 深圳市共进电子股份有限公司 Automatic configuration reducing method for embedded electronic equipment, and automatic configuration reducing system
CN103365747B (en) * 2013-07-10 2016-05-04 深圳市共进电子股份有限公司 A kind of method of EMBEDDED AVIONICS configuration automatic reduction and configuration automatic reduction system
CN105827452A (en) * 2016-04-20 2016-08-03 上海斐讯数据通信技术有限公司 Router configuration information storage method, restoration method, device, router and server
CN110632429A (en) * 2019-10-09 2019-12-31 哈尔滨市科佳通用机电股份有限公司 Configuration method for testing items of on-board detector of cab signal on-board equipment
CN112099841A (en) * 2020-08-28 2020-12-18 北京同邦卓益科技有限公司 Method and system for generating configuration file

Also Published As

Publication number Publication date
CN101136825B (en) 2010-06-09

Similar Documents

Publication Publication Date Title
CN101136825B (en) Asynchronous configuration information management method and system for client terminal/server structure
CN102193807B (en) Method for upgrading image file, server and computer network system
CN104679772B (en) Method, apparatus, equipment and the system of file are deleted in Distributed Data Warehouse
US11442961B2 (en) Active transaction list synchronization method and apparatus
CN107423404B (en) Flow instance data synchronous processing method and device
CN111857777B (en) System updating method and device based on double-core intelligent ammeter and computer equipment
US10990312B2 (en) Method, apparatus, device and storage medium for processing data location of storage device
CN114003439B (en) Data backup method, device, equipment and storage medium
CN102314368A (en) Method and equipment for updating configuration data of server program
CN110471977B (en) Data exchange method, device, equipment and medium
CN113010479A (en) File management method, device and medium
CN103513932B (en) A kind of data processing method and device
CN106874343B (en) Data deletion method and system for time sequence database
CN103544097B (en) The log storing method of embedded system, system and log read method and system
CN103475690A (en) Memcached instance configuration method and Memcached instance configuration system
CN111966531B (en) Data snapshot method and device, computer equipment and storage medium
CN114328007B (en) Container backup and restoration method, device and medium thereof
CN113590643B (en) Data synchronization method, device, equipment and storage medium based on dual-track database
CN105068896A (en) Data processing method and device based on RAID backup
CN115599575A (en) Novel method for solving concurrent activation and deactivation of cluster logical volume
US20070061530A1 (en) Method for storage of digital data in a mainframe data center and associated device
CN110297673B (en) Method and storage medium for optimizing loading of memory data
CN106921524B (en) Method and device for configuring command line tag
CN105117282A (en) Input and output request splitting method and device
CN114610243B (en) Method, system, storage medium and equipment for converting thin volume

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100609

Termination date: 20161010