Data acquisition method and device

A data acquisition and data technology, applied in the direction of electrical digital data processing, instrumentation, error detection/correction, etc., can solve problems such as code maintenance difficulties, and achieve the effect of facilitating code reuse

Inactive Publication Date: 2020-04-17
MAIPU COMM TECH CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In order to monitor the runtime data of these applications, the current approach usually requires modifying the source code or bytecode of the Java application and adding the corresponding monitoring data collection code. The monitoring logic is tightly coupled with the business logic of the application, resulting in difficulties in code maintenance.

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
  • Data acquisition method and device
  • Data acquisition method and device
  • Data acquisition method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] In the prior art, two methods are generally used to collect data during running of a Java application that needs to be monitored.

[0064] The first method is to realize data collection by adding data collection-related logic codes into the source code of the application program. The inventor found in long-term research and practice that this solution has two major disadvantages. First, the source code of the application needs to be modified, and the monitoring logic is coupled with the business logic of the application, which is not conducive to code maintenance; second, for different The source code of the application program needs to be modified separately, and the code of the monitoring logic cannot be reused, resulting in heavy development workload and high development cost.

[0065] The second method is to add corresponding monitoring logic by modifying the bytecode generated after compiling the source code of the application. The inventor found in long-term rese...

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 relates to the technical field of application monitoring, and provides a data acquisition method and device. The data acquisition method is used for acquiring data in a Java applicationprogram developed on the basis of a Spring framework, and specifically comprises the following steps: acquiring a context of an application program actively injected by the Spring framework by utilizing a hook object corresponding to a class realizing a context acquisition interface; obtaining at least one Spring Bean object used in the application program according to the context; and collectingdata needing to be monitored from members of the at least one Spring Bean object. According to the method, the context of the application program is actively injected into the hook object by the Spring framework, so that the application program does not need to be modified, the monitoring logic is separated from the service logic of the application program, and maintenance and management of codesare facilitated.

Description

technical field [0001] The present invention relates to the technical field of application monitoring, in particular to a data collection method and device. Background technique [0002] In the field of information science and system control, application monitoring management is concerned with monitoring and managing application software performance, availability, and business accuracy. By monitoring and diagnosing the performance and business problems of complex applications, it can ensure the good operation of software applications and assist in locating and analyzing problems. [0003] From the perspective of the development framework of enterprise applications, most of the Java applications on the market currently use the Spring container framework. In order to monitor the runtime data of these applications, the current approach usually requires modifying the source code or bytecode of the Java application and adding the corresponding monitoring data collection code. Th...

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): G06F11/30
CPCG06F11/3051G06F11/302
Inventor 宗润
Owner MAIPU COMM TECH CO LTD
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