Movatterモバイル変換


[0]ホーム

URL:


CN112866182B - Data docking method, device and computer readable storage medium - Google Patents

Data docking method, device and computer readable storage medium
Download PDF

Info

Publication number
CN112866182B
CN112866182BCN201911189107.4ACN201911189107ACN112866182BCN 112866182 BCN112866182 BCN 112866182BCN 201911189107 ACN201911189107 ACN 201911189107ACN 112866182 BCN112866182 BCN 112866182B
Authority
CN
China
Prior art keywords
data
plug
docking
transmission protocol
protocol
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
CN201911189107.4A
Other languages
Chinese (zh)
Other versions
CN112866182A (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co LtdfiledCriticalZhejiang Uniview Technologies Co Ltd
Priority to CN201911189107.4ApriorityCriticalpatent/CN112866182B/en
Publication of CN112866182ApublicationCriticalpatent/CN112866182A/en
Application grantedgrantedCritical
Publication of CN112866182BpublicationCriticalpatent/CN112866182B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention provides a data docking method, a data docking device and a computer readable storage medium, and relates to the technical field of communication. The data docking method is applied to a data docking system, and the transmission protocol of a sending object and the transmission protocol of a receiving object of the data to be sent are obtained through receiving the data to be sent, so that when the transmission protocol of the sending object and the transmission protocol of the receiving object are not matched, the plug-in unit is called to convert the data to be sent into target data supporting the transmission protocol of the receiving object, and the target data is sent to the receiving object. Thereby conveniently realizing data docking.

Description

Translated fromChinese
数据对接方法、装置和计算机可读存储介质Data docking method, device and computer-readable storage medium

技术领域technical field

本发明涉及通信技术领域,具体而言,涉及一种数据对接方法、装置和计算机可读存储介质。The present invention relates to the technical field of communications, and in particular, to a data docking method, device, and computer-readable storage medium.

背景技术Background technique

随着信息化基础建设的不断推进,在现在的很多项目中一般都涉及多个对象,如多个厂家同时参与,而不同对象的应用系统一般都有不同的数据格式标准以及数据交互方式,所以在不同对象之间就需要数据对接系统来打通数据的交互通道,从而实现整个项目的需求。With the continuous advancement of informatization infrastructure, many current projects generally involve multiple objects, such as multiple manufacturers participating at the same time, and the application systems of different objects generally have different data format standards and data interaction methods, so Between different objects, a data docking system is needed to open up data interaction channels, so as to meet the needs of the entire project.

数据对接系统一般涉及到不同对象的不同传输协议以及不同的对接方式,作为数据流转的一环,一般项目都需要尽快能打通上下级应用系统之间的数据交互,然而,现今实现数据对接较为复杂。The data docking system generally involves different transmission protocols and different docking methods for different objects. As a part of data flow, general projects need to get through the data interaction between the upper and lower application systems as soon as possible. However, it is more complicated to realize data docking nowadays. .

发明内容Contents of the invention

有鉴于此,本发明的目的在于提供一种数据对接方法、装置和计算机可读存储介质。In view of this, the purpose of the present invention is to provide a data docking method, device and computer-readable storage medium.

为了实现上述目的,本发明实施例采用的技术方案如下:In order to achieve the above object, the technical solution adopted in the embodiment of the present invention is as follows:

第一方面,实施例提供一种数据对接方法,应用于数据对接系统,所述方法包括:In the first aspect, the embodiment provides a data docking method, which is applied to a data docking system, and the method includes:

接收待发送数据;Receive data to be sent;

获取所述待发送数据的发送对象的传输协议和接收对象的传输协议;Obtain the transmission protocol of the sending object and the transmission protocol of the receiving object of the data to be sent;

在所述发送对象的传输协议和所述接收对象的传输协议不匹配时,调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据,并将所述目标数据发送至所述接收对象,以完成数据对接。When the transmission protocol of the sending object does not match the transmission protocol of the receiving object, call the plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object, and send the target data to The receiving object to complete data docking.

在可选的实施方式中,所述数据对接系统中包括与各传输协议分别对应的各插件,调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据,包括:In an optional implementation manner, the data docking system includes plug-ins corresponding to each transmission protocol, calling the plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object, including:

查找出与所述发送对象的传输协议对应的第一插件,查找出与所述接收对象的传输协议对应的第二插件;Find out the first plug-in corresponding to the transmission protocol of the sending object, and find out the second plug-in corresponding to the transmission protocol of the receiving object;

基于所述第一插件对所述待发送数据进行解析,得到所述待发送数据的数据内容并将所述数据内容传输至所述第二插件;Analyzing the data to be sent based on the first plug-in, obtaining the data content of the data to be sent and transmitting the data content to the second plug-in;

基于所述第二插件将所述数据内容转换为支持所述接收对象的传输协议的目标数据。Transforming the data content into target data supporting the transfer protocol of the receiving object based on the second plug-in.

在可选的实施方式中,与各传输协议分别对应的各插件通过以下步骤添加至所述数据对接系统中:In an optional implementation manner, each plug-in corresponding to each transmission protocol is added to the data docking system through the following steps:

获取针对每个传输协议对应开发的插件;Obtain plug-ins developed for each transport protocol;

将开发的插件添加至所述数据对接系统中,并在所述数据对接系统的注册文件中添加开发的插件的信息。Adding the developed plug-in to the data docking system, and adding the developed plug-in information to the registration file of the data docking system.

在可选的实施方式中,所述方法还包括:在所述注册文件中将所述第一插件和第二插件的状态修改为启动,从而在扫描所述注册文件时,通过java反射技术调用所述第一插件和所述第二插件进行数据对接。In an optional implementation manner, the method further includes: modifying the state of the first plug-in and the second plug-in to start in the registration file, so that when the registration file is scanned, the java reflection technology is used to call The first plug-in and the second plug-in perform data docking.

在可选的实施方式中,在扫描所述注册文件时,通过java反射技术调用所述第一插件和所述第二插件进行数据对接,包括:In an optional implementation manner, when scanning the registration file, calling the first plug-in and the second plug-in to perform data docking through java reflection technology, including:

从所述数据对接系统中加载所述注册文件,并对所述注册文件中的内容进行解析,得到状态为开启的所述第一插件和所述第二插件;loading the registration file from the data docking system, and parsing the content in the registration file to obtain the first plug-in and the second plug-in whose status is enabled;

利用java反射技术,根据所述第一插件的信息和所述第二插件的信息加载对应的代码作为进行对接的代码,并启动所述进行对接的代码,进而使用Spring技术进行数据对接。Using java reflection technology, load the corresponding code as the code for docking according to the information of the first plug-in and the information of the second plug-in, and start the code for docking, and then use Spring technology for data docking.

在可选的实施方式中,调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据,包括:In an optional implementation manner, calling the plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object includes:

判断是否需要对所述待发送数据进行过滤筛选,若是,则按设定条件对所述待发送数据进行过滤筛选,调用插件将过滤筛选之后的数据转换为支持所述接收对象的传输协议的目标数据;若否,则直接调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据。Judging whether it is necessary to filter the data to be sent, if so, filter the data to be sent according to the set conditions, and call the plug-in to convert the filtered data into a target that supports the transmission protocol of the receiving object data; if not, directly call the plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object.

第二方面,实施例提供一种数据对接装置,应用于数据对接系统,所述数据对接装置包括:In the second aspect, the embodiment provides a data docking device, which is applied to a data docking system, and the data docking device includes:

数据接收模块,用于接收待发送数据;A data receiving module, configured to receive data to be sent;

协议获取模块,用于获取所述待发送数据的发送对象的传输协议和接收对象的传输协议;A protocol acquisition module, configured to acquire the transmission protocol of the sending object and the transmission protocol of the receiving object of the data to be sent;

数据对接模块,用于在所述发送对象的传输协议和所述接收对象的传输协议不匹配时,调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据,并将所述目标数据发送至所述接收对象,以完成数据对接。A data docking module, configured to call a plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object when the transmission protocol of the sending object does not match the transmission protocol of the receiving object, and The target data is sent to the receiving object to complete data docking.

在可选的实施方式中,所述数据对接系统中包括与各传输协议分别对应的各插件,所述数据对接模块用于查找出与所述发送对象的传输协议对应的第一插件,查找出与所述接收对象的传输协议对应的第二插件,基于所述第一插件对所述待发送数据进行解析,得到所述待发送数据的数据内容并将所述数据内容传输至所述第二插件,基于所述第二插件将所述数据内容转换为支持所述接收对象的传输协议的目标数据。In an optional implementation manner, the data docking system includes plug-ins corresponding to each transmission protocol, and the data docking module is used to find out the first plug-in corresponding to the transmission protocol of the sending object, find out The second plug-in corresponding to the transmission protocol of the receiving object analyzes the data to be sent based on the first plug-in, obtains the data content of the data to be sent, and transmits the data content to the second A plug-in, based on the second plug-in, converting the data content into target data supporting the transmission protocol of the receiving object.

在可选的实施方式中,与各传输协议分别对应的各插件通过以下步骤添加至所述数据对接系统中:获取针对每个传输协议对应开发的插件,将开发的插件添加至所述数据对接系统中,并在所述数据对接系统的注册文件中添加开发的插件的信息。In an optional implementation manner, each plug-in corresponding to each transmission protocol is added to the data docking system through the following steps: obtain a correspondingly developed plug-in for each transmission protocol, and add the developed plug-in to the data docking system, and add the developed plug-in information in the registration file of the data docking system.

第三方面,实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如前述实施方式中任一项所述的数据对接方法。In a third aspect, the embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the data interface method as described in any one of the foregoing implementation manners is implemented.

本发明实施例提供的数据对接方法、装置和计算机可读存储介质,在发送对象的传输协议和接收对象的传输协议不匹配时,通过调用插件将待发送数据转换为支持接收对象的传输协议的目标数据,并将目标数据发送至接收对象,从而实现数据对接,实现较为便捷。The data docking method, device, and computer-readable storage medium provided by the embodiments of the present invention convert the data to be sent into a transmission protocol that supports the receiving object by calling a plug-in when the transmission protocol of the sending object does not match the transmission protocol of the receiving object Target data, and send the target data to the receiving object, so as to realize data docking, which is more convenient to realize.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1示出了本发明实施例提供的一种数据对接方法的流程示意图。FIG. 1 shows a schematic flowchart of a data docking method provided by an embodiment of the present invention.

图2示出了本发明实施例提供的一种应用场景示意图。Fig. 2 shows a schematic diagram of an application scenario provided by an embodiment of the present invention.

图3示出了本发明实施例提供的一种数据对接方法的另一流程示意图。FIG. 3 shows another schematic flowchart of a data docking method provided by an embodiment of the present invention.

图4示出了本发明实施例提供的一种应用场景中数据对接系统的示例性结构框图。Fig. 4 shows an exemplary structural block diagram of a data docking system in an application scenario provided by an embodiment of the present invention.

图5示出了本发明实施例提供的一种数据对接装置的示例性结构框图。Fig. 5 shows an exemplary structural block diagram of a data docking device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

需要说明的是,术语“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that relative terms such as the terms "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

需要说明的是,在不冲突的情况下,本发明的实施例中的特征可以相互结合。It should be noted that, in the case of no conflict, the features in the embodiments of the present invention may be combined with each other.

请参照图1,为本发明实施例提供的一种数据对接方法的流程示意图,该数据对接方法应用于数据对接系统,数据对接方法包括S110、S120和S130。Please refer to FIG. 1 , which is a schematic flowchart of a data docking method provided by an embodiment of the present invention. The data docking method is applied to a data docking system, and the data docking method includes S110, S120, and S130.

S110,接收待发送数据。S110. Receive data to be sent.

S120,获取所述待发送数据的发送对象的传输协议和接收对象的传输协议。S120. Acquire the transmission protocol of the sending object and the transmission protocol of the receiving object of the data to be sent.

S130,在所述发送对象的传输协议和所述接收对象的传输协议不匹配时,调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据,并将所述目标数据发送至所述接收对象,以完成数据对接。S130. When the transmission protocol of the sending object does not match the transmission protocol of the receiving object, call a plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object, and convert the target data to Send to the receiving object to complete data docking.

本发明实施例中,在发送对象的传输协议和接收对象的传输协议不匹配时,通过调用插件将待发送数据转换为支持接收对象的传输协议的目标数据,并将目标数据发送至接收对象,从而便捷地实现了数据对接。In the embodiment of the present invention, when the transmission protocol of the sending object does not match the transmission protocol of the receiving object, the data to be sent is converted into target data supporting the transmission protocol of the receiving object by calling the plug-in, and the target data is sent to the receiving object, Thus, data docking is conveniently realized.

采用上述数据对接方案,通过调用插件完成数据对接,因而,可基于插件式开发框架,只针对传输协议的不同点和不同的对接方式进行插件开发,降低开发复杂度。采用插件式开发框架,通过开发与各传输协议分别对应的各插件并添加至数据对接系统,对于支持不同传输协议的发送对象、支持不同传输协议的接收对象,只需基于同一数据对接系统切换不同的插件即可对接不同的发送对象和接收对象,适应性高。Using the above data docking scheme, the data docking is completed by calling the plug-in. Therefore, based on the plug-in development framework, the plug-in development can be carried out only for different points of the transmission protocol and different docking methods, reducing the development complexity. Using a plug-in development framework, by developing plug-ins corresponding to each transmission protocol and adding them to the data docking system, for sending objects supporting different transmission protocols and receiving objects supporting different transmission protocols, it is only necessary to switch between different data docking systems based on the same data. Plug-ins can be connected to different sending objects and receiving objects, with high adaptability.

示例性地,请参阅图2,本发明实施例提供了一种在发送对象的传输协议和接收对象的传输协议不匹配时,调用插件将待发送数据转换为支持接收对象的传输协议的目标数据的示例性应用场景示意图。如图2所示,对于传输协议不匹配的发送对象和接收对象,数据从发送对象到接收对象,中间通过数据对接系统进行传输。数据对接系统中,调用用于对接发送对象的第一插件和用于对接接收对象的第二插件,通过第一插件和第二插件实现数据从发送对象到接收对象的传输。其中,第一插件和第二插件为数据对接系统中的插件化模块,针对不同对象的协议文档和对接方式,可以灵活开发不同的插件进行数据对接。相应地,数据对接系统中可以包括与各传输协议分别对应的各插件。请结合参阅图3,S130中调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据可以通过S131至S133实现。Exemplarily, please refer to FIG. 2 , the embodiment of the present invention provides a method of invoking a plug-in to convert the data to be sent into target data supporting the transport protocol of the receiving object when the transport protocol of the sending object does not match the transport protocol of the receiving object A schematic diagram of an exemplary application scenario. As shown in Figure 2, for the sending object and receiving object whose transmission protocol does not match, the data is transmitted from the sending object to the receiving object through the data docking system in the middle. In the data docking system, the first plug-in for docking with the sending object and the second plug-in for docking with the receiving object are called, and the transmission of data from the sending object to the receiving object is realized through the first plug-in and the second plug-in. Among them, the first plug-in and the second plug-in are plug-in modules in the data docking system, and different plug-ins can be flexibly developed for data docking according to protocol documents and docking methods of different objects. Correspondingly, the data docking system may include various plug-ins corresponding to each transmission protocol. Please refer to FIG. 3 in conjunction with FIG. 3 . In S130, calling the plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object can be implemented through S131 to S133.

S131,查找出与所述发送对象的传输协议对应的第一插件,查找出与所述接收对象的传输协议对应的第二插件。S131. Find a first plug-in corresponding to the transmission protocol of the sending object, and find a second plug-in corresponding to the transmission protocol of the receiving object.

S132,基于所述第一插件对所述待发送数据进行解析,得到所述待发送数据的数据内容并将所述数据内容传输至所述第二插件。S132. Analyze the data to be sent based on the first plug-in, obtain data content of the data to be sent, and transmit the data content to the second plug-in.

S133,基于所述第二插件将所述数据内容转换为支持所述接收对象的传输协议的目标数据。S133. Based on the second plug-in, convert the data content into target data that supports the transmission protocol of the receiving object.

其中,与各传输协议分别对应的各插件可以通过以下步骤添加至所述数据对接系统中:获取针对每个传输协议对应开发的插件,将开发的插件添加至所述数据对接系统中,并在所述数据对接系统的注册文件中添加开发的插件的信息。基于图2所示应用场景,在选择调用第一插件和第二插件实现数据从发送对象到接收对象的传输的情况下,则在所述注册文件中将所述第一插件和第二插件的状态修改为启动,从而在扫描所述注册文件时,通过java反射技术调用所述第一插件和所述第二插件进行数据对接。例如,可以从所述数据对接系统中加载所述注册文件,并对所述注册文件中的内容进行解析,得到状态为开启的所述第一插件和所述第二插件,利用java反射技术,根据所述第一插件的信息和所述第二插件的信息加载对应的代码作为进行对接的代码,并启动所述进行对接的代码,进而使用Spring技术进行数据对接。Wherein, each plug-in corresponding to each transmission protocol can be added to the data docking system through the following steps: obtain the plug-in correspondingly developed for each transmission protocol, add the developed plug-in to the data docking system, and The information of the developed plug-in is added to the registration file of the data docking system. Based on the application scenario shown in Figure 2, in the case of choosing to call the first plug-in and the second plug-in to realize the transmission of data from the sending object to the receiving object, then in the registration file, the The state is changed to start, so that when the registration file is scanned, the first plug-in and the second plug-in are called to perform data connection through java reflection technology. For example, the registration file may be loaded from the data docking system, and the content in the registration file may be parsed to obtain the first plug-in and the second plug-in whose status is enabled, using java reflection technology, According to the information of the first plug-in and the information of the second plug-in, the corresponding code is loaded as the code for docking, and the code for docking is started, and then the Spring technology is used for data docking.

java反射技术在运行状态中,对于任意一个实体类,都能够知道这个类的所有属性和方法。对于任意一个对象,都能够调用它的任意方法和属性。这种动态获取信息以及动态调用对象方法的功能也称为java语言的反射机制。Spring是一个开源框架,一个轻量级的控制反转(Inversion of Control,IoC)和面向切面(Aspect Oriented Programming,AOP)的容器框架。In the running state of java reflection technology, for any entity class, all properties and methods of this class can be known. For any object, you can call any of its methods and properties. This function of dynamically obtaining information and dynamically calling object methods is also called the reflection mechanism of the java language. Spring is an open source framework, a lightweight Inversion of Control (IoC) and Aspect Oriented Programming (AOP) container framework.

本发明实施例中的数据对接系统采用java反射技术和Spring实现,在数据对接系统启动时扫描插件注册文件,即可通过java反射技术调用所需的数据对接,基于Spring技术开发所需的数据对接,实现较为便捷。The data docking system in the embodiment of the present invention is implemented using java reflection technology and Spring. When the data docking system is started, the plug-in registration file is scanned, and the required data docking can be invoked through the java reflection technology, and the data docking required for development based on Spring technology , which is more convenient to implement.

根据发送对象的传输协议和接收对象的传输协议的不同,发送对象和接收对象所需要数据的不同,可以对数据进行过滤筛选等操作,相应地,S130中调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据可以包括:判断是否需要对所述待发送数据进行过滤筛选,若是,则按设定条件对所述待发送数据进行过滤筛选,调用插件将过滤筛选之后的数据转换为支持所述接收对象的传输协议的目标数据。若否,则直接调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据。According to the difference between the transmission protocol of the sending object and the transmission protocol of the receiving object, and the difference in the data required by the sending object and the receiving object, operations such as filtering and screening can be performed on the data. Correspondingly, in S130, the plug-in is called to convert the data to be sent into Supporting the target data of the transmission protocol of the receiving object may include: judging whether the data to be sent needs to be filtered, if so, filtering the data to be sent according to the set conditions, and calling the plug-in to filter the data to be sent The data is converted to target data that supports the transport protocol of the receiving object. If not, directly call the plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object.

本发明实施例中,发送对象、接收对象并非特指某一发送对象、接收对象,而是泛指传输协议不匹配,但需要进行数据对接的任意一组发送对象、接收对象。相应地,第一插件不限定于与某一发送对象的传输协议对应的插件,可以泛指与不同发送对象的传输协议对应的任一插件。第二插件不限定于与某一接收对象的传输协议对应的插件,可以泛指与不同接收对象的传输协议对应的任一插件。In the embodiment of the present invention, the sending object and the receiving object do not specifically refer to a certain sending object and receiving object, but generally refer to any group of sending objects and receiving objects that do not match the transmission protocol but require data docking. Correspondingly, the first plug-in is not limited to a plug-in corresponding to a transmission protocol of a certain sending object, and may generally refer to any plug-in corresponding to a transmission protocol of a different sending object. The second plug-in is not limited to a plug-in corresponding to a transmission protocol of a certain receiving object, and may generally refer to any plug-in corresponding to a transmission protocol of a different receiving object.

为了更为清楚地阐述本发明实施例的实现原理,现以下述场景为例进行举例说明。In order to more clearly illustrate the implementation principles of the embodiments of the present invention, the following scenarios are taken as examples for illustration.

假设发送对象为下级域(厂家),接收对象为上级域(厂家),下级域的传输协议与上级域的传输协议不匹配,数据对接系统中包括与各传输协议分别对应的各插件,各插件中包括与下级域的传输协议对应的下级域插件,以及与上级域的传输协议对应的上级域插件。数据对接系统通过包括上级域插件的上级域对接模块和包括下级域插件的下级域对接模块实现上级域和下级域之间的数据对接。Assume that the sending object is the lower-level domain (manufacturer), the receiving object is the upper-level domain (manufacturer), and the transmission protocol of the lower-level domain does not match the transmission protocol of the upper-level domain. includes a lower-level domain plug-in corresponding to the transmission protocol of the lower-level domain, and an upper-level domain plug-in corresponding to the upper-level domain transmission protocol. The data docking system realizes the data docking between the upper-level domain and the lower-level domain through the upper-level domain docking module including the upper-level domain plug-in and the lower-level domain docking module including the lower-level domain plug-in.

请参阅图4,本发明实施例提供了一种数据对接系统的示例性结构框图。如图4所示,数据对接系统包括插件选择模块、下级域对接模块和上级域对接模块。其中,下级域对接模块和上级域对接模块均包括数据传输模块、协议模块、数据辅助模块和数据流通模块。Referring to FIG. 4 , the embodiment of the present invention provides an exemplary structural block diagram of a data docking system. As shown in Figure 4, the data docking system includes a plug-in selection module, a lower-level domain docking module, and a higher-level domain docking module. Wherein, both the lower-level domain connection module and the upper-level domain connection module include a data transmission module, a protocol module, a data auxiliary module and a data circulation module.

其中,插件选择模块负责选择不同的协议来处理数据对接。根据各协议的不同,开发对应的插件后,将插件添加到数据对接系统中,然后在数据对接系统的注册文件中添加上该插件的信息,若需要选择该插件进行对接,则在注册文件中将该插件的启动状态修改为启动,数据对接系统在启动后,插件选择模块将会扫描注册文件,从而启动用于对接的插件,从而能够更加灵活的使用数据对接系统。Among them, the plug-in selection module is responsible for selecting different protocols to process data docking. According to different protocols, after developing the corresponding plug-in, add the plug-in to the data docking system, and then add the plug-in information in the registration file of the data docking system. Change the startup state of the plug-in to start. After the data docking system is started, the plug-in selection module will scan the registration file to start the plug-in for docking, so that the data docking system can be used more flexibly.

协议模块为数据对接系统中需要开发的模块(可以理解为上述插件,如上级域插件、下级域插件),针对上级域和下级域的传输协议进行开发,开发内容主要是根据上级域和下级域的传输协议的不同对数据进行处理转换,中间涉及到根据下级域的传输协议对数据进行解析,根据上级域的传输协议将数据进行对应的转换。且在实际对接中存在以下两种情况:The protocol module is the module that needs to be developed in the data docking system (it can be understood as the above-mentioned plug-ins, such as the upper-level domain plug-in and the lower-level domain plug-in). It is developed for the transmission protocol of the upper-level domain and the lower-level domain. The data is processed and converted according to the different transmission protocols of different domains, which involves parsing the data according to the transmission protocol of the lower-level domain, and correspondingly converting the data according to the transmission protocol of the upper-level domain. And there are the following two situations in the actual docking:

情况一、数据对接系统提供方为下级域厂家,则下级域插件相当于固定模块,下级域插件与下级域厂家的内部系统进行数据交互。在做数据对接时只需要开发上级域插件中的协议模块即可完成下级域和上级域的数据对接。Case 1. If the provider of the data connection system is a lower-level domain manufacturer, then the lower-level domain plug-in is equivalent to a fixed module, and the lower-level domain plug-in performs data interaction with the internal system of the lower-level domain manufacturer. When doing data docking, you only need to develop the protocol module in the upper-level domain plug-in to complete the data docking between the lower-level domain and the upper-level domain.

情况二、数据对接系统提供方为上级域厂家,则上级域插件相当于固定模块,上级域插件与上级域厂家的内部系统进行数据交互。在做数据对接时只需要开发下级域插件中的协议模块即可完成下级域和上级域的数据对接。Case 2. If the provider of the data connection system is an upper-level domain manufacturer, then the upper-level domain plug-in is equivalent to a fixed module, and the upper-level domain plug-in performs data interaction with the internal system of the upper-level domain manufacturer. When doing data docking, you only need to develop the protocol module in the lower-level domain plug-in to complete the data docking between the lower-level domain and the upper-level domain.

下级域对接模块中的数据传输模块可以看做接收模块,主要作用为针对下级域的传输方式进行开发,将下级域的数据对接到数据对接系统中,可以为数据对接系统接收下级域发送的数据,也可以主动去获取下级域的数据,在该模块中接收到数据后,再进行下一步的数据对接处理。The data transmission module in the lower-level domain docking module can be regarded as a receiving module. Its main function is to develop the transmission mode for the lower-level domain, connect the data of the lower-level domain to the data docking system, and receive the data sent by the lower-level domain for the data docking system. , you can also take the initiative to obtain the data of the lower-level domain, and after receiving the data in this module, proceed to the next step of data docking processing.

上级域对接模块中的数据传输模块可以看做发送模块,主要作用为针对上级域的传输方式进行开发,将经过协议模块处理的数据发送到上级域。该模块涉及的传输方式可以为多种,例如,可以为http(超文本传输协议)、web service、TCP(Transmission ControlProtocol,传输控制协议)等。The data transmission module in the upper-level domain docking module can be regarded as a sending module. Its main function is to develop the transmission mode for the upper-level domain and send the data processed by the protocol module to the upper-level domain. The transmission mode involved in this module can be various, for example, it can be http (Hyper Text Transfer Protocol), web service, TCP (Transmission Control Protocol, transmission control protocol) and so on.

数据流通模块用于对上级域和下级域的数据进行转换和处理。根据上级域和下级域传输协议的不同,所需要数据的不同,可以在数据流通模块完成对数据的过滤、筛选等操作。例如,数据在经过下级域对接模块中的协议模块转换后进入到数据流通模块中,若需要进行过滤、筛选等操作,则可以在数据流通模块中对数据进行指定条件的过滤和筛选,在经过数据流通模块后,数据进入上级域对接模块中的协议模块继续处理。The data circulation module is used to convert and process the data in the upper-level domain and the lower-level domain. According to the difference in the transmission protocol between the upper-level domain and the lower-level domain, and the different data required, operations such as data filtering and screening can be completed in the data circulation module. For example, the data enters the data circulation module after being converted by the protocol module in the lower-level domain docking module. After the data circulation module, the data enters the protocol module in the upper-level domain docking module to continue processing.

数据辅助模块可以包含FTP(File Transfer Protocol,文件传输协议)、MQ(消息队列)、Web Service、http、TCP等各种对接方式的工具类,可以在开发数据传输模块时协助快速开发,以及为协议模块开发中可能涉及的编码转换、加解密、时间格式转换等辅助处理提供现成的工具,提高协议模块开发的便捷性。The data auxiliary module can include FTP (File Transfer Protocol, file transfer protocol), MQ (message queue), Web Service, http, TCP and other tools for various docking methods, which can assist in rapid development when developing data transfer modules, and provide Auxiliary processing such as code conversion, encryption and decryption, and time format conversion that may be involved in protocol module development provides ready-made tools to improve the convenience of protocol module development.

图4所示数据对接系统可以采用java反射技术和Spring来实现。在数据对接系统启动时扫描注册文件,通过java反射技术调用所需的数据进行对接。鉴于Spring开发框架本身的轻量性以及IoC控制反转便于管理和测试,框架成熟,开发人员使用没有障碍,可以集成Spring MVC以及前端技术,技术生态好。所需的数据的对接可以基于Spring技术开发。The data docking system shown in Figure 4 can be implemented using java reflection technology and Spring. Scan the registration file when the data docking system starts, and call the required data through java reflection technology for docking. In view of the lightness of the Spring development framework itself and the IoC inversion of control, it is easy to manage and test. The framework is mature, and there is no obstacle for developers to use it. Spring MVC and front-end technologies can be integrated, and the technical ecology is good. The required data docking can be developed based on Spring technology.

注册文件可以采用XML(Extensible Markup Language,可扩展标记语言)格式,可以包括以下定义,<Protocol>:定义协议,多个不同的插件则并列多个<Protocol>;<CLass>:Java反射调用的类路径,读取该文件后就会通过反射调用该类;<ProjectName>:对接名称;<Status>:是否启用该插件进行对接。The registration file can be in XML (Extensible Markup Language, Extensible Markup Language) format, and can include the following definitions, <Protocol>: defines the protocol, and multiple different plug-ins are paralleled with multiple <Protocol>; <CLass>: Java reflection calls Class path, after reading the file, the class will be called through reflection; <ProjectName>: docking name; <Status>: whether to enable the plug-in for docking.

插件选择模块可以通过以下方式实现插件调用:启动数据对接系统,启动数据对接系统后插件选择模块加载注册文件,对注册文件中的内容进行解析,得到状态为开启的插件的信息。用java反射技术,根据从注册文件里解析出来的插件的信息加载对应的代码,并启动代码。通过java反射启动后的对接类会将后续对应的模块都进行加载,这其中使用到了Spring技术,加载完成后则该插件对接启动成功。The plug-in selection module can implement the plug-in call in the following ways: start the data docking system, after starting the data docking system, the plug-in selection module loads the registration file, parses the content in the registration file, and obtains the information of the plug-in whose status is enabled. Use java reflection technology to load the corresponding code according to the plug-in information parsed from the registration file, and start the code. The docking class started by java reflection will load the subsequent corresponding modules, which uses Spring technology. After the loading is completed, the plug-in docking startup is successful.

基于上述架构,在上级域对接模块中的协议模块(上级域插件)和下级域对接模块中的协议模块(下级域插件)均需要进行开发的场景下,协议模块开发流程可以如下:创建插件启动类com.demo.protocol.Action.java,该类作为插件的入口,通过反射调用该类,再通过Spring注入模块内其他数据对接方法。开发下级域对接模块中的协议模块,利用数据辅助模块实现对该协议模块进行下级域数据接收、处理功能的快速开发。创建数据转换类,将下级域发送的数据转换为上级域的数据协议类型。开发上级域对接模块中的协议模块,根据上级域对接方式,利用数据辅助模块开发数据发送类。将开发完成的协议模块打包成jar包加入到数据对接系统中。在XML格式的注册文件上新增一个插件信息com.demo.protocol.Action.java,并将状态置为true。至此对接开发完成。Based on the above architecture, in the scenario where the protocol module (upper-level domain plug-in) in the upper-level domain docking module and the protocol module (lower-level domain plug-in) in the lower-level domain docking module need to be developed, the protocol module development process can be as follows: Create a plug-in to start The class com.demo.protocol.Action.java, which is used as the entry point of the plug-in, calls this class through reflection, and then injects other data connection methods in the module through Spring. Develop the protocol module in the lower-level domain docking module, and use the data auxiliary module to realize the rapid development of the lower-level domain data receiving and processing functions of the protocol module. Create a data conversion class to convert the data sent by the lower-level domain into the data protocol type of the upper-level domain. Develop the protocol module in the upper-level domain docking module, and use the data auxiliary module to develop the data transmission class according to the upper-level domain docking mode. Package the developed protocol module into a jar package and add it to the data docking system. Add a plug-in information com.demo.protocol.Action.java to the registration file in XML format, and set the status to true. At this point, the docking development is completed.

在只需要对上级域对接模块的协议模块或下级域对接模块的协议模块进行开发的场景下,协议模块开发流程可以如下:创建插件启动类com.demo.protocol.Action.java,该类作为插件的入口,通过反射调用该类,再通过Spring注入模块内其他数据对接方法。当需要对上级域对接模块的协议模块进行开发时,则下级域对接模块的协议模块可以开发为固定模块,固定为与下级域的传输协议相匹配,实现对接只需开发上级域对接模块的协议模块。当需要对下级域对接模块的协议模块进行开发时,则上级域对接模块的协议模块可以开发为固定模块,固定为与上级域的传输协议相匹配,实现对接只需开发下级域对接模块的协议模块。协议模块的开发流程包括:创建数据转换类,将下级域数据转换为上级域数据协议类型,将开发的协议模块打包成jar包加入到数据对接系统中,在XML格式的注册文件上新增一个插件信息com.demo.protocol.Action.java,并将状态置为true。至此对接开发完成。In the scenario where only the protocol module of the upper-level domain docking module or the protocol module of the lower-level domain docking module needs to be developed, the protocol module development process can be as follows: Create a plug-in startup class com.demo.protocol.Action.java, which is used as a plug-in The entry of this class is invoked through reflection, and then injected into other data connection methods in the module through Spring. When it is necessary to develop the protocol module of the upper-level domain docking module, the protocol module of the lower-level domain docking module can be developed as a fixed module, which is fixed to match the transmission protocol of the lower-level domain. To realize the docking, only the protocol of the upper-level domain docking module needs to be developed module. When it is necessary to develop the protocol module of the lower-level domain docking module, the protocol module of the upper-level domain docking module can be developed as a fixed module, which is fixed to match the transmission protocol of the upper-level domain. To realize the connection, only the protocol of the lower-level domain docking module needs to be developed module. The development process of the protocol module includes: creating a data conversion class, converting the lower-level domain data into the upper-level domain data protocol type, packaging the developed protocol module into a jar package and adding it to the data docking system, and adding a new one to the registration file in XML format Plugin information com.demo.protocol.Action.java, and set the state to true. At this point, the docking development is completed.

基于图4所示数据对接系统,相应场景下的数据对接流程如下。Based on the data docking system shown in Figure 4, the data docking process in the corresponding scenario is as follows.

调用插件选择模块,根据上级域的传输协议和下级域的传输协议,从数据对接系统的各插件中选择进行对接的插件(上级域插件和下级域插件),将选择出的上级域插件和下级域插件的状态修改为启动状态。Call the plug-in selection module, select the plug-in for docking (upper-level domain plug-in and lower-level domain plug-in) from the plug-ins in the data docking system according to the transmission protocol of the upper-level domain and the lower-level domain, and transfer the selected upper-level domain plug-in and lower-level domain plug-in The state of the domain plug-in is changed to start state.

启动数据对接系统后,数据对接系统将所选择的上级域插件和下级域插件启动,并开始数据对接操作。After starting the data docking system, the data docking system starts the selected upper-level domain plug-in and lower-level domain plug-in, and starts the data docking operation.

通过下级域对接模块的数据传输模块,将数据从下级域获取到数据对接系统,然后将数据传输至下级域对接模块的协议模块,在该协议模块中根据下级域的传输协议对数据进行解析。在解析的过程中可能需要使用到数据辅助模块,使用数据辅助模块提供的工具进行编码解析、加解密等操作。Through the data transmission module of the lower-level domain docking module, the data is obtained from the lower-level domain to the data docking system, and then the data is transmitted to the protocol module of the lower-level domain docking module, and the data is analyzed in the protocol module according to the transmission protocol of the lower-level domain. In the parsing process, it may be necessary to use the data auxiliary module, and use the tools provided by the data auxiliary module to perform encoding analysis, encryption and decryption, and other operations.

解析完成的数据进入数据流通模块,经过内部的数据流通,传输到上级域对接模块,其中,可以采用队列实现数据流通,也可以只直接进行数据传输,根据需求,数据流通模块还可以对数据进行设定条件过滤。The parsed data enters the data circulation module, and is transmitted to the upper-level domain docking module through internal data circulation. Among them, queues can be used to realize data circulation, or only data transmission can be performed directly. According to requirements, the data circulation module can also perform data processing. Set conditions to filter.

上级域对接模块的协议模块从数据流通模块中获取数据,并将数据按照上级域的传输协议进行转换(转换中也可能用到数据辅助模块),转换成上级域的传输协议支持的数据格式后,再通过上级域对接模块中的数据传输模块传输至上级域。根据上级域指定的对接方式的不同,上级域对接模块中的数据传输模块可以对应开发不同的发送方式,例如,可以包含http、web service、TCP等发送方式,进而将数据发送到上级域。从而完成数据对接。The protocol module of the upper-level domain docking module obtains data from the data circulation module, and converts the data according to the transmission protocol of the upper-level domain (the data auxiliary module may also be used in the conversion), and converts it into a data format supported by the transmission protocol of the upper-level domain , and then transmitted to the upper-level domain through the data transmission module in the upper-level domain docking module. According to the different connection methods specified by the upper-level domain, the data transmission module in the upper-level domain connection module can develop different sending methods correspondingly, for example, it can include http, web service, TCP and other sending methods, and then send the data to the upper-level domain. Thus completing the data docking.

需要说明的是,数据对接系统中,数据传输模块、数据辅助模块和数据流通模块可以为各插件通用的固定的模块,相应地,对于与不同传输协议对应的插件的开发,可以为仅对协议模块进行开发,即协议模块为本实施例中的插件。在另一种实现方式中,数据对接系统中,也可以是数据辅助模块和数据流通模块为各插件通用的固定的模块,相应地,对于与不同传输协议对应的插件的开发,可以为对协议模块和数据传输模块进行开发,即协议模块和数据传输模块构成本实施例中的插件。It should be noted that in the data docking system, the data transmission module, data auxiliary module and data circulation module can be fixed modules common to each plug-in. Correspondingly, for the development of plug-ins corresponding to different transmission protocols, it can be a The module is developed, that is, the protocol module is a plug-in in this embodiment. In another implementation, in the data docking system, the data auxiliary module and the data circulation module can also be fixed modules common to each plug-in. Correspondingly, for the development of plug-ins corresponding to different transmission protocols, it can be a protocol Module and data transmission module are developed, that is, the protocol module and data transmission module constitute the plug-in in this embodiment.

请参阅图5,在上述基础上,本发明实施例还提供了一种数据对接装置,应用于数据对接系统,所述数据对接装置包括:数据接收模块、协议获取模块和数据对接模块。Please refer to FIG. 5 , on the basis of the above, the embodiment of the present invention also provides a data docking device, which is applied to a data docking system, and the data docking device includes: a data receiving module, a protocol acquisition module and a data docking module.

其中,数据接收模块用于接收待发送数据。Wherein, the data receiving module is used for receiving data to be sent.

协议获取模块用于获取所述待发送数据的发送对象的传输协议和接收对象的传输协议。The protocol acquisition module is used to acquire the transmission protocol of the sending object and the transmission protocol of the receiving object of the data to be sent.

数据对接模块用于在所述发送对象的传输协议和所述接收对象的传输协议不匹配时,调用插件将所述待发送数据转换为支持所述接收对象的传输协议的目标数据,并将所述目标数据发送至所述接收对象,以完成数据对接。The data docking module is used to call a plug-in to convert the data to be sent into target data supporting the transmission protocol of the receiving object when the transmission protocol of the sending object does not match the transmission protocol of the receiving object, and transfer the The target data is sent to the receiving object to complete data docking.

在一种实现方式中,所述数据对接系统中包括与各传输协议分别对应的各插件,所述数据对接模块用于查找出与所述发送对象的传输协议对应的第一插件,查找出与所述接收对象的传输协议对应的第二插件,基于所述第一插件对所述待发送数据进行解析,得到所述待发送数据的数据内容并将所述数据内容传输至所述第二插件,基于所述第二插件将所述数据内容转换为支持所述接收对象的传输协议的目标数据。In one implementation, the data docking system includes plug-ins corresponding to each transmission protocol, and the data docking module is used to find out the first plug-in corresponding to the transmission protocol of the sending object, and find out the first plug-in corresponding to the transmission protocol of the sending object. The second plug-in corresponding to the transmission protocol of the receiving object analyzes the data to be sent based on the first plug-in, obtains the data content of the data to be sent, and transmits the data content to the second plug-in , based on the second plug-in, converting the data content into target data supporting the transmission protocol of the receiving object.

可选地,与各传输协议分别对应的各插件通过以下步骤添加至所述数据对接系统中:获取针对每个传输协议对应开发的插件,将开发的插件添加至所述数据对接系统中,并在所述数据对接系统的注册文件中添加开发的插件的信息。Optionally, each plug-in corresponding to each transmission protocol is added to the data docking system through the following steps: obtain a plug-in correspondingly developed for each transmission protocol, add the developed plug-in to the data docking system, and Add the developed plug-in information in the registration file of the data docking system.

需要说明的是,本实施例所提供的数据对接装置,其基本原理及产生的技术效果和上述应用于数据对接系统的方法实施例相同,为简要描述,本实施例部分未提及之处,可参考上述的方法实施例中相应内容。It should be noted that the basic principles and technical effects of the data docking device provided in this embodiment are the same as those of the above-mentioned embodiment of the method applied to the data docking system. For a brief description, some parts not mentioned in this embodiment are Reference may be made to the corresponding content in the foregoing method embodiments.

本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的数据对接方法。An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned data docking method is realized.

相较于现有技术中仅单一适用的数据对接方案,如某一上级域提供协议文档和限定的对接方式信息给某一下级域,该下级域给予提供的文档和信息开发一个对应的数据对接系统,从而实现该上级域和下级域的数据对接。该种仅单一适用的数据对接方案,针对不同传输协议需要分别重新开发一个数据对接系统,开发耗时长,数据对接系统没有固定的开发框架,开发复杂度高,数据对接系统只针对单一上级域协议文档和对接方式开发,适用性差。而采用本发明实施例提供的数据对接方案,采用插件式开发框架,只针对协议的不同点和不同的对接方式进行插件开发,能够显著减低开发复杂度,减少代码开发量,减少数据对接开发的耗时,从而节约了项目成本。能够实现快速开发,耗时短,基于插件式开发框架,针对不同的传输协议,只需要切换不同的插件即可对接不同的上级域和下级域,适应性高,对接更为灵活,对接的稳定性亦更高。Compared with the single-applicable data docking scheme in the prior art, if a higher-level domain provides protocol documents and limited docking method information to a lower-level domain, the lower-level domain develops a corresponding data docking for the provided documents and information system, so as to realize the data docking between the upper-level domain and the lower-level domain. This kind of single-applicable data docking solution needs to re-develop a data docking system for different transmission protocols, which takes a long time to develop. The data docking system does not have a fixed development framework, and the development complexity is high. The data docking system is only for a single upper-level domain protocol. The development of documents and docking methods has poor applicability. However, the data docking solution provided by the embodiment of the present invention adopts a plug-in development framework, and only conducts plug-in development for different points of the protocol and different docking methods, which can significantly reduce development complexity, reduce the amount of code development, and reduce the cost of data docking development. Time consuming, thus saving project cost. Able to achieve rapid development, short time-consuming, based on the plug-in development framework, for different transmission protocols, only need to switch different plug-ins to connect different upper-level domains and lower-level domains, high adaptability, more flexible docking, and stable docking Sex is also higher.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present invention. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (6)

loading a corresponding code according to the information of the plug-in as a code for performing butt joint by using a java reflection technology, starting the code for performing butt joint, and further performing data butt joint by using a Spring technology, wherein the method comprises the following steps: creating a plug-in starting class, wherein the plug-in starting class is an entrance of the plug-in, creating a data conversion class, converting the data to be sent into target data supporting a transmission protocol of the receiving object, packaging the plug-in into a jar packet, adding the jar packet into the data docking system, adding information of the developed plug-in the registration file, and setting a state as true, wherein the information of the plug-in characterizes the created plug-in starting class.
loading a corresponding code according to the information of the plug-in as a code for performing butt joint by using a java reflection technology, starting the code for performing butt joint, and further performing data butt joint by using a Spring technology, wherein the method comprises the following steps: creating a plug-in starting class, wherein the plug-in starting class is an entrance of the plug-in, creating a data conversion class, converting the data to be sent into target data supporting a transmission protocol of the receiving object, packaging the plug-in into a jar packet, adding the jar packet into the data docking system, adding information of the developed plug-in the registration file, and setting a state as true, wherein the information of the plug-in characterizes the created plug-in starting class.
CN201911189107.4A2019-11-282019-11-28Data docking method, device and computer readable storage mediumActiveCN112866182B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911189107.4ACN112866182B (en)2019-11-282019-11-28Data docking method, device and computer readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911189107.4ACN112866182B (en)2019-11-282019-11-28Data docking method, device and computer readable storage medium

Publications (2)

Publication NumberPublication Date
CN112866182A CN112866182A (en)2021-05-28
CN112866182Btrue CN112866182B (en)2023-05-23

Family

ID=75985244

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911189107.4AActiveCN112866182B (en)2019-11-282019-11-28Data docking method, device and computer readable storage medium

Country Status (1)

CountryLink
CN (1)CN112866182B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113783893A (en)*2021-09-292021-12-10远景智能国际私人投资有限公司Data transmission method, device and system
CN115037639B (en)*2022-07-142023-10-31浙江极氪智能科技有限公司 Edge data platform interface information processing methods, devices, equipment and media

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103297381A (en)*2012-02-222013-09-11阿里巴巴集团控股有限公司Service access method based on plugin and system thereof
CN103944814A (en)*2014-04-292014-07-23深圳市天维尔通讯技术有限公司Data exchange method and system and gateway server
CN104852971A (en)*2015-04-242015-08-19青岛海尔智能家电科技有限公司Plug-in protocol device and data communication method based on plug-in protocol
CN105389222A (en)*2015-12-152016-03-09中国科学院声学研究所Method, apparatus and system for dynamically calling native interface
CN105893094A (en)*2016-03-312016-08-24百度在线网络技术(北京)有限公司Achieving method and device for application program plug-in
CN106850758A (en)*2016-12-302017-06-13广州慧扬信息系统科技有限公司It is applied to the method for interchanging data of hospital information system
CN107332857A (en)*2017-07-312017-11-07腾讯科技(深圳)有限公司A kind of network data transmission method, device, system and storage medium
CN107734028A (en)*2017-10-122018-02-23佛山伊贝尔科技有限公司A kind of things-internet gateway system and its implementation of data safety storage
CN108377232A (en)*2018-01-292018-08-07杭州鸿泉物联网技术股份有限公司A kind of multi-protocol communication method and device
CN110287041A (en)*2019-06-282019-09-27苏州亿歌网络科技有限公司A kind of business datum sending method, device, equipment and storage medium
CN110417766A (en)*2019-07-222019-11-05深圳市酷达通讯有限公司A kind of method and apparatus of protocol analysis

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103297381A (en)*2012-02-222013-09-11阿里巴巴集团控股有限公司Service access method based on plugin and system thereof
CN103944814A (en)*2014-04-292014-07-23深圳市天维尔通讯技术有限公司Data exchange method and system and gateway server
CN104852971A (en)*2015-04-242015-08-19青岛海尔智能家电科技有限公司Plug-in protocol device and data communication method based on plug-in protocol
CN105389222A (en)*2015-12-152016-03-09中国科学院声学研究所Method, apparatus and system for dynamically calling native interface
CN105893094A (en)*2016-03-312016-08-24百度在线网络技术(北京)有限公司Achieving method and device for application program plug-in
CN106850758A (en)*2016-12-302017-06-13广州慧扬信息系统科技有限公司It is applied to the method for interchanging data of hospital information system
CN107332857A (en)*2017-07-312017-11-07腾讯科技(深圳)有限公司A kind of network data transmission method, device, system and storage medium
CN107734028A (en)*2017-10-122018-02-23佛山伊贝尔科技有限公司A kind of things-internet gateway system and its implementation of data safety storage
CN108377232A (en)*2018-01-292018-08-07杭州鸿泉物联网技术股份有限公司A kind of multi-protocol communication method and device
CN110287041A (en)*2019-06-282019-09-27苏州亿歌网络科技有限公司A kind of business datum sending method, device, equipment and storage medium
CN110417766A (en)*2019-07-222019-11-05深圳市酷达通讯有限公司A kind of method and apparatus of protocol analysis

Also Published As

Publication numberPublication date
CN112866182A (en)2021-05-28

Similar Documents

PublicationPublication DateTitle
US8626951B2 (en)Interoperability of network applications in a communications environment
CN113971110B (en) Interface testing method, device, equipment and computer readable storage medium
CN109510754B (en)Online document generation method, device and system and electronic equipment
CN112866182B (en)Data docking method, device and computer readable storage medium
US20220245080A1 (en)Method for communication of a componentized application, computing device and computer storage medium
CN110543428B (en)Application system testing method and device
US8782470B2 (en)Generation of test data for web service-based test automation and semi-automated test data categorization
CN112015384B (en)Interface mapping method and device
Bromberg et al.Bridging the interoperability gap: Overcoming combined application and middleware heterogeneity
CN102779071A (en)Method, device and system for calling software interface
CN115408169A (en)Remote procedure calling method, device, equipment and readable storage medium
KR20110065448A (en) Message processing pipeline configuration
US7532617B2 (en)Method and apparatus for session initiation protocol application design, development, execution and integration
CN113992641A (en)Data processing method, device, equipment and storage medium
Bertram et al.Secure web service clients on mobile devices
JP2011198343A (en)Method of controlling service connection in a plurality of service node servers, control node server and program
CN110602194B (en)IOT message subscription method, IOT message subscription device and computer readable storage medium
CN115643320A (en)Data processing method, system, storage medium and processor
CN113961376A (en) Method and device for switching message middleware
JP5243474B2 (en) Infrastructure middleware parameter value improvement point presentation system
Liu et al.A context-aware reflective middleware framework for distributed real-time and embedded systems
CN118631918B (en) Dynamic parsing method and related device based on protobuf protocol
CN118118471B (en)HTTP protocol-based service flow arrangement method, device, computer program product, and computer-readable storage medium
CN103535005B (en)Method and device for transmitting data
CN119316481B (en) Service request processing method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp