A unified health detection method and system for multi-source heterogeneous data sources

By building a unified health detection method for multi-source heterogeneous data sources and utilizing the Akka framework's Actor model and data source detection control layer interface, the problem that Akka lacks unified data source detection is solved, and fast and efficient multi-source database connection detection is achieved.

CN116860847BActive Publication Date: 2025-09-16XIAMEN MEIYA PICO INFORMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310776959.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2025-09-16
Estimated Expiration
2043-06-28

AI Technical Summary

Technical Problem

The existing Akka framework does not have the function of unified data source detection and cannot effectively solve the connection detection problem of multi-source heterogeneous data sources.

Method used

Build a unified health detection method for multi-source heterogeneous data sources, and realize rapid detection and result return of data sources through data source detection control layer interface, management service class interface and Actor model.

Benefits of technology

It realizes fast connection detection of multi-source databases, improves response speed and detection efficiency, and is suitable for connection detection problems of multi-source databases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860847B_ABST
    Figure CN116860847B_ABST
Patent Text Reader

Abstract

The present invention proposes a unified health detection method and system for multi-source heterogeneous data sources, including: responding to a data source request initiated by a third-party application, the request calls a data source detection control layer interface; after the data source detection control layer interface receives the detection information request, it calls a data source management service class interface; after verifying the passed parameters according to preset verification rules, the core interaction process is performed; finally, the data source detection result Map returned by the core interaction detection is returned to the data source management service class interface, and then returned to the data source detection control layer interface, and finally returned to the third-party application. This method has been verified many times in recent provincial-level practical modeling work such as smart cities. In the actual modeling process, by calling a unified health detection interface for multi-source heterogeneous data sources, it can quickly respond to multi-source connection test detection task requests, which plays a role in reducing time and increasing efficiency in solving the connection detection problem of multi-source databases.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of databases, and in particular relates to a unified health detection method and system for multi-source heterogeneous data sources. Background Art

[0002] The unification of data resources will become a hot topic and trend in the future of big data research and development. However, one of the primary challenges facing this unification is the fragmentation of data sources. Data is often stored in different databases, file systems, or network services. These resources are geographically dispersed across various institutions, enterprises, and departments. The primary prerequisite for processing multi-source data is to solve the problem of database connectivity detection.

[0003] Akka is an excellent distributed computing framework with multiple advantages, including high scalability, high concurrency, high reliability, distributed computing, and responsive programming. Through its design based on the Actor model, Akka can divide applications into independent computing units that can asynchronously receive and send messages to each other and create more Actors when necessary, allowing for easy expansion to multiple nodes and highly scalable applications. Akka also enables efficient concurrent programming, improving application performance and throughput; it ensures high application reliability through monitoring and recovery mechanisms, avoiding system crashes or data loss; it supports the deployment of Actors on different nodes to build complex distributed applications; and it supports a responsive programming model, implementing non-blocking I / O operations, improving application responsiveness and scalability. Therefore, a unified health monitoring architecture for multi-source heterogeneous data sources can more quickly respond to detection requests in high-concurrency scenarios.

[0004] Although Akka has multiple advantages such as high scalability, high concurrency, high reliability, distributed computing and responsive programming, it does not have the function of unified data source detection.

[0005] In view of this, it is very meaningful to propose a unified health detection method and system for multi-source heterogeneous data sources. Summary of the Invention

[0006] In order to solve the problem that the existing Akka itself does not have the function of unified data source detection, the present invention provides a unified health detection method and system for multi-source heterogeneous data sources to solve the above-mentioned technical defects.

[0007] In a first aspect, the present invention proposes a unified health detection method for multi-source heterogeneous data sources, the method comprising the following steps:

[0008] In response to a data source request initiated by a third-party application, the request calls a data source detection control layer interface;

[0009] After receiving the detection information request, the data source detection control layer interface calls the data source management service class interface;

[0010] After verifying the parameters according to the preset verification rules, the core interaction process is carried out;

[0011] Finally, the data source detection result Map returned by the core interaction detection is returned to the data source management service class interface, then returned to the data source detection control layer interface, and finally returned to the third-party application.

[0012] Preferably, the core interaction process specifically includes:

[0013] Generate an ActorName according to the specified rules, start a DSCWebActor instance for data source detection containing the ActorName, and pass in the detection connection information CI;

[0014] Then, a first timer is set to wait for DSCActor to send a message indicating that the data source detection program has been started. If the wait times out, a corresponding exception is returned and the program is interrupted.

[0015] Further preferably, the core interaction process further includes:

[0016] Construct a DSCActor startup command to start a data source detection program command with the IP address of the DSCWebActor instance and the ActorName, and the program establishes a connection channel with the DSCWebActor instance through the IP address and the ActorName;

[0017] After the DSCActor instance is constructed, a second timer is set to wait for the DSCWebActor instance to send the connection information CI. If the waiting timeout occurs, a corresponding exception is returned and the program is interrupted.

[0018] Further preferably, the core interaction process further includes:

[0019] DSCActor sends a message that the data source detection program has been started to DSCWebActor. After receiving the message that the data source detection program has been started, DSCWebActor turns off the first timer.

[0020] Then, the detection connection information CI is sent to the DSCActor. After receiving the detection connection information CI, the DSCActor turns off the second timer.

[0021] DSCActor calls the unified data source detection interface DSCIC, which performs connection detection on the corresponding data source according to the received connection information CI, and then returns a data source detection result Map.

[0022] Preferably, verifying the passed parameters according to the preset verification rules specifically includes:

[0023] If the data source type is empty, an exception will be thrown;

[0024] If the data source type is not empty, the detection information object transmitted from the third-party application Web end will be uniformly formatted and generated into a Json type message object.

[0025] In a second aspect, an embodiment of the present invention further provides a unified health detection system for multi-source heterogeneous data sources, including:

[0026] A first calling module is configured to respond to a data source request initiated by a third-party application, wherein the request calls a data source detection control layer interface;

[0027] The second calling module is configured to call the data source management service class interface after the data source detection control layer interface receives the detection information request;

[0028] The processing module is configured to verify the parameters according to the preset verification rules and then perform the core interaction process;

[0029] The data return module is configured to return the data source detection result Map returned by the core interaction detection to the data source management service class interface, then return it to the data source detection control layer interface, and finally return it to the third-party application.

[0030] More preferably, it also includes:

[0031] The DSCWebActor module is configured to generate an ActorName according to a specified rule, and start a DSCWebActor instance containing the ActorName for data source detection, passing in detection connection information CI;

[0032] A first timer module is configured to set a first timer to wait for DSCActor to send a message indicating that the data source detection program has been started, and if the waiting timeout occurs, a corresponding exception is returned and the program is interrupted;

[0033] A DSCActor module is configured to construct a DSCActor start command to start a data source detection program command with the IP address of the DSCWebActor instance and the ActorName, and the program establishes a connection channel with the DSCWebActor instance through the IP address and the ActorName;

[0034] The second timer module is configured to set a second timer to wait for the DSCWebActor instance to send connection information CI after the DSCActor instance is constructed. If the waiting timeout occurs, a corresponding exception is returned and the program is interrupted.

[0035] More preferably, it also includes:

[0036] The parameter verification module is configured to verify the parameters according to the preset verification rules, including throwing an exception if the data source type is empty; if the data source type is not empty, the detection information object transmitted from the third-party application Web end will be uniformly formatted and generated into a Json type message object.

[0037] In a third aspect, an embodiment of the present invention provides an electronic device comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0038] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0039] Compared with the prior art, the present invention has the following advantages:

[0040] (1) This solution builds a unified health detection architecture system for multi-source heterogeneous data sources, which fully realizes the rapid detection of data sources initiated by third-party application tasks, different manufacturers, different components, and different versions of the same component, and returns the data source detection results to the third-party application web page for display. This helps to quickly eliminate databases with abnormal connections and solve the connection detection problems of multi-source databases, which shortens the time and increases the efficiency.

[0041] (2) This method has been implemented in the Tiansuan application of the Qiankun big data operating system and has been verified many times in the practical modeling work of smart cities and other provincial-level projects in recent years. In the actual modeling process, by calling the unified health detection interface for multi-source heterogeneous data sources, it can quickly respond to multi-source connection test detection task requests, which plays a role in shortening time and increasing efficiency in solving the connection detection problem of multi-source databases. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and, together with the description, serve to explain the principles of the present invention. Other embodiments and many of the expected advantages of the embodiments will be readily apparent as they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale with respect to each other. Like reference numerals designate corresponding similar parts.

[0043] Figure 1 is a diagram of an exemplary device architecture in which an embodiment of the present invention may be applied;

[0044] Figure 2 A schematic diagram of a unified health detection method for multi-source heterogeneous data sources according to an embodiment of the present invention;

[0045] Figure 3 This is a schematic diagram of the overall architecture of a unified health detection method for multi-source heterogeneous data sources according to an embodiment of the present invention;

[0046] Figure 4 Schematic diagram of a unified health detection system for multi-source heterogeneous data sources according to an embodiment of the present invention;

[0047] Figure 5 It is a schematic structural diagram of a computer device suitable for implementing an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In the following detailed description, reference is made to the accompanying drawings, which form a part of the detailed description and are illustrated by illustrative specific embodiments in which the present invention may be practiced. To this end, directional terms, such as "top," "bottom," "left," "right," "up," "down," etc., are used with reference to the orientation of the figures being described. Because the components of the embodiments may be positioned in several different orientations, directional terms are used for illustrative purposes and are in no way limiting. It should be understood that other embodiments may be utilized or logical changes may be made without departing from the scope of the present invention. Therefore, the following detailed description should not be adopted in a limiting sense, and the scope of the present invention is defined by the appended claims.

[0049] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0050] Figure 1 An exemplary system architecture 100 is shown to which a method for processing information or an apparatus for processing information according to an embodiment of the present invention can be applied.

[0051] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is a medium for providing communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0052] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0053] The terminal devices 101 , 102 , and 103 may be various electronic devices with communication functions, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0054] The server 105 may be a server that provides various services, such as a background information processing server that processes verification request information sent by the terminal devices 101, 102, and 103. The background information processing server may analyze and perform other processing on the received verification request information and obtain a processing result (e.g., verification success information indicating that the verification request is a legitimate request).

[0055] It should be noted that the method for processing information provided in the embodiment of the present invention is generally executed by the server 105, and accordingly, the device for processing information is generally set in the server 105. In addition, the method for sending information provided in the embodiment of the present invention is generally executed by the terminal devices 101, 102, and 103, and accordingly, the device for sending information is generally set in the terminal devices 101, 102, and 103.

[0056] It should be noted that the server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules (for example, to provide distributed services), or as a single software program or multiple software modules, without specific limitation herein.

[0057] Figure 2 The embodiment of the present invention discloses a unified health detection method for multi-source heterogeneous data sources, such as Figure 2 As shown, the method includes the following steps:

[0058] S1. In response to a data source request initiated by a third-party application, request to call the data source detection control layer interface;

[0059] S2. After receiving the detection information request, the data source detection control layer interface calls the data source management service class interface;

[0060] S3. After verifying the parameters according to the preset verification rules, the core interaction process is carried out;

[0061] S4. Finally, the data source detection result Map returned by the core interaction detection is returned to the data source management service class interface, then returned to the data source detection control layer interface, and finally returned to the third-party application.

[0062] In this embodiment, the overall structural diagram of the present invention is as follows: Figure 3 As shown below, according to Figure 3 The specific method of the present invention is described with reference to the architecture diagram of the present invention.

[0063] Step 1: The third-party application initiates a data source detection request through the web client, which calls the Data Source Detection Control Layer Interface (DSCCI).

[0064] Step 2: After receiving the detection information request, the Data Source Detection Control Layer Interface (DSCCI) calls a Data Source Management Service Class Interface (DSCSI);

[0065] Step 3: Check the parameters of the passed parameters:

[0066] 3.1) If the data source type is empty, an exception will be thrown;

[0067] 3.2) If the data source type is not empty, the detection information object transmitted from the Web side will be uniformly formatted and generated into a Json type message object.

[0068] Step 4, core interaction:

[0069] 4.1.1) Generate an ActorName according to the specified rules, start a DSCWebActor instance containing this ActorName for data source detection, and pass in the detection connection information (CI);

[0070] 4.1.2) Then set a timer to wait for DSCActor to send the message "Data Source Detection Program Started". If the wait times out, return the corresponding exception and interrupt the program;

[0071] 4.2.1) Construct a DSCActor start command, and then start the data source detection program command with the IP address and ActorName of the DSCWebActor instance. The program establishes a connection channel with the DSCWebActor instance through the IP address and ActorName;

[0072] 4.2.2) After the DSCActor instance is constructed, a timer is set to wait for the DSCWebActor instance to send the connection information (CI). If the wait times out, a corresponding exception is returned and the program is interrupted;

[0073] 4.3.1)DSCActor sends the message "data source detection program has been started" to DSCWebActor;

[0074] 4.4.1) After receiving the "Data Source Detection Program Started" message, DSCWebActor turns off the timer;

[0075] 4.4.2) Then send the detection connection information (CI) to DSCActor;

[0076] 4.5.1) After receiving the detection connection information (CI), DSCActor stops the timer;

[0077] 4.5.2) Then DSCActor will call the unified data source detection interface (DSCIC);

[0078] 4.6.1) The unified data source detection interface (DSCIC) performs connection detection on the corresponding data source based on the received connection information (CI), and then returns a data source detection result Map (DSCR).

[0079] In step 5, the data source detection result Map (DSCR) returned by the core interactive detection is returned to the data source management service class interface (DSCSI), and then returned to the data source detection control layer interface (DSCCI), and finally returned to the third-party application web client to display the detection results. The entire data source detection process is completed.

[0080] The method of this invention has been implemented in the Tiansuan application of the Qiankun Big Data Operating System and has been repeatedly verified in recent provincial-level modeling projects, such as smart cities. By invoking a unified health detection interface for multi-source heterogeneous data sources during the actual modeling process, it can quickly respond to multi-source connection test task requests, reducing the time and increasing efficiency of multi-source database connection detection.

[0081] In a second aspect, the embodiment of the present invention further discloses a unified health detection system for multi-source heterogeneous data sources, such as Figure 4As shown, it includes a first calling module 41, a second calling module 42, a processing module 43, a data return module 44, a DSCWebActor module 45, a first timer module 46, a DSCActor module 47, a second timer module 48 and a parameter verification module 49.

[0082] In a specific embodiment, the first calling module 41 is configured to respond to a data source request initiated by a third-party application, and the request calls the data source detection control layer interface; the second calling module 42 is configured to call the data source management service class interface after the data source detection control layer interface receives the detection information request; the processing module 43 is configured to verify the passed parameters according to preset verification rules and then perform the core interaction process; the data return module 44 is configured to return the data source detection result Map returned by the core interaction detection to the data source management service class interface, and then return it to the data source detection control layer interface, and finally return it to the third-party application.

[0083] The system also includes: a DSCWebActor module 45, configured to generate an ActorName according to a specified rule, and start a DSCWebActor instance containing the ActorName for data source detection, and pass in the detection connection information CI; a first timer module 46, configured to set a first timer to wait for DSCActor to send a message that the data source detection program has been started, and if the wait times out, return a corresponding exception and interrupt the program; a DSCActor module 47, configured to construct a DSCActor start command to start the data source detection program with the IP address of the DSCWebActor instance and the ActorName. The program establishes a connection channel with the DSCWebActor instance through the IP address and the ActorName; the second timer module 48 is configured to set a second timer to wait for the DSCWebActor instance to send the connection information CI after the DSCActor instance is constructed. If the waiting timeout occurs, a corresponding exception is returned and the program is interrupted; the parameter verification module 49 is configured to verify the parameter according to the preset verification rules, including throwing an exception if the data source type is empty; if the data source type is not empty, the detection information object transmitted from the third-party application Web end will be uniformly formatted and generated into a Json type message object.

[0084] Reference below Figure 5 , which shows an electronic device (eg Figure 1 A schematic structural diagram of a computer device 600 (a server or terminal device as shown). Figure 5The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0085] like Figure 5 As shown, the computer device 600 includes a central processing unit (CPU) 601 and a graphics processing unit (GPU) 602, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 603 or the program loaded from the storage part 609 to the random access memory (RAM) 606. Various programs and data required for the operation of the device 600 are also stored in the RAM 604. The CPU 601, GPU 602, ROM 603 and RAM 604 are connected to each other via a bus 605. An input / output (I / O) interface 606 is also connected to the bus 605.

[0086] The following components are connected to the I / O interface 606: an input section 607 including a keyboard, a mouse, and the like; an output section 608 including a display such as a liquid crystal display (LCD), a speaker, and the like; a storage section 609 including a hard disk and the like; and a communication section 610 including a network interface card such as a LAN card or a modem. The communication section 610 performs communication processing via a network such as the Internet. A drive 611 may also be connected to the I / O interface 606 as needed. A removable medium 612, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like, is installed in the drive 611 as needed, so that a computer program read therefrom can be installed into the storage section 609 as needed.

[0087] In particular, according to an embodiment disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment disclosed in the present invention includes a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 610, and / or installed from a removable medium 612. When the computer program is executed by a central processing unit (CPU) 601 and a graphics processing unit (GPU) 602, the above-mentioned functions defined in the method of the present invention are performed.

[0088] It should be noted that the computer-readable medium described in the present invention may be a computer-readable signal medium or a computer-readable medium, or any combination thereof. Computer-readable media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, apparatuses, or components, or any combination thereof. More specific examples of computer-readable media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution device, apparatus, or component. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution apparatus, device, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, or any suitable combination thereof.

[0089] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0090] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based device that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0091] The modules involved in the embodiments of the present invention may be implemented in software or hardware, and may also be set in a processor.

[0092] As another aspect, the present invention also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or it may exist independently and not be assembled into the electronic device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by the electronic device, the electronic device: responds to a data source request initiated by a third-party application, and the request calls the data source detection control layer interface; after the data source detection control layer interface receives the detection information request, it calls the data source management service class interface; after verifying the passed parameters according to the preset verification rules, it performs the core interaction process; finally, the data source detection result Map returned by the core interaction detection is returned to the data source management service class interface, and then returned to the data source detection control layer interface, and finally returned to the third-party application.

[0093] The above description is merely an illustration of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art should understand that the scope of the invention is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present invention.

Claims

1. A unified health detection method for multi-source heterogeneous data sources, characterized in that: The method comprises the following steps: In response to a data source request initiated by a third-party application, the request calls a data source detection control layer interface; After receiving the request, the data source detection control layer interface calls the data source management service class interface; After verifying the parameters according to the preset verification rules, the core interaction process is carried out; Finally, the data source detection result Map returned by the core interaction detection is returned to the data source management service class interface, then returned to the data source detection control layer interface, and finally returned to the third-party application; The core interaction process specifically includes: generating an ActorName according to the specified rules, starting a DSCWebActor instance containing the ActorName for data source detection, and passing in the detection connection information CI; then setting a first timer to wait for DSCActor to send a message that the data source detection program has been started. If the wait times out, a corresponding exception is returned and the program is interrupted; The method further includes: constructing a DSCActor startup command to start a data source detection program command with the IP address of the DSCWebActor instance and the ActorName, wherein the program establishes a connection channel with the DSCWebActor instance through the IP address and the ActorName; after the DSCActor instance is constructed, setting a second timer to wait for the DSCWebActor instance to send connection information CI, and returning a corresponding exception if the waiting timeout occurs, and terminating the program; DSCActor sends a message that the data source detection program has been started to DSCWebActor. After receiving the message that the data source detection program has been started, DSCWebActor turns off the first timer; then sends the detection connection information CI to DSCActor. After receiving the detection connection information CI, DSCActor turns off the second timer; DSCActor calls the unified data source detection interface DSCIC. The unified data source detection interface DSCIC performs connection detection on the corresponding data source according to the received connection information CI, and then returns a data source detection result Map.

2. The unified health detection method for multi-source heterogeneous data sources according to claim 1 is characterized in that: Verifying the passed parameters according to the preset verification rules specifically includes: If the data source type is empty, an exception will be thrown; If the data source type is not empty, the detection information object transmitted from the third-party application Web end will be uniformly formatted and generated into a Json type message object.

3. A unified health detection system for multi-source heterogeneous data sources, characterized by: include: A first calling module is configured to respond to a data source request initiated by a third-party application, wherein the request calls a data source detection control layer interface; A second calling module is configured to call a data source management service class interface after the data source detection control layer interface receives the request; The processing module is configured to verify the parameters according to the preset verification rules and then perform the core interaction process; The data return module is configured to return the data source detection result Map returned by the core interaction detection to the data source management service class interface, then return it to the data source detection control layer interface, and finally return it to the third-party application; Also includes: The DSCWebActor module is configured to generate an ActorName according to a specified rule, and start a DSCWebActor instance containing the ActorName for data source detection, passing in detection connection information CI; A first timer module is configured to set a first timer to wait for DSCActor to send a message indicating that the data source detection program has been started, and if the waiting timeout occurs, a corresponding exception is returned and the program is interrupted; A DSCActor module is configured to construct a DSCActor start command to start a data source detection program command with the IP address of the DSCWebActor instance and the ActorName, and the program establishes a connection channel with the DSCWebActor instance through the IP address and the ActorName; The second timer module is configured to set a second timer to wait for the DSCWebActor instance to send connection information CI after the DSCActor instance is constructed. If the waiting timeout occurs, a corresponding exception is returned and the program is interrupted.

4. The unified health detection system for multi-source heterogeneous data sources according to claim 3 is characterized in that: Also includes: The parameter validation module is configured to validate the parameters according to the preset validation rules, including throwing an exception if the data source type is empty; If the data source type is not empty, the detection information object transmitted from the third-party application Web end will be uniformly formatted and generated into a Json type message object.

5. An electronic device comprising: one or more processors; a storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 2.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Message sending method and apparatus, message receiving processing method and apparatus

    CN109408251A

  • Unified access method and system for heterogeneous data sources

    CN114706912A