WO2012016400A1 - 配置文件管理的方法及装置 - Google Patents

配置文件管理的方法及装置 Download PDF

Info

Publication number
WO2012016400A1
WO2012016400A1 PCT/CN2010/078099 CN2010078099W WO2012016400A1 WO 2012016400 A1 WO2012016400 A1 WO 2012016400A1 CN 2010078099 W CN2010078099 W CN 2010078099W WO 2012016400 A1 WO2012016400 A1 WO 2012016400A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
value
item
configuration file
configuration item
Prior art date
Application number
PCT/CN2010/078099
Other languages
English (en)
French (fr)
Inventor
马忠平
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012016400A1 publication Critical patent/WO2012016400A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for managing profile.
  • BACKGROUND In the field of communication, especially in the communication field of an application program programmed with a high-level programming language such as C, C++, or Java, an application generally needs to read an initialization configuration file at startup, and is generally suffixed with ini. document.
  • the capital letter INI is used below to indicate the initialization configuration file.
  • GetPrivateProfilelnt hereinafter referred to as A function
  • GetPrivateProfileString hereinafter referred to as B function
  • Configure Module A module in the application, providing a framework for the coder to set the configuration segment name, configuration item name, default value, maximum and minimum Value, precondition, postcondition, comment; and is responsible for generating a template configuration file for all configured settings.
  • This template configuration file contains all the settings.
  • Configure Section (CS): Mainly a collective name for a set of thousands of configuration items with the same nature.
  • Configure Item CI
  • Pre-conditions Prerequisites for the configuration item to function are generally other configuration items that can control the configuration item.
  • Post-condition A function module that checks the configuration item.
  • a primary object of the present invention is to provide a method and apparatus for managing a configuration file to solve the above-mentioned problem that the initialization configuration file is complicated in code and high in maintenance cost.
  • a method for configuration file management including: collecting configuration information at a preset location of a configuration framework; automatically generating a configuration file template by receiving configuration information; performing based on a configuration file template Management operations on configuration files.
  • the management operations include: adding, modifying, and/or deleting configuration items.
  • performing the management operation on the configuration file includes: receiving configuration information of the newly added configuration item; and writing configuration information of the configuration item to the configuration file based on the configuration file template.
  • an apparatus for configuration file management includes: a collection module configured to collect configuration information at a preset location of a configuration framework; a configuration framework module configured to automatically generate a configuration file according to configuration information Template; management module, for generating profiles based on Line management operations on the configuration file.
  • FIG. 1 is a flow chart of a configuration file management method according to a method embodiment of the present invention
  • FIG. 2 is a flow chart of a method for managing a configuration file according to a second embodiment of the method of the present invention
  • FIG. 4 is a screenshot of a configuration item required in a configuration file management method according to Embodiment 4 of the present invention
  • FIG. 5 is a fourth embodiment of a method according to the present invention.
  • Figure 6 is a screenshot of a configuration file template in the configuration file management method according to the method embodiment of the present invention;
  • Figure 7 is a configuration file management device of the device embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for managing a configuration file according to Embodiment 1 of the method of the present invention.
  • the embodiment includes: Step S102: Collecting configuration information at a preset location of the configuration framework; Step S104, automatically generating a configuration file template according to the configuration information; Step S106, performing configuration on the basis of the generated configuration file template File management operations.
  • a configuration framework is first defined.
  • the configuration framework is a code module written in the C/C++ language of the high-level programming language. This code module sets the input location of various configuration information of the configuration item, which is convenient for configuring the configuration operator to add, delete, and tamper with the configuration information of the configuration item, and the configuration information includes default value, maximum value, minimum value, Preconditions, postconditions, and comment descriptions.
  • the configuration module After receiving the above configuration information, the configuration module provides a framework for generating a configuration file interface, through this interface, a configuration can be ⁇ ⁇ I frame contains all the configuration items in the related information is saved in a format in INI In the configuration file, the supply is used. This configuration file is called a configuration file template.
  • the configuration operator can modify the default value of the configuration item based on the template to meet the actual application operation requirements.
  • managing the configuration file based on the generated configuration file template includes: adding, modifying, and/or deleting configuration items based on the configuration file template.
  • the configuration information includes: configuration segment name, configuration item name, configuration item default value, configuration item minimum value, configuration item maximum value, configuration item precondition, configuration item postcondition, configuration item comment, and/or configuration item usage description.
  • the configuration framework is a preset interface for generating a configuration file template. In the prior art, if the operator manually saves all the information of the configuration item one by one in the edited INI file, it is very cumbersome and error-prone.
  • FIG. 2 is a flowchart of a method for managing a configuration file in Embodiment 2 of the method of the present invention.
  • Step S202 Perform coding according to the location set by the configuration framework, and mainly set a configuration segment name, a configuration item name, a configuration item default value, a configuration item minimum value, a configuration item maximum value, a configuration item pre-condition, Configuration item post-conditions, configuration item comments, and usage instructions;
  • Step S204 invoking the configuration profile template interface provided by the configuration framework to generate a configuration file template;
  • Step S206 by viewing the maximum value, the minimum value, and the annotation information, according to the application The actual application of the program, modify the value of the configuration item in the INI, so that it meets the actual application requirements;
  • Step S208 The configuration module reads the 4 tampered INI, automatically corrects the pre-conditions and the post-conditions, and guarantees the application.
  • FIG. 3 is a flowchart of a third embodiment configuration file management method according to the method of the present invention. As shown in FIG.
  • Step S302 Filling in a newly added configuration item in the configuration module of the configuration module;
  • Step S304 setting information of the configuration item, including but not limited to: name, default value, The maximum value, the minimum value, the pre-conditions, the post-conditions, and the comment, etc.;
  • Step S306 the new configuration item is added to the used configuration file for subsequent maintenance according to the format of the configuration file.
  • This embodiment can be applied to all applications that have a bootloader configuration file in a high-level programming language.
  • This embodiment achieves the purpose of adding a configuration item to the configuration file, and has all the beneficial effects of the second embodiment of the method, and the invention can be used to plan the management INI, and the maintainability of the code can be enhanced. Reduce the error ⁇ rate.
  • FIG. 4 is a screenshot of required configuration items in the fourth profile management method according to the method embodiment of the present invention. Each row in the diagram represents the configuration items required by the application. According to this configuration requirement, a configuration framework is generated.
  • FIG. 5 is a screenshot of a configuration framework in a method for managing a profile according to an embodiment of the method of the present invention. Tampering, adding, and deleting operations on the above configuration framework.
  • the first column of the frame is the configuration segment
  • the second column is the configuration item
  • the third column is the data type
  • the fourth column is the default value
  • the fifth column is the minimum value
  • the sixth column is the maximum value
  • the ninth column is the front Condition
  • the tenth column is the postcondition
  • the eleventh column is the comment description.
  • All configuration information described in this configuration framework has an interface function provided by the configuration framework to generate a configuration file template.
  • FIG. 6 is a screenshot of a profile template in the fourth profile management method according to the method embodiment of the present invention.
  • the second column in this template “; INT(1 ⁇ 16)"
  • the number of log levels,, indicates the comment description, let the operator understand the meaning of this configuration item.
  • the operator can perform various operations on this configuration file template.
  • the actual example of adding a configuration item is:
  • the purpose is to add a line of code to the configuration section of the configuration
  • the content of the code is filled in the configuration item name, data type, default value, minimum value, maximum value, precondition, and after the requirements of each column. Condition, comment description.
  • FIG. 7 is a schematic diagram of a configuration file management apparatus according to Embodiment 1 of the apparatus of the present invention. As shown in FIG.
  • the embodiment includes: a collection module 702, configured to receive configuration information of a configuration file; a configuration framework module 704, connected to the receiving module 702, configured to generate a configuration file template for the configuration information; It is connected to the configuration framework module 704, and is configured to encapsulate management operations on the configuration file based on the generated configuration file.
  • the method implemented in this embodiment can refer to the related descriptions of the method embodiments 1 to 4, and has all the beneficial effects of the foregoing embodiments, and the details are not repeated in J3 ⁇ 4.
  • Apparatus Embodiment 2 This embodiment will explain the operation of adding a configuration item and 4 tampering the configuration value on the basis of the first embodiment of the apparatus.
  • the management module When the configuration item is added, the management module includes: a receiving submodule, configured to receive configuration information of the newly added configuration item; and a writing submodule, configured to write the configuration information of the configuration item into the configuration file by using the configuration file template.
  • the management module includes: a receiving submodule, configured to receive a repair value of the configuration item configuration value; a school-risk sub-module, configured to pre-configure the pre-condition of the configuration item, _ ? The value is verified; the sub-module is written, and when the verification is successful, the configuration value of the configuration item is repaired through the configuration file. The value is written to the configuration file.
  • the method implemented in this embodiment can refer to the related descriptions of the second and third embodiments of the method, and has all the beneficial effects of the foregoing embodiments, and is not repeatedly described herein.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.

Description

配置文件管理的方法及装置 技术领域 本发明涉及通信领域,具体而言, 涉及一种配置文件管理的方法及装置。 背景技术 在通讯领域, 特别是釆用 C, C++, java等高级编程语言进行编程的应 用程序的通讯领域,应用程序在启动的时候一般都需要读取初始化配置文件, 一般都是以 ini作为后缀的文件。下文使用大写字母 INI来表示初始化配置文 件。 为了配合应用程序便于读取 INI 中的信息供应用程序运行使用, 在 Windows 系统库函数中, 提供了读取数字的 GetPrivateProfilelnt (下文称 A 函数)和读取字符串的 GetPrivateProfileString(下文称 B函数),用来读取 INI 中的配置数据。 在介绍相关技术前, 先介绍一下相关术语: 配置模块 ( Configure Module, 简称为 CM ): 应用程序中的一个模块, 提供框架供编码人员设定配置段名称, 配置项名称, 默认值, 最大最小值, 前置条件, 后置条件, 注释; 并负责将设定的所有的配置内容生成一个模版 配置文件, 这个模版配置文件包含所有设定的信息。 配置段( Configure Section, 简称为 CS ): 主要是一组若千个有相同性质 归属的配置项的统称。 配置项(Configure Item, 简称为 CI ): , 可以进行爹改的单位, 属于配置 段。 前置条件: 该配置项起作用的先决条件, 一般就是可以控制该配置项的 其他配置项。 后置条件: 一个检查该配置项的功能模块, 只有符合后置条件的配置项 才会被配置模块认可, 继而被应用程序认可。 注释: 供配置文件使用者理解该配置项含义的描述。 最大值: 配置项能允许的最大边界。 最小值: 配置项能允许的最小边界。 现有技术中,通常应用程序总是使用了大量堆积的 A函数和 B函数混杂 在一起读取 INI, 可以看出为了读取 INI, 而设计了这样的代码, 如果配置项 非常多, 那么代码中又有大量的这样的代码,会导致维护成本以及难度提高, 易出现误修改问题, 包括范围设定和默认值等。 而且基于这样代码产生的 INI, 一旦实际使用了, 在运行过程中容易出错, 也很难定位问题, 从而给维 护人员带来了困扰和不便。 在实现本发明的过程中, 发明人意识到现有技术存在如下问题: 初始化 配置文件代码复杂, 维护成本高。 发明内容 本发明的主要目的在于提供一种配置文件管理的方法及装置, 以解决上 述的初始化配置文件代码复杂, 维护成本高问题。 才艮据本发明的一个方面, 提供了一种配置文件管理的方法, 包括: 在配 置框架的预设位置釆集配置信息; 居接收的配置信息自动生成配置文件模 版; 基于配置文件模版, 进行对配置文件的管理操作。 优选地, 管理操作包括: 配置项的添加、 修改, 和 /或删除。 优选地, 当进行配置项的添加时, 进行对配置文件的管理操作包括: 接 收新增加配置项的配置信息; 基于配置文件模板, 将配置项的配置信息写入 配置文件。 优选地, 当对配置项的配置值进行爹改时, 进行对配置文件的管理操作 的步骤包括: 接收配置值的修改值; 根据配置项的前置条件, 对修改值进行 校验; 当校验成功时, 基于配置文件模板, 将配置值的修改值写入配置文件。 其中 ,配置框架提供 居接收的配置信息自动生成配置文件模版的接口。 根据本发明的另一个方面, 提供一种配置文件管理的装置, 包括: 釆集 模块, 用于在配置框架的预设位置釆集配置信息; 配置框架模块, 用于根据 配置信息自动生成配置文件模版; 管理模块, 用于基于生成的配置文件, 进 行对配置文件的管理操作。 本发明中, 釆用基于配置文件模板管理配置文件方法, 使得配置文件的 操作模块化, 从而规范了配置文件的管理, 给维护人员带来操作的便捷性和 确定性。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1为才艮据本发明方法实施例一配置文件管理方法的流程图; 图 2才艮据本发明方法实施例二配置文件管理方法的流程图; 图 3才艮据本发明方法实施例三配置文件管理方法的流程图; 图 4为才艮据本发明方法实施例四配置文件管理方法中所需配置项的屏幕 截图; 图 5为才艮据本发明方法实施例四配置文件管理方法中配置框架的屏幕截 图; 图 6为才艮据本发明方法实施例四配置文件管理方法中配置文件模板的屏 幕截图; 图 7为 居本发明装置实施例一配置文件管理装置的示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 为了使本发明的目的、 技术方案和实现方法更加清楚, 下面结合附图对 本发明再故进一步说明。 方法实施例一: 图 1为 居本发明方法实施例一配置文件管理方法的流程图。 如图 1所 示, 本实施例包括: 步骤 S 102 , 在配置框架的预设位置釆集配置信息; 步骤 S 104, 居配置信息自动生成配置文件模版; 步骤 S 106 , 基于生成的配置文件模版, 进行对配置文件的管理操作。 本实施例中, 首先定义一个配置框架。 该配置框架是一个釆用高级程序 语言 C/C++语言编写而成的一个代码模块。 这个代码模块设定了配置项的各 种配置信息的输入地方, 便于配置^ I架操作人员来添加、 删除、 4爹改配置项 的配置信息, 配置信息包括默认值、 最大值、 最小值、 前置条件、 后置条件 和注释描述。 在接收到上述各项配置信息后, 配置框架模块提供了一个生成 配置文件接口, 通过这个接口, 可以^ 1配置^ I架里所含的所有配置项以及相 关信息都以 INI的格式保存在一个配置文件里, 供应用使用。 这个配置文件 称之为配置文件模版。 配置操作人员可以在该模版的基础上修改配置项的默 认值, 以符合实际应用运行要求。 本实施例中, 基于生成的配置文件模板对配置文件进行管理包括: 基于 配置文件模板进行配置项的添加、 修改, 和 /或删除。 配置信息包括: 配置段 名称、 配置项名称、 配置项默认值、 配置项最小值、 配置项最大值、 配置项 前置条件、 配置项后置条件、 配置项注释、 和 /或配置项使用说明。 此外, 本 实施例中, 配置框架为预设的生成配置文件模板的接口。 现有技术中, 如果由操作人员将配置项所有的信息手工逐个保存在编辑 的 INI文件中, 那么非常繁瑣, 而且容易出错。 本实施例中, 由于所有的配 置项以及相关信息都是以代码的形式在配置框架中进行釆集, 配置框架模块 提供了一个接口函数, 应用通过调用这个接口函数, 就可以直接生产一个配 置文件模版。 该配置文件模版基于配置框架生成, 含有丰富的信息, 便于操 作人员维护和 4爹改。 本实施例中, 将配置文件封装入配置文件模板, 通过配置文件模板对配 置文件进行操作, 使得维护操作人员能够便捷的操作, 最大限度的保证业务 的成功完成, 而且降氏了维护成本。 方法实施例二: 图 2 居本发明方法实施例二配置文件管理方法的流程图。如图 2所示, 本实施例包括: 步骤 S202, 根据配置框架设定的位置进行编码, 主要设定配置段名称, 配置项名称、 配置项默认值、 配置项最小值、 配置项最大值、 配置项前置条 件、 配置项后置条件、 配置项的注释和使用说明; 步骤 S204,调用配置框架提供的生成配置文件模版接口生成配置文件模 版; 步骤 S206: 通过查看最大值、 最小值, 以及注释等信息, 根据应用程序 应用的实际场景, 修改 INI中配置项的值, 使得符合实际应用需求; 步骤 S208: 配置模块读取 4爹改后的 INI, 自动地校-险前置条件、 后置条 件, 保证应用程序的稳定运行于预先设定的条件下。 本方法实施例中, 说明了生产配置文件模板和对配置项的值进行爹改的 步 4聚, 具有方法实施例一的全部有益效果, 此处不再重述。 并且4舞而及至, 可以实现对封装的配置文件的各种操作, 从而使得配置文件的使用模块化, 平台化、 规范化、 操作 (修改, 添加, 删除) 便捷化。 方法实施例三: 本方法实施例中, 配置文件模板生成的步 4聚与方法实施例一和二相同, 因此没有在本实施例中体现。 图 3才艮据本发明方法实施例三配置文件管理方 法的流程图。 如图 3所示, 本实施例包括: 步骤 S302, 在配置模块的^ I架中填入新增加的配置项; 步骤 S304, 设定配置项的信息, 包括但不限于: 名称、 默认值、 最大值、 最小值、 前置条件、 后置条件和注释等; 步骤 S306,将新配置项按照配置文件的格式添加入已经使用的配置文件 中共后续维护使用。 本实施例可以应用在所有釆用高级编程语言的有启动加载配置文件的应 用程序中。 本实施例实现了对配置文件中增加配置项的目的, 具有方法实施 例二的全部有益效果, 并且釆用本发明, 能够规划化管理 INI, 可以增强代 码的可维护性。 减少出错 ^既率。 同时提高现场维护人员配置效率, 减少配置 出错概率。 方法实施例四: 本实施例将说明配置文件模版生成的方法。 首先以实际样例来描述应用 中配置模块的框架模式。 图 4为才艮据本发明方法实施例四配置文件管理方法中所需配置项的屏幕 截图。 该图中每一行都代表应用需要的配置项。 才艮据这个配置要求, 生成了配置框架。 图 5为才艮据本发明方法实施例四 配置文件管理方法中配置框架的屏幕截图。 在上述配置框架上进行爹改、 添加和删除等操作。 其中框架第一列是配 置段, 第二列是配置项, 第三列是数据类型, 第四列是默认值, 第五列是最 小值, 第六列是最大值, 第九列是前置条件, 第十列是后置条件, 第十一列 是注释描述。 这个配置框架描述的所有配置信息都有配置框架提供的接口函数来生成 配置文件模版。 图 6为才艮据本发明方法实施例四配置文件管理方法中配置文 件模板的屏幕截图。 例如, 如图 6所示, 这个模版中的第二列: "; INT(1 〜 16)", 表示整型数 据类型, 最小值 1 , 最大值 16。 "; 日志级别数,,, 表示注释描述, 让操作人 员理解这个配置项的含义。 操作人员可以在这个配置文件模版上进行各种操作。 例如增加一个配置 项的实际样例为:
1. 如果目的在配置^ I架的所属配置段上增加一行代码, 代码的内容为 根据各列的要求填入配置项名称, 数据类型, 默认值, 最小值, 最大值, 前 置条件, 后置条件, 注释描述。
2. 由于只是简单的增加一个配置项, 那么可以不通过调用接口来生成 配置文件模版, 直接按照配置文件模版的架构来添加。 在所属的配置段下添 加配置项名称, 默认值, 数据类型, 最小最大值, 注释。 然后根据应用的需 求修改默认值, 使得符合实际需求。 本实施例具有方法实施例一至三的全部有益效果, 此处不再重述。 装置实施例一: 图 7为 居本发明装置实施例一配置文件管理装置的示意图。 如图 7所 示, 本实施例包括: 釆集模块 702 , 用于接收配置文件的配置信息; 配置框 架模块 704 , 与接收模块 702相连, 用于将配置信息生成配置文件模版; 管 理模块 706 , 与配置框架模块 704相连, 用于基于生成的配置文件, 封装对 配置文件的管理操作。 本实施例实现的方法可以参照方法实施例一至四的相关说明, 并具有上 述实施例的全部有益效果, J¾处不再重述。 装置实施例二: 本实施例将在装置实施例一的基础上, 对实现增加配置项, 4爹改配置值 的操作进行说明。 当进行配置项的添加时, 管理模块包括: 接收子模块, 用于接收新增加 配置项的配置信息; 写入子模块, 用于通过配置文件模板, 将配置项的配置 信息写入配置文件。 当对配置项的配置值进行修改时, 管理模块包括: 接收子模块, 用于接 收配置项配置值的修 丈值; 校 -险子模块, 用于 艮据配置项的前置条件, 对修 _ ?丈值进行校验; 写入子模块, 用于当校验成功时, 通过配置文件, 将配置项 的配置值的修?丈值写入配置文件。 本实施例实现的方法可参照方法实施例二、 三的相关说明, 并具有上述 实施例的全部有益效果, 此处不再重述。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。

Claims

权 利 要 求 书
1. 一种配置文件管理的方法, 其特征在于, 包括:
在配置框架的预设位置釆集配置信息;
才艮据接收的配置信息自动生成配置文件模版;
基于所述配置文件模版, 进行对配置文件的管理操作。
2. 居权利要求 1所述的方法, 其特征在于, 所述管理操作包括: 配置项 的添加、 4爹改, 和 /或删除。
3. 根据权利要求 2所述的方法, 其特征在于, 当进行配置项的添加时, 所 述进行对配置文件的管理操作包括:
接收新增加配置项的配置信息;
基于所述配置文件模板, 将所述配置项的所述配置信息写入配置文 件。
4. 根据权利要求 2所述的方法, 其特征在于, 当对配置项的配置值进行修 改时, 所述进行对所述配置文件的管理操作包括:
接收所述配置值的修_丈值;
才艮据所述配置项的前置条件, 对所述 4爹丈值进行校 -险;
当所述校验成功时, 基于所述配置文件模板, 将所述配置值的修改 值写入配置文件。
5. 根据权利要求 4所述的方法, 其特征在于, 所述接收配置文件中配置值 的修改值之前还包括:
向用户提示所述^ ί'爹改值对应的配置项最大值、 配置项最小值, 和 / 或配置项注释。
6. 根据权利要求 1-5 中任一项所述的方法, 其特征在于, 所述配置信息包 括: 配置段名称、 配置项名称、 配置项默认值、 配置项最小值、 配置项 最大值、 配置项前置条件、 配置项后置条件、 配置项注释、 和 /或配置项 使用说明。
7. 根据权利要求 1-5中任一项所述的方法, 其特征在于,
所述配置框架提供根据接收的配置信息自动生成配置文件模版的接 α。
8. —种配置文件管理的装置, 其特征在于, 包括:
釆集模块, 用于在配置框架的预设位置釆集配置信息;
配置框架模块, 用于才艮据所述配置信息自动生成配置文件模版; 管理模块, 用于基于所述生成的配置文件, 进行对所述配置文件的 管理操作。
9. 根据权利要求 8所述的装置, 其特征在于, 当进行配置项的添加时, 所 述管理模块包括:
接收子模块, 用于接收新增加配置项的配置信息;
写入子模块, 用于通过所述配置文件模板, 将所述配置项的所述配 置信息写入配置文件。
10. 居权利要求 8所述的装置, 其特征在于, 当对配置项的配置值进行修 _ 改时, 所述管理模块包括:
接收子模块, 用于接收所述配置项配置值的修 丈值;
校验子模块, 用于根据所述配置项的前置条件, 对所述修改值进行 校验;
写入子模块, 用于当所述校验成功时, 通过所述配置文件模板, 将 所述配置项的配置值的修?丈值写入配置文件。
PCT/CN2010/078099 2010-08-02 2010-10-25 配置文件管理的方法及装置 WO2012016400A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102439833A CN101901267A (zh) 2010-08-02 2010-08-02 配置文件管理的方法及装置
CN201010243983.3 2010-08-02

Publications (1)

Publication Number Publication Date
WO2012016400A1 true WO2012016400A1 (zh) 2012-02-09

Family

ID=43226801

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/078099 WO2012016400A1 (zh) 2010-08-02 2010-10-25 配置文件管理的方法及装置

Country Status (2)

Country Link
CN (1) CN101901267A (zh)
WO (1) WO2012016400A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520927B (zh) 2011-11-23 2014-09-10 中兴通讯股份有限公司 用于嵌入式终端的生成逻辑业务的方法、装置及终端
CN102630087A (zh) * 2012-02-24 2012-08-08 中兴通讯股份有限公司 异构处理方法及装置
CN103516529A (zh) * 2012-06-20 2014-01-15 中兴通讯股份有限公司 一种配置文件的管理方法、装置及系统
CN103927494A (zh) * 2014-03-24 2014-07-16 浙江浙大网新集团有限公司 一种安全配置文件管理方法及系统
CN105446705B (zh) 2014-06-30 2019-06-21 国际商业机器公司 用于确定配置文件的特性的方法和装置
CN106484452B (zh) * 2015-08-31 2019-12-06 大唐移动通信设备有限公司 一种软件平台的统一配置管理方法和装置
CN106789200A (zh) * 2016-12-07 2017-05-31 国云科技股份有限公司 一种云平台自定义自动部署的方法
CN108268289B (zh) * 2016-12-30 2022-01-28 阿里巴巴集团控股有限公司 web应用的参数配置方法、装置及系统
CN107301096B (zh) * 2017-06-16 2020-10-16 苏州浪潮智能科技有限公司 一种存储资源配置的方法及系统
CN110377367B (zh) * 2019-07-24 2022-05-03 广州虎牙科技有限公司 组件配置方法、装置、电子终端及计算机可读存储介质
CN110764864A (zh) * 2019-10-25 2020-02-07 北京浪潮数据技术有限公司 一种基于Terraform的可视化资源编排方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020016955A1 (en) * 2000-06-29 2002-02-07 International Business Machines Corporation Method and system for constructing a system, drawing a system configuration drawing, and generating a system configuration file
CN1697393A (zh) * 2004-05-12 2005-11-16 华为技术有限公司 一种自动生成网络优化报告的方法
US20080320473A1 (en) * 2007-06-21 2008-12-25 James Laska Methods and systems for dynamically generating installation configuration files for software
CN101425062A (zh) * 2007-10-31 2009-05-06 国际商业机器公司 用于生成文档内容的呈现配置文件的方法和设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1332304C (zh) * 2004-12-13 2007-08-15 华为技术有限公司 一种对配置文件进行统一配置的方法
CN101094144A (zh) * 2007-07-26 2007-12-26 华为技术有限公司 无线接入网的数据配置方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020016955A1 (en) * 2000-06-29 2002-02-07 International Business Machines Corporation Method and system for constructing a system, drawing a system configuration drawing, and generating a system configuration file
CN1697393A (zh) * 2004-05-12 2005-11-16 华为技术有限公司 一种自动生成网络优化报告的方法
US20080320473A1 (en) * 2007-06-21 2008-12-25 James Laska Methods and systems for dynamically generating installation configuration files for software
CN101425062A (zh) * 2007-10-31 2009-05-06 国际商业机器公司 用于生成文档内容的呈现配置文件的方法和设备

Also Published As

Publication number Publication date
CN101901267A (zh) 2010-12-01

Similar Documents

Publication Publication Date Title
WO2012016400A1 (zh) 配置文件管理的方法及装置
US9959198B1 (en) Simulated testing of API
CN101383871B (zh) 一种网元配置的实现方法及装置
CN108469957A (zh) 应用打包上传方法、装置、计算机设备及存储介质
US20180217921A1 (en) System and method for generating and executing automated test cases
CN110297632A (zh) 代码生成方法和装置
CN109189379A (zh) 代码生成方法和装置
CN103761329B (zh) 一种对移动设备进行刷机的方法及其装置
CN106502747A (zh) 一种应用升级的方法及移动终端
CN109460223A (zh) 一种api网关管理系统及其方法
CN110213113B (zh) 基站的web配置管理方法及基站
CN109408247A (zh) 交互数据处理方法及装置
WO2016062152A1 (zh) 网元巡检方法及装置
CN113064630B (zh) 移动端app自动打包方法、系统、电子设备及存储介质
CN107947981A (zh) 一种网络设备管理方法和装置
CN106897153A (zh) 调用应用编程接口的方法和系统
CN110580174A (zh) 应用组件生成方法、服务器及终端
CN109858257B (zh) 访问控制方法及装置
CN107436814A (zh) 一种资源编排模板的生成方法及装置
CN108287720B (zh) 软件编译方法、装置、设备及存储介质
CN103001786B (zh) 一种基于mml的大容量数据配置方法、服务器及系统
CN115811513B (zh) 第三方接口请求设计方法、装置、存储介质
KR20090002032A (ko) 범용 웹 브라우저에서 ui 플러그인을 실행하는 실행모듈, ui 플러그인 개발 장치 및 그 방법
CN106648784A (zh) 一种基于android系统的OTA升级方法及系统、android终端
CN115407981A (zh) 一种基于中间件适配的前端数据mock方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10855538

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10855538

Country of ref document: EP

Kind code of ref document: A1