WO2019154353A1 - 系统运行参数查询方法、匹配方法、装置及节点设备 - Google Patents

系统运行参数查询方法、匹配方法、装置及节点设备 Download PDF

Info

Publication number
WO2019154353A1
WO2019154353A1 PCT/CN2019/074551 CN2019074551W WO2019154353A1 WO 2019154353 A1 WO2019154353 A1 WO 2019154353A1 CN 2019074551 W CN2019074551 W CN 2019074551W WO 2019154353 A1 WO2019154353 A1 WO 2019154353A1
Authority
WO
WIPO (PCT)
Prior art keywords
matching
parameter
system operation
value
operation parameter
Prior art date
Application number
PCT/CN2019/074551
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 WO2019154353A1 publication Critical patent/WO2019154353A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • the present invention relates to the field of communications, and in particular, to a system operation parameter query method, a matching method, a device, and a node device.
  • the software system on the communication device usually needs to obtain some customized system operation parameters (also referred to as system parameters, such as system name, number of static routes, number of access users, etc.) at runtime to define and constrain the behavior of each software module.
  • system parameters also referred to as system parameters, such as system name, number of static routes, number of access users, etc.
  • system operating parameters can be described in the form of scripts, so that the same software system can be deployed to various communication products by simply customizing the system running parameter scripts. .
  • key primary key
  • value parameter value
  • a key value corresponds to a parameter value.
  • CPUs Central Processing Units
  • PCBs Printed Circuit Boards
  • Service which causes the upper layer application to have different system operating parameter values that need to be adapted to different hardware attributes (such as different boards, PCBs, etc.) and software attributes.
  • a typical key value combination data storage structure is: ((type, boardid, bomid, pcbid), value):
  • the system operation parameter query method, the matching method, the device and the node device provided by the embodiments of the present invention mainly solve the technical problem that the existing system parameters of the software system and the system need to be managed by extending the primary key to manage the system operation parameters.
  • the storage structure is modified, the cost is high, and the scalability and versatility are poor.
  • an embodiment of the present invention provides a system operation parameter query method, including: receiving a system operation parameter query request from a service entity, where the system operation parameter query request includes a primary key value; Attribute information confirms a matching rule, the matching rule includes auxiliary matching information for performing system running parameter matching, and adds the matching rule to the system running parameter query request; and sends the system running parameter query request to The master node device performs system operation parameter query.
  • the embodiment of the present invention further provides a system operation parameter matching method, including: receiving a system operation parameter query request sent by a service node device, where the system operation parameter query request includes a primary key value and a matching rule, where the matching rule includes Performing matching matching information of the system running parameter matching; matching corresponding target system operating parameter values from the system parameter database according to the primary key value and the matching rule, wherein each primary key is pre-stored in the system parameter database a set of system operation parameter values corresponding to the value, each system operation parameter value set includes at least one system operation parameter value, and each system operation parameter value is configured with a constraint condition, where the constraint condition includes matching with the auxiliary matching information Constraint matching information.
  • the embodiment of the present invention further provides a system operation parameter query device, including: a request processing module, configured to receive a system operation parameter query request from a service entity, where the system operation parameter query request includes a primary key value, and is used according to the a matching rule for confirming the attribute information of the service entity, and adding the matching rule to the system running parameter query request, where the matching rule includes auxiliary matching information for performing system running parameter matching; request sending module, The system operation parameter query request is sent to the main control node device to perform system operation parameter query.
  • a request processing module configured to receive a system operation parameter query request from a service entity, where the system operation parameter query request includes a primary key value, and is used according to the a matching rule for confirming the attribute information of the service entity, and adding the matching rule to the system running parameter query request, where the matching rule includes auxiliary matching information for performing system running parameter matching
  • request sending module The system operation parameter query request is sent to the main control node device to perform system operation parameter query.
  • the embodiment of the present invention further provides a system operation parameter matching device, including: a request receiving module, configured to receive a system operation parameter query request sent by a service node device, where the system operation parameter query request includes a primary key value and a matching rule, where The matching rule includes auxiliary matching information for performing system running parameter matching; the matching module is configured to match corresponding system operating parameter values from the system parameter database according to the primary key value and the matching rule; wherein
  • the system parameter database is pre-stored with a set of system operation parameter values corresponding to each primary key value, and each system operation parameter value set includes at least one system operation parameter value, and each system system parameter value is configured with a constraint condition, and the constraint condition includes Constraint matching information for matching with the auxiliary matching information.
  • the embodiment of the present invention further provides a service node device, including a first processor, a first memory, and a first communication bus; the first communication bus is configured to implement connection communication between the first processor and the first memory; The first processor is configured to execute one or more first programs stored in the first memory to implement the steps of the system operation parameter query method as described above.
  • the embodiment of the present invention further provides a master node device, including a second processor, a second memory, and a second communication bus; the second communication bus is configured to implement connection communication between the second processor and the second memory.
  • the second processor is configured to execute one or more second programs stored in the second memory to implement the steps of the system operation parameter matching method as described above.
  • An embodiment of the present invention further provides a computer storage medium storing one or more first programs, the one or more first programs being executable by one or more processors to implement The system operates a parameter query method as described above; or the computer readable storage medium stores one or more second programs, the one or more second programs being executable by one or more processors, To implement the steps of the system operating parameter matching method as described above.
  • FIG. 1 is a schematic diagram of a correspondence between a primary key value and a system operating parameter value set according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for querying an operating parameter of a system according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic flowchart of a confirmation matching rule according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic diagram of a matching process according to Embodiment 1 of the present invention.
  • FIG. 6 is a schematic structural diagram of a system operation parameter query device according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic structural diagram of a system operation parameter matching apparatus according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic diagram of configuration data obtained by parsing according to Embodiment 2 of the present invention.
  • FIG. 9 is a schematic flowchart of a method for querying and matching a running parameter of a system according to Embodiment 2 of the present invention.
  • FIG. 10 is a schematic structural diagram of a service node device according to Embodiment 3 of the present invention.
  • FIG. 11 is a schematic structural diagram of a device of a master control node according to Embodiment 3 of the present invention.
  • FIG. 12 is a schematic diagram of a system parameter query interaction process according to Embodiment 3 of the present invention.
  • FIG. 13 is a schematic diagram of a system operation parameter value query process according to Embodiment 3 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the system operation parameter value set corresponding to each primary key value is stored in the system parameter database, and the constraint condition associated with the application attribute is set for each system operation parameter value in the system operation parameter value set (that is, the system is running.
  • the constraint of the parameter value That is, in this embodiment, a primary key value (key value) in the system parameter database corresponds to a system operating parameter value set.
  • a correspondence relationship is shown in Table 1. Assume that there are n primary key values, and one primary key value corresponds to a system operating parameter value set. The primary key value and the system operating parameter value are as shown in Table 1.
  • a system operation parameter value set value may include a system operation parameter value, and may also include multiple system operation parameter values.
  • each system operating parameter value in each system operating parameter value set is set with a corresponding constraint condition, and the constraint condition and the business entity (the business entity here refers to the object as the query entity, which may be any An application process or thread that needs to perform system operation parameter query, and the application includes, for example, but not limited to, an upper layer application, including but not limited to attributes of a service protocol, an application layer protocol, and various applications related to a routing protocol, and may be associated with Characterizes the attributes of a business entity.
  • An example data storage structure can be: (type, value, constraint);
  • the parameters such as shelftype and boardid are called constraint matching parameters that constitute constraint matching information.
  • This setting method can be modified accordingly when the query field needs to be added, that is, it can be supported by modifying the configuration file of the server.
  • the foregoing data storage structure scheme provided by this embodiment is flexible and customizable, and the constraint condition can be arbitrarily and flexibly added and combined regardless of whether the hardware attribute or the software attribute is used or a combination of the two is adopted.
  • the parameters in a system operating parameter value set may be parameters of the same parameter type.
  • the values of different board types, different job ticket numbers, and different service types are different, but they all belong to the number of user accesses, so they can be set to a set.
  • other classification rules can be flexibly set according to specific application scenarios, and are not limited to the above parameter type rules.
  • the constraint matching information included in the condition can be set to null.
  • the primary key value key i corresponds to a system operation parameter value set values i, wherein the system operation parameter value set values i includes three system operation parameter values iA, iB, iC, and The constraints of the three system operating parameter values are iAi, iBi, and iCi, respectively.
  • the specific number of primary key values included in the system and the number of system running parameter values in the system operating parameter set corresponding to each primary key value can be flexibly set according to specific application scenarios and specific network scenarios. And dynamically adjusted.
  • system parameter database in this embodiment When the system parameter database in this embodiment is applied to the distributed communication device, it may be set on the central control node device as the parameter matching server, or may be set outside the central control node device but can be called by the central control node device. When applied to other network environments, it can be flexibly set according to the specific network environment.
  • the correspondence between the primary key value and the system operating parameter value set, and the constraint condition of each system operating parameter value in the system operating parameter value set may be configured through a configuration file, and the configuration file may be Formed by script or other means.
  • the system operation parameter query method at this time is shown in FIG. 2, and includes:
  • S201 Receive a system operation parameter query request from an application, where the system operation parameter query request includes a primary key value.
  • the application in the distributed communication device scenario, can be run on the service node device.
  • the application device may specifically invoke the corresponding client interface and send a system operation parameter query request, that is, the corresponding primary key value is transmitted. Key value.
  • the application may specifically select a corresponding primary key value according to its current requirement to initiate a corresponding system operation parameter value query.
  • the matching rule corresponding to the application may be confirmed according to the attribute information of the application, and the determined matching rule includes an auxiliary matching for performing system running parameter matching.
  • the information is used to match the system running parameters that best match the application in the subsequent parameter matching process to meet the requirements of the application; of course, the primary key in this embodiment may also be Multiple primary keys are combined, and these multiple primary keys are primary keys that are necessary and do not need to be changed or rarely changed.
  • the attribute information of each application may be automatically obtained by the client, or may be obtained by other means.
  • the process of confirming the auxiliary matching information is shown in Figure 3, including:
  • S301 Acquire attribute information of a business entity.
  • the attribute information of the acquired service entity includes, but is not limited to, at least one of hardware attribute information and software attribute information of the service entity, and specifically acquires hardware attribute information or software attribute information or acquires hardware attribute information and software attributes at the same time.
  • Information can be flexibly set.
  • the content specifically included in the hardware attribute information and the content specifically included in the software attribute information may also be flexibly set, as long as the specific requirements of the business entity can be accurately reflected.
  • the hardware attribute information includes, but is not limited to, the board number of the board where the service entity is located, the board number pcbid of the board where the board is located, and the material number bomid of the material of the material.
  • At least one of the matching rules includes: obtaining at least one of the obtained board number, the board number, and the item number as the auxiliary matching information of the matching rule.
  • the auxiliary matching information includes the board number, the board number, and the material number
  • the auxiliary matching information at this time includes three auxiliary matching parameters, which are board number, board number, and material number.
  • the hardware such as the board and the circuit board where the service entity is located refers to the hardware foundation on which the hardware operates as the service entity.
  • the acquired attribute information includes the software attribute information of the service entity
  • the software attribute information includes at least one of a job order number jno and a service name sevice - name of the business entity
  • the confirmation matching rule includes: At least one of the job ticket number and the service name is used as the auxiliary matching information of the matching rule.
  • the auxiliary matching information includes a job ticket number and a service name
  • the auxiliary matching information at this time includes two auxiliary matching parameters, which are a job ticket number and a service name, respectively.
  • the rules for the service entity to confirm the matching rule may be the same, for example, may be confirmed according to the hardware attribute and the software attribute of the service entity; the rules for the different service entities to confirm the matching rule may also be different, for example, for example, For the class A business entity, the matching rule is confirmed according to the hardware attribute information, and the matching rule is confirmed according to the software attribute information or the software attribute information and the hardware attribute information for the class B business entity. It should be understood that the auxiliary matching parameters and the number of the auxiliary matching information included in the matching rule of the matching rule confirmed in this embodiment may also be determined according to a specific service entity scenario.
  • the auxiliary matching information of the matching rule includes three auxiliary matching parameters, namely, the board number 20 and the circuit board. No. 10, work order number 5.
  • the method of adding the matching rule to the system running parameter query request may be directly adding the matching rule to the originally received system running parameter query request; or extracting from the originally received system running parameter query request.
  • the primary key value is then reconfirmed with the matching rule for a system run parameter query request.
  • the two when the matching rule and the primary key value are sent to the server (for example, the master node device) performing the parameter matching operation, the two can be sent together (for example, sent together through the system operation parameter query request). ), can also be sent separately, and when sent separately, the two can be sent through the same request, or can be sent through different requests, and both can be sent simultaneously, and can be sent at different times. However, when sending separately, it is necessary to add identification information that can be used to characterize the relationship between the two, so that the server can perform identification and pairing after receiving the message.
  • S204 Send the system operation parameter query request to the server, for example, but not limited to, the master node device (the master node device serves as a server matching system, but it should be understood that the device can also be implemented by other devices, and other The device is equivalent to the master node device in this embodiment to perform system operation parameter query.
  • the master node device serves as a server matching system, but it should be understood that the device can also be implemented by other devices, and other The device is equivalent to the master node device in this embodiment to perform system operation parameter query.
  • the received system running parameter query request (as described above, which may be sent by the service node device) includes a primary key value and Matching rules, at this time, the method for matching the system running parameters is shown in Figure 4, including:
  • S401 Receive a system operation parameter query request sent by the service node device.
  • the system operation parameter query request received in this step is from a business entity on the service node device, which includes a primary key value and a matching rule.
  • the corresponding system operation parameter value set may be matched by the primary key value, and then the system operation parameter value corresponding to the matching rule is matched from the system operation parameter value set according to the matching rule, for example, see a figure. 5, including:
  • S501 Match a system operation parameter value set corresponding to the primary key value from the system parameter database according to the extracted primary key value.
  • S502 Match the system operation parameter value corresponding to the matching rule in the system operation parameter value set obtained from S501 according to the extracted matching rule, as the target system operation parameter value.
  • system operation parameter values matching the extracted matching rules may also be found from the system parameter database, and then the corresponding system key values are matched from the obtained system operating parameter values.
  • the matching rule extracted in this embodiment includes auxiliary matching information
  • the auxiliary matching information includes at least one auxiliary matching parameter
  • the constraint condition corresponding to each system operating parameter value includes a constraint for matching with the auxiliary matching information.
  • Matching information includes at least one constraint matching parameter. Therefore, in the above S502, the system operation parameter value corresponding to the matching rule is matched from the system operation parameter value set according to the matching rule as the target system operation parameter value, which may include: auxiliary matching in the auxiliary matching information included in the extracted matching rule.
  • the constraint conditions of the parameter and the operating parameter value of each system in the system running parameter value set include the constraint matching parameter in the constraint matching information, and the system running parameter value with the most matching success number of the matching matching parameter and the auxiliary matching parameter is operated as the target system.
  • the parameter value that is, the system operation parameter value corresponding to the business entity that initiated the query.
  • the storage relationship between the single primary key value and the system operating parameter is still used to implement the query and matching of the operating parameters of the system, and the system is implemented by the constraint condition corresponding to the attribute information of the single primary key value + the business entity.
  • the system operation parameter query method and the matching method store the system operation parameter value set corresponding to each primary key value in the system parameter database in advance, and set the operation parameter value of each system in the system operation parameter value set.
  • the constraint condition associated with the business entity attribute after receiving the system operation parameter query request including the primary key value sent by the business entity, the matching rule may be confirmed to be sent along with the system running parameter query request according to the attribute information of the business entity.
  • the master node device of the server the server can match the corresponding system running parameter value from the system parameter database according to the primary key value and the matching rule in the request.
  • the system running query and matching scheme provided by the invention does not need to modify the primary key, and only needs to set corresponding constraint conditions for each system running parameter value as an auxiliary matching condition on the basis of the existing data storage structure, when needed
  • you only need to add it in the corresponding constraint, without any modification to the primary key you can use the original software system and data storage structure, which can improve the scalability and versatility while reducing the cost.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides a system operation parameter query device, which can be applied to the device side initiated by the system operation parameter query, and the functions of each module included in the module can be implemented by a processor of the corresponding device, for example, a service node device.
  • the system operation parameter query device includes:
  • the request processing module 61 is configured to receive a system operation parameter query request from the service entity, where the system operation parameter query request includes a primary key value, and a matching rule for confirming according to the attribute information of the service entity, and Add a matching rule to the system run parameter query request.
  • the request processing module 61 may receive the system operation parameter query request of the service entity through the client interface, and specifically obtain the attribute information of the service entity through the client.
  • the manner of obtaining the specific attribute information and the content obtained are shown in the foregoing embodiment, and details are not described herein again.
  • the manner in which the request processing module 61 confirms the matching rule and the manner in which the matching rule and the primary key value are sent may also be referred to in the foregoing embodiment, and details are not described herein again.
  • the request sending module 62 is configured to send a system operation parameter query request from the request processing module 61 to the main control node device for system operation parameter query.
  • the embodiment further provides a system operation parameter matching device, which can be applied to the device that performs the operation parameter matching as the server, and the functions of the modules included in the module can also be implemented by the processor of the corresponding device.
  • the system operating parameter matching device includes:
  • the request receiving module 71 is configured to receive a system operation parameter query request sent by the service node device.
  • the received system operation parameter query request includes a primary key value and a matching rule.
  • the matching module 72 is configured to extract the primary key value and the matching rule in the received system running parameter query request, and match the corresponding system running parameter value from the system parameter database according to the extracted primary key value and the matching rule.
  • the matching module 72 may first match the corresponding system operating parameter value set by the primary key value, and then match the system operating parameter value corresponding to the matching rule from the system operating parameter value set according to the matching rule; or may firstly The parameter values of each system in the parameter database are matched with the extracted matching rules, and then the system operating parameter values corresponding to the extracted primary key values are matched from the obtained system operating parameter values, and the specific matching manner may be determined according to specific The business entity scene is flexibly set.
  • the matching module 72 may determine the constraint in the constraint matching information included in the constraint condition corresponding to each system running parameter value in the auxiliary matching parameter included in the extracted matching rule and the system running parameter value set. Matching parameters are matched, and the system running parameter value with the most matching success rate of the matching matching parameter and the auxiliary matching parameter is used as the target system operating parameter value, that is, the system operating parameter value corresponding to the above business entity.
  • the system operating parameter matching device in this embodiment may further include a configuration module 70, configured to pre-configure a system operating parameter value set corresponding to each primary key value in the system parameter database, and each system operating parameter value.
  • the set includes at least one system operation parameter value, and each system system parameter value has a corresponding constraint condition.
  • the configuration module 70 can read and parse the corresponding configuration file, and store the parsed data into the system parameter database.
  • the parsed primary key values are 67175400, 67175401, and 67175402, respectively, wherein the values in the values corresponding to 67175400 are 7, 7, 7, 3, 1000, 100, 101, 101, 102, and 1000, respectively.
  • the system operation parameter query device and the matching device store a system operation parameter value set corresponding to each primary key value in the system parameter database, and set the operation parameter value of each system in the system operation parameter value set.
  • the master node device of the server the server can match the corresponding system running parameter value from the system parameter database according to the primary key value and the matching rule in the request.
  • the system running query and matching scheme provided by the invention does not need to modify the primary key, and only needs to set corresponding constraint conditions for each system running parameter value as an auxiliary matching condition on the basis of the existing data storage structure, when needed
  • you only need to add it in the corresponding constraint, without any modification to the primary key you can use the original software system and data storage structure, which can improve the scalability and versatility while reducing the cost.
  • the business entity invokes the client interface and passes in the key
  • the client automatically detects the hardware attribute information and software attribute information of the query service entity (that is, the service entity is located Software and hardware environment (including but not limited to boardid, bomid, pcbid, jno, sevice-name), and combined into a value of the string to the form of the auxiliary matching information and the primary key value key to the server, the server According to the key query to the corresponding set values, and then use the constraints of each value in the values set to adapt the matching rule, and select the system running parameter value value with the highest matching degree to return to the client.
  • the process is shown in Figure 9, including:
  • S901 The server process starts, reads and parses the system parameter configuration file, and stores the parsed data into the system parameter database.
  • S902 The business entity invokes the client interface, and sends a key to query.
  • the server queries the corresponding set values (hereinafter referred to as the set V) from the system database according to the key value, and the set value in the set V is accompanied by a constraint.
  • the current value is compared with the alternative value, and the higher the integral is the alternative value. If there is no alternative value, the current value is directly set to the alternative value; if the integral is the same as the alternative value and there is still no unmatched value, the current value is eliminated and the original candidate value is retained; There is an unmatched value, the next value is taken, and the above matching process is continuously looped until the value in the set V is traversed, and the final returned candidate value is the optimal matching system running parameter.
  • the system running parameter query matching scheme provided by the embodiment improves the scalability of the system running parameter query software, and can better serve the business entity in different software and hardware environments without modifying the query software implementation or modifying the database structure. on.
  • the present embodiment uses the manner in which the service entity customizes the matching rule query, and can support different nodes of the distributed device to adopt different matching rules (spatial differences), and dynamically change the matching rules when the operating environment of the business entity changes dynamically. Adjustments (differences in time) to maximize the strain and flexibility of system operating parameter matching.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the embodiment provides a service node device, which can be applied to a distributed network, as shown in FIG. 10, which includes a first processor 1001, a first memory 1002, and a first communication bus 1003;
  • the first communication bus 1003 is configured to implement connection communication between the first processor 1001 and the first memory 1002;
  • the first processor 1001 is configured to execute one or more first programs stored in the first memory 1002 to implement the steps of the system operation parameter query method as described in the above embodiments.
  • the embodiment further provides a master node device, which is also applicable to a distributed network, as shown in FIG. 11, which includes a second processor 1101, a second memory 1102, and a second communication bus 1103;
  • the second communication bus 1103 is configured to implement connection communication between the second processor 1101 and the second memory 1102;
  • the second processor 1101 is configured to execute one or more second programs stored in the second memory 1102 to implement the steps of the system operation parameter matching method as described in the above embodiments.
  • Embodiments of the present invention also provide a computer storage medium that can be applied to various communication devices.
  • the computer readable storage medium can be used to store one or more first programs, the one or more first programs can be executed by one or more processors to implement the system operating parameter query method as shown in the above embodiments.
  • the computer readable storage medium is stored for storing one or more second programs, the one or more second programs being executable by one or more processors to implement the system as shown in the above embodiments The steps to run the parameter matching method.
  • the server process starts, reads and parses the system parameter configuration file, and stores the parsed data into the database, where key is the query keyword, value is the system running parameter value, and other factors such as boardid, bomid, pcb, etc. are constraint matching parameters.
  • the system operation parameter query interaction process is shown in Figure 12.
  • the business entity invokes the client interface and passes the parameter key (in this example, the key value is 67175400 in Figure 8).
  • the client automatically checks the software and hardware environment where the application is located.
  • the auxiliary matching parameters are combined into a matching rule and transmitted to the server together with the key. It is assumed that the boardid of the business entity is 2, the billing number is 10, and the pcb is 101. These three items are selected as auxiliary matching parameters to form a matching rule.
  • the server receives the query request from the client, first uses the key (67175400) to query all the values corresponding to the key (67175400) and the constraints corresponding to each value, assuming the set V, and then from the set V.
  • the most suitable value is selected in the form of points (and of course other ways).
  • the matching process is as follows:
  • the seventh value with the highest score is selected to be the most suitable for the system operating parameter value.
  • modules or steps of the above embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed among multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and at some
  • the steps shown or described may be performed in a different order than that herein, or they may be separately fabricated into individual integrated circuit modules, or multiple of the modules or steps may be implemented as a single integrated circuit module. . Therefore, the invention is not limited to any particular combination of hardware and software.

Abstract

本发明实施例提供一种系统运行参数查询方法、匹配方法、装置、节点设备及存储介质,预先在系统参数数据库中存储各主键值对应的系统运行参数值集合,并为系统运行参数值集合中的各系统运行参数值设置与业务实体属性关联的约束条件;然后在接收到业务实体发送的包含主键值的系统运行参数查询请求后,根据该业务实体的属性信息确认匹配规则随该系统运行参数查询请求一起发到作为服务端;服务端根据该请求中的主键值和匹配规则,从系统参数数据库中匹配出对应的系统运行参数值。

Description

系统运行参数查询方法、匹配方法、装置及节点设备
交叉引用
本发明要求在2018年2月7日提交中国专利局、申请号为201810123376.X、发明名称为“系统运行参数查询方法、匹配方法、装置及节点设备”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
技术领域
本发明涉及通信领域,尤其涉及一种系统运行参数查询方法、匹配方法、装置及节点设备。
背景技术
通信设备上的软件系统通常需要在运行时获取一些定制的系统运行参数(也即简称为系统参数,如系统名称、静态路由数、接入用户数等)来定义并约束各软件模块的行为,以适应特定产品、硬件、业务的运行要求。为了提高软件系统的可扩展性,降低研发成本,可以脚本的形式描述这些系统运行参数,这样通过对系统运行参数脚本进行简单的定制就可以把同一套软件系统部署到形态各异的通信产品上。
对于系统运行参数的集中管理方式,一般是通过key(主键)-value(参数值)存储查询的方式进行管理。一个key值对应一个参数值。但对于大型分布式通信设备而言,单个设备上存在多种类型的单板、CPU(Central Processing Unit,中央处理器)、PCB(Printed Circuit Board,印制电路板),运行着各种类型的业务,这就导致上层应用在不同的硬件属性(比如不同的单板、PCB等)、和软件属性所需适配的系统运行参数值可能不一样。针对上述问题,目前以扩展主键key(即通过多个key组合)来对更为多样化的 系统运行参数值进行管理,以满足不同属性的上层应用对应不同系统运行参数值的需求,例如现有一种典型的key值组合的数据存储结构为:((type,boardid,bomid,pcbid),value):
typedef struct{
int type;
int boardid;
int bomid;
int pcbid;
int value;
}
其中(type,boardid,bomid,pcbid)为组合key,boardid、bomid、pcbid分别为单板号、物料号和电路板号。这样就有一个问题,当系统需要扩展,比如以前只根据type,boardid,bomid,pcb查询的,后来要增加作业单号jno、等字段,就需对原有的软件系统中的主键key以及系统运行参数的数据存储结构进行全部修改,而修改数据结构就需要升级系统中断业务,导致成本高,可扩展性和通用性差。
发明内容
本发明实施例提供的系统运行参数查询方法、匹配方法、装置及节点设备,主要解决的技术问题是:现有通过扩展主键key对系统运行参数进行管理而需要对软件系统及系统运行参数的数据存储结构进行修改,成本高,可扩展性和通用性差。
为解决上述技术问题,本发明实施例提供一种系统运行参数查询方法,包括:接收来自业务实体的系统运行参数查询请求,所述系统运行参数查询请求包括主键值;根据所述业务实体的属性信息确认匹配规则,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息,并将所述匹配规则添加 到所述系统运行参数查询请求中;将所述系统运行参数查询请求发给主控节点设备进行系统运行参数查询。
本发明实施例还提供一种系统运行参数匹配方法,包括:接收业务节点设备发送的系统运行参数查询请求,所述系统运行参数查询请求包括主键值和匹配规则,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息;根据所述主键值和所述匹配规则从系统参数数据库中匹配出对应的目标系统运行参数值,其中,所述系统参数数据库中预先存储有各主键值对应的系统运行参数值集合,各系统运行参数值集合中包括至少一个系统运行参数值,且各系统运行参数值配置有约束条件,所述约束条件包括用于与所述辅助匹配信息进行匹配的约束匹配信息。
本发明实施例还提供一种系统运行参数查询装置,包括:请求处理模块,用于接收来自业务实体的系统运行参数查询请求,所述系统运行参数查询请求包括主键值,以及用于根据所述业务实体的属性信息确认的匹配规则,并将所述匹配规则添加到所述系统运行参数查询请求中,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息;请求发送模块,用于将所述系统运行参数查询请求发给主控节点设备进行系统运行参数查询。
本发明实施例还提供一种系统运行参数匹配装置,包括:请求接收模块,用于接收业务节点设备发送的系统运行参数查询请求,所述系统运行参数查询请求包括主键值和匹配规则,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息;匹配模块,用于根据所述主键值和所述匹配规则从系统参数数据库中匹配出对应的系统运行参数值;其中,所述系统参数数据库中预先存储有各主键值对应的系统运行参数值集合,各系统运行参数值集合中包括至少一个系统运行参数值,且各系统系统参数值配置有约束条件,所述约束条件包括用于与所述辅助匹配信息进行匹配的约束匹配信息。
本发明实施例还提供一种业务节点设备,包括第一处理器、第一存储器及第一通信总线;所述第一通信总线用于实现第一处理器和第一存储器之间的连接通信;所述第一处理器用于执行第一存储器中存储的一个或者多个第 一程序,以实现如上所述的系统运行参数查询方法的步骤。
本发明实施例还提供一种主控节点设备,包括第二处理器、第二存储器及第二通信总线;所述第二通信总线用于实现第二处理器和第二存储器之间的连接通信;所述第二处理器用于执行第二存储器中存储的一个或者多个第二程序,以实现如上所述的系统运行参数匹配方法的步骤。
本发明实施例还提供一种计算机存储介质,所述计算机可读存储介质存储有一个或者多个第一程序,所述一个或者多个第一程序可被一个或者多个处理器执行,以实现如上所述的系统运行参数查询方法的步骤;或,所述计算机可读存储介质存储有一个或者多个第二程序,所述一个或者多个第二程序可被一个或者多个处理器执行,以实现如上所述的系统运行参数匹配方法的步骤。
本发明其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解,至少部分有益效果从本发明说明书中的记载变的显而易见。
附图说明
图1为本发明实施例一的主键值和系统运行参数值集合对应关系示意图;
图2为本发明实施例一的系统运行参数查询方法流程示意图;
图3为本发明实施例一的确认匹配规则流程示意图;
图4为本发明实施例一的系统运行参数匹配的方法流程示意图;
图5为本发明实施例一的匹配流程示意图;
图6为本发明实施例二的系统运行参数查询装置结构示意图;
图7为本发明实施例二的系统运行参数匹配装置结构示意图;
图8为本发明实施例二的解析得到的配置数据示意图;
图9为本发明实施例二的系统运行参数查询、匹配方法流程示意图;
图10为本发明实施例三的业务节点设备结构示意图;
图11为本发明实施例三的主控节点设备结构示意图;
图12为本发明实施例三的系统参数查询交互过程示意图;
图13为本发明实施例三的系统运行参数值查询过程示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,下面通过具体实施方式结合附图对本发明实施例作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
实施例一:
针对现有通过扩展主键key对系统运行参数进行管理而需要对软件系统及系统运行参数的数据存储结构进行修改,成本高,可扩展性和通用性差的问题。本实施例预先在系统参数数据库中存储各主键值对应的系统运行参数值集合,并为系统运行参数值集合中的各系统运行参数值设置与应用属性关联的约束条件(也即是系统运行参数值的约束条件)。也即在本实施例中,系统参数数据库中的一个主键值(key值)对应的是一个系统运行参数值集合。例如一种对应关系参见表1所示,假设包含n个主键值,一个主键值对应一个系统运行参数值集合,则主键值与系统运行参数值的集合如表1所示。
表1
主键key 系统运行参数值values
key 1 values 1
key 2 values 2
…… ……
key n values n
在本实施例中,一个系统运行参数值集合values中可能进包含一个系统 运行参数值,也可能包含多个系统运行参数值。在本实施例中,各系统运行参数值集合中的各系统运行参数值设置有对应的约束条件,该约束条件与业务实体(此处的业务实体是指作为查询实体的对象,其可以是任何需要进行系统运行参数查询的应用进程或线程,且应用例如包括但不限于上层应用,该上层应用包括但不限于业务协议、应用层协议、路由协议相关的各种应用)的属性相关联,可以表征业务实体的属性。一种示例的数据存储结构可为:(type,value,constraint);
typedef struct{
int type;
int value;
string constraint;
}
其中constraint为约束条件,其包括约束匹配信息,且其可为字符流类型的字段,且其格式也可以灵活设定,例如一种示例格式可类似“shelftype=2;boardid=1;”,此时该约束条件包括的约束匹配信息为shelftype=2,且boardid=1,本实施例中shelftype、boardid等参数称为组成约束匹配信息的约束匹配参数。这种设置方式当需要增加查询字段时,对constraint进行相应的修改即可,也即只要修改服务端的配置文件即可支持。比如要对一个value值增加一个硬件属性叫做机框类型,shelftype=21,且假设该value值之前的constraint为boardid=1,则需要将其constraint修改为<value shelftype=”21”boardid=”1”>即可。也即本实施例提供的上述数据存储结构方案是弹性可定制的,约束条件不管采用硬件属性,还是软件属性,或采用二者的结合,都是可以任意灵活添加组合的。
在本实施例中,一个系统运行参数值集合里的参数可以为同样参数类型的参数。例如对于用户接入数,在不同单板类型、不同的作业单号、不同的业务类型值就不一样,但都属于用户接入数,因此可将其设置到一个集合中。当然,也可以根据具体的应用场景灵活的设定其他归类规则,并不限于上述 参数类型规类规则。
但应当理解的是,在本实施例中,可能会存在一个或多个系统运行参数值的约束条件包括的约束匹配信息为空,例如对于适用于任何属性的应用的系统运行参数值,其约束条件包括的约束匹配信息可以设置为空。例如,参见图1所示,在一种示例中,主键值key i对应系统运行参数值集合values i,其中系统运行参数值集合values i包含三个系统运行参数值iA、iB、iC,且这三个系统运行参数值对应的约束条件分别为iAi、iBi、iCi。当然,应当理解的是,系统中包含的主键值的具体个数以及各主键值对应的系统运行参数集合中的系统运行参数值的个数是可以根据具体应用场景和具体网络场景灵活设置和动态调整的。
本实施例中的系统参数数据库应用于分布式通信设备时,其可以设置于作为参数匹配服务端的中控节点设备上,也可以设置于中控节点设备之外但可被中控节点设备调用。应用于其他网络环境时,则可根据具体的网络环境灵活设定。
应当理解的是,本实施例中,主键值与系统运行参数值集合的对应关系,系统运行参数值集合中的各系统运行参数值的约束条件可以通过配置文件进行配置,且该配置文件可通过脚本或其他方式形成。
基于上述设置,在本实施例中,当客户端侧的应用在运行过程中需要获取一些定制的系统运行参数时,此时的系统运行参数查询方法参见图2所示,包括:
S201:接收来自应用的系统运行参数查询请求,该系统运行参数查询请求包括主键值。
本实施例中,在分布式通信设备场景下,应用可以运行业务节点设备上,此时应用设备具体可以通过调用相应客户端接口并发送系统运行参数查询请求,也即传入相应的主键值key值。
本实施例中,应用具体可以根据其当前的需求灵活的选择相应的主键值 发起相应的系统运行参数值查询。
S202:根据发起系统运行参数查询请求的应用的属性信息确认匹配规则。
在本实施例中,当接收到一个应用发起的系统运行参数查询请求后,可以根据该应用的属性信息确认该应用对应的匹配规则,确定的匹配规则包括用于进行系统运行参数匹配的辅助匹配信息,以在后续参数匹配过程中通过“单主键值key+匹配规则”的方式匹配出与该应用最为匹配的系统运行参数,以满足应用的需求;当然,本实施例中的主键也可以是多个主键组合而成,且这多个主键是都必要的、不需要进行改动或很少进行改动的主键。
在本实施例中,对于各应用的属性信息,可以通过客户端自动获取,也可以通过其他方式获取。具体确认辅助匹配信息的过程参见图3所示,包括:
S301:获取业务实体的属性信息。
本实施例中,获取的业务实体的属性信息包括但不限于业务实体的硬件属性信息和软件属性信息中的至少一种,具体获取硬件属性信息还是软件属性信息或者同时获取硬件属性信息和软件属性信息可以灵活设定。且本实施例中,硬件属性信息具体包含的内容和软件属性信息具体包含的内容也可以灵活设定,只要能准确的反应业务实体的具体需求即可。
例如:当获取的属性信息包括业务实体的硬件属性信息时,该硬件属性信息包括但不限于业务实体所在单板的单板号boardid、所在电路板的电路板号pcbid、所在物料的物料号bomid中的至少一种,此时确认匹配规则包括:将获取的单板号、电路板号和物料号中的至少一个作为匹配规则的辅助匹配信息。例如辅助匹配信息包括单板号、电路板号、物料号时,则此时的辅助匹配信息包括三个辅助匹配参数,分别为单板号、电路板号、物料号。本实施例中,业务实体所在的单板、电路板等硬件,是指这些硬件作为该业务实体运行的硬件基础。
又例如:当获取的属性信息包括业务实体的软件属性信息时,软件属性信息包括业务实体的作业单号jno和业务名称sevice -name中的至少一种,此时确认匹配规则包括:将获取的作业单号和业务名称中的至少一个作为匹配 规则的辅助匹配信息。例如辅助匹配信息包括作业单号和业务名称,则此时的辅助匹配信息包括两个辅助匹配参数,分别为作业单号和业务名称。
应当理解的是,本实施例中,各业务实体确认匹配规则的规则可以相同,例如可以都是根据业务实体的硬件属性和软件属性确认;不同业务实体确认匹配规则的规则也可以不相同,例如针对A类业务实体,根据其硬件属性信息确认匹配规则,针对B类业务实体,根据其软件属性信息或软件属性信息结合硬件属性信息确认匹配规则。且应当理解的是,本实施例中确认的匹配规则的辅助匹配信息所包括的辅助匹配参数以及个数也都是可以根据具体业务实体场景确定的。
S302:根据获取的属性信息确认业务实体的匹配规则。
例如假设获取到的业务实体的属性信息包括单板号20、电路板号10、作业单号5,则确认匹配规则的辅助匹配信息包括三个辅助匹配参数,分别是单板号20、电路板号10、作业单号5。
S203:将匹配规则添加到系统运行参数查询请求中。
本步骤中,将匹配规则添加到系统运行参数查询请求的方式可以是直接将匹配规则添加到原来接收到的系统运行参数查询请求中;也可以从原来接收到的系统运行参数查询请求中提取出主键值,然后与匹配规则一起重新确认一个系统运行参数查询请求。
应当理解的是,在本实施例中,匹配规则和主键值发给进行参数匹配操作的服务端(例如主控节点设备)时,二者可以一起发送(例如一起通过系统运行参数查询请求发送),也可以分别发送,且分别发送时,二者可以通过相同的请求,也可以通过不同的请求发送,且二者可以同时发送,可以不同时发送。但在分别发送时,需要添加可以表征二者关联关系的标识信息,以供服务端接收到后进行识别配对。
S204:将系统运行参数查询请求发给服务端,例如包括但不限于主控节点设备(该主控节点设备作为系统匹配的服务端,但应当理解的也可通过其他设备实现,此时的其他设备则等同于本实施例中的主控节点设备)进行系 统运行参数查询。
相应的,作为系统运行参数匹配操作侧的服务端(例如主控节点设备),其接收到的系统运行参数查询请求(如上所述,可以是业务节点设备发送的)就包含一个主键值和匹配规则,此时其进行系统运行参数匹配的方法参见图4所示,包括:
S401:接收业务节点设备发送的系统运行参数查询请求。
该步骤中接收到的系统运行参数查询请求来自业务节点设备上的业务实体,其包括主键值和匹配规则。
S402:提取接收到的系统运行参数查询请求中的主键值和匹配规则。
S403:根据提取的主键值和匹配规则从系统参数数据库中匹配出对应的系统运行参数值。
在该步骤中,可以先通过主键值匹配出对应的系统运行参数值集合,然后再根据匹配规则从该系统运行参数值集合中匹配出与该匹配规则对应的系统运行参数值,例如参见图5所示,包括:
S501:根据提取的主键值从系统参数数据库中匹配出与该主键值对应的系统运行参数值集合。
S502:根据提取的匹配规则从S501得到的系统运行参数值集合中匹配出与该匹配规则对应的系统运行参数值,作为目标系统运行参数值。
当然,在一些示例中,也可先从系统参数数据库中找到与提取的匹配规则相匹配的各系统运行参数值,然后再从得到的各系统运行参数值中匹配出与提取的主键值对应的系统运行参数值,但这种匹配方式可能会存在漏匹配的情况。
如上所述分析,本实施例中提取的匹配规则包括辅助匹配信息,辅助匹配信息包括至少一个辅助匹配参数,各系统运行参数值对应的约束条件包括用于与所述辅助匹配信息进行匹配的约束匹配信息,约束匹配信息包括至少一个约束匹配参数。因此在上述S502根据匹配规则从系统运行参数值集合中 匹配出与匹配规则对应的系统运行参数值作为目标系统运行参数值,具体可包括:将提取的匹配规则包括的辅助匹配信息中的辅助匹配参数与系统运行参数值集合中各系统运行参数值的约束条件包括约束匹配信息中的约束匹配参数进行匹配,将约束匹配参数与辅助匹配参数匹配成功数最多的系统运行参数值,作为目标系统运行参数值,也即作为发起查询的业务实体对应的系统运行参数值。
可见,在本实施例中,仍采用单主键值与系统运行参数的对应关系存储结构实现系统运行参数的查询和匹配,具体通过单主键值+业务实体的属性信息对应的约束条件实现系统运行参数的准确、快速的查询和匹配,改动小,易实现,成本低,且可扩展性和通用性好。
根据本发明实施例提供的系统运行参数查询方法、匹配方法预先在系统参数数据库中存储各主键值对应的系统运行参数值集合,并为系统运行参数值集合中的各系统运行参数值设置与业务实体属性关联的约束条件;然后在接收到业务实体发送的包含主键值的系统运行参数查询请求后,可以根据该业务实体的属性信息确认匹配规则随该系统运行参数查询请求一起发到作为服务端的主控节点设备;服务端可以根据该请求中的主键值和匹配规则,从系统参数数据库中匹配出对应的系统运行参数值。本发明提供的系统运行查询、匹配方案,并不需要对主键key进行修改,只需在现有数据存储结构基础上为各系统运行参数值设置对应的约束条件作为辅助匹配条件即可,当需要增加查询字段时,仅需在对应的约束条件中增加即可,而不用对主键key做任何修改,可沿用原来的软件系统和数据存储结构,在降低成本的同时,可提升扩展性和通用性,同时也能避免因修改数据结构升级系统而中断业务。
实施例二:
本实施例提供给了一种系统运行参数查询装置,其可以应用于作为系统运行参数查询发起的设备侧,且其所包括的各模块的功能可通过相应设备的处理器实现,例如业务节点设备。参见图6所示,该系统运行参数查询装置包括:
请求处理模块61,用于接收来自业务实体的系统运行参数查询请求,如上所述,该系统运行参数查询请求包括主键值,以及用于根据所述业务实体的属性信息确认的匹配规则,并将匹配规则添加到系统运行参数查询请求中。
在本实施例中,请求处理模块61具体可通过客户端接口接收业务实体的系统运行参数查询请求;且具体可通过客户端获取业务实体的属性信息。具体属性信息获取方式以及获取的内容参见上述实施例所示,在此不再赘述。
另外,本实施例中,请求处理模块61确认匹配规则的方式,以及发送匹配规则和主键值的方式也可参见上述实施例所示,在此不再赘述。
请求发送模块62,用于将来自请求处理模块61的系统运行参数查询请求发给主控节点设备进行系统运行参数查询。
相应的,本实施例还提供了一种系统运行参数匹配装置,其可应用于执行系运行参数匹配作为服务端的设备上,且其所包含的各模块的功能也可通过相应设备的处理器实现,参见图7所示,该系统运行参数匹配装置包括:
请求接收模块71,用于接收业务节点设备发送的系统运行参数查询请求,如上所述,接收到的系统运行参数查询请求包括主键值和匹配规则。
匹配模块72,用于提取接收到的系统运行参数查询请求中的主键值和匹配规则,根据提取的主键值和匹配规则从系统参数数据库中匹配出对应的系统运行参数值。
匹配模块72可以先通过主键值匹配出对应的系统运行参数值集合,然后再根据匹配规则从该系统运行参数值集合中匹配出与该匹配规则对应的系统运行参数值;也可以先从系统参数数据库中找到与提取的匹配规则相匹配的各系统运行参数值,然后再从得到的各系统运行参数值中匹配出与提取的主键值对应的系统运行参数值,具体匹配方式可以根据具体业务实体场景灵活设定。
且在本实施例中,匹配模块72可将提取的匹配规则包括的辅助匹配信息中的辅助匹配参数与系统运行参数值集合中各系统运行参数值对应的约束条 件包括的约束匹配信息中的约束匹配参数进行匹配,将约束匹配参数与辅助匹配参数匹配成功数最多的系统运行参数值作为目标系统运行参数值,也即作为上述业务实体对应的系统运行参数值。
参见图7所示,在本实施例中的系统运行参数匹配装置还可包括配置模块70,用于在系统参数数据库中预先配置各主键值对应的系统运行参数值集合,各系统运行参数值集合中包括至少一个系统运行参数值,且各系统系统参数值具有对应的约束条件。例如,参见图8所示,配置模块70可以读取并解析相应的配置文件,将解析出的数据存入系统参数数据库。图8中,解析出的主键值key分别有67175400、67175401和67175402,其中,67175400对应的values中的value分别依次有7、7、7、3、1000、100、101、101、102、1000和5,其中第一个value=7的约束条件为空,第二个value=7的约束条件为boardid=“1”,第三个value=7的约束条件为boardid=“1”,bomid=“10”,剩余的其他value的约束条件则具体参见图8所示。对于67175401和67175402具体对应的values中的value以及各value对应的约束条件也参见图8所示,在此不再赘述。
根据本发明实施例提供的系统运行参数查询装置、匹配装置预先在系统参数数据库中存储各主键值对应的系统运行参数值集合,并为系统运行参数值集合中的各系统运行参数值设置与业务实体属性关联的约束条件;然后在接收到业务实体发送的包含主键值的系统运行参数查询请求后,可以根据该业务实体的属性信息确认匹配规则随该系统运行参数查询请求一起发到作为服务端的主控节点设备;服务端可以根据该请求中的主键值和匹配规则,从系统参数数据库中匹配出对应的系统运行参数值。本发明提供的系统运行查询、匹配方案,并不需要对主键key进行修改,只需在现有数据存储结构基础上为各系统运行参数值设置对应的约束条件作为辅助匹配条件即可,当需要增加查询字段时,仅需在对应的约束条件中增加即可,而不用对主键key做任何修改,可沿用原来的软件系统和数据存储结构,在降低成本的同时,可提升扩展性和通用性,同时也能避免因修改数据结构升级系统而中断业务。
为了便利理解本发明,下面结合一个完整的系统运行参数查询匹配过程 为示例进行说明。
在本示例中,业务实体(也即发起系统运行参数查询的查询实体)调用客户端接口并传入key,客户端自动检测查询业务实体的硬件属性信息和软件属性信息(也即该业务实体所在的软硬件环境(如包括但不限于boardid、bomid、pcbid、jno、sevice-name),并组合成健值对字符串的形式作为辅助匹配信息和主键值key一起传递到服务端,服务端根据key查询到对应集合values,再用values集合中每个value的约束条件去适配匹配规则,选择匹配度最高的系统运行参数值value返回给客户端。该过程参见图9所示,包括:
S901:服务端进程启动,读取并解析系统参数配置文件,并将解析出的数据存入系统参数数据库。
S902:业务实体调用客户端接口,传入key进行查询。
S903:客户端检测业务实体所在软硬件环境,以健值对字符串的形式(如"boardid=1;bomid=2;pcbid=3;jno=4;")作为匹配规则同key一起传递到服务端。
S904:服务端根据key值从系统数据库中查询到对应的集合values(以下称集合V),集合V中的集合value附带约束条件。
S905:按积分制进行匹配,选择积分最高的value为最优匹配项。该匹配过程具体如下:
从集合V中取一个value,设初始计1分(当然也可以计为0分),假定该value的约束条件有N个约束匹配参数,取出第一个约束匹配参数。
使用取出的约束匹配参数和匹配规则包括的辅助匹配消息中的辅助匹配参数进行匹配,如匹配上加1分,匹配不上则淘汰该value,取下一个value重复进行上述匹配过程,如果该value的所有约束匹配参数都匹配上,则该value计N+1分。
将当前value与备选value进行积分比较,取积分高者为备选value。如果没有备选value则直接将当前value设置为备选value;如果积分与备选value 相同且当前还剩余有未比对的value,则将当前的value淘汰而保留原来的备选value;如果还存在未比对的value,取下一个value,不断循环上述比对过程,直到集合V中的value遍历完,最终返回的备选value即为最优匹配的系统运行参数。
本实施例提供的系统运行参数查询匹配方案,提高了系统运行参数查询软件的可扩展性,在不修改查询软件实现、不修改数据库结构的情况下能更好地业务实体在不同的软硬件环境上。同时,由于本实施例采用业务实体自定义匹配规则查询的方式,可以支持分布式设备不同的节点采用不同的匹配规则(空间上的差异)、以及业务实体运行环境动态改变时对匹配规则进行动态的调整(时间上的差异),从而最大程度上支持了系统运行参数匹配的应变性和灵活性。
实施例三:
本实施例提供了一种业务节点设备,其可应用于分布式网络,参见图10所示,其包括第一处理器1001、第一存储器1002及第一通信总线1003;
第一通信总线1003用于实现第一处理器1001和第一存储器1002之间的连接通信;
第一处理器1001用于执行第一存储器1002中存储的一个或者多个第一程序,以实现如上述各实施例所述的系统运行参数查询方法的步骤。
本实施例还提供了一种主控节点设备,其也可应用于分布式网络,参见图11所示,其包括第二处理器1101、第二存储器1102及第二通信总线1103;
第二通信总线1103用于实现第二处理器1101和第二存储器1102之间的连接通信;
第二处理器1101用于执行第二存储器1102中存储的一个或者多个第二程序,以实现如上述各实施例所述的系统运行参数匹配方法的步骤。
本发明实施例还提供一种计算机存储介质,该计算机存储介质可以应用于各种通信设备。该计算机可读存储介质可用于存储一个或者多个第一程序, 该一个或者多个第一程序可被一个或者多个处理器执行,以实现如上各实施例所示的系统运行参数查询方法的步骤;或,该计算机可读存储介质存储用于存储一个或者多个第二程序,该一个或者多个第二程序可被一个或者多个处理器执行,以实现如上各实施例所示的系统运行参数匹配方法的步骤。
为了便于理解,本实施例结合一种具体应用场景的系统运行参数查询和匹配过程进行示例说明。
下面结合附图对技术方案的实施作进一步的详细描述:
服务端进程启动,读取并解析系统参数配置文件,并将解析出的数据存入数据库,其中key为查询关键字,value为系统运行参数值,其他如boardid、bomid、pcb等为约束匹配参数组合成字符串作为约束条件(如"boardid=2;bomid=10;pcb=101;")进行存储。
系统运行参数查询交互过程如图12所示,业务实体调用客户端接口,传入参数key(本示例中key值以图8中的67175400为例),客户端自动检查应用所在的软硬件环境,将各辅助匹配参数组合成匹配规则同key一起传递到服务端,假定检测到该业务实体所在boardid为2、料单号bomid为10、pcb为101,选取这三项作为辅助匹配参数组成匹配规则,则该匹配规则包含的辅助匹配消息为"boardid=2;bomid=10;pcb=101"。
如图13所示,服务端接收到到客户端的查询请求,先使用key(67175400)查询到key(67175400)对应的所有value及各value对应的约束条件,假定为集合V,然后从集合V中以积分制(当然也可以其他方式)的方式选出最适合的value,该匹配过程如下:
从集合V中选第一个value,如图13所示,该value没有约束条件,适配任意匹配规则,初始积分为1,备选value设置为该value;
取第二条value,该value的约束条件为"boardid=1;",匹配规则为"boardid=2;bomid=10;pcb=101;",约束条件的约束匹配参数boardid=1匹配失败;
取第三条value,该value的约束条件为"boardid=1;bomid=10",匹配规则为"boardid=2;bomid=10;pcb=101",约束条件的约束匹配参数boardid=1匹配失败;
取第四条value,该value的约束条件为"boardid=2;",匹配成功,积分为2,和备选value(积分1)比较,该value积分较高,将备选value设置为当前value;
取第五条value,该value的约束条件为"boardid=2;bomid=10;",匹配成功,积分为3,和备选value(积分2)比较,该value积分较高,将备选value设置为当前value;
取第六条value,该value的约束条件为"boardid=2;bomid=10;pcb=100",约束条件的约束匹配参数pcb=100匹配失败;
取第七条value,该value的约束条件为"boardid=2;bomid=10;pcb=101",匹配成功,积分为4,和备选value(积分3)比较,该value积分较高,将备选value设置为当前value;
取第八条value,该value的约束条件为"boardid=2;bomid=10;pcb=101;jno=100",约束条件的约束匹配参数jno=100匹配失败;
取第九条value,该value的约束条件为"boardid=2;bomid=10;pcb=102;jno=101",约束条件的约束匹配参数pcb=102匹配失败;
遍历完剩下value,最终选出积分最高的第七条value为最适合系统运行参数值。
显然,本领域的技术人员应该明白,上述本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明不限制于任何特定的硬件和软件结合。
以上内容是结合具体的实施方式对本发明实施例所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。

Claims (10)

  1. 一种系统运行参数查询方法,包括:
    接收来自业务实体的系统运行参数查询请求,所述系统运行参数查询请求包括主键值;
    根据所述业务实体的属性信息确认匹配规则,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息,并将所述匹配规则添加到所述系统运行参数查询请求中;
    将所述系统运行参数查询请求发给主控节点设备进行系统运行参数查询。
  2. 如权利要求1所述的系统运行参数查询方法,其中,所述业务实体的属性信息包括:所述业务实体的硬件属性信息和软件属性信息中的至少一种。
  3. 如权利要求2所述的系统运行参数查询方法,其中,所述属性信息包括所述硬件属性信息时,所述硬件属性信息包括所述业务实体所在单板的单板号、所在电路板的电路板号、所在物料的物料号中的至少一种;
    所述根据获取的属性信息确认匹配规则包括:
    将获取的所述单板号、电路板号和物料号中的至少一个作为匹配规则的辅助匹配信息;
    所述属性信息包括所述软件属性信息时,所述软件属性信息包括所述业务实体的作业单号和服务名称中的至少一种;
    所述根据获取的属性信息确认匹配规则包括:
    将获取的所述作业单号和业务名称中的至少一个作为匹配规则的辅助匹配信息。
  4. 一种系统运行参数匹配方法,包括:
    接收业务节点设备发送的系统运行参数查询请求,所述系统运行参数查 询请求包括主键值和匹配规则,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息;
    根据所述主键值和所述匹配规则从系统参数数据库中匹配出对应的目标系统运行参数值,其中,所述系统参数数据库中预先存储有各主键值对应的系统运行参数值集合,各系统运行参数值集合中包括至少一个系统运行参数值,且各系统运行参数值配置有约束条件,所述约束条件包括用于与所述辅助匹配信息进行匹配的约束匹配信息。
  5. 如权利要求4所述的系统运行参数匹配方法,其中,所述根据所述主键值和所述匹配规则从系统参数数据库中匹配出对应的目标系统运行参数值包括:
    根据所述主键值从所述系统参数数据库中匹配出与所述主键值对应的系统运行参数值集合;
    根据所述匹配规则和所述系统运行参数值集合中各系统运行参数值的约束条件,从所述系统运行参数值集合中匹配出约束匹配信息与所述辅助匹配信息相匹配的系统运行参数值,作为目标系统运行参数值。
  6. 如权利要求5所述的系统运行参数匹配方法,其中,所述根据所述匹配规则和所述系统运行参数值集合中各系统运行参数值的约束条件,从所述系统运行参数值集合中匹配出约束匹配信息与所述辅助匹配信息相匹配的系统运行参数值,作为目标系统运行参数值包括:
    将所述辅助匹配信息中的辅助匹配参数与所述系统运行参数值集合中各系统运行参数值的约束匹配信息中的约束匹配参数进行匹配,将所述约束匹配参数与所述辅助匹配参数匹配成功数最多的系统运行参数值,作为目标系统运行参数值。
  7. 一种系统运行参数查询装置,包括:
    请求处理模块,用于接收来自业务实体的系统运行参数查询请求,所述系统运行参数查询请求包括主键值,以及用于根据所述业务实体的属性信息 确认的匹配规则,并将所述匹配规则添加到所述系统运行参数查询请求中,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息;
    请求发送模块,用于将所述系统运行参数查询请求发给主控节点设备进行系统运行参数查询。
  8. 一种系统运行参数匹配装置,包括:
    请求接收模块,用于接收业务节点设备发送的系统运行参数查询请求,所述系统运行参数查询请求包括主键值和匹配规则,所述匹配规则包括用于进行系统运行参数匹配的辅助匹配信息;
    匹配模块,用于根据所述主键值和所述匹配规则从系统参数数据库中匹配出对应的系统运行参数值;其中,所述系统参数数据库中预先存储有各主键值对应的系统运行参数值集合,各系统运行参数值集合中包括至少一个系统运行参数值,且各系统系统参数值配置有约束条件,所述约束条件包括用于与所述辅助匹配信息进行匹配的约束匹配信息。
  9. 一种业务节点设备,包括第一处理器、第一存储器及第一通信总线;
    所述第一通信总线用于实现第一处理器和第一存储器之间的连接通信;
    所述第一处理器用于执行第一存储器中存储的一个或者多个第一程序,以实现如权利要求1至3中任一项所述的系统运行参数查询方法的步骤。
  10. 一种主控节点设备,包括第二处理器、第二存储器及第二通信总线;
    所述第二通信总线用于实现第二处理器和第二存储器之间的连接通信;
    所述第二处理器用于执行第二存储器中存储的一个或者多个第二程序,以实现如权利要求4至6中任一项所述的系统运行参数匹配方法的步骤。
PCT/CN2019/074551 2018-02-07 2019-02-02 系统运行参数查询方法、匹配方法、装置及节点设备 WO2019154353A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810123376.XA CN110119292B (zh) 2018-02-07 2018-02-07 系统运行参数查询方法、匹配方法、装置及节点设备
CN201810123376.X 2018-02-07

Publications (1)

Publication Number Publication Date
WO2019154353A1 true WO2019154353A1 (zh) 2019-08-15

Family

ID=67520113

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/074551 WO2019154353A1 (zh) 2018-02-07 2019-02-02 系统运行参数查询方法、匹配方法、装置及节点设备

Country Status (2)

Country Link
CN (1) CN110119292B (zh)
WO (1) WO2019154353A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955460A (zh) * 2019-11-15 2020-04-03 北京金山云网络技术有限公司 一种服务进程启动方法、装置、电子设备和存储介质
CN111311329A (zh) * 2020-02-20 2020-06-19 口碑(上海)信息技术有限公司 标签数据获取方法、装置、设备及可读存储介质
CN111953517A (zh) * 2020-07-09 2020-11-17 北京思特奇信息技术股份有限公司 一种实现业务规则热加载的方法及系统
CN112328392A (zh) * 2020-10-27 2021-02-05 金蝶软件(中国)有限公司 一种数据处理方法及相关设备
CN113282274A (zh) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 一种数据处理方法和装置
CN113535769A (zh) * 2020-04-15 2021-10-22 北京京东振世信息技术有限公司 查询信息的方法和装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285816B (zh) * 2020-02-19 2022-10-28 华为技术有限公司 一种基于键值配置的控制请求发送方法、装置和系统
CN112256737A (zh) * 2020-10-30 2021-01-22 深圳前海微众银行股份有限公司 一种hive规则匹配数据的方法、设备及存储介质
CN112699149B (zh) * 2020-12-31 2023-09-19 青岛海尔科技有限公司 目标数据获取方法、装置和存储介质及电子装置
CN112818012A (zh) * 2021-01-26 2021-05-18 深圳力维智联技术有限公司 设备数据匹配方法、装置、设备及存储介质
CN114297411B (zh) * 2022-03-08 2023-05-02 支付宝(杭州)信息技术有限公司 知识图谱中实体的配置方法、分析方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673372A (zh) * 2009-09-16 2010-03-17 金蝶软件(中国)有限公司 一种更新物料清单的方法和装置
CN102707976A (zh) * 2012-05-14 2012-10-03 中兴通讯股份有限公司 一种atca系统及其管理固件版本的方法
CN103338189A (zh) * 2013-06-08 2013-10-02 临沂市拓普网络股份有限公司 具有多种通信协议接口的数据共享控制设备、系统及方法
CN104573845A (zh) * 2014-12-03 2015-04-29 国家电网公司 信息系统设备状态检修辅助决策方法
US9104707B1 (en) * 2013-03-14 2015-08-11 Amazon Technologies, Inc. Iterative generation of partial column schema
CN106886371A (zh) * 2017-02-15 2017-06-23 中国保险信息技术管理有限责任公司 缓存数据处理方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8572091B1 (en) * 2011-06-27 2013-10-29 Amazon Technologies, Inc. System and method for partitioning and indexing table data using a composite primary key
CN103617108A (zh) * 2013-12-17 2014-03-05 昆山中创软件工程有限责任公司 一种计算机设备运行状态的监测方法及装置
CN104125274A (zh) * 2014-07-16 2014-10-29 美的集团武汉制冷设备有限公司 电量控制方法、物联网终端及物联网服务器
CN107038207B (zh) * 2017-02-20 2021-03-19 创新先进技术有限公司 一种数据查询方法、数据处理方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673372A (zh) * 2009-09-16 2010-03-17 金蝶软件(中国)有限公司 一种更新物料清单的方法和装置
CN102707976A (zh) * 2012-05-14 2012-10-03 中兴通讯股份有限公司 一种atca系统及其管理固件版本的方法
US9104707B1 (en) * 2013-03-14 2015-08-11 Amazon Technologies, Inc. Iterative generation of partial column schema
CN103338189A (zh) * 2013-06-08 2013-10-02 临沂市拓普网络股份有限公司 具有多种通信协议接口的数据共享控制设备、系统及方法
CN104573845A (zh) * 2014-12-03 2015-04-29 国家电网公司 信息系统设备状态检修辅助决策方法
CN106886371A (zh) * 2017-02-15 2017-06-23 中国保险信息技术管理有限责任公司 缓存数据处理方法及装置

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955460A (zh) * 2019-11-15 2020-04-03 北京金山云网络技术有限公司 一种服务进程启动方法、装置、电子设备和存储介质
CN110955460B (zh) * 2019-11-15 2023-10-03 北京金山云网络技术有限公司 一种服务进程启动方法、装置、电子设备和存储介质
CN111311329A (zh) * 2020-02-20 2020-06-19 口碑(上海)信息技术有限公司 标签数据获取方法、装置、设备及可读存储介质
CN113282274A (zh) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 一种数据处理方法和装置
CN113282274B (zh) * 2020-02-20 2023-09-22 北京京东振世信息技术有限公司 一种数据处理方法和装置
CN113535769A (zh) * 2020-04-15 2021-10-22 北京京东振世信息技术有限公司 查询信息的方法和装置
CN113535769B (zh) * 2020-04-15 2023-11-03 北京京东振世信息技术有限公司 查询信息的方法和装置
CN111953517A (zh) * 2020-07-09 2020-11-17 北京思特奇信息技术股份有限公司 一种实现业务规则热加载的方法及系统
CN111953517B (zh) * 2020-07-09 2023-08-29 北京思特奇信息技术股份有限公司 一种实现业务规则热加载的方法及系统
CN112328392A (zh) * 2020-10-27 2021-02-05 金蝶软件(中国)有限公司 一种数据处理方法及相关设备

Also Published As

Publication number Publication date
CN110119292A (zh) 2019-08-13
CN110119292B (zh) 2023-02-07

Similar Documents

Publication Publication Date Title
WO2019154353A1 (zh) 系统运行参数查询方法、匹配方法、装置及节点设备
US10455014B2 (en) Method and apparatus for synchronizing content
CN101098248B (zh) 一种基于配置描述文件实现通用网络管理的方法及系统
US7509422B2 (en) System and method for locating web services
US9798522B2 (en) Generating command line interface using application programming interface specification
CN111143382B (zh) 数据处理方法、系统和计算机可读存储介质
US8250032B2 (en) Optimizing publish/subscribe matching for non-wildcarded topics
US20050187912A1 (en) Management of configuration data using extensible markup language
US20070180143A1 (en) Translation Web Services For Localizing Resources
CN113626223A (zh) 一种接口调用方法和装置
CN109885347B (zh) 一种配置数据的获取方法、装置及终端、系统、存储介质
CN113806104A (zh) 接口访问请求处理方法、api网关、服务器及系统
WO2023208132A1 (zh) Api转换系统及其访问请求处理方法、电子设备及介质
US8549090B2 (en) Messaging tracking system and method
CN106959975B (zh) 一种转码资源缓存处理方法、装置及设备
US7895316B2 (en) Apparatus, method, and computer program product providing enhanced document management
CN110325980B (zh) 用于数据库绑定型应用的用户界面后端集群的扩展方法
WO2022135410A1 (zh) 加载源文件的方法及装置
CN113157722B (zh) 一种数据处理方法、装置、服务器、系统及存储介质
CN112187916B (zh) 一种跨系统的数据同步方法与装置
US10599728B1 (en) Metadata agent for query management
CN114817794A (zh) 网页内容控制方法、装置、设备及介质
WO2020006930A1 (zh) 数据伪造方法、装置及计算机存储介质
JP4283595B2 (ja) 情報処理装置、オブジェクト管理方法、オブジェクト管理プログラム及び記録媒体
CN114462076B (zh) 一种文件权限的控制方法、装置、设备及介质

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: 19750372

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A 03.12.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 19750372

Country of ref document: EP

Kind code of ref document: A1