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

Method, device, storage medium and electronic equipment for generating routing table of message bus

A message bus and table generation technology, applied in electrical digital data processing, instrumentation, error detection/correction, etc., can solve the problems of difficult subscriber static analysis and business logic tracking, inability to locate subscriber processing logic positions, etc. Effects of static analysis and business logic tracking

Active Publication Date: 2022-02-08
NEUSOFT CORP
View PDF4 Cites 0 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
  • Method, device, storage medium and electronic equipment for generating routing table of message bus
  • Method, device, storage medium and electronic equipment for generating routing table of message bus
  • Method, device, storage medium and electronic equipment for generating routing table of message bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be understood that the specific embodiments described herein are intended to illustrate and explain the disclosure and is not intended to limit the disclosure.

[0044] In order to enable those skilled in the art more readily understood embodiments of the present technical solution of the disclosure, the message bus during use EventBus brief introduction.

[0045] EventBus message bus using process includes the following steps:

[0046] Introducing components: incorporated EventBus. Illustratively, the code is as follows:

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

[0048] Custom event class: Event classes are carrier components and assembly process of background threads communicating application data, and for transmitting data. Example, the following code can define event classes:

[0049]

[0050] Event registration: For subscribers need to subscribe to an event, can) register (this) to be registered in...

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 present disclosure relates to a method, device, storage medium, and electronic device for generating a routing table of a message bus, the method including: obtaining preset subscription annotations of the message bus, and the subscription annotations are subscribers registered on the message bus The subscribed event is defined, and the subscription annotation includes the event information subscribed by the subscriber; according to each subscription annotation, the association relationship between each subscriber and each event on the message bus is established; according to the The association relationship generates the routing table of the message bus. Through the technical solution of the present disclosure, relevant information of subscribers can be viewed conveniently and quickly, and it is convenient for developers to perform static analysis and business logic tracking on subscribers and debug application programs.

Description

Technical field [0001] The present disclosure relates to software development technology, and in particular, to the routing table generation method, apparatus, and an electronic device for storage media message bus. Background technique [0002] During software development, often the components needed by the application, between components to communicate with the background thread that will lead to large amount of code and publish events and subscribers are highly coupled. Message Bus provides a EventBus observer mode for message publish and subscribe, to simplify between the various components within the application, the communication between the components and the background thread, which has a small overhead, can publish events and subscribers decoupling advantage. [0003] like figure 1 As shown, the message bus EventBus usually includes three elements, namely the event (Event), event subscribers (Subscriber) and publisher events (Publisher). Event registered subscribers to s...

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
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