Unlock instant, AI-driven research and patent intelligence for your innovation.

SpringAop-based hot plug exception capture method and device

A capture device, hot-swap technology, applied in the direction of response error generation, instrumentation, electrical digital data processing, etc., can solve problems such as consumption, multi-time cost, program interruption, etc.

Inactive Publication Date: 2020-07-17
SHANGHAI ICEKREDIT INC
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when this method of hard-coded exception capture is used, the program will be interrupted. After the abnormal situation of the program is repaired by repairing the code, the version needs to be released, which will consume more time and cost.

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SpringAop-based hot plug exception capture method and device
  • SpringAop-based hot plug exception capture method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to better understand the above technical solutions, the technical solutions of the present invention will be described in detail below through the accompanying drawings and specific examples. It should be understood that the embodiments of the present invention and the specific features in the examples are detailed descriptions of the technical solutions of the present invention, and It is not a limitation to the technical solutions of the present invention, and the embodiments of the present invention and the technical features in the embodiments can be combined with each other under the condition of no conflict.

[0061] see figure 1 , is a flow chart of a SpringAop-based hot-swap exception capture method provided by an embodiment of the present invention, and the method may include the content described in the following steps S21 to S26.

[0062] Step S21, define a SpringAop-based aspect configuration class, and use the execution expression to match the meth...

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 provides a SpringAop-based hot plug exception capture method and device. The method comprises the following steps of: matching a method in a first program project by using an executive expression through a tangent plane configuration class defined based on SpringAop; and when it is detected that the target method in the first program project is abnormal, creating a processing class after the target method is abnormal in the second program project, and performing compression to obtain a compressed file; uploading the compressed file to a server, and storing the class name of the compressed file, the storage position information of the compressed file in the server and the executive expression of the target method into a preset database; loading and storing the position information through the virtual machine, and instantiating the class name of the compressed file to obtain an instantiated object; and associating the instantiated object with the target method based on theexecutive expression of the target method so as to intercept the target method. Thus, the compressed file is remotely obtained and dynamically injected into the first program project, and dynamic exception capture and processing can be achieved so as to improve the exception processing capacity of the program.

Description

technical field [0001] The present invention relates to the technical field of program anomaly detection, in particular to a SpringAop-based hot swap anomaly capture method and device. Background technique [0002] Abnormalities may occur during the operation of computer programs. When an unpredictable exception occurs in the program, it will cause the program to be interrupted. A common exception capture method is to hard-code the code and perform try / catch exception capture where an exception may occur. However, when the abnormality is caught in this hard-coded way, the program will be interrupted. After the abnormality of the program is repaired by repairing the code, the version needs to be released, which will consume more time and cost. Contents of the invention [0003] In order to improve the above problems, the present invention provides a SpringAop-based method and device for hot-swap exception capture. [0004] The first aspect of the embodiments of the prese...

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
IPC IPC(8): G06F11/07G06F11/36
CPCG06F11/079G06F11/366
Inventor 顾凌云郭志攀王伟孙川
Owner SHANGHAI ICEKREDIT INC