Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Message bus routing table generation method and device, storage medium and electronic equipment

A message bus and table generation technology, applied in the direction of electrical digital data processing, instruments, calculations, etc., can solve the problems of difficult subscriber static analysis and business logic tracking, and the inability to locate subscriber processing logic positions, etc.

Active Publication Date: 2018-11-30
NEUSOFT CORP
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, since subscribers are distributed throughout the application, it is difficult to perform static analysis and business logic tracking on subscribers, and during the debugging of the application, it is impossible to locate the location of the subscriber's processing logic

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
  • Message bus routing table generation method and device, storage medium and electronic equipment
  • Message bus routing table generation method and device, storage medium and electronic equipment
  • Message bus routing table generation method and device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0044] In order to make it easier for those skilled in the art to understand the technical solutions of the embodiments of the present disclosure, the process of using the message bus EventBus is briefly introduced.

[0045] The use process of the message bus EventBus mainly includes the following steps:

[0046] Import component: import EventBus. For example, the code is as follows:

[0047] compile 'org.greenrobot:eventbus:3.0.0'

[0048] Define the event class: The event class is the carrier of data in the process of communication between each component of the application and the component and the background thread, and is used to transfer data. For ex...

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 a message bus routing table generation method and device, a storage medium and electronic equipment. The method includes the steps: acquiring preset subscription comments of message buses; building association relationships among subscribers and events on the message buses according to the subscription comments; generating routing tables of the message buses according to the association relationships. The subscription comments are defined when the events are subscribed and the subscribers are registered on the message buses and comprise event information by subscribedby the subscribers. By the aid of the technical field, relevant information of the subscribers can be conveniently and rapidly viewed, static analysis and business logic tracing of the subscribers areconveniently implemented by developers, and application programs are debugged.

Description

technical field [0001] The present disclosure relates to the technical field of software development, and in particular, to a method, device, storage medium and electronic equipment for generating a routing table of a message bus. Background technique [0002] During software development, it is often necessary to communicate between various components of the application, components and background threads, which will result in a large amount of code and highly coupled event publishers and subscribers. The message bus EventBus provides an observer mode to implement message publishing and subscription, which can simplify the communication between components in the application, and between components and background threads. It has low overhead and can decouple event publishers and subscribers. advantage. [0003] like figure 1 As shown, the message bus EventBus generally includes three elements, namely, an event (Event), an event subscriber (Subscriber) and an event publisher ...

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/36
CPCG06F11/3636G06F11/366
Inventor 刘歆宁张霞黄治纲
Owner NEUSOFT CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products