Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Python configuration monitoring and responding method, device and equipment and readable medium

A configuration item and target configuration technology, applied in version control, software maintenance/management, etc., can solve the problems of large amount of modification, high maintenance cost, and many modification places, so as to reduce the probability of code error, reduce code maintenance cost, The effect of reducing the amount of redundant code

Pending Publication Date: 2022-05-13
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with the expansion of application functions, there are more and more configuration items and corresponding business modules. Every time a business module is added or modified, it is necessary to add or modify the configuration trigger logic code again. If it is notified by sending a message , you need to add message definition and message binding. If you use the calling method, you need to increase the calling code. Over time, a lot of messages will be defined and a lot of calls will be added. There are many places to modify and a large amount of modification, and the code is very redundant. The larger the application size, the easier it is to introduce problems
From the perspective of program management, it is impossible to generally control which configuration item changes will affect which business modules, lack of unified management, and poor system controllability
Furthermore, different business modules of the application are generally developed by different personnel, and the interfaces are implemented differently. Interface changes need to be modified synchronously on the trigger side, and different modules and different interfaces must be displayed when the trigger response is triggered. The code readability is poor. , high maintenance cost

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Python configuration monitoring and responding method, device and equipment and readable medium
  • Python configuration monitoring and responding method, device and equipment and readable medium
  • Python configuration monitoring and responding method, device and equipment and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0022] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0023] Based on the above purpose, the first aspect of the embodiments of the present invention proposes an embodiment of a Python configuration monitoring and response method. figure 1 What is shown is a schematic diagram of an embodiment of the Py...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Python configuration monitoring and responding method. The method comprises the following steps: adding configuration item attributes for a plurality of modified functions of a service module by defining a modifier function; defining a configuration monitoring base class, defining a construction function for the configuration monitoring base class to construct a first mapping of a configuration item and a modified function, and defining a response total entry function for the configuration monitoring base class; initializing the service module based on the configuration monitoring base class to generate a service module instance, and maintaining a second mapping of the configuration item and the service module instance by the registration interface; in response to updating of the target configuration item by the user through the storage interface, searching a target service module instance corresponding to the target configuration item by the notification interface based on second mapping, and updating the target configuration item in the target service module instance; and calling a response total entry function, searching a target modified function corresponding to the target configuration item based on the first mapping, and updating the configuration item attribute of the target modified function through the modifier function.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a Python configuration monitoring and response method, device, equipment and readable medium. Background technique [0002] With the continuous improvement and development of the functions of the Python programming language, more and more applications are developed based on the Python programming language. For various functions provided by the Python application, corresponding configuration items will be designed. When the user modifies some configuration items, the application needs to be saved in time and respond according to the established logic. For the application, it is necessary to deal with who will monitor the configuration items, which configuration items to monitor, and which monitoring parties need to be notified of which configuration item changes, such as business modules and other issues. [0003] Existing Python applications generally establish various...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/71
CPCG06F8/71
Inventor 刘超徐基法
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products