Configuration data refreshing method, device, system, storage medium and electronic device
By introducing a first client and a server into the business processing machine and utilizing the identification information of the refresh command, efficient configuration data refresh is achieved, solving the problem of low response speed in existing technologies and improving the system's maintenance efficiency and compatibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2026-04-21
AI Technical Summary
In existing technologies, the response speed during configuration data refresh is slow, maintenance efficiency is low, and it is necessary to frequently send notification messages and maintain a large amount of information such as IPs/usernames and passwords, resulting in a large amount of data transmission and affecting the system response speed.
By introducing a first client and a server into the business processing machine, and using refresh commands to carry the identification information of the target business module, the business module listens for the first client to obtain the command and refresh the configuration data. The operation and maintenance module only needs to send a refresh command to the server once through the second client, which reduces the amount of data transmission and simplifies the maintenance of IP/username passwords.
It improved the response speed of configuration data refresh, reduced the data transmission volume of the operation and maintenance module, improved maintenance efficiency, simplified the development and configuration of business module addition and deletion processes, and decoupled the operation and maintenance module from the business processing machine.
Smart Images

Figure CN117354140B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communications, and more specifically, to a configuration data refresh method, apparatus, system, storage medium, and electronic device. Background Technology
[0002] Configuration data refresh refers to the operation and maintenance team sending refresh commands or refreshing files to business modules. The current system has a large number of business processing machines, possibly up to several hundred, and each business processing machine may have multiple business modules. The implementations of these business modules are not the same, and may include Go, Java, C, etc. For example, when a Java operation and maintenance module and a C business module interact with each other, a custom interface needs to be developed separately, which is difficult to develop and maintain and cannot be reused.
[0003] Traditional configuration data refresh involves the operations and maintenance (O&M) module directly sending refresh messages (usually HTTP messages) to each business module on each business processor, while simultaneously pushing refresh files to each business module (usually FTP). This leads to problems such as the O&M module needing to maintain the IP addresses, usernames, and passwords of each business processor. Furthermore, if a business processor hosts multiple types of services, multiple notification messages need to be sent. For example, if the O&M module needs to send refresh commands and files to 100 business processors, with two business modules on each processor, then the O&M module would need to send 2 × 100 = 200 notification messages and maintain the IP addresses, usernames, and passwords of all 100 business processors. This results in large data transfer volumes, low maintenance efficiency, and impacts system response speed. Summary of the Invention
[0004] This invention provides a configuration data refresh method, apparatus, system, storage medium, and electronic device to at least solve the problem of low response speed during configuration data refresh in related technologies.
[0005] According to an embodiment of the present invention, a configuration data refresh method is provided, applied to a service processor, the service processor including a first client and at least one service module, the first client and the at least one service module being communicatively connected, the method comprising:
[0006] The first client obtains a refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to execute the refresh instruction as instructed by the operation and maintenance module;
[0007] Each of the aforementioned business modules listens to the first client to obtain the refresh command;
[0008] Each of the aforementioned business modules determines itself as the target business module for executing the refresh instruction based on the first identification information;
[0009] The target business module refreshes its configuration data according to the refresh instruction;
[0010] Optionally, any of the service modules determines itself as the target service module for executing the refresh instruction based on the first identification information, including:
[0011] Obtain the second identification information of the business module;
[0012] The business module corresponding to the second identification information that matches the first identification information is identified as the target business module;
[0013] Optionally, before the first client receives the refresh instruction broadcast by the server, the method further includes:
[0014] The first client sends a first registration request to the server;
[0015] Obtain the indication message returned by the server after successfully registering the first client according to the first registration request, so as to receive the refresh instruction broadcast by the server.
[0016] According to another embodiment of the present invention, a configuration data refresh method is provided, applied to a server, the method comprising:
[0017] Obtain a refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries first identification information of the target business module to which the operation and maintenance module instructs to execute the refresh instruction;
[0018] The refresh instruction is broadcast to multiple first clients, so that the target service module refreshes its configuration data according to the refresh instruction; the target service module is connected to one of the first clients.
[0019] Optionally, before obtaining the refresh command sent by the second client, the method further includes:
[0020] Obtain the second registration request sent by the second client;
[0021] The second client is registered according to the second registration request in order to receive refresh instructions sent by the registered second client.
[0022] According to another embodiment of the present invention, a configuration data refresh method is provided, applied to an operation and maintenance terminal, the operation and maintenance terminal including an operation and maintenance module and a second client, the operation and maintenance module and the second client being communicatively connected, the method comprising:
[0023] The second client obtains the refresh instruction from the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs the refresh instruction to be executed;
[0024] The second client sends the refresh instruction to the server so that the server can broadcast the refresh instruction to the first client, so that any business module listening to the first client can determine itself as the target business module to execute the refresh instruction based on the first identification information.
[0025] According to another embodiment of the present invention, a configuration data refresh device is provided, applied to a service processor, the service processor including a first client and at least one service module, the first client and the at least one service module being communicatively connected, the device comprising:
[0026] The first acquisition module is used for the first client to acquire a refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to be executed by the operation and maintenance module;
[0027] The monitoring module is used by each of the business modules to monitor the first client to obtain the refresh command;
[0028] The determination module is used for any of the business modules to determine itself as the target business module for executing the refresh instruction based on the first identification information;
[0029] The refresh module is used by the target business module to refresh the configuration data according to the refresh instruction.
[0030] According to another embodiment of the present invention, a configuration data refresh device is provided, applied to a server, the device comprising:
[0031] The second acquisition module is used to acquire a refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries first identification information of the target business module to be executed by the operation and maintenance module.
[0032] A broadcast module is used to broadcast the refresh instruction to multiple first clients, so that the target service module refreshes the configuration data according to the refresh instruction; the target service module is connected to one of the first clients.
[0033] According to another embodiment of the present invention, a configuration data refresh device is provided, applied to an operation and maintenance terminal, the operation and maintenance terminal including an operation and maintenance module and a second client, the device comprising:
[0034] The third acquisition module is used by the second client to acquire the refresh instruction of the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs to execute the refresh instruction;
[0035] The sending module is used to send the refresh instruction from the second client to the server, so that the server can broadcast the refresh instruction to the first client, so that any business module listening to the first client can determine itself as the target business module to execute the refresh instruction based on the first identification information.
[0036] According to yet another embodiment of the present invention, a storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0037] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0038] Through this invention, since the business module only needs to listen to its corresponding first client, after the first client obtains the refresh instruction broadcast by the server, any business module determines itself as the target business module to execute the refresh instruction based on the first identification information carried by the refresh instruction. The target business module can then refresh the configuration data according to the refresh instruction. Therefore, in this method, the business module only needs to interact with the first client to receive the refresh instruction broadcast by the server, and the maintenance module only needs to send a refresh instruction to the server once through the second client. This can significantly reduce the data transmission volume of the maintenance module, solve the problem of low response speed during configuration data refresh, and achieve the effect of improving maintenance efficiency and system response speed. Attached Figure Description
[0039] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0040] Figure 1 This is a schematic diagram of the electronic device structure provided in an embodiment of the present invention;
[0041] Figure 2 This is a system architecture diagram of a configuration data refresh method provided in an embodiment of the present invention;
[0042] Figure 3This is a flowchart illustrating a configuration data refresh method provided in an embodiment of the present invention;
[0043] Figure 4 This is a flowchart illustrating another configuration data refresh method provided in an embodiment of the present invention;
[0044] Figure 5 This is a flowchart illustrating another configuration data refresh method provided in an embodiment of the present invention;
[0045] Figure 6 This is a schematic diagram of the structure of a configuration data refresh device provided in an embodiment of the present invention;
[0046] Figure 7 This is a schematic diagram of another configuration data refresh device provided in an embodiment of the present invention;
[0047] Figure 8 This is a schematic diagram of another configuration data refresh device provided in an embodiment of the present invention. Detailed Implementation
[0048] The present invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the present application can be combined with each other.
[0049] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0050] Example 1
[0051] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking its operation on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a configuration data refresh method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal 10 may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. Optionally, the mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal 10 may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0052] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to a configuration data refresh method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0053] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0054] The embodiments of this application can be run in Figure 2 In the system architecture shown, such as Figure 2 As shown, the system architecture includes: a business processing machine, a server, and an operation and maintenance machine.
[0055] The service processing unit includes a first client and at least one service module, and the first client and the at least one service module are communicatively connected; the operation and maintenance unit includes an operation and maintenance module and a second client; the operation and maintenance module and the second client are communicatively connected; the first client and the second client respectively establish communication connections with the server.
[0056] This embodiment provides a configuration data refresh method that runs on the aforementioned mobile terminal or system architecture. When running on the aforementioned system architecture, this method can be applied to a business processor, a server, or an operation and maintenance terminal. Figure 3 This is a flowchart of a configuration data refresh method applied to a service processor according to an embodiment of the present invention. The service processor includes a first client and at least one service module. The first client is communicatively connected to all service modules included in the service processor, such as... Figure 3 As shown, the process includes the following steps:
[0057] In step S302, the first client obtains the refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to be executed by the operation and maintenance module.
[0058] Step S304: Each business module listens to the first client to obtain refresh instructions;
[0059] Step S306: Any business module determines itself as the target business module for executing the refresh instruction based on the first identification information;
[0060] Step S308: The target business module refreshes its configuration data according to the refresh command.
[0061] Through the above steps, since the business module only needs to listen to its corresponding first client, after the first client obtains the refresh instruction broadcast by the server, any business module determines itself as the target business module to execute the refresh instruction based on the first identification information carried by the refresh instruction. The target business module can then refresh the configuration data according to the refresh instruction. Therefore, in this method, the business module only needs to interact with the first client to receive the refresh instruction broadcast by the server, and the maintenance module only needs to send the refresh instruction to the server once through the second client. This can significantly reduce the data transmission volume of the maintenance module. Furthermore, the maintenance module does not need to maintain the IP / username / password information of each business processor. When the business processor itself is added or removed, or when the business modules on the processor are added or removed, the maintenance module does not need additional development and configuration. This improves the speed at which the business processor obtains the refresh instruction, thereby solving the problem of low response speed during configuration data refresh and achieving the effect of improving maintenance efficiency and system response speed.
[0062] Optionally, the entity performing the above steps may be a base station, a terminal, etc., but is not limited to these.
[0063] Optionally, the execution order of steps S302 and S304 can be interchanged, that is, step S304 can be executed first, and then step S302 can be executed.
[0064] It should be noted that there is no limit to the number of business modules included in each business processor. It can include one business module or multiple business modules. As long as each business module establishes a communication connection with the first client, it can obtain refresh commands by listening to the first client.
[0065] In one embodiment, any business module determines itself as the target business module for executing the refresh instruction based on the first identification information, including: obtaining the second identification information of the business module; and determining the business module corresponding to the second identification information that matches the first identification information as the target business module.
[0066] In this embodiment, each business module has a second identification information, which can be the business module's ID, name, or other identifier that uniquely identifies the business module. The refresh instruction carries the first identification information of the target business module specified by the operation and maintenance module. When the first identification information matches or is identical to the second identification information, it can be determined that the business module is the target business module corresponding to the refresh instruction sent by the operation and maintenance module. This method allows for accurate and convenient determination of the execution target of the refresh instruction.
[0067] In one embodiment, before the first client obtains the refresh instruction broadcast by the server, the method further includes: the first client sending a first registration request to the server; obtaining an indication message returned by the server after successfully registering the first client according to the first registration request, so as to receive the refresh instruction broadcast by the server.
[0068] In this embodiment, to verify the validity of the first client, the first client needs to be registered before it can receive the refresh command broadcast by the server. Only the first client that has been successfully registered can receive the refresh command broadcast by the server, thereby improving the security of the system.
[0069] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0070] Example 2
[0071] This embodiment provides a configuration data refresh method, which can be applied to the server side, such as... Figure 4 As shown, the process includes the following steps:
[0072] Step S402: Obtain the refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries the first identification information of the target business module to be executed by the operation and maintenance module.
[0073] Step S404: Broadcast refresh instructions to multiple first clients so that the target service module refreshes its configuration data according to the refresh instructions; the target service module is connected to a first client.
[0074] In this embodiment, the server obtains a refresh instruction from the second client and broadcasts the refresh instruction to the first client in the system, so that the first client that receives the refresh instruction can determine the target business module to execute the refresh instruction based on the first identification information carried in the refresh instruction, so that the target business module can refresh the configuration data according to the refresh instruction.
[0075] In this embodiment, the server is an independently deployed program. The operation and maintenance module sends the message that needs to be refreshed to the server through the second client, and the server broadcasts the refresh command to each first client to improve the system's response speed.
[0076] In one embodiment, before obtaining the refresh instruction sent by the second client, the method further includes: obtaining a second registration request sent by the second client; registering the second client according to the second registration request, so as to receive the refresh instruction sent by the registered second client.
[0077] In this embodiment, to verify the validity of the refresh command sent by the second client, the server needs to register the second client according to the second registration request sent by the second client before obtaining the refresh command sent by the second client. The server only registers the refresh commands sent by the successfully registered second client, which improves the security of system operation. In addition, when business modules need to be added or removed, the successfully registered second client can simply be added or removed. The operation and maintenance module does not need additional development and configuration, which improves the maintenance efficiency of the operation and maintenance module and reduces maintenance costs.
[0078] Example 3
[0079] This embodiment provides a configuration data refresh method that can be applied to the operation and maintenance end, such as... Figure 5 As shown, the process includes the following steps:
[0080] Step S502: The second client obtains the refresh instruction from the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs the refresh instruction to be executed;
[0081] In step S504, the second client sends a refresh command to the server so that the server can broadcast the refresh command to the first client, so that any business module listening to the first client can determine itself as the target business module to execute the refresh command based on the first identification information.
[0082] In this embodiment, when the operation and maintenance (O&M) module sends a refresh command, it only needs to send the refresh command to the server through the second client. Regardless of the number of business modules in the system, each refresh command from the O&M module only needs to be sent once, which greatly reduces the amount of data transmission when sending refresh commands. Furthermore, since the connection between each business processor is achieved through the server and the first and second clients, the O&M module does not need to maintain information such as the IP address, username, and password of each business processor, which improves the efficiency of the O&M module and simplifies the difficulty of adding or deleting business modules. There is no need to develop and configure with the O&M module when adding or deleting business modules, thus achieving decoupling between the O&M module and the business processor.
[0083] Optionally, the execution order of steps S502 and S504 can be interchanged, that is, step S504 can be executed first, and then S502 can be executed.
[0084] Using the three examples above as illustrations, the environment deployment process begins. This requires deploying a server-side module and a client-side module. The server is deployed separately, the second client is deployed in the operations and maintenance module, and the first client is deployed on the business processing machine. Each client needs to register with the server, and the status of the server and client can be queried using commands.
[0085] The configuration data refresh process can be as follows:
[0086] The operations and maintenance module writes a key-value pair to the client module (second client) on the local machine, for example:
[0087]
[0088]
[0089] The refresh command means to turn on the switch "openxxx" for the business module with notification type moduletype1 and modulename1.
[0090] Among them, moduletype1: identifies the type of a business module on the business processor; modulename1: identifies a specific business module on the business processor.
[0091] The second client sends a refresh command to the server via an HTTP PUT request.
[0092] After receiving the refresh command from the second client, the server sends the refresh command to the first client on each business processor.
[0093] Different business processing machines with the `moduletype1` type of business modules simultaneously monitor the `key1` key in their respective first clients. When a change is detected in the content under this key value, if the `modulename2` business module finds that the `modulename` in the value is `modulename1`, it does nothing. If the `modulename1` module finds that the `modulename` in the value is `modulename1`, it retrieves `"openxxx": true` via an HTTP GET request, and then executes the command carried by the refresh instruction, or retrieves the data refresh file according to the address indicated in the refresh instruction, and performs a configuration data refresh based on the data refresh file.
[0094] Using the above method, the client and server interact via HTTP messages. The client is deployed on the operations and maintenance module and the business processing machine, while the server is deployed separately. When the operations and maintenance module needs to send a refresh command, the command is sent to the server through the second client, and the server then broadcasts the refresh message to the first client. Multiple business modules deployed on the first client only listen to the second client program on their local machine. When the second client receives the refresh message, it sends it to each business module on the current machine, thus refreshing the configuration data. Throughout the entire process, the operations and maintenance module only needs to send one refresh command and does not need to maintain information such as the IP address, username, and password of each business processing machine. Furthermore, when the business processing machine itself is added or removed, or when business modules on the processing machine are added or removed, the operations and maintenance module does not require additional development or configuration.
[0095] Furthermore, it offers excellent compatibility with business modules implemented in different languages. The operations and maintenance module only needs to focus on the implementation between the second client and the server, while the business modules only need to focus on the implementation with the first client, thus decoupling the operations and maintenance module from the business processing machine. When the implementations of the business modules and the operations and maintenance module differ, for example, when a Java-based operations and maintenance module and a C-based business module interact with each other, there is no need to develop a custom interface. The business module can simply obtain refresh commands from the first client normally, improving system compatibility.
[0096] Example 4
[0097] This embodiment also provides a configuration data refresh device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0098] Figure 6This is a structural block diagram of a configuration data refresh device according to an embodiment of the present invention, such as... Figure 6 As shown, the device is applied to a service processor, which includes a first client and at least one service module. The first client and at least one service module are communicatively connected. The device includes:
[0099] The first acquisition device 602 is used for the first client to acquire the refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to execute the refresh instruction as instructed by the operation and maintenance module;
[0100] The listening device 604 is used by each business module to listen to the first client to obtain refresh instructions;
[0101] The determining device 606 is used for any business module to determine itself as the target business module for executing the refresh instruction based on the first identification information;
[0102] The refresh device 608 is used to refresh the configuration data of the target business module according to the refresh command.
[0103] In this embodiment, the first acquisition device 602 is used for the first client to acquire the refresh instruction broadcast by the server, the listening device 604 is used for each business module to listen to the first client to acquire the refresh instruction, the determining device 606 is used for any business module to determine itself as the target business module to execute the refresh instruction based on the first identification information, and the refresh device 608 is used for the target business module to refresh the configuration data according to the refresh instruction. With this device, the business module only needs to interact with the first client to receive the refresh instruction broadcast by the server, and the maintenance module only needs to send the refresh instruction to the server once through the second client. This can significantly reduce the data transmission volume of the maintenance module. Furthermore, the maintenance module does not need to maintain the IP / username / password information of each business processor. When the business processor itself is added or removed, or when the business modules on the processor are added or removed, the maintenance module does not need additional development and configuration. This improves the speed at which the business processor acquires the refresh instruction, thereby solving the problem of low response speed during the configuration data refresh process, and achieving the effect of improving maintenance efficiency and system response speed.
[0104] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0105] Example 5
[0106] Figure 7 This is a structural block diagram of a configuration data refresh device according to an embodiment of the present invention, such as... Figure 7 As shown, this device is used on the server side and includes:
[0107] The second acquisition module 702 is used to acquire a refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries the first identification information of the target business module to be executed by the operation and maintenance module.
[0108] The broadcast module 704 is used to broadcast refresh instructions to multiple first clients, so that the target service module refreshes the configuration data according to the refresh instructions; the target service module is connected to a first client.
[0109] In this embodiment, the second acquisition module 702 is used to acquire the refresh instruction sent by the second client, and the broadcast module 704 is used to broadcast the refresh instruction to multiple first clients so that the target business module refreshes the configuration data according to the refresh instruction. In this device, the server is an independently deployed program. The operation and maintenance module sends the message that needs to be refreshed to the server through the second client, and the server broadcasts the refresh instruction to each first client to improve the system response speed.
[0110] Example 6
[0111] Figure 8 This is a structural block diagram of a configuration data refresh device according to an embodiment of the present invention, such as... Figure 8 As shown, this device is used on the operation and maintenance end, which includes an operation and maintenance module and a second client. The device includes:
[0112] The third acquisition module 802 is used by the second client to acquire the refresh instruction of the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs to execute the refresh instruction;
[0113] The sending module 804 is used for the second client to send a refresh instruction to the server, so that the server can broadcast the refresh instruction to the first client, so that any business module listening to the first client can determine itself as the target business module to execute the refresh instruction based on the first identification information.
[0114] In this embodiment, the third acquisition module 802 is used by the second client to acquire the refresh command of the operation and maintenance module, and the sending module 804 is used by the second client to send the refresh command to the server. With this device, when the operation and maintenance end sends the refresh command, the operation and maintenance module only needs to send the refresh command to the server through the second client. Regardless of how many business modules exist in the system, each refresh command of the operation and maintenance module only needs to be sent once, which greatly saves the amount of data transmission of the operation and maintenance module when sending refresh commands. Furthermore, the connection between various business processors is realized through the server and the first and second clients. The operation and maintenance module does not need to maintain the IP / username / password and other information of each business processor, which improves the efficiency of the operation and maintenance module and simplifies the difficulty of adding or deleting business modules. There is no need to develop and configure with the operation and maintenance module when adding or deleting business modules, thus achieving decoupling between the operation and maintenance module and the business processor.
[0115] Example 7
[0116] Embodiments of the present invention also provide a storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0117] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0118] Applied to a service processing machine, the service processing machine includes a first client and at least one service module, the first client and the at least one service module being communicatively connected, the steps including:
[0119] The first client obtains a refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to execute the refresh instruction as instructed by the operation and maintenance module;
[0120] Each of the aforementioned business modules listens to the first client to obtain the refresh command;
[0121] Each of the aforementioned business modules determines itself as the target business module for executing the refresh instruction based on the first identification information;
[0122] The target business module refreshes its configuration data according to the refresh command.
[0123] Optionally, the storage medium is also configured to store a computer program for performing the following steps:
[0124] When applied to the server side, the steps include:
[0125] Obtain a refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries first identification information of the target business module to which the operation and maintenance module instructs to execute the refresh instruction;
[0126] The refresh instruction is broadcast to multiple first clients so that the target service module refreshes its configuration data according to the refresh instruction; the target service module is connected to one of the first clients.
[0127] Optionally, the storage medium is also configured to store a computer program for performing the following steps:
[0128] The application is carried out on the operation and maintenance end, which includes an operation and maintenance module and a second client. The operation and maintenance module and the second client are connected in communication. The steps include:
[0129] The second client obtains the refresh instruction from the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs the refresh instruction to be executed;
[0130] The second client sends the refresh instruction to the server so that the server can broadcast the refresh instruction to the first client, so that any business module listening to the first client can determine itself as the target business module to execute the refresh instruction based on the first identification information.
[0131] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0132] Example 8
[0133] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program, the processor being configured to run the computer program to perform the steps in any of the method embodiments described above. Figure 1 The memory 104 in the image is an example of a type of memory in the electronic device.
[0134] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0135] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0136] Applied to a service processing machine, the service processing machine includes a first client and at least one service module, the first client and the at least one service module being communicatively connected, the steps including:
[0137] The first client obtains a refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to execute the refresh instruction as instructed by the operation and maintenance module;
[0138] Each of the aforementioned business modules listens to the first client to obtain the refresh command;
[0139] Each of the aforementioned business modules determines itself as the target business module for executing the refresh instruction based on the first identification information;
[0140] The target business module refreshes its configuration data according to the refresh command.
[0141] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0142] When applied to the server side, the steps include:
[0143] Obtain a refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries first identification information of the target business module to which the operation and maintenance module instructs to execute the refresh instruction;
[0144] The refresh instruction is broadcast to multiple first clients so that the target service module refreshes its configuration data according to the refresh instruction; the target service module is connected to one of the first clients.
[0145] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0146] The application is carried out on the operation and maintenance end, which includes an operation and maintenance module and a second client. The operation and maintenance module and the second client are connected in communication. The steps include:
[0147] The second client obtains the refresh instruction from the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs the refresh instruction to be executed;
[0148] The second client sends the refresh instruction to the server so that the server can broadcast the refresh instruction to the first client, so that any business module listening to the first client can determine itself as the target business module to execute the refresh instruction based on the first identification information.
[0149] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0150] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0151] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A configuration data refresh method, characterized in that, Applied to a service processing machine, the service processing machine including a first client and at least one service module, the first client and the at least one service module being communicatively connected, the method includes: The first client obtains a refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to execute the refresh instruction as instructed by the operation and maintenance module; Each of the aforementioned business modules listens to the first client to obtain the refresh command; Each of the aforementioned business modules determines itself as the target business module for executing the refresh instruction based on the first identification information; The target business module refreshes its configuration data according to the refresh command.
2. The method according to claim 1, characterized in that, Any of the aforementioned business modules determines itself as the target business module for executing the refresh instruction based on the first identification information, including: Obtain the second identification information of the business module; The business module corresponding to the second identification information that matches the first identification information is identified as the target business module.
3. The method according to claim 1, characterized in that, Before the first client receives the refresh instruction broadcast by the server, the method further includes: The first client sends a first registration request to the server; Obtain the indication message returned by the server after successfully registering the first client according to the first registration request, so as to receive the refresh instruction broadcast by the server.
4. A configuration data refresh method, characterized in that, Applied to the server side, the method includes: Obtain a refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries first identification information of the target business module to which the operation and maintenance module instructs to execute the refresh instruction; The refresh instruction is broadcast to multiple first clients so that the target service module refreshes its configuration data according to the refresh instruction; the target service module is connected to one of the first clients, and each first client is deployed on a service processor and is listened to by various service modules on that service processor. Specifically, the target business module refreshes its configuration data according to the refresh instruction, which includes: each business module determining itself as the target business module based on the first identification information, and refreshing its configuration data according to the refresh instruction.
5. The method according to claim 4, characterized in that, Before obtaining the refresh command sent by the second client, the method further includes: Obtain the second registration request sent by the second client; The second client is registered according to the second registration request in order to receive refresh instructions sent by the registered second client.
6. A configuration data refresh method, characterized in that, The method is applied to an operations and maintenance (O&M) endpoint, which includes an O&M module and a second client, the O&M module and the second client being communicatively connected. The second client obtains the refresh instruction from the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs the refresh instruction to be executed; The second client sends the refresh instruction to the server, so that the server can broadcast the refresh instruction to the first client in each business processor, so that any business module in each business processor that is listening to the first client can determine itself as the target business module to execute the refresh instruction based on the first identification information, and refresh the configuration data according to the refresh instruction.
7. A configuration data refresh device, characterized in that, An apparatus for use in a service processing machine, the service processing machine including a first client and at least one service module, wherein the first client and the at least one service module are communicatively connected, the apparatus comprising: The first acquisition module is used for the first client to acquire a refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries the first identification information of the target business module to be executed by the operation and maintenance module; The monitoring module is used by each of the business modules to monitor the first client to obtain the refresh command; The determination module is used for any of the business modules to determine itself as the target business module for executing the refresh instruction based on the first identification information; The refresh module is used by the target business module to refresh the configuration data according to the refresh instruction.
8. A configuration data refresh device, characterized in that, Applied to the server side, the device includes: The second acquisition module is used to acquire a refresh instruction sent by the second client; the refresh instruction is received by the second client from the operation and maintenance module, and the refresh instruction carries first identification information of the target business module to be executed by the operation and maintenance module. A broadcast module is used to broadcast the refresh instruction to multiple first clients, so that the target business module refreshes the configuration data according to the refresh instruction; the target business module is connected to a first client, and each first client is deployed on a business processor and is listened to by various business modules on the business processor. Specifically, the target business module refreshes its configuration data according to the refresh instruction, which includes: each business module determining itself as the target business module based on the first identification information, and refreshing its configuration data according to the refresh instruction.
9. A configuration data refresh device, characterized in that, Applied to the operation and maintenance end, the operation and maintenance end includes an operation and maintenance module and a second client, and the device includes: The third acquisition module is used by the second client to acquire the refresh instruction of the operation and maintenance module; the refresh instruction carries the first identification information of the target business module to which the operation and maintenance module instructs to execute the refresh instruction; The sending module is used to send the refresh instruction from the second client to the server, so that the server can broadcast the refresh instruction to the first client in each business processor, so that any business module in each business processor that is listening to the first client can determine itself as the target business module to execute the refresh instruction based on the first identification information, and refresh the configuration data according to the refresh instruction.
10. A configuration data refresh system, characterized in that, It includes at least one business processing machine, a server, and an operation and maintenance terminal; Each of the service processors includes a first client and at least one service module, the first client and the at least one service module being communicatively connected; the operation and maintenance terminal includes an operation and maintenance module and a second client, the operation and maintenance module and the second client being communicatively connected; The first client obtains a refresh instruction broadcast by the server; the refresh instruction is received by the server from the operation and maintenance module through the second client, and the refresh instruction carries first identification information of the target business module to execute the refresh instruction as instructed by the operation and maintenance module; each of the business modules listens to the first client to obtain the refresh instruction; any business module determines itself as the target business module to execute the refresh instruction based on the first identification information; the target business module refreshes its configuration data according to the refresh instruction; The server is used to obtain refresh instructions sent by the second client; broadcast the refresh instructions to multiple first clients, the refresh instructions carrying first identification information of the target business module to execute the refresh instructions, so that the target business module refreshes the configuration data according to the refresh instructions; the target business module is connected to one of the first clients; Specifically, the target business module refreshes its configuration data according to the refresh instruction, which includes: each business module determining whether it is the target business module based on the first identification information; if so, it refreshes its configuration data according to the refresh instruction.
11. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 6 when it is run.
12. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method, device and system for channel distribution
CN107306449A
Multi-node automatic operation and maintenance task processing method and system and storage medium
CN112506670A