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

Open services gateway initiative (OSGi)-based software component monitoring method and system

A technology of software components and monitoring points, applied in the field of software componentization, can solve the problems of high overhead, small overhead and inaccuracy of resource monitoring, and achieve the effect of reducing system overhead and low overhead.

Active Publication Date: 2012-07-04
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Aiming at the problems that the prior art cannot obtain the interactive behavior of software components online in real time under the OSGi environment, and resource monitoring costs are high and inaccurate, the present invention proposes an OSGi-based software component monitoring method and system, which takes software components as the granularity, Online real-time monitoring of the interactive behavior between software components and the occupancy of CPU, memory and other resources, and has the advantages of not changing the original execution process and less overhead

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
  • Open services gateway initiative (OSGi)-based software component monitoring method and system
  • Open services gateway initiative (OSGi)-based software component monitoring method and system
  • Open services gateway initiative (OSGi)-based software component monitoring method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] The present invention will be further described below through specific embodiments in conjunction with the accompanying drawings.

[0060] 1. Implementation of monitoring point injector

[0061] The code injection function of the monitoring point injector is considered from three aspects: the injection method, the injection location and the injection content.

[0062] (1) Implementation technology: ASM is used as the Java bytecode manipulation framework to implement dynamic injection of class codes when OSGi and software components are loaded.

[0063] (2) OSGi injection: When a software component is deployed to OSGi, OSGi first automatically completes the parsing of the Manifest metafile of the software component, and the injector injects code at the position after each software component parsing in OSGi. The content of this piece of code is to establish a connection with the central bridge, and transmit the information of the export package of the software component ...

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 an open services gateway initiative (OSGi)-based software component monitoring method and an OSGi-based software component monitoring system, and belongs to the technical field of software componentization. The scheme of the invention comprises that: a) when an OSGi platform is started, a monitoring joint injector injects a code for the OSGi platform, wherein the code enables the OSGi platform to publish an interface, which can be provided for other software components to call, of a software component after the resolution stage of the software component is finished; b)when the software component is configured at the OSGi platform, the monitoring point injector operates a public method in a loaded class in the software component, and injects monitoring codes by taking inlet and outlet positions called by the public method to identify the starting and finishing of the calling of the public method; c) the software components corresponding to threads in each stageof the threads are determined according to the monitoring points; and d) the resource occupation conditions of each component are counted. The method and the system can be used in the fields of software analysis and the like.

Description

technical field [0001] The invention relates to the technical field of software componentization, in particular to an OSGi-based software component monitoring method and system. Background technique [0002] A software component is a clearly identifiable software unit with certain functions, which has good encapsulation, clear interface definition, clear background dependency, and can be independently configured and deployed. By adopting software component technology, the quality of software development can be effectively improved, the development efficiency can be improved, and the system can have higher scalability and maintainability. Component-based software engineering has become a mainstream software development method and is widely used to build enterprise information systems. [0003] OSGi (Open Services Gateway initiative) is a widely used lightweight software infrastructure framework that provides a supporting environment for the development and operation of compo...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 王焘张文博朱鑫魏峻钟华
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI