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

Business module monitoring method based on OSGI

A business method and business module technology, applied in the field of OSGI-based business module monitoring, can solve problems such as no specification, and achieve the effect of improving the system and promoting version upgrades

Active Publication Date: 2016-04-13
钛马信息网络技术有限公司
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current JMX specification does not give specific specifications for this layer

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
  • Business module monitoring method based on OSGI
  • Business module monitoring method based on OSGI
  • Business module monitoring method based on OSGI

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0069] see image 3 , the present invention discloses a kind of OSGI-based business module monitoring method, and described monitoring method comprises the steps:

[0070] [Step S1] The client requests to call the distributed coordination component ZooKeeper cluster, and the ZooKeeper cluster checks whether the service module service container SP is still in the cluster, and returns the service module service container SP access interface to the client if it is in the cluster. Such as figure 1 as shown, figure 1 A schematic diagram of the business component model.

[0071] [Step S2] The method of calling the business component by the client is captured by the business method interceptor of the service container SP, and the interceptor performs the following operations: add 1 to the method call counter, and record the start call time;

[0072] [Step S3] The business method interceptor calls the SP component method in the OSGI-container, and the method returns a result or sen...

Embodiment 2

[0089] The development of business systems is built on the OSGI-based application service platform. Developers only focus on specific business implementations, automatically intercept method calls during system operation, and calculate the number of requests; calculate processing time, error times, and other indicators during the running process , the end of the call to judge whether it is the longest processing and other indicators. These calculation logics are transparent to the business system, without explicit inheritance or calling any code.

[0090] The indicators required by each business system are different, and some indicators are common, such as the number of requests and processing time. Some indicators are unique to the business system, such as the number of client disconnections in the business system with car machine applications.

[0091] The system adopts the modular idea of ​​OSGI to solve this problem, and makes the index calculation into different Bundle p...

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 reveals a business module monitoring method based on OSGI, and the method comprises the steps: enabling a client to request for the call of a ZooKeeper cluster; enabling the ZooKeeper cluster to check whether SP is still in a cluster or not: returning a SP server to the client if the SP is still in the cluster; capturing a method of the client for the call of an SP assembly through a business method interception device of an SP server; enabling the business method interception device to carry out the call of an SP assembly method in an OSGI container, wherein the method returns results or transmits abnormality to the business method interception device; starting index collection so as to obtain a needed SP assembly business method list; obtaining the method list from the business method interception device through a monitoring module; circulating each business method entry; completing the collection of indexes of business methods at a time; enabling a collection program to transmit an SP assembly separation instruction to the ZooKeeper cluster; and carrying out the analysis and alarm of business indexes. The method can accurately locate the bottleneck of business methods, improves the system, and facilitates the upgrading of a version.

Description

technical field [0001] The invention belongs to the technical field of software monitoring, and relates to a method for monitoring service modules, in particular to an OSGI-based method for monitoring service modules. Background technique [0002] OSGi, also known as the dynamic module system of the Java language, defines an infrastructure for the development of modular applications. [0003] The OSGi specification is similar to the Servlet specification and the EJB specification. This specification defines two types of objects, one is the service object provided by the container, and the other is the contract that must be followed between the container and your application. Achieved. If you want to develop on the OSGi platform, first, you must use the OSGi API to create your application, and then deploy it to the OSGi container. From a developer's point of view, OSGi has the following advantages: (1) you can dynamically install, uninstall, start and stop different modules...

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): H04L12/26G06F11/30
Inventor 欧阳亚袁兴海
Owner 钛马信息网络技术有限公司