CN111865746A - System development method and device based on loop bus - Google Patents

System development method and device based on loop bus Download PDF

Info

Publication number
CN111865746A
CN111865746A CN202010565424.8A CN202010565424A CN111865746A CN 111865746 A CN111865746 A CN 111865746A CN 202010565424 A CN202010565424 A CN 202010565424A CN 111865746 A CN111865746 A CN 111865746A
Authority
CN
China
Prior art keywords
interface
node
type node
service
layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010565424.8A
Other languages
Chinese (zh)
Other versions
CN111865746B (en
Inventor
马青龙
孙健
张炳康
夏繁
丁健文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suning Cloud Computing Co Ltd
Original Assignee
Suning Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN202010565424.8A priority Critical patent/CN111865746B/en
Publication of CN111865746A publication Critical patent/CN111865746A/en
Application granted granted Critical
Publication of CN111865746B publication Critical patent/CN111865746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a system development method and a system development device based on a loop bus, relates to the technical field of system development, and can realize uniform monitoring, scheduling and maintenance of each application service system and improve the system development and maintenance efficiency. The method comprises the following steps: constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, wherein at least one access type node, at least one management type node and at least one service type node are registered in the bus layer; the access type node and/or the management type node obtains a service interface list of a target service type node through service discovery, and a localized programmable interface of the access type node and/or the management type node is correspondingly generated by utilizing a protocol layer; and the protocol layer transmits the request data to the bus layer through the access control layer by calling the localized programmable interfaces of the access type nodes and/or the management type nodes and inputting the request data, so as to obtain the request result fed back by the bus layer. The device is applied with the method provided by the scheme.

Description

System development method and device based on loop bus
Technical Field
The present invention relates to the field of system development technologies, and in particular, to a system development method and apparatus based on a loop bus.
Background
At present, most of enterprise application service systems adopt a single-point deployment and single-point management strategy, that is, each set of application service system needs to be subjected to single deployment, single externally-issued interface and single internal management, because the externally-issued interface of each application service system has various technologies, the fragmentation of each single-point application service system is serious, the application service systems cannot be uniformly monitored, scheduled and maintained, unfriendly development experience is caused to developers in the development process, and the development and maintenance efficiency of the application service systems is restricted.
Disclosure of Invention
The invention aims to provide a system development method and a system development device based on a loop bus, which can realize uniform monitoring, scheduling and maintenance of each application service system and improve the system development and maintenance efficiency.
In order to achieve the above object, an aspect of the present invention provides a system development method based on a loop bus, including:
constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, wherein at least one access type node, at least one management type node and at least one service type node are registered in the bus layer;
The access type node and/or the management type node obtains a service interface list of a target service type node through service discovery, and a localized programmable interface of the access type node and/or the management type node is correspondingly generated by utilizing a protocol layer;
the protocol layer transmits the request data to the bus layer through the access control layer by calling the localized programmable interface of the access type node and/or the management type node and inputting the request data, and the request result processed by the bus layer and fed back is obtained.
Preferably, the method of registering the visiting type node, the management type node and the service type node in the bus layer includes:
adding service type nodes corresponding to an enterprise application service system and access type nodes and management type nodes corresponding to a developer end in a bus layer in a registration mode, wherein registration information corresponding to the access type nodes, the management type nodes and the service type nodes is stored in the bus layer;
the service type node is used for publishing an object-oriented interface to the outside, and the interface comprises a functional interface, a subscription interface and a broadcast interface;
the access type node and the management type node are used for executing service discovery and interface calling functions through a protocol layer.
Preferably, the method for adding the service type node corresponding to the enterprise application service system in the bus layer in a registered manner, and adding the access type node and the management type node corresponding to the developer side comprises the following steps:
inputting registration information through an enterprise application service system or a developer end, converting the registration information into a json data packet containing the registration information by a protocol layer and sending the json data packet to an access control layer;
analyzing the registration information in the json data by the access control layer, obtaining access authority, converting the registration information into a registration signal and sending the registration signal to the bus layer;
and executing the registration service of the service type node, the access type node or the management type node by the bus layer according to the registration signal.
Preferably, the method for the visited node and/or the managed node to obtain the service interface list of the target service node through service discovery and correspondingly generate the localized programmable interface of the visited node and/or the managed node by using the protocol layer includes:
the access type node and/or the management type node obtains a service node list including all service type nodes in a bus layer through a service discovery function of a protocol layer;
and selecting a target service type node in the service node list to check a service interface list of the callable interface, selecting any callable interface in the service interface list as a target interface to obtain an interface signal of the target interface from the bus layer, and converting the interface signal into a json data packet comprising interface information by the protocol layer so that the access type node and/or the management type node correspondingly generates a localized programmable interface based on the json data packet.
Preferably, the method for obtaining the request result processed and fed back by the bus layer by calling the localized programmable interface of the access type node and/or the management type node and inputting the request data, and the protocol layer transmitting the request data to the bus layer through the access control layer comprises:
calling a localization programmable interface of the access type node and/or the management type node, and inputting request data through the localization programmable interface;
converting the request data into a json data packet comprising interface calling information through an interface calling converter and sending the json data packet to an access control layer, wherein the request data comprises a called target interface name, a source address, a target address, a data flow direction, an operation factor, parameter information and overtime response time;
the access control layer analyzes the json data packet to identify a calling intention and an access authority, and converts the json data packet into a calling signal and sends the calling signal to the bus layer when an access node and/or a management node which inputs request data has the access authority;
searching a target interface in the target service type node by the bus layer according to the calling intention, processing a callback function of the target interface to obtain a feedback signal comprising a request result, and returning the feedback signal to the access control layer;
The access control layer analyzes the feedback signal to obtain a json data packet comprising a request result and then sends the json data packet to the protocol layer;
and then the json data packet is converted into a request result by an interface call converter and is fed back to the localized programmable interface of the access type node and/or the management type node which inputs the request data.
Preferably, the access right includes a threshold value of the concurrency number of the access type node and the management type node, a threshold value of the access times, a blacklist and whitelist right, and an allowed access period of the service type node.
Preferably, the protocol layer provides the programming class object for the localized programmable interface using a remote object description language protocol.
Compared with the prior art, the system development method based on the loop bus has the following beneficial effects:
in the system development method based on the loop bus, the service type node corresponding to an enterprise application service system, the access type node and the management type node corresponding to a developer end are respectively registered on the loop bus by constructing the loop bus, so that the access type node and/or the management type node can acquire a service interface list of a target service type node through service discovery, and a localized programmable interface of the access type node and/or the management type node is correspondingly generated by utilizing a protocol layer, thereby realizing that the request data is transmitted to a bus layer through the access control layer by the protocol layer and the request result fed back after being processed by the bus layer is acquired by calling the localized programmable interface of the access type node and/or the management type node and inputting the request data.
Compared with the strategy that an enterprise adopts single-point deployment and single-point management for a plurality of application service systems in the prior art, the access type node in the scheme of the invention can access the interface service of any service type node in a programmable mode and receive the callback event notification of any service type node, the management type node can monitor, manage and control any node in the loop bus in the programmable mode, and the service type node can issue an interface in the programmable mode. Therefore, through the setting of the loop bus, the unified monitoring, scheduling and maintenance can be carried out on each application service system of an enterprise, and the development and maintenance efficiency of the system is improved.
Another aspect of the present invention provides a system development apparatus based on a loop bus, to which the system development method based on a loop bus mentioned in the above technical solution is applied, the apparatus including:
the system comprises a construction unit, a data processing unit and a data processing unit, wherein the construction unit is used for constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, and at least one access type node, at least one management type node and at least one service type node are registered in the bus layer;
the service discovery unit is used for acquiring a service interface list of a target service type node through service discovery by using the access type node and/or the management type node and correspondingly generating a localized programmable interface of the access type node and/or the management type node by using a protocol layer;
And the interface calling unit is used for calling the localized programmable interface of the access type node and/or the management type node and inputting request data, and the protocol layer transmits the request data to the bus layer through the access control layer to obtain a request result fed back by the bus layer.
Preferably, the method of registering the visiting type node, the management type node and the service type node in the bus layer includes:
adding service type nodes corresponding to an enterprise application service system and access type nodes and management type nodes corresponding to a developer end in a bus layer in a registration mode, wherein registration information corresponding to the access type nodes, the management type nodes and the service type nodes is stored in the bus layer;
the service type node is used for publishing an object-oriented interface to the outside, and the interface comprises a functional interface, a subscription interface and a broadcast interface;
the access type node and the management type node are used for executing service discovery and interface calling functions through a protocol layer.
Compared with the prior art, the beneficial effects of the system development device based on the loop bus provided by the invention are the same as the beneficial effects of the system development method based on the loop bus provided by the technical scheme, and the details are not repeated herein.
A third aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above loop bus based system development method.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the invention are the same as those of the system development method based on the loop bus provided by the technical scheme, and are not repeated herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic flow chart of a system development method based on a loop bus according to an embodiment;
FIG. 2 is an exemplary diagram of a ring bus in which an access type node, a management type node, and a service type node are registered in the embodiment;
FIG. 3 is a general architecture diagram of a loop bus development method in an embodiment;
FIG. 4 is a schematic flow chart of the generation of a localized programmable interface in an embodiment;
FIG. 5 is a schematic flow chart illustrating a procedure for calling a target interface in a service node through a localized programmable interface in an embodiment;
Fig. 6 is an exemplary diagram of registered information in a service node in an embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, the present embodiment provides a system development method based on a loop bus, including:
constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, wherein at least one access type node, at least one management type node and at least one service type node are registered in the bus layer; the access type node and/or the management type node obtains a service interface list of a target service type node through service discovery, and a localized programmable interface of the access type node and/or the management type node is correspondingly generated by utilizing a protocol layer; the protocol layer transmits the request data to the bus layer through the access control layer by calling the localized programmable interface of the access type node and/or the management type node and inputting the request data, and the request result processed by the bus layer and fed back is obtained.
In the system development method based on the loop bus provided by this embodiment, by constructing the loop bus, a service type node corresponding to an enterprise application service system, and an access type node and a management type node corresponding to a developer end are respectively registered on the loop bus, so that the access type node and/or the management type node can obtain a service interface list of a target service type node through service discovery, and a localized programmable interface of the access type node and/or the management type node is generated by using a protocol layer, and further, by calling the localized programmable interface of the access type node and/or the management type node and inputting request data, the protocol layer transmits the request data to a bus layer through an access control layer, and obtains a request result processed and fed back by the bus layer.
Compared with the prior art in which an enterprise adopts a single-point deployment and single-point management policy for a plurality of application service systems, the access type node in the scheme of this embodiment can access the interface service of any service type node in a programmable manner, receive the callback event notification of any service type node, the management type node can monitor, manage and control any node in the loop bus in a programmable manner, and the service type node can issue an interface in a programmable manner. Therefore, through the setting of the loop bus, the unified monitoring, scheduling and maintenance can be carried out on each application service system of an enterprise, and the development and maintenance efficiency of the system is improved.
Theoretically, on the premise of not being limited by access authority, any two nodes in the ring bus can access each other, and free agent distribution in the ring bus is supported.
In the above embodiment, the method of registering an access type node, a management type node, and a service type node in the bus layer includes:
adding service type nodes corresponding to the enterprise application service system and access type nodes and management type nodes corresponding to the developer end in a bus layer in a registration mode, wherein registration information corresponding to the access type nodes, the management type nodes and the service type nodes is stored in the bus layer; the service type node is used for publishing an object-oriented interface to the outside, and the interface comprises a functional interface, a subscription interface and a broadcast interface; the access type node and the management type node are used for executing service discovery and interface calling functions through a protocol layer.
In particular, the loop bus includes a bus layer, an access control layer, and a protocol layer. In particular, the bus layer comprises a ring bus structure and a signal processor. The ring bus structure is a bidirectional circular linked list, and one or more of basic information tables, access strategy information tables and external interface release information tables of all registered nodes are maintained and stored on the bidirectional circular linked list. The node types registered on the ring bus structure are divided into a service type node, an access type node and a management type node, wherein the service type node records access strategy control of the service type node on the access type node and the management type node and records all interface names and parameter information provided by the service type node to the outside, the service type node has an interface publishing function, such as a publishing functional interface, a subscription interface and a broadcast interface, and the management type node and the access type node have a service discovery function and an interface calling function.
The signal processor is responsible for processing the mutual access signals of all nodes on the ring bus structure, and the mutual access among all the nodes on the ring bus structure is carried out in a signal triggering mode (the signals have source address and target address characteristics and represent the signal flow direction relation among the nodes, and simultaneously, the broadcasting is supported). The triggering mechanism is that the access control layer sends signals to the ring bus structure, and the signal processor is responsible for receiving the signals, controlling the flow direction of the signals and processing the purposes of the signals.
The access control layer is positioned at the periphery of the bus layer and is responsible for receiving and analyzing protocol message data (such as json data packet) of the protocol layer and determining whether to forward an access request to the target service type node or not according to the access authority.
The protocol layer is arranged at the periphery of the access control layer, and comprises a set of localized programmable interfaces provided for the developer end, and the programming interfaces are responsible for providing the functions of calling the remote service interface like calling a local function. The programming interface generates a localized callable programming class object according to various types of interfaces provided by a protocol layer remote object description language protocol (Json-RODLP), and when the interface or the function of the class object is called, an interface calling converter is responsible for converting a calling request into a protocol data message and sending the protocol data message to a server where a loop bus is located through a communication controller.
In particular, C, M, S represents an access type node, a management type node, and a service type node in that order as shown in FIG. 2. It can be seen in the figure that C0, M0, S0 all register nodes in the bus layer, the node registration interface is provided by the bus layer, the node needs to be accompanied with registration information during registration, such as node type (such as access type, management type and service type), access authority, black and white list, and the like, when the node is successfully registered, the bus layer records the registration information of the node and adds the node into the loop bus;
after successful registration, S0 may publish its service type interface and management type interface to the bus layer, where both types of interfaces may include a functional interface, a subscription interface, and a broadcast interface.
After the C0 is successfully registered, the service type interface issued by each service type node in the bus layer can be discovered through the service discovery function, the service discovery interface is provided by the bus layer, when the C0 selects a service type interface list of a certain service type node, the protocol layer is responsible for generating a localized programmable interface, and the C0 can call the corresponding service type interface in the service type node through the localized programmable interface.
After M0 registers successfully, it can discover the management type interface issued by each service type node in the bus layer through the service discovery function, where the service discovery interface is provided by the bus layer, and when M0 selects a management type interface list of a certain service type node, the protocol layer is responsible for generating a localized programmable interface, and M0 can call the corresponding management type interface in the service type node through the localized programmable interface.
After the C0 and M0 pass service discovery and generate localized programming interfaces, the subsequent C0 and M0 can call the service type interface and the management type interface of each S0 service type node in the bus layer respectively like localized programming.
In the above embodiment, the method for adding the service type node corresponding to the enterprise application service system in the bus layer in a registered manner, and adding the access type node and the management type node corresponding to the developer side includes:
inputting registration information through an enterprise application service system or a developer end, converting the registration information into a json data packet containing the registration information by a protocol layer and sending the json data packet to an access control layer; the access control layer analyzes the registration information in the json data, acquires the access authority and then converts the registration information into a registration signal to be sent to the bus layer; the bus layer performs registration services for the service-type node, the access-type node, or the management-type node according to the registration signal.
In the above embodiment, the method for the visited node and/or the managed node to obtain the service interface list of the target service node through service discovery, and generate the localized programmable interface of the visited node and/or the managed node by using the protocol layer correspondingly includes:
The access type node and/or the management type node obtains a service node list including all service type nodes in a bus layer through a service discovery function of a protocol layer; selecting any one of the callable interfaces in the service node list as a target service type node to view the service interface list of the callable interfaces, selecting the target interface in the service interface list to acquire an interface signal of the target interface from the bus layer, and converting the interface signal into a json data packet comprising interface information by the protocol layer, so that the access type node and/or the management type node correspondingly generates a localized programmable interface based on the json data packet.
In specific implementation, the service interface discovery means that when a developer end (corresponding to an access type node and/or a management type node) needs to discover a service interface list of a target service type node and an available calling interface in a bus layer for the first time, a localized programmable interface of the access type node and/or the management type node is obtained through the following operations. As shown in fig. 3 and fig. 4, a developer inputs a service node list in the xbus:// ip/discoverable bus layer on a webpage, displays a service interface list of all callable interfaces when clicking a certain target service type node, then clicks a json data packet for viewing the target interface, copies the json data packet to a local programming interface tool, and generates a required localized programming interface of a C #, a C + + or a Java interface.
In the above embodiment, the method for obtaining the request result processed and fed back by the bus layer by calling the localized programmable interface of the access node and/or the management node and inputting the request data and transmitting the request data to the bus layer through the access control layer by the protocol layer includes:
calling a localization programmable interface of the access type node and/or the management type node, and inputting request data through the localization programmable interface; converting the request data into a json data packet comprising interface calling information through an interface calling converter and sending the json data packet to an access control layer, wherein the request data comprises a called target interface name, a source address, a target address, a data flow direction, an operation factor, parameter information and overtime response time; the access control layer analyzes the json data packet to identify calling intention and access authority, and when the access node and/or the management node of the input request data has the access authority, the json data packet is converted into a calling signal and sent to the bus layer; searching a target interface in the target service type node by the bus layer according to the calling intention, processing a callback function of the target interface to obtain a feedback signal comprising a request result, and returning the feedback signal to the access control layer; the access control layer analyzes the feedback signal to obtain a json data packet comprising a request result and then sends the json data packet to the protocol layer; and then the json data packet is converted into a request result by the interface call converter and is fed back to the localized programmable interface of the access type node and/or the management type node which inputs the request data.
During specific implementation, the access type node, the management type node and the service type node can provide a localized programmable interface to send an access request to the bus layer, the localized programmable interface calls the formed access request, and the bus layer forms a feedback signal response based on the access request. When the localized programmable interface is called, a json data packet in the following structural format is formed:
Figure BDA0002547468970000101
as shown in fig. 3 and 5, the complete call flow is as follows: when a developer end (an access node and a management node) calls a target interface of a target service node, firstly, a localization programmable interface is called, the name and parameter information of the called target interface are input, a protocol layer sets the data flow direction of the localization programmable interface as Request and converts the data flow direction into json data with the structure and sends the json data packets out, the access control layer analyzes the received json data packets in calling intention and access authority, the json data packets are converted into calling signals and sent to a bus layer when the access authority exists, the bus layer searches the target service node and the corresponding target interface after receiving the calling intention, then the json data including the calling intention are forwarded to the protocol layer, the protocol layer calls a callback function of the corresponding target interface after receiving the json data packets, the callback function is executed to obtain a Request result and returns to the access control layer in the form of a feedback signal, and analyzing the feedback signal by the access control layer to obtain a json data packet comprising the request result, sending the json data packet to the protocol layer, setting the data flow direction of the localized programmable interface to be Response by the protocol layer, converting the json data packet into the request result by the interface calling converter, and feeding the request result back to the localized programmable interface of the access type node and/or the management type node which inputs the request data.
Illustratively, the access right in the above embodiment includes a threshold of concurrency number of the access type node and the management type node, a threshold of access times, a blacklist and whitelist right, and an allowed access period of the service type node.
It will be appreciated that the protocol layer provides programming class objects for the localized programmable interface using a remote object description language protocol.
As shown in fig. 6, the registration information includes gdt data tables and ldt data tables, the gdt data table maintains data information, status information, and the like of the node, and the ldt data table maintains feature information and interface information of the node. Wherein the feature letters (features) information comprises: access rights and communication means, which are introduced during registration. And the interface information (Interfaces) includes: interface name, description information, version information, parameter information, type information and the like, wherein the interface information is issued through the service type node.
In summary, the scheme in this embodiment can change the current situation of loose service and management of the application service systems by the existing enterprise, and by aggregating each application service system on the loop bus, a unified management method, a unified interface technology standard, a unified interface message specification, and a unified upgrade and maintenance window for the enterprise can be provided, thereby reducing the management and maintenance cost of the enterprise; for developers of the enterprise application service system, more energy can be paid to pay attention to external business interface service, and excessive energy is not needed to be spent on the aspects of selection and implementation of communication protocols of the application service system, interface definition, interface document writing, interface maintenance and upgrading, so that the time cost of the developers is reduced; for the access end developer, each service type node provided on the loop bus and various kinds of callable interfaces on the nodes can be inquired through finding the service, and the developer can conveniently call remotely at the later stage by converting the finding service into a localized programming interface.
Example two
The embodiment provides a system development device based on a loop bus, comprising:
the system comprises a construction unit, a data processing unit and a data processing unit, wherein the construction unit is used for constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, and at least one access type node, at least one management type node and at least one service type node are registered in the bus layer;
the service discovery unit is used for acquiring a service interface list of a target service type node through service discovery by using the access type node and/or the management type node and correspondingly generating a localized programmable interface of the access type node and/or the management type node by using a protocol layer;
and the interface calling unit is used for calling the localized programmable interface of the access type node and/or the management type node and inputting request data, and the protocol layer transmits the request data to the bus layer through the access control layer to obtain a request result fed back by the bus layer.
Preferably, the method of registering the visiting type node, the management type node and the service type node in the bus layer includes:
adding service type nodes corresponding to an enterprise application service system and access type nodes and management type nodes corresponding to a developer end in a bus layer in a registration mode, wherein registration information corresponding to the access type nodes, the management type nodes and the service type nodes is stored in the bus layer;
The service type node is used for publishing an object-oriented interface to the outside, and the interface comprises a functional interface, a subscription interface and a broadcast interface;
the access type node and the management type node are used for executing service discovery and interface calling functions through a protocol layer.
Compared with the prior art, the beneficial effects of the system development device based on the loop bus provided by the embodiment are the same as the beneficial effects of the system development method based on the loop bus provided by the above embodiment, and are not described herein again.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the loop bus-based system development method.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this embodiment are the same as those of the system development method based on the loop bus provided by the above technical solution, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the invention may be implemented by hardware that is instructed to be associated with a program, the program may be stored in a computer-readable storage medium, and when the program is executed, the program includes the steps of the method of the embodiment, and the storage medium may be: ROM/RAM, magnetic disks, optical disks, memory cards, and the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A system development method based on a loop bus is characterized by comprising the following steps:
constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, wherein at least one access type node, at least one management type node and at least one service type node are registered in the bus layer;
the access type node and/or the management type node obtains a service interface list of a target service type node through service discovery, and a localized programmable interface of the access type node and/or the management type node is correspondingly generated by utilizing a protocol layer;
and the protocol layer transmits the request data to the bus layer through the access control layer by calling the localized programmable interfaces of the access type nodes and/or the management type nodes and inputting the request data, so as to obtain the request result fed back by the bus layer.
2. The method of claim 1, wherein registering the visited node, the managed node, and the service node in the bus layer comprises:
Adding service type nodes corresponding to an enterprise application service system and access type nodes and management type nodes corresponding to a developer end in a bus layer in a registration mode, wherein registration information corresponding to the access type nodes, the management type nodes and the service type nodes is stored in the bus layer;
the service type node is used for publishing an object-oriented interface to the outside, and the interface comprises a functional interface, a subscription interface and a broadcast interface;
the access type node and the management type node are used for executing service discovery and interface calling functions through a protocol layer.
3. The method of claim 2, wherein adding service type nodes corresponding to the enterprise application service system in a registered manner in the bus layer, and wherein adding access type nodes and management type nodes corresponding to the developer side comprises:
inputting registration information through an enterprise application service system or a developer end, converting the registration information into a json data packet containing the registration information by a protocol layer and sending the json data packet to an access control layer;
analyzing the registration information in the json data by the access control layer, obtaining access authority, converting the registration information into a registration signal and sending the registration signal to the bus layer;
And executing the registration service of the service type node, the access type node or the management type node by the bus layer according to the registration signal.
4. The method according to claim 1, wherein the method for the visited node and/or the managed node to obtain the service interface list of the target service node through service discovery and generate the localized programmable interface of the visited node and/or the managed node using the protocol layer mapping comprises:
the access type node and/or the management type node obtains a service node list including all service type nodes in a bus layer through a service discovery function of a protocol layer;
and selecting a target service type node in the service node list to check a service interface list of the callable interface, selecting any callable interface in the service interface list as a target interface to obtain an interface signal of the target interface from the bus layer, and converting the interface signal into a json data packet comprising interface information by the protocol layer so that the access type node and/or the management type node correspondingly generates a localized programmable interface based on the json data packet.
5. The method of claim 4, wherein the method for obtaining the request result processed and fed back by the bus layer by calling the localized programmable interface of the access type node and/or the management type node and inputting the request data, and passing the request data to the bus layer through the access control layer by the protocol layer comprises:
Calling a localization programmable interface of the access type node and/or the management type node, and inputting request data through the localization programmable interface;
converting the request data into a json data packet comprising interface calling information through an interface calling converter and sending the json data packet to an access control layer, wherein the request data comprises a called target interface name, a source address, a target address, a data flow direction, an operation factor, parameter information and overtime response time;
the access control layer analyzes the json data packet to identify a calling intention and an access authority, and converts the json data packet into a calling signal and sends the calling signal to the bus layer when an access node and/or a management node which inputs request data has the access authority;
searching a target interface in the target service type node by the bus layer according to the calling intention, processing a callback function of the target interface to obtain a feedback signal comprising a request result, and returning the feedback signal to the access control layer;
the access control layer analyzes the feedback signal to obtain a json data packet comprising a request result and then sends the json data packet to the protocol layer;
and then the json data packet is converted into a request result by an interface call converter and is fed back to the localized programmable interface of the access type node and/or the management type node which inputs the request data.
6. The method of claim 3 or 5, wherein the access right comprises a threshold of concurrency number of the access type node and the management type node, a threshold of access times, a blacklist and whitelist right, and an allowed access period of the service type node.
7. The method of any of claims 1-5, wherein the protocol layer provides programming class objects for the localized programmable interface using a remote object description language protocol.
8. A system development apparatus based on a loop bus, comprising:
the system comprises a construction unit, a data processing unit and a data processing unit, wherein the construction unit is used for constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, and at least one access type node, at least one management type node and at least one service type node are registered in the bus layer;
the service discovery unit is used for acquiring a service interface list of a target service type node through service discovery by using the access type node and/or the management type node and correspondingly generating a localized programmable interface of the access type node and/or the management type node by using a protocol layer;
and the interface calling unit is used for calling the localized programmable interface of the access type node and/or the management type node and inputting request data, and the protocol layer transmits the request data to the bus layer through the access control layer to obtain a request result fed back by the bus layer.
9. The apparatus of claim 8, wherein the means for registering the visited node, the managed node, and the service node in the bus layer comprises:
adding service type nodes corresponding to an enterprise application service system and access type nodes and management type nodes corresponding to a developer end in a bus layer in a registration mode, wherein registration information corresponding to the access type nodes, the management type nodes and the service type nodes is stored in the bus layer;
the service type node is used for publishing an object-oriented interface to the outside, and the interface comprises a functional interface, a subscription interface and a broadcast interface;
the access type node and the management type node are used for executing service discovery and interface calling functions through a protocol layer.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 7.
CN202010565424.8A 2020-06-19 2020-06-19 System development method and device based on loop bus Active CN111865746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010565424.8A CN111865746B (en) 2020-06-19 2020-06-19 System development method and device based on loop bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010565424.8A CN111865746B (en) 2020-06-19 2020-06-19 System development method and device based on loop bus

Publications (2)

Publication Number Publication Date
CN111865746A true CN111865746A (en) 2020-10-30
CN111865746B CN111865746B (en) 2022-08-19

Family

ID=72987678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010565424.8A Active CN111865746B (en) 2020-06-19 2020-06-19 System development method and device based on loop bus

Country Status (1)

Country Link
CN (1) CN111865746B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794409A (en) * 2009-11-18 2010-08-04 山东浪潮齐鲁软件产业股份有限公司 Real-time data exchange model of cross-platform application system
US20100217782A1 (en) * 2003-10-24 2010-08-26 Microsoft Corporation Service Discovery and Publication
US20110125821A1 (en) * 2009-11-24 2011-05-26 International Business Machines Corporation Service Oriented Architecture Enterprise Service Bus With Universal Ports
CN102082771A (en) * 2009-11-30 2011-06-01 中国移动通信集团福建有限公司 Service management middleware based on ESB (enterprise service bus) technology
CN102402735A (en) * 2011-11-21 2012-04-04 山东浪潮齐鲁软件产业股份有限公司 Enterprise application integration solution complying with SOA thought
CN102647319A (en) * 2012-03-27 2012-08-22 许继集团有限公司 Application service system for monitoring power charging-exchanging station and interprocess communication method
CN103701935A (en) * 2014-01-13 2014-04-02 浪潮(北京)电子信息产业有限公司 Construction method and system of cloud computing service platform
CN103716408A (en) * 2014-01-02 2014-04-09 浪潮(北京)电子信息产业有限公司 Enterprise application integration method and system based on enterprise service bus (ESB)
CN103873332A (en) * 2014-03-28 2014-06-18 浪潮软件集团有限公司 Method for providing enterprise service bus of unified service environment by tax system
CN105224594A (en) * 2015-08-26 2016-01-06 北京锐安科技有限公司 A kind of Service-oriented application data interconnection inquiry system and querying method
CN106201498A (en) * 2016-06-29 2016-12-07 浙江理工大学 A kind of Distributed-tier SOA integrated application system
CN106656706A (en) * 2017-02-25 2017-05-10 华南理工大学 Service-oriented robot open-type control system and method based on software bus
CN108074076A (en) * 2017-12-08 2018-05-25 上海壹账通金融科技有限公司 Service providing method, device, equipment and readable storage medium storing program for executing based on ESB
CN108989372A (en) * 2017-06-02 2018-12-11 华为技术有限公司 Method, registration center and the equipment of service discovery
CN109741229A (en) * 2018-11-16 2019-05-10 比亚迪股份有限公司 Management system and method applied to rail traffic
CN110322940A (en) * 2019-07-15 2019-10-11 山东健康医疗大数据有限公司 A kind of access authorization methods and system that medical data is shared
CN110378824A (en) * 2019-06-26 2019-10-25 公安部交通管理科学研究所 A kind of public security traffic control data brain and construction method

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100217782A1 (en) * 2003-10-24 2010-08-26 Microsoft Corporation Service Discovery and Publication
CN101794409A (en) * 2009-11-18 2010-08-04 山东浪潮齐鲁软件产业股份有限公司 Real-time data exchange model of cross-platform application system
US20110125821A1 (en) * 2009-11-24 2011-05-26 International Business Machines Corporation Service Oriented Architecture Enterprise Service Bus With Universal Ports
CN102082771A (en) * 2009-11-30 2011-06-01 中国移动通信集团福建有限公司 Service management middleware based on ESB (enterprise service bus) technology
CN102402735A (en) * 2011-11-21 2012-04-04 山东浪潮齐鲁软件产业股份有限公司 Enterprise application integration solution complying with SOA thought
CN102647319A (en) * 2012-03-27 2012-08-22 许继集团有限公司 Application service system for monitoring power charging-exchanging station and interprocess communication method
CN103716408A (en) * 2014-01-02 2014-04-09 浪潮(北京)电子信息产业有限公司 Enterprise application integration method and system based on enterprise service bus (ESB)
CN103701935A (en) * 2014-01-13 2014-04-02 浪潮(北京)电子信息产业有限公司 Construction method and system of cloud computing service platform
CN103873332A (en) * 2014-03-28 2014-06-18 浪潮软件集团有限公司 Method for providing enterprise service bus of unified service environment by tax system
CN105224594A (en) * 2015-08-26 2016-01-06 北京锐安科技有限公司 A kind of Service-oriented application data interconnection inquiry system and querying method
CN106201498A (en) * 2016-06-29 2016-12-07 浙江理工大学 A kind of Distributed-tier SOA integrated application system
CN106656706A (en) * 2017-02-25 2017-05-10 华南理工大学 Service-oriented robot open-type control system and method based on software bus
CN108989372A (en) * 2017-06-02 2018-12-11 华为技术有限公司 Method, registration center and the equipment of service discovery
US20200106840A1 (en) * 2017-06-02 2020-04-02 Huawei Technologies Co., Ltd. Service Discovery Method, Registration Center, and Device
CN108074076A (en) * 2017-12-08 2018-05-25 上海壹账通金融科技有限公司 Service providing method, device, equipment and readable storage medium storing program for executing based on ESB
CN109741229A (en) * 2018-11-16 2019-05-10 比亚迪股份有限公司 Management system and method applied to rail traffic
CN110378824A (en) * 2019-06-26 2019-10-25 公安部交通管理科学研究所 A kind of public security traffic control data brain and construction method
CN110322940A (en) * 2019-07-15 2019-10-11 山东健康医疗大数据有限公司 A kind of access authorization methods and system that medical data is shared

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张贝贝等: "基于SOA架构的医疗服务管理平台的设计与实现", 《中国医疗设备》 *
曹中洪: "面向SOA的企业服务总线研究与应用", 《中国优秀硕士学位论文全文数据库》 *

Also Published As

Publication number Publication date
CN111865746B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
WO2021047332A1 (en) Data analysis method and device, apparatus, and storage medium
US7739367B2 (en) Managing network-enabled devices
US20230114443A1 (en) Configuring service mesh networking resources for dynamically discovered peers or network functions
US6591279B1 (en) System and method for computer-based notifications of real-world events using digital images
EP1872523B1 (en) System and method of device-to-server registration
CN111797414B (en) Hybrid cloud management method, system and cloud service platform
JP2010517175A (en) System management policy certification, distribution, and formulation
EP1230597B1 (en) Communication architecture for distributed computing environment
US20220070071A1 (en) Data handler
CN1939035A (en) Method and apparatus for communicating data between computer devices
CN113556359B (en) Communication protocol conversion method, device, system and gateway device
US20170201392A1 (en) Method for processing request messages in wireless communication system, and device for same
CN110096381B (en) Method, device, equipment and medium for realizing remote procedure call
CN113312242B (en) Interface information management method, device, equipment and storage medium
EP1872256A1 (en) System and method of waste management
WO2024103943A1 (en) Service processing method and apparatus, storage medium, and device
US20070130312A1 (en) Web service provision apparatus and method and web service request apparatus and method
CN111865746B (en) System development method and device based on loop bus
CN112416980A (en) Data service processing method, device and equipment
CN117041284A (en) External interface management method, system, equipment and medium based on interface cloud
WO2019201111A1 (en) Information processing method, apparatus and device, and computer-readable storage medium
CN114900558A (en) Universal equipment management protocol control method and device
CN114679472A (en) Communication system, method, apparatus, storage medium, and electronic device
CN113434316A (en) Function integration method, device, equipment and storage medium based on redis plug-in
CN112559472A (en) File transmission method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant