CN114924806B - Dynamic synchronization method, device, equipment and medium for configuration information - Google Patents

Dynamic synchronization method, device, equipment and medium for configuration information Download PDF

Info

Publication number
CN114924806B
CN114924806B CN202210364797.8A CN202210364797A CN114924806B CN 114924806 B CN114924806 B CN 114924806B CN 202210364797 A CN202210364797 A CN 202210364797A CN 114924806 B CN114924806 B CN 114924806B
Authority
CN
China
Prior art keywords
configuration
monitoring
change information
registration
application module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210364797.8A
Other languages
Chinese (zh)
Other versions
CN114924806A (en
Inventor
席国庆
宋清峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Huiershi Software Technology Co ltd
Original Assignee
Nanjing Huiershi Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Huiershi Software Technology Co ltd filed Critical Nanjing Huiershi Software Technology Co ltd
Priority to CN202210364797.8A priority Critical patent/CN114924806B/en
Publication of CN114924806A publication Critical patent/CN114924806A/en
Application granted granted Critical
Publication of CN114924806B publication Critical patent/CN114924806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/4451User profiles; Roaming
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a dynamic synchronization method, a device, equipment and a medium of configuration information. The method is executed by a configuration monitoring center; the configuration monitoring center is connected with the configuration server and at least one application module; each application module includes an application program and a configuration space that is independent of each application program. The method comprises the following steps: if a registration request of an application module is received, determining a monitoring task registered by the application module; monitoring a configuration request of an upper computer through a configuration server, and receiving configuration change information; if the target monitoring task matched with the configuration change information exists, the changed configuration resources are issued to the target application module which issues the target monitoring task and are received by the configuration space of the target application module, so that the configuration resources of the application programs of the target application module are synchronized. According to the technical scheme, strong isolation of configuration and application can be realized, the configuration response speed is improved, the system energy consumption is reduced, and the system stability is enhanced.

Description

Dynamic synchronization method, device, equipment and medium for configuration information
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a medium for dynamically synchronizing configuration information.
Background
With the development of embedded technology, the embedded equipment has a great improvement in terms of functional richness, so that people put forward higher requirements on the configuration update response speed of the embedded equipment. Therefore, how to enable an application program to quickly respond to an embedded configuration change of a device, and how to quickly take effect the changed configuration in the application program are the problems to be solved at present.
In the conventional technology, the configuration manager and the application use the same configuration resource. When the configuration manager monitors a configuration change request, the application that is using the configuration is automatically ignored, and the configuration resource that is being used by the application is directly and violently replaced.
However, this way the configuration and application are completely coupled together. When more resources are configured, the complexity of the system is too high to maintain, the problems of data disorder or loss and complex operation can be caused, and the system is crashed when serious, so that the stability of the system is seriously affected.
Disclosure of Invention
the invention provides a dynamic synchronization method, a device, equipment and a medium of configuration information, which can realize strong isolation of configuration and application through configuring a monitoring center and independent configuration spaces of each application program, thereby improving the response speed of configuration, reducing the energy consumption of a system and enhancing the stability of the system.
According to an aspect of the present invention, there is provided a dynamic synchronization method of configuration information, the method being performed by a configuration monitoring center; the configuration monitoring center is connected with the configuration server and at least one application module; each application module comprises an application program and an independent configuration space of each application program; the method comprises the following steps:
if a registration request of an application module is received, determining a monitoring task registered by the application module;
monitoring a configuration request of an upper computer through the configuration server, and receiving configuration change information;
And if the target monitoring task matched with the configuration change information exists, issuing changed configuration resources to a target application module which sends out the target monitoring task, and receiving the configuration space of the target application module so as to synchronize the configuration resources of the application program of the target application module.
Optionally, the registration request includes an application identifier and a monitoring configuration;
If a registration request of an application module is received, determining a monitoring task registered by the application module includes:
If a registration request of an application module is received, identifying whether repeated registration behaviors exist in the registration request;
If yes, ignoring the registration request;
if not, establishing a monitoring task according to the application program identification and the monitoring configuration in the registration request.
Optionally, establishing a monitoring task according to the application program identifier and the monitoring configuration in the registration request includes:
Establishing a registration node according to the application program identifier and the monitoring configuration in the registration request;
And inserting the registration node into a preset registration linked list.
optionally, the registration request further includes configuring a synchronization callback function;
issuing changed configuration resources to a target application module which sends out the target monitoring task, wherein the method comprises the following steps:
and calling a configuration synchronization callback function in the target monitoring task, and synchronizing the configuration space of the target application module based on the changed configuration resource.
optionally, the configuration server monitors a configuration request of the upper computer, and receives configuration change information, including:
Receiving a configuration request of an upper computer through the configuration server;
Checking configuration information in the configuration request;
if the verification fails, feeding back configuration error information to the upper computer through the configuration server;
if the verification is successful, identifying whether the configuration information is changed or not;
If no change exists, ignoring the configuration request;
If there is a change, the configuration change information is inserted into a configuration change information linked list.
optionally, after inserting the configuration change information into the configuration change information linked list, the method further includes:
Traversing the monitoring tasks according to the configuration change information, and determining all target monitoring tasks matched with the configuration change information.
optionally, if a registration request of the application module is received, determining a monitoring task registered by the application module includes:
Establishing a registration node according to the application program identifier and the monitoring configuration in the registration request, and inserting the registration node into a preset registration linked list;
After inserting the configuration change information into the configuration change information linked list, the method further comprises:
matching the registration nodes in the registration linked list based on the configuration change information in the configuration change information linked list;
And if the matching is successful, calling an updating interface of the registration node to update the configuration resource of the target monitoring task.
According to another aspect of the present invention, there is provided a dynamic synchronization method of configuration information, the method being performed by an application module; the application module is connected with a configuration monitoring center, and the configuration monitoring center is connected with a configuration server; the application modules are at least one in number, and each application module comprises an application program and an independent configuration space of each application program; the method comprises the following steps:
sending a registration request to the configuration monitoring center, and determining a monitoring task registered by an application module;
And if the configuration monitoring center monitors the configuration request of the upper computer through the configuration server, receives configuration change information, and the configuration change information is matched with a target monitoring task, receiving changed configuration resources synchronized by the configuration monitoring center through the configuration space so as to perform configuration resource synchronization on the application program.
Optionally, after receiving the changed configuration resources synchronized by the configuration monitoring center through the configuration space, the method further comprises:
Identifying whether the application program service corresponding to the changed configuration resource received by the configuration space is a periodic service or not;
if yes, executing the service with the changed configuration resource in the next period;
If not, executing the service with the changed configuration resource when executing the application program service corresponding to the changed configuration resource.
According to another aspect of the present invention, there is provided a dynamic synchronization device for configuration information, the device being configured in a configuration monitoring center; the configuration monitoring center is connected with the configuration server and at least one application module; each application module comprises an application program and an independent configuration space of each application program; the device comprises:
The monitoring task determining module is used for determining a monitoring task registered by the application module if a registration request of the application module is received;
The configuration change information receiving module is used for monitoring a configuration request of the upper computer through the configuration server and receiving configuration change information;
And the configuration resource synchronization module is used for issuing changed configuration resources to a target application module which sends out the target monitoring task if the target monitoring task matched with the configuration change information exists, and receiving the configuration space of the target application module so as to perform configuration resource synchronization on the application program of the target application module.
According to another aspect of the present invention, there is provided a dynamic synchronization device for configuration information, the device being configured in an application module; the application module is connected with a configuration monitoring center, and the configuration monitoring center is connected with a configuration server; the application modules are at least one in number, and each application module comprises an application program and an independent configuration space of each application program; the device comprises:
The monitoring task determining module is used for sending a registration request to the configuration monitoring center and determining a monitoring task registered by the application module;
And the configuration resource synchronization module is used for receiving configuration change information if the configuration monitoring center monitors a configuration request of the upper computer through the configuration server, and the configuration change information is matched with a target monitoring task, and receiving changed configuration resources synchronized by the configuration monitoring center through the configuration space so as to perform configuration resource synchronization on the application program.
according to another aspect of the present invention, there is provided an electronic apparatus including:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of dynamically synchronizing configuration information according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a dynamic synchronization method for configuration information according to any of the embodiments of the present invention when executed.
According to the technical scheme, if a registration request of an application module is received, a monitoring task registered by the application module is determined; monitoring a configuration request of an upper computer through a configuration server, and receiving configuration change information; if the target monitoring task matched with the configuration change information exists, the changed configuration resources are issued to the target application module which issues the target monitoring task and are received by the configuration space of the target application module, so that the configuration resources of the application programs of the target application module are synchronized. According to the technical scheme, the configuration and the application can be decoupled through the configuration monitoring center and the configuration space independent of each application program, so that the dynamic synchronization of configuration information is realized, the configuration response speed is improved, the energy consumption of a system is reduced, and the stability of the system is enhanced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for dynamically synchronizing configuration information according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a configuration information dynamic synchronization system according to a first embodiment of the present invention;
FIG. 3 is a flow chart of a method for dynamically synchronizing configuration information according to a second embodiment of the present invention;
FIG. 4 is a flow chart of a method for dynamically synchronizing configuration information according to a third embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a dynamic synchronization device for configuration information according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a dynamic synchronization device for configuration information according to a fifth embodiment of the present invention;
Fig. 7 is a schematic structural diagram of an electronic device implementing a method for dynamically synchronizing configuration information according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," "target," and the like in the description and claims of the present invention and in the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for dynamically synchronizing configuration information according to a first embodiment of the present invention, where the method may be performed by a configuration monitoring center in a case of dynamically synchronizing configuration information; the configuration monitoring center is connected with the configuration server and at least one application module; wherein each application module comprises an application program and a configuration space independent of each application program. The configuration monitoring center is configured with a dynamic synchronization device of configuration information, which may be implemented in hardware and/or software, which may be configured in an electronic device with data processing capabilities. As shown in fig. 1, the method includes:
S110, if a registration request of the application module is received, determining a monitoring task registered by the application module.
In this embodiment, the dynamic synchronization method of the configuration information may be performed by the configuration monitoring center. Fig. 2 is a schematic structural diagram of a dynamic synchronization system for configuration information according to a first embodiment of the present invention.
The dynamic synchronization system of the configuration information comprises an upper computer, a configuration server, a configuration monitoring center and an application module formed by an application program and a configuration space independent of the application program.
Specifically, the configuration server is connected with the upper computer and the configuration monitoring center, and can be used for receiving configuration information of the upper computer and sending the configuration information to the configuration monitoring center; the configuration monitoring center is connected with the configuration space in the configuration service end and the application module and can be used for receiving the configuration information from the configuration service end and sending the configuration information to the configuration space; the configuration space is connected with the configuration monitoring center and the application program in the application module and can be used for receiving the configuration information from the configuration monitoring center and sending the configuration information to the application program. It should be noted that in this embodiment, the configuration server and the application program may be strongly isolated by configuring the configuration space independent of the application program in the monitoring center and the application module, so that the configuration and the application may be decoupled.
The registration request may refer to an operation instruction requesting registration of the configuration monitoring task. The monitoring task may refer to a behavioral event that monitors configuration information. In this embodiment, when an application in the application module is started, a configuration space independent of the application in the application module is initialized first, and a registration request is sent to the configuration monitoring center, requesting that configuration information focused by the application be registered in the configuration monitoring center. If the application program is closed, the application module can recycle the configuration space and clear the configuration resources of the configuration space when the application program is started next time, so that the configuration space is reused. When the configuration monitoring center receives the registration request sent by the application module, the monitoring task which needs to be focused by the application module can be determined according to the registration request.
It should be noted that, the number of application modules may be one or more, and the number of registration requests sent by each application module may be one or more, which is not limited in this embodiment. It can be appreciated that when there are multiple application modules, the configuration monitoring center may receive the registration requests sent by the multiple application modules, and determine, according to the registration requests, the monitoring task that needs to be focused by each application module.
S120, monitoring a configuration request of the upper computer through the configuration server, and receiving configuration change information.
Wherein, the configuration request may refer to an operation instruction requesting configuration. The configuration change information may refer to new configuration information after the original configuration is changed. In this embodiment, the configuration request of the upper computer may be monitored in real time by the configuration server, and meanwhile, configuration change information is received. The configuration monitoring center may monitor the configuration request of the upper computer according to the interface configuration protocol in an interface manner, and receive configuration change information when the configuration request is monitored.
and S130, if the target monitoring task matched with the configuration change information exists, issuing changed configuration resources to a target application module sending the target monitoring task, and receiving the configuration space of the target application module to synchronize the configuration resources of the application program of the target application module.
The target monitoring task may be a monitoring task that matches the configuration change information. The target application module may refer to an application module corresponding to a target monitoring task. In this embodiment, when the configuration server monitors the configuration request of the upper computer, the configuration change information may be received and sent to the configuration monitoring center. And the configuration change information can be matched with the monitoring task by the configuration monitoring center. If the matching is successful, namely, a monitoring task matched with the configuration change information exists, the monitoring task is determined to be a target monitoring task, the changed configuration resources are sent to a configuration space in a target application module corresponding to the target monitoring task, and the configuration space is used for sending the changed configuration resources to the application program, so that the configuration resources of the application program are synchronized.
According to the technical scheme, if a registration request of an application module is received, a monitoring task registered by the application module is determined; monitoring a configuration request of an upper computer through a configuration server, and receiving configuration change information; if the target monitoring task matched with the configuration change information exists, the changed configuration resources are issued to the target application module which issues the target monitoring task and are received by the configuration space of the target application module, so that the configuration resources of the application programs of the target application module are synchronized. According to the technical scheme, the configuration and the application can be decoupled through the configuration monitoring center and the configuration space independent of each application program, so that the dynamic synchronization of configuration information is realized, the configuration response speed is improved, the energy consumption of a system is reduced, and the stability of the system is enhanced.
in this embodiment, optionally, the registration request includes an application identifier and a monitoring configuration; if a registration request of an application module is received, determining a monitoring task registered by the application module includes: if a registration request of an application module is received, identifying whether repeated registration behaviors exist in the registration request; if yes, ignoring the registration request; if not, establishing a monitoring task according to the application program identification and the monitoring configuration in the registration request.
Wherein the application identification may be used to identify the application. The monitoring configuration may refer to configuration content that needs to be monitored. By way of example, the monitoring configuration may be obtained in the form of a configuration index. Specifically, a storage address corresponding to the monitoring configuration can be found according to the configuration index, and then corresponding monitoring configuration content can be obtained according to the indexed address.
In this embodiment, the registration request may include an application identification and a monitoring configuration. When the configuration monitoring center receives a registration request from an application module, whether the registration request has repeated registration behaviors or not can be firstly identified, namely whether a monitoring task is established for the registration request or not is judged, and the registration request is processed according to the identification result. Specifically, if the registration request has repeated registration behaviors, that is, a corresponding monitoring task is established, the configuration monitoring center can automatically ignore the registration request; in contrast, if the registration request does not have repeated registration behaviors, that is, the corresponding monitoring task is not established, the monitoring task can be established through the configuration monitoring center according to the application program identifier and the monitoring configuration in the registration request. It will be appreciated that since the monitoring task is established based on the application identification and monitoring configuration in the registration request, it is clear from the monitoring task which application wants to monitor the configuration of what content.
by the arrangement, repeated registration behaviors can be effectively identified, so that waste of system resources is avoided, and the creation efficiency of monitoring tasks is improved.
In this embodiment, optionally, the establishing a monitoring task according to the application identifier and the monitoring configuration in the registration request includes: establishing a registration node according to the application program identifier and the monitoring configuration in the registration request; and inserting the registration node into a preset registration linked list.
Wherein the registration node may be used to characterize registered monitoring tasks. It will be appreciated that one registration node represents one monitoring task, i.e. different registration nodes represent different monitoring tasks. Thus, each time a monitoring task is registered, a new registration node is established. The registration chain table may refer to a storage structure for storing registration nodes, so as to facilitate unified management of monitoring tasks corresponding to each registration node. Specifically, the registration chain table is composed of a series of registration nodes, and has the characteristics of non-continuity and non-sequence on a physical storage unit. Specifically, each element in the registry may be regarded as a registry node, and each registry node includes two parts, namely a data field and a pointer field. Wherein the data field may be used to store data elements and the pointer field may be used to store node addresses. It will be appreciated that the address of the registration node may be found by accessing the pointer field of the registration chain table, and corresponding data may be obtained from that address.
In this embodiment, the registration node may be first established according to the application identifier and the monitoring configuration in the registration request, and then the registration node is inserted into a preset registration linked list, so as to complete the creation work of the monitoring task. If multiple registration requests are received at the same time, corresponding registration nodes can be established according to the application program identifiers and the monitoring configuration of each registration request at the same time, and all the registration nodes are inserted into a preset registration linked list together, so that batch creation of monitoring tasks is realized.
By the arrangement, the monitoring tasks can be quickly and batched established by establishing the registration nodes, so that the establishment efficiency of the monitoring tasks is further improved.
In this embodiment, optionally, the registration request further includes configuring a synchronization callback function; issuing the changed configuration resource to the target application module which issues the target monitoring task, comprising: and calling a configuration synchronization callback function in the target monitoring task, and synchronizing the configuration space of the target application module based on the changed configuration resource.
Wherein the configuration synchronization callback function may be used to synchronize the configuration information of interest to the application in real time to the configuration space. Specifically, the configuration synchronization callback function can be customized by a user according to actual requirements. By calling the configuration synchronization callback function, the configuration resources of the configuration space can be updated in time. In this embodiment, the configuration space of the target application module may be synchronized according to the changed configuration resource by calling a configuration synchronization callback function in the target monitoring task, and the updated configuration resource is labeled with an update label and then notified to the application program. Wherein the update tag may be used to characterize the update results of the configuration resources in the configuration space. For example, if the update is successful, the update flag may be set to 1; if the update fails, the update flag may be set to 0. By updating the tag, it can be known whether the configuration resource of the configuration space is successfully updated.
By the arrangement, the configuration resources of the configuration space can be updated in time by calling the configuration synchronization callback function, so that the response speed of configuration update is improved.
Example two
Fig. 3 is a flowchart of a dynamic synchronization method for configuration information according to a second embodiment of the present invention, where the present embodiment is optimized based on the foregoing embodiment. The concrete optimization is as follows: monitoring a configuration request of an upper computer through a configuration server, and receiving configuration change information, wherein the method comprises the following steps: receiving a configuration request of an upper computer through a configuration server; checking configuration information in the configuration request; if the verification fails, feeding back configuration error information to the upper computer through the configuration server; if the verification is successful, identifying whether the configuration information is changed or not; if no change exists, the configuration request is ignored; if there is a change, the configuration change information is inserted into a configuration change information linked list.
As shown in fig. 3, the method of this embodiment specifically includes the following steps:
S310, if a registration request of the application module is received, determining a monitoring task registered by the application module.
S320, receiving a configuration request of the upper computer through the configuration server.
The configuration server can monitor the configuration request of the upper computer in real time and receive the configuration request of the upper computer.
S330, checking the configuration information in the configuration request.
In this embodiment, after the configuration server receives the configuration request of the upper computer, the configuration information in the configuration request may be parsed and checked, and the configuration information may be processed according to the check result. The verification result may include two types of verification success and verification failure.
S340, judging whether the verification is successful, if so, executing S360, otherwise, executing S350.
S350, feeding back configuration error information to the upper computer through the configuration server.
In this embodiment, if the verification fails, the configuration error information may be fed back to the host computer through the configuration server.
S360, identifying whether the configuration information is changed, if so, executing S380, otherwise, executing S370.
In this embodiment, if the verification is successful, it may be further detected whether to perform a change operation on the configuration information.
S370, ignoring the configuration request.
In this embodiment, if there is no change in the configuration information, the configuration request may be automatically ignored.
S380, inserting the configuration change information into a configuration change information linked list.
The configuration change information linked list may refer to a storage structure for storing configuration change information. In particular, the configuration change information linked list is similar in composition and storage structure to the registration linked list. The configuration change information linked list is composed of a series of configuration change information nodes, and each node also comprises a data field and a pointer field. In this embodiment, if there is a change in the configuration information, the configuration identifier may be determined according to the configuration interface and the configuration content, and the configuration change information may be added to the configuration change information linked list of the configuration monitoring center.
s390, if there is a target monitoring task matching with the configuration change information, the changed configuration resource is issued to the target application module sending the target monitoring task, so as to be received by the configuration space of the target application module, and the configuration resource synchronization is performed on the application program of the target application module.
In this embodiment, optionally, after inserting the configuration change information into the configuration change information linked list, the method further includes: traversing the monitoring tasks according to the configuration change information, and determining all target monitoring tasks matched with the configuration change information.
in this embodiment, after the configuration change information is inserted into the configuration change information linked list, the monitoring task may be traversed according to the configuration change information to find whether there is a monitoring task matching with the configuration change information. If so, all monitoring tasks matched with the configuration change information can be determined as target monitoring tasks.
In this embodiment, optionally, if a registration request of an application module is received, determining a monitoring task registered by the application module includes: establishing a registration node according to the application program identifier and the monitoring configuration in the registration request, and inserting the registration node into a preset registration linked list; after inserting the configuration change information into the configuration change information linked list, the method further comprises: matching the registration nodes in the registration linked list based on the configuration change information in the configuration change information linked list; and if the matching is successful, calling an updating interface of the registration node to update the configuration resource of the target monitoring task.
In this implementation, when determining the monitoring task according to the registration request, the registration node may be first established according to the application identifier and the monitoring configuration in the registration request, and then the registration node is inserted into a preset registration linked list, so as to implement the establishment of the monitoring task. After the configuration change information is inserted into the configuration change information linked list, all monitoring tasks can be traversed according to the configuration change information in the configuration change information linked list, and the registration nodes in the registration linked list can be matched. Specifically, when the configuration change information linked list is activated, it may indicate that configuration change information occurs, at this time, the corresponding configuration change node may be removed from the configuration change information linked list, and the configuration identifier in the configuration change node may be matched with the application identifier in the registration linked list. If the matching is successful, the configuration updating operation can be carried out on the application program corresponding to the application program identifier by calling an updating interface of the registration node so as to update the configuration resource of the target monitoring task.
By means of the configuration, the target application program can be quickly matched through the configuration change information linked list and the registration linked list, so that the configuration resource of the target monitoring task can be updated, and the response speed of the configuration update is further improved.
Example III
Fig. 4 is a flowchart of a dynamic synchronization method for configuration information according to a third embodiment of the present invention, where the present embodiment is applicable to a case of dynamically synchronizing configuration information, and the method may be executed by an application module; the application module is connected with a configuration monitoring center, and the configuration monitoring center is connected with a configuration server; the application modules are at least one in number, and each application module comprises an application program and an independent configuration space of each application program. The application module is configured with a dynamic synchronization device of configuration information, which may be implemented in hardware and/or software, which may be configured in an electronic device with data processing capabilities. As shown in fig. 4, the method includes:
S410, a registration request is sent to a configuration monitoring center, and a monitoring task registered by the application module is determined.
In this embodiment, when an application in the application module is started, a configuration space independent of the application in the application module is initialized first, and a registration request is sent to the configuration monitoring center, requesting that configuration information focused by the application be registered in the configuration monitoring center. If the application program is closed, the application module can recycle the configuration space and clear the configuration resources of the configuration space when the application program is started next time, so that the configuration space is reused.
In this embodiment, the application module is connected to a configuration monitoring center, and the configuration monitoring center is connected to a configuration server. The number of the application modules is at least one, and each application module comprises an application program and an independent configuration space of each application program. It should be noted that in this embodiment, the configuration server and the application program may be strongly isolated by configuring the configuration space independent of the application program in the monitoring center and the application module, so that the configuration and the application may be decoupled.
In this embodiment, a registration request may be sent to the configuration monitoring center by the application module, and a monitoring task registered by the application module may be determined according to the registration request. The registration request may include an application identifier and a monitoring configuration. Specifically, after the configuration monitoring center receives the registration request from the application module, a registration node can be established in the configuration monitoring center according to the application program identifier and the monitoring configuration in the registration request, and the registration node is inserted into a preset registration linked list so as to complete the creation of the monitoring task.
S420, if the configuration monitoring center monitors the configuration request of the upper computer through the configuration server, receives configuration change information, and the configuration change information is matched with the target monitoring task, the configuration resources which are synchronized by the configuration monitoring center are received through the configuration space, so that the application program is configured for resource synchronization.
In this embodiment, after the configuration monitoring center receives the registration request and determines the monitoring task, the configuration request of the upper computer may be monitored in real time through the configuration server. When the configuration request of the upper computer is monitored, corresponding configuration change information can be received, and the configuration change information is matched with the monitoring task by traversing the monitoring task. If a monitoring task matching the configuration change information is detected at this time, the monitoring task may be determined as a target monitoring task, and changed configuration resources synchronized by the configuration monitoring center may be received through the configuration space while notifying the target application of the changed configuration resources. And further, the changed configuration resources in the configuration space are copied in real time through the target application program, so that the changed configuration resources take effect in time in the target application program, and the configuration resources of the application program are synchronized.
According to the technical scheme, a registration request is sent to a configuration monitoring center, and a monitoring task registered by an application module is determined; if the configuration monitoring center monitors the configuration request of the upper computer through the configuration server, receives configuration change information, and the configuration change information is matched with the target monitoring task, the configuration resources which are synchronized by the configuration monitoring center are received through the configuration space, so that the application program is synchronized with the configuration resources. According to the technical scheme, the configuration and the application can be decoupled through the configuration monitoring center and the configuration space independent of each application program, so that the dynamic synchronization of configuration information is realized, the configuration response speed is improved, the energy consumption of a system is reduced, and the stability of the system is enhanced.
In this embodiment, optionally, after receiving the changed configuration resources synchronized by the configuration monitoring center through the configuration space, the method further includes: identifying whether the application program service corresponding to the changed configuration resource received by the configuration space is a periodic service or not; if yes, executing the service with the changed configuration resource in the next period; if not, executing the service with the changed configuration resource when executing the application program service corresponding to the changed configuration resource.
the periodic service is understood to be a service with a minimum execution unit of a period. It should be noted that, only if a periodic service is completely executed for one period, that is, the service is not interrupted in one period, it can be considered that the periodic service is successfully executed. If the periodic service is forcibly interrupted or ended in the process of executing, data is easily disturbed or lost, and the service fails to execute. Therefore, in order to avoid such a phenomenon, after the configuration space receives the changed configuration resources synchronized by the configuration monitoring center and before the changed configuration resources received by the configuration space are applied to the application program, it may be determined whether the application program service corresponding to the changed configuration resources is a periodic service, and then the changed configuration resources may be processed according to the determination result.
In this embodiment, if the application program service corresponding to the changed configuration resource received by the configuration space is a periodic service, in order to avoid interrupting service execution, after the task execution period ends, the service may be executed with the changed configuration resource in the next service period, that is, the application program is run according to the latest configuration in the next service period; in contrast, if the application program service corresponding to the changed configuration resource received by the configuration space is not a periodic service, that is, the service interruption does not affect the service execution, the service can be executed directly according to the changed configuration resource when the application program service corresponding to the changed configuration resource is executed, so as to realize that the changed configuration is quickly effective in the application program.
By the arrangement, different configuration change treatments can be respectively adopted for periodic and aperiodic services, so that the change configuration is quickly effective in an application program, and meanwhile, the problem of data disorder or loss caused by periodic service interruption is effectively avoided.
Example IV
Fig. 5 is a schematic structural diagram of a dynamic synchronization device for configuration information according to a fourth embodiment of the present invention, where the device is configured in a configuration monitoring center; the configuration monitoring center is connected with the configuration server and at least one application module; wherein each application module comprises an application program and a configuration space independent of each application program. The device can execute the dynamic synchronization method of the configuration information provided by the first embodiment and the second embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. As shown in fig. 5, the apparatus includes:
The monitoring task determining module 510 is configured to determine a monitoring task registered by the application module if a registration request of the application module is received;
the configuration change information receiving module 520 is configured to monitor, through the configuration server, a configuration request of the upper computer, and receive configuration change information;
And the configuration resource synchronization module 530 is configured to issue a changed configuration resource to a target application module that issues the target monitoring task if there is a target monitoring task that matches the configuration change information, so as to receive a configuration space of the target application module, and perform configuration resource synchronization on an application program of the target application module.
Optionally, the registration request includes an application identifier and a monitoring configuration;
The monitoring task determining module 510 includes:
A registration request identifying unit, configured to identify whether a repeated registration behavior exists in a registration request if a registration request of an application module is received;
A registration request processing unit, configured to ignore the registration request if yes;
if not, establishing a monitoring task according to the application program identification and the monitoring configuration in the registration request.
optionally, the registration request processing unit is specifically configured to:
Establishing a registration node according to the application program identifier and the monitoring configuration in the registration request;
And inserting the registration node into a preset registration linked list.
optionally, the registration request further includes configuring a synchronization callback function;
The configuration resource synchronization module 530 is specifically configured to:
and calling a configuration synchronization callback function in the target monitoring task, and synchronizing the configuration space of the target application module based on the changed configuration resource.
Optionally, the configuration change information receiving module 520 is configured to:
Receiving a configuration request of an upper computer through the configuration server;
Checking configuration information in the configuration request;
if the verification fails, feeding back configuration error information to the upper computer through the configuration server;
if the verification is successful, identifying whether the configuration information is changed or not;
If no change exists, ignoring the configuration request;
If there is a change, the configuration change information is inserted into a configuration change information linked list.
optionally, the configuration change information receiving module 520 is further configured to:
After the configuration change information is inserted into a configuration change information linked list, traversing the monitoring tasks according to the configuration change information, and determining all target monitoring tasks matched with the configuration change information.
Optionally, the monitoring task determining module 510 is specifically configured to:
Establishing a registration node according to the application program identifier and the monitoring configuration in the registration request, and inserting the registration node into a preset registration linked list;
the configuration change information receiving module 520 is further configured to:
After inserting configuration change information into a configuration change information linked list, matching registration nodes in the registration linked list based on the configuration change information in the configuration change information linked list;
And if the matching is successful, calling an updating interface of the registration node to update the configuration resource of the target monitoring task.
The dynamic synchronization device for the configuration information provided by the embodiment of the invention can execute the dynamic synchronization method for the configuration information provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 6 is a schematic structural diagram of a dynamic synchronization device for configuration information according to a fifth embodiment of the present invention, where the device is configured in an application module; the application module is connected with a configuration monitoring center, and the configuration monitoring center is connected with a configuration server; the application modules are at least one in number, and each application module comprises an application program and an independent configuration space of each application program. The device can execute the dynamic synchronization method of the configuration information provided by the third embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. As shown in fig. 6, the apparatus includes:
A monitoring task determining module 610, configured to send a registration request to the configuration monitoring center, and determine a monitoring task registered by the application module;
And the configuration resource synchronization module 620 is configured to receive configuration change information if the configuration monitoring center monitors a configuration request of the upper computer through the configuration server, and the configuration change information is matched with a target monitoring task, and receive, through the configuration space, a changed configuration resource synchronized by the configuration monitoring center, so as to perform configuration resource synchronization on the application program.
Optionally, the apparatus further includes:
The service identification module is used for identifying whether the application program service corresponding to the changed configuration resource received by the configuration space is a periodic service or not after the changed configuration resource synchronized by the configuration monitoring center is received through the configuration space;
if yes, executing the service with the changed configuration resource in the next period;
If not, executing the service with the changed configuration resource when executing the application program service corresponding to the changed configuration resource.
The dynamic synchronization device for the configuration information provided by the embodiment of the invention can execute the dynamic synchronization method for the configuration information provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 7 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a dynamic synchronization method of configuration information.
In some embodiments, the dynamic synchronization method of configuration information may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the dynamic synchronization method of configuration information described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the dynamic synchronization method of the configuration information in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
the computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
the above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method for dynamic synchronization of configuration information, the method being performed by a configuration monitoring center; the configuration monitoring center is connected with the configuration server and at least one application module; each application module comprises an application program and an independent configuration space of each application program; the method comprises the following steps:
if a registration request of an application module is received, determining a monitoring task registered by the application module;
monitoring a configuration request of an upper computer through the configuration server, and receiving configuration change information;
if a target monitoring task matched with the configuration change information exists, issuing changed configuration resources to a target application module which sends the target monitoring task, and receiving the configuration space of the target application module to perform configuration resource synchronization on an application program of the target application module;
The monitoring, by the configuration server, the configuration request of the upper computer, and receiving configuration change information, including:
Receiving a configuration request of an upper computer through the configuration server;
Checking configuration information in the configuration request;
if the verification fails, feeding back configuration error information to the upper computer through the configuration server;
if the verification is successful, identifying whether the configuration information is changed or not;
If no change exists, ignoring the configuration request;
If the configuration change exists, inserting configuration change information into a configuration change information linked list;
If a registration request of the application module is received, determining a monitoring task registered by the application module includes:
Establishing a registration node according to the application program identifier and the monitoring configuration in the registration request, and inserting the registration node into a preset registration linked list;
After inserting configuration change information into a configuration change information linked list, matching registration nodes in the registration linked list based on the configuration change information in the configuration change information linked list;
And if the matching is successful, calling an updating interface of the registration node to update the configuration resource of the target monitoring task.
2. The method of claim 1, wherein the registration request includes an application identification and a monitoring configuration;
If a registration request of an application module is received, determining a monitoring task registered by the application module includes:
If a registration request of an application module is received, identifying whether repeated registration behaviors exist in the registration request;
If yes, ignoring the registration request;
if not, establishing a monitoring task according to the application program identification and the monitoring configuration in the registration request.
3. the method of claim 2, wherein establishing a monitoring task based on the application identification and monitoring configuration in the registration request comprises:
Establishing a registration node according to the application program identifier and the monitoring configuration in the registration request;
And inserting the registration node into a preset registration linked list.
4. the method of claim 2, wherein the registration request further comprises configuring a synchronization callback function;
issuing changed configuration resources to a target application module which sends out the target monitoring task, wherein the method comprises the following steps:
and calling a configuration synchronization callback function in the target monitoring task, and synchronizing the configuration space of the target application module based on the changed configuration resource.
5. The method of claim 1, wherein after inserting the configuration change information into the configuration change information linked list, the method further comprises:
Traversing the monitoring tasks according to the configuration change information, and determining all target monitoring tasks matched with the configuration change information.
6. A method for dynamic synchronization of configuration information, wherein the method is performed by an application module; the application module is connected with a configuration monitoring center, and the configuration monitoring center is connected with a configuration server; the application modules are at least one in number, and each application module comprises an application program and an independent configuration space of each application program; the method comprises the following steps:
sending a registration request to the configuration monitoring center, and determining a monitoring task registered by an application module;
If the configuration monitoring center monitors the configuration request of the upper computer through the configuration server, receives configuration change information, and the configuration change information is matched with a target monitoring task, receiving changed configuration resources synchronized by the configuration monitoring center through the configuration space so as to perform configuration resource synchronization on the application program;
Wherein if the configuration monitoring center monitors the configuration request of the upper computer through the configuration server, receiving configuration change information includes:
the configuration monitoring center receives a configuration request of the upper computer through the configuration server;
The configuration monitoring center checks configuration information in the configuration request;
If the verification fails, the configuration monitoring center feeds back configuration error information to the upper computer through the configuration server;
If the verification is successful, the configuration monitoring center identifies whether the configuration information is changed or not;
If no change exists, the configuration monitoring center ignores the configuration request;
if the configuration change exists, the configuration monitoring center inserts the configuration change information into a configuration change information linked list;
The sending a registration request to the configuration monitoring center, determining a monitoring task of the registration of the application module, includes:
The configuration monitoring center establishes a registration node according to the application program identifier and the monitoring configuration in the registration request, and inserts the registration node into a preset registration linked list;
After inserting configuration change information into a configuration change information linked list, the configuration monitoring center matches the registration nodes in the registration linked list based on the configuration change information in the configuration change information linked list;
and if the matching is successful, the configuration monitoring center calls an updating interface of the registration node to update the configuration resource of the target monitoring task.
7. The method of claim 6, wherein after receiving, via the configuration space, changed configuration resources synchronized by the configuration monitoring center, the method further comprises:
Identifying whether the application program service corresponding to the changed configuration resource received by the configuration space is a periodic service or not;
if yes, executing the service with the changed configuration resource in the next period;
If not, executing the service with the changed configuration resource when executing the application program service corresponding to the changed configuration resource.
8. A dynamic synchronization device for configuration information, which is characterized in that the device is configured in a configuration monitoring center; the configuration monitoring center is connected with the configuration server and at least one application module; each application module comprises an application program and an independent configuration space of each application program; the device comprises:
The monitoring task determining module is used for determining a monitoring task registered by the application module if a registration request of the application module is received;
The configuration change information receiving module is used for monitoring a configuration request of the upper computer through the configuration server and receiving configuration change information;
the configuration resource synchronization module is used for issuing changed configuration resources to a target application module which sends out the target monitoring task if the target monitoring task matched with the configuration change information exists, and receiving the configuration space of the target application module so as to perform configuration resource synchronization on the application program of the target application module;
the configuration change information receiving module is configured to:
Receiving a configuration request of an upper computer through the configuration server;
Checking configuration information in the configuration request;
if the verification fails, feeding back configuration error information to the upper computer through the configuration server;
if the verification is successful, identifying whether the configuration information is changed or not;
If no change exists, ignoring the configuration request;
If the configuration change exists, inserting configuration change information into a configuration change information linked list;
The monitoring task determining module is specifically configured to: establishing a registration node according to the application program identifier and the monitoring configuration in the registration request, and inserting the registration node into a preset registration linked list;
the configuration change information receiving module is further configured to: after inserting configuration change information into a configuration change information linked list, matching registration nodes in the registration linked list based on the configuration change information in the configuration change information linked list; and if the matching is successful, calling an updating interface of the registration node to update the configuration resource of the target monitoring task.
9. A dynamic synchronization device for configuration information, wherein the device is configured in an application module; the application module is connected with a configuration monitoring center, and the configuration monitoring center is connected with a configuration server; the application modules are at least one in number, and each application module comprises an application program and an independent configuration space of each application program; the device comprises:
The monitoring task determining module is used for sending a registration request to the configuration monitoring center and determining a monitoring task registered by the application module;
The configuration resource synchronization module is used for receiving configuration change information if the configuration monitoring center monitors a configuration request of the upper computer through the configuration server, and the configuration change information is matched with a target monitoring task, and receiving changed configuration resources synchronized by the configuration monitoring center through the configuration space so as to perform configuration resource synchronization on the application program;
The resource synchronization module is configured to:
the configuration monitoring center receives a configuration request of the upper computer through the configuration server;
The configuration monitoring center checks configuration information in the configuration request;
If the verification fails, the configuration monitoring center feeds back configuration error information to the upper computer through the configuration server;
If the verification is successful, the configuration monitoring center identifies whether the configuration information is changed or not;
If no change exists, the configuration monitoring center ignores the configuration request;
if the configuration change exists, the configuration monitoring center inserts the configuration change information into a configuration change information linked list;
The monitoring task determining module is specifically configured to:
The configuration monitoring center establishes a registration node according to the application program identifier and the monitoring configuration in the registration request, and inserts the registration node into a preset registration linked list;
After inserting configuration change information into a configuration change information linked list, the configuration monitoring center matches the registration nodes in the registration linked list based on the configuration change information in the configuration change information linked list; and if the matching is successful, the configuration monitoring center calls an updating interface of the registration node to update the configuration resource of the target monitoring task.
10. An electronic device, the electronic device comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of dynamically synchronizing configuration information of any one of claims 1-5 or 6-7.
11. A computer readable storage medium storing computer instructions for causing a processor to perform the method of dynamically synchronizing configuration information according to any one of claims 1-5 or 6-7.
CN202210364797.8A 2022-04-07 2022-04-07 Dynamic synchronization method, device, equipment and medium for configuration information Active CN114924806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210364797.8A CN114924806B (en) 2022-04-07 2022-04-07 Dynamic synchronization method, device, equipment and medium for configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210364797.8A CN114924806B (en) 2022-04-07 2022-04-07 Dynamic synchronization method, device, equipment and medium for configuration information

Publications (2)

Publication Number Publication Date
CN114924806A CN114924806A (en) 2022-08-19
CN114924806B true CN114924806B (en) 2024-03-26

Family

ID=82805163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210364797.8A Active CN114924806B (en) 2022-04-07 2022-04-07 Dynamic synchronization method, device, equipment and medium for configuration information

Country Status (1)

Country Link
CN (1) CN114924806B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262674A (en) * 2011-08-11 2011-11-30 大唐移动通信设备有限公司 Data synchronization method and system for distributed memory database
CN102314364A (en) * 2011-08-08 2012-01-11 北京登合科技有限公司 Method for automatically adapting to mobile terminal
CN102566996A (en) * 2010-12-20 2012-07-11 中兴通讯股份有限公司 Method and system for realizing multi-task management input and output resources
CN103516538A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Method and device for uniform configuration of carrier-class clustered applications
CN106227577A (en) * 2016-07-08 2016-12-14 贵州天霆云计算科技有限公司 A kind of application data that can be used for virtual desktop and configuration data separating storage method
CN106484452A (en) * 2015-08-31 2017-03-08 大唐移动通信设备有限公司 A kind of unified configuring management method of software platform and device
CN109597655A (en) * 2017-09-28 2019-04-09 华为技术有限公司 Configure the method and device of application program
CN109714188A (en) * 2018-11-02 2019-05-03 中国平安人寿保险股份有限公司 Configuration data management method, equipment and storage medium based on Zookeeper
CN110968343A (en) * 2019-11-29 2020-04-07 合肥美的电冰箱有限公司 Resource file configuration method, configuration device, refrigerator and readable storage medium
CN111078238A (en) * 2018-10-19 2020-04-28 ***通信集团浙江有限公司 Centralized processing method and device for application configuration in container environment
CN111198726A (en) * 2019-12-30 2020-05-26 中科星图股份有限公司 Configuration system and method suitable for traditional application clouding
CN111708834A (en) * 2020-05-25 2020-09-25 苏州浪潮智能科技有限公司 Method, system, equipment and medium for synchronizing service configuration data
CN111884844A (en) * 2020-07-20 2020-11-03 中国建设银行股份有限公司 Message service access method and device based on zookeeper
CN112000363A (en) * 2020-07-30 2020-11-27 苏州浪潮智能科技有限公司 Method and system for managing big data assembly configuration file
CN112463251A (en) * 2020-12-03 2021-03-09 中国建设银行股份有限公司 Method and device for configuring hot publishing by uliweb framework
CN112559025A (en) * 2020-12-16 2021-03-26 中国人寿保险股份有限公司 Configuration information updating synchronization method and equipment
CN112596787A (en) * 2020-11-20 2021-04-02 深圳市世强元件网络有限公司 System and method for adaptively releasing application program in different environments
KR20210040314A (en) * 2020-09-27 2021-04-13 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Point to point connection method, apparatus, electronic device, storage medium and computer program
CN113377397A (en) * 2021-05-27 2021-09-10 深圳十方融海科技有限公司 Configuration updating method and device, computer equipment and storage medium
CN113485772A (en) * 2021-07-28 2021-10-08 江苏创源电子有限公司 Configuration updating method, device, equipment and medium for application program
WO2021232197A1 (en) * 2020-05-18 2021-11-25 Oppo广东移动通信有限公司 Method and apparatus for monitoring device state, device, and storage medium
CN113885921A (en) * 2021-11-09 2022-01-04 南京慧尔视智能科技有限公司 Method and equipment for updating embedded system

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566996A (en) * 2010-12-20 2012-07-11 中兴通讯股份有限公司 Method and system for realizing multi-task management input and output resources
CN102314364A (en) * 2011-08-08 2012-01-11 北京登合科技有限公司 Method for automatically adapting to mobile terminal
CN102262674A (en) * 2011-08-11 2011-11-30 大唐移动通信设备有限公司 Data synchronization method and system for distributed memory database
CN103516538A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Method and device for uniform configuration of carrier-class clustered applications
CN106484452A (en) * 2015-08-31 2017-03-08 大唐移动通信设备有限公司 A kind of unified configuring management method of software platform and device
CN106227577A (en) * 2016-07-08 2016-12-14 贵州天霆云计算科技有限公司 A kind of application data that can be used for virtual desktop and configuration data separating storage method
CN109597655A (en) * 2017-09-28 2019-04-09 华为技术有限公司 Configure the method and device of application program
CN111078238A (en) * 2018-10-19 2020-04-28 ***通信集团浙江有限公司 Centralized processing method and device for application configuration in container environment
CN109714188A (en) * 2018-11-02 2019-05-03 中国平安人寿保险股份有限公司 Configuration data management method, equipment and storage medium based on Zookeeper
CN110968343A (en) * 2019-11-29 2020-04-07 合肥美的电冰箱有限公司 Resource file configuration method, configuration device, refrigerator and readable storage medium
CN111198726A (en) * 2019-12-30 2020-05-26 中科星图股份有限公司 Configuration system and method suitable for traditional application clouding
WO2021232197A1 (en) * 2020-05-18 2021-11-25 Oppo广东移动通信有限公司 Method and apparatus for monitoring device state, device, and storage medium
CN111708834A (en) * 2020-05-25 2020-09-25 苏州浪潮智能科技有限公司 Method, system, equipment and medium for synchronizing service configuration data
CN111884844A (en) * 2020-07-20 2020-11-03 中国建设银行股份有限公司 Message service access method and device based on zookeeper
CN112000363A (en) * 2020-07-30 2020-11-27 苏州浪潮智能科技有限公司 Method and system for managing big data assembly configuration file
KR20210040314A (en) * 2020-09-27 2021-04-13 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Point to point connection method, apparatus, electronic device, storage medium and computer program
CN112596787A (en) * 2020-11-20 2021-04-02 深圳市世强元件网络有限公司 System and method for adaptively releasing application program in different environments
CN112463251A (en) * 2020-12-03 2021-03-09 中国建设银行股份有限公司 Method and device for configuring hot publishing by uliweb framework
CN112559025A (en) * 2020-12-16 2021-03-26 中国人寿保险股份有限公司 Configuration information updating synchronization method and equipment
CN113377397A (en) * 2021-05-27 2021-09-10 深圳十方融海科技有限公司 Configuration updating method and device, computer equipment and storage medium
CN113485772A (en) * 2021-07-28 2021-10-08 江苏创源电子有限公司 Configuration updating method, device, equipment and medium for application program
CN113885921A (en) * 2021-11-09 2022-01-04 南京慧尔视智能科技有限公司 Method and equipment for updating embedded system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Netty和Kafka的物联网数据接入***;甄凯成等;计算机工程与应用;第56卷(第5期);135-137 *
李丙洋等.中小银行运维架构 解密与实战.机械工业出版社,2021,第1卷(第1版),第97-100页. *

Also Published As

Publication number Publication date
CN114924806A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN116611411A (en) Business system report generation method, device, equipment and storage medium
CN113703946B (en) Application recovery method and device, electronic equipment and computer readable storage medium
CN114924806B (en) Dynamic synchronization method, device, equipment and medium for configuration information
CN113541987A (en) Method and device for updating configuration data
CN115426287B (en) System monitoring and optimizing method and device, electronic equipment and medium
CN114513468B (en) Method, device, equipment, storage medium and product for protecting flow in Sentinel
CN114691781A (en) Data synchronization method, system, device, equipment and medium
CN113553074B (en) Applet distribution control method, device, electronic equipment and storage medium
CN115174447B (en) Network communication method, device, system, equipment and storage medium
CN116775171B (en) Architecture switching method and device, electronic equipment and storage medium
CN116521659A (en) Data management method and device, electronic equipment and storage medium
CN117081939A (en) Traffic data processing method, device, equipment and storage medium
CN117093274A (en) Application running stack analysis method, device, equipment and storage medium
CN117615021A (en) Route forwarding method, device, equipment and storage medium
CN116881368A (en) Data synchronization method and device, electronic equipment and storage medium
CN116775299A (en) Verification code picture acquisition method and device, electronic equipment and storage medium
CN118093211A (en) Distributed lock processing method, device, equipment and medium
CN117667144A (en) Annotating hot refreshing method, annotating hot refreshing device, annotating hot refreshing equipment and annotating hot refreshing medium
CN116974825A (en) Backup method, device, equipment and storage medium
CN117609171A (en) Authority data synchronization method, device, equipment and medium
CN115269128A (en) Distributed transaction processing method, device, equipment and storage medium
CN116028751A (en) Browser message interaction method, device, equipment and storage medium
CN116303279A (en) Concurrent file acquisition method, concurrent file acquisition device, concurrent file acquisition equipment and storage medium
CN117971872A (en) Database query method, device, equipment and storage medium
CN117743467A (en) Agent node replacement method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant