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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 