Source code hot loading method and device, electronic device and storage medium

A hot-loading and source code technology, applied in the field of hot-loading source code, can solve problems such as affecting the production system to provide services, and achieve the effect of hot-loading

Pending Publication Date: 2021-11-26
BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Based on the above-mentioned deficiencies in the prior art, this application provides a method, device, electronic equipment and storage medium for hot loading source code, to solve the problem that the existing program modification method needs to stop the program operation, which affects the normal service provision of the production system

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Source code hot loading method and device, electronic device and storage medium
  • Source code hot loading method and device, electronic device and storage medium
  • Source code hot loading method and device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0082] Optionally, in another embodiment of the present application, an implementation of step S202 includes:

[0083] Real-time monitoring whether the source code content change notification of the application is received.

[0084] Wherein, the change notification of the source code content of the application program is released when the source code content of the application program in the target source code library is changed, and is used to trigger the execution of step S201, so it is possible to monitor whether the source code content change notification of the application program is received to realize the target Monitoring whether the source code content of the target application program in the source code library has changed. When it is detected that the source code content change notification of the application program is received, it is detected that the source code content of the target application program in the target source code repository has changed.

[0085] ...

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

PUM

No PUM Login to view more

Abstract

The invention discloses a source code hot loading method and device, an electronic device and a storage medium, and can be applied to the distributed field or the financial field. The source code hot loading method comprises the steps of when a target application program is started, reading the source code content of the target application program from a target source code library, compiling the read source code content of the target application program into the byte codes in real time so as to execute the compiled byte codes; monitoring whether the source code content of the target application program in the target source code library is changed or not in real time; if it is monitored that the source code content of the target application program in the target source code library is changed, reading the changed source code content of the target application program from the target source code library, and compiling the read changed source code content of the target application program into a current latest byte code in real time; and executing the current latest byte code.

Description

technical field [0001] The present application relates to the technical field of program modification, and in particular to a method, device, electronic equipment and storage medium for hot loading source code. Background technique [0002] At present, with the continuous increase of business service requirements, under the distributed microservice architecture, it is usually necessary to run multiple applications to meet the service requirements. [0003] Nowadays, in order to provide corresponding services, Java program source code is generally compiled to generate executable bytecode, and then the bytecode program is deployed on the target computer to run, thereby providing corresponding services. When it is necessary to modify the program on the target computer, it is necessary to stop the bytecode program running on the target computer, then modify the source code of the Java program first, then compile it to obtain the bytecode, and deploy it to the computer, and fina...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/656G06F8/41
Inventor 陈玮
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products