Configuration updating method, device and system, and electronic equipment
A technology for configuration update and configuration information, applied in the field of information management, can solve problems such as memory leaks and data reading errors, and achieve the effect of avoiding memory leaks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0076] figure 1 A schematic flowchart of a configuration update method provided by an embodiment of the present invention is shown. like figure 1 As shown in , the configuration update method is applied to the application server or the client running the application, and includes the following steps:
[0077] Step S101, obtaining configuration information from a Zookeeper server.
[0078] In a possible embodiment, the configuration information is generated by a manager corresponding to the configuration center through a WEB (World Wide Web, global wide area network) page through a configuration operation.
[0079] Step S102, using Java bytecode technology to convert configuration information into configuration classes.
[0080] Step S103, loading the configuration class to the class loader ClassLoader.
[0081] The configuration information is converted into a configuration class represented by Java byte code (.class file) through Java byte code technology. Then the Java ...
Embodiment 2
[0088] figure 2 A schematic flowchart of another configuration update method provided by an embodiment of the present invention is shown. like figure 2 As shown in , the configuration update method is applied to the application server or the client running the application, and includes the following steps:
[0089] Step S201, receiving a detection command sent by the Zookeeper server, and returning detection response information to the Zookeeper server.
[0090] In a possible embodiment, before sending the configuration information, the Zookeeper server sends a detection command to each application server connected to it to detect whether each application server is alive, that is, whether there are problems such as crash or connection interruption. If the application server survives, it will send corresponding probe response information to the Zookeeper server after receiving the probe command.
[0091] In a possible embodiment, the above-mentioned detection instructions ...
Embodiment 3
[0121] Corresponding to the configuration update method in Embodiment 1 or Embodiment 2, this embodiment provides a configuration update device, see image 3 , the configuration updater includes:
[0122] Obtaining module 11, is used for obtaining configuration information from Zookeeper server;
[0123] Conversion module 12, for utilizing the byte code technique of Java to convert above-mentioned configuration information into configuration class;
[0124] The preloading module 13 is used to load the configuration class into the class loader ClassLoader;
[0125] The instantiation module 14 is used to instantiate the configuration class loaded by the above-mentioned class loader ClassLoader to obtain a corresponding instance, wherein the instance is configured with timestamp information;
[0126] The update module 15 is configured to store the above instance in the current context environment to complete the configuration update.
[0127] In this way, the configuration inf...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com