CN111865746B - 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
CN111865746B
CN111865746B CN202010565424.8A CN202010565424A CN111865746B CN 111865746 B CN111865746 B CN 111865746B CN 202010565424 A CN202010565424 A CN 202010565424A CN 111865746 B CN111865746 B CN 111865746B
Authority
CN
China
Prior art keywords
type node
interface
service
access
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.)
Active
Application number
CN202010565424.8A
Other languages
Chinese (zh)
Other versions
CN111865746A (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, converting the registration information into a registration signal after acquiring the access authority, 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 transfers 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 concurrency number of the access type node and the management type node, a threshold value of 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, a protocol layer is utilized to correspondingly generate a localized programmable interface of the access type node and/or the management type node, further, the request data is transmitted to a bus layer through the access control layer by the protocol 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 and fed back by the bus layer is acquired.
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 a programmable mode, and the service type node can issue an interface in a 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 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 in a bus layer in a registration mode, wherein registration information corresponding to the access type node, the management type node and the service type node 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 the beneficial effects of the system development method based on the loop bus provided by the technical scheme, and details 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 registration 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 multiple application service systems, in the scheme of this embodiment, the visiting node may visit an interface service of any service node in a programmable manner, and receive a callback event notification of any service node, the management node may monitor, manage, and control any node in the loop bus in a programmable manner, and the service node may 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, any two nodes in the ring bus can access each other without being limited by access authority, 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 to 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 mutual access signals of all nodes on the ring bus structure, and 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, represent signal flow direction relations among the nodes and simultaneously support broadcasting). 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 arranged 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 the 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 function 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 and S0 all register nodes in the bus layer, the node registration interface is provided by the bus layer, the nodes need to be accompanied by 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, and after the nodes are successfully registered, the bus layer records the registration information of the nodes and adds the nodes to 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 may 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 may invoke a 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, and after the access authority is acquired, the registration information is converted into a registration signal and 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 access type node and/or the management type node to obtain the service interface list of the target service type node through service discovery, and generate the localized programmable interface of the access type node and/or the management type 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: the service type node comprises an interface name, description information, version information, parameter information, type information and the like, wherein the interface information is published 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, the service type nodes and various types of callable interfaces on the nodes provided on the loop bus can be inquired through discovering the service, and the discovery service is converted into a local programming interface, so that the developer can conveniently call the callable interfaces remotely at the later stage.
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 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 in a bus layer in a registration mode, wherein registration information corresponding to the access type node, the management type node and the service type node 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 the beneficial effects 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 think of the changes or substitutions within the technical scope of the present invention, and shall cover 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 (8)

1. A system development method based on a loop bus is characterized by comprising the following steps:
the method comprises the steps that a loop bus comprising a bus layer, an access control layer and a protocol layer is built, service type nodes corresponding to an enterprise application service system and access type nodes and management type nodes corresponding to a developer end are added in the bus layer in a registration mode, and 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, the access type node and/or the management type node 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 the 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 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, converting the registration information into a registration signal after acquiring the access authority, 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.
3. 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 interfaces, selecting any callable interface in the service interface list as a target interface 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 generate a localized programmable interface based on the json data packet.
4. The method of claim 3, 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 according to the calling intention by the bus layer, 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.
5. The method of claim 2 or 4, wherein the access permissions comprise threshold of concurrency of access type node and management type node, threshold of access times, black and white list permissions, and allowed access period of service type node.
6. The method of any of claims 1-4, wherein the protocol layer provides programming class objects for the localized programmable interface using a remote object description language protocol.
7. A system development apparatus based on a loop bus, comprising:
the system comprises a construction unit, a service type node and a management type node, wherein the construction unit is used for constructing a loop bus comprising a bus layer, an access control layer and a protocol layer, adding the service type node corresponding to an enterprise application service system in the bus layer in a registration mode, and adding the access type node and the management type node corresponding to a developer end, and the registration information corresponding to the access type node, the management type node and the service type node 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 both used for executing service discovery and interface calling functions through a protocol layer, the access type node and/or the management type node 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 the 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.
8. 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 6.
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 CN111865746A (en) 2020-10-30
CN111865746B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701935A (en) * 2014-01-13 2014-04-02 浪潮(北京)电子信息产业有限公司 Construction method and system of cloud computing service platform
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
CN108074076A (en) * 2017-12-08 2018-05-25 上海壹账通金融科技有限公司 Service providing method, device, equipment and readable storage medium storing program for executing based on ESB

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716357B2 (en) * 2003-10-24 2010-05-11 Microsoft Corporation Service discovery and publication
CN101794409A (en) * 2009-11-18 2010-08-04 山东浪潮齐鲁软件产业股份有限公司 Real-time data exchange model of cross-platform application system
US8364745B2 (en) * 2009-11-24 2013-01-29 International Business Machines Corporation Service oriented architecture enterprise service bus with universal ports
CN102082771B (en) * 2009-11-30 2014-04-02 中国移动通信集团福建有限公司 Service management middleware based on ESB (enterprise service bus) technology
CN102402735B (en) * 2011-11-21 2016-08-17 浪潮软件股份有限公司 A kind of Enterprise information integration solution meeting 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)
CN103873332A (en) * 2014-03-28 2014-06-18 浪潮软件集团有限公司 Method for providing enterprise service bus of unified service environment by tax system
CN106656706B (en) * 2017-02-25 2020-06-19 华南理工大学 Software bus-based service-oriented robot open control system and method
CN108989372B (en) * 2017-06-02 2021-04-09 华为技术有限公司 Service discovery method, registration center and equipment
CN109741229B (en) * 2018-11-16 2020-04-24 比亚迪股份有限公司 Management system and method applied to rail transit
CN110378824B (en) * 2019-06-26 2022-06-28 公安部交通管理科学研究所 Brain for public security traffic management data and construction method
CN110322940B (en) * 2019-07-15 2023-06-27 山东浪潮智慧医疗科技有限公司 Access authorization method and system for medical data sharing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701935A (en) * 2014-01-13 2014-04-02 浪潮(北京)电子信息产业有限公司 Construction method and system of cloud computing service platform
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
CN108074076A (en) * 2017-12-08 2018-05-25 上海壹账通金融科技有限公司 Service providing method, device, equipment and readable storage medium storing program for executing based on ESB

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于SOA架构的医疗服务管理平台的设计与实现;张贝贝等;《中国医疗设备》;20160125(第01期);全文 *

Also Published As

Publication number Publication date
CN111865746A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
WO2021047332A1 (en) Data analysis method and device, apparatus, and storage medium
US7739367B2 (en) Managing network-enabled devices
US7747724B2 (en) System and method of device-to-server registration
US11936724B2 (en) Configuring service mesh networking resources for dynamically discovered peers or network functions
US20070083618A1 (en) Method and apparatus for providing home network device service to an external device through web service
US20090234958A1 (en) System for Processing Context Data
JP2010517175A (en) System management policy certification, distribution, and formulation
CN111258723B (en) Transaction processing method, device, system, medium and equipment of distributed system
CN1939035A (en) Method and apparatus for communicating data between computer devices
CN110062041B (en) Method and device for changing IOT (input/output) equipment based on block chain
CN113556359B (en) Communication protocol conversion method, device, system and gateway device
CN110505318B (en) Uniform resource locator addressing method and device, and network system
CA2604113C (en) System and method of waste management
CN110096381B (en) Method, device, equipment and medium for realizing remote procedure call
US8391845B2 (en) System and method of presenting entities of standard applications in wireless devices
CN111865746B (en) System development method and device based on loop bus
CN118118934A (en) Network capability configuration method
US20220138742A1 (en) Blockchain-Powered Device Instruction
CN116319964A (en) Communication method and device of client, electronic equipment and storage medium
CN116112560A (en) Data uplink and proxy method and system based on Reactive mechanism
CN116668467A (en) Resource access method and device, cloud hosting system and electronic equipment
CN115412585A (en) Service access point calling method, device, equipment and readable storage medium
CN114900558A (en) Universal equipment management protocol control method and device
JP2007072654A (en) Service retrieval device and service retrieval system
KR20100054645A (en) Service delivery platform system and method for processing mass data

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