Heterogeneous system adaptation method and device

By reading and executing SHELL script configuration information and configuration files, adaptation between heterogeneous systems is achieved, solving the challenges of traditional application systems in architecture transformation and online business needs, and improving performance and maintainability.

CN112799715BActive Publication Date: 2024-12-17INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110119511.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-28
Publication Date
2024-12-17
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

In the face of the demands of performance capacity and high availability, application systems written in traditional process programming languages ​​cannot quickly complete the needs of architectural transformation and online business, and lack methods to solve the adaptation between heterogeneous systems.

Method used

By reading the SHELL script configuration information of the application system written in a procedural language, executing the SHELL script, and reading the configuration file to invoke the business functions of the application system written in an object-oriented language, realizing adaptation between heterogeneous systems.

Benefits of technology

Complete the architecture transformation and online business needs in a short R&D cycle, improving the performance and maintainability of the application system and reducing the intrusion of the original system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112799715B_ABST
    Figure CN112799715B_ABST
Patent Text Reader

Abstract

The present invention discloses a heterogeneous system adaptation method and device, the method comprising: reading SHELL script configuration information of a first application system, the first application system is an application system written in a process-oriented language; executing the SHELL script in the first application system written in a process-oriented language according to the SHELL script configuration information; reading a configuration file, the configuration file contains configuration parameter information for calling a second application system, the second application system is an application system written in an object-oriented language; calling the second application system in the SHELL script according to the configuration file; calling the business function of the second application system in the first application system. The present invention can complete the adaptation between heterogeneous systems, thereby enabling the application system to quickly complete the architecture transformation and online business needs within a shorter R&D cycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a heterogeneous system adaptation method and device. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] With the popularization and development of a new generation of object-oriented programming languages, application systems written in traditional process-oriented programming languages ​​have also undergone architectural transformation as they are unable to meet the growing user pressure on performance capacity and high availability and the declining soft maintainability of existing applications. However, during the transformation process, some traditional monolithic applications are unable to quickly complete architectural transformation and launch business needs within a short R&D cycle due to the huge pressure of stable production operation and the huge workload of rewriting millions of existing code volumes. However, there is currently no method in the existing technology that can solve the adaptation problem between heterogeneous systems. Summary of the invention

[0004] The embodiment of the present invention provides a heterogeneous system adaptation method for completing the adaptation between heterogeneous systems, thereby enabling the application system to quickly complete the architecture transformation and online business requirements within a shorter development cycle. The method includes:

[0005] Reading SHELL script configuration information of a first application system, wherein the first application system is an application system written in a process-oriented language;

[0006] Execute the SHELL script in the first application system written in the process-oriented language according to the SHELL script configuration information;

[0007] Reading a configuration file, wherein the configuration file includes configuration parameter information for calling a second application system, wherein the second application system is an application system written in an object-oriented language;

[0008] Calling the second application system in a SHELL script according to a configuration file;

[0009] The business function of the second application system is called in the first application system.

[0010] Optionally, before reading the SHELL script configuration information of the first application system, the method further includes:

[0011] The SHELL script configuration information is configured in the database, wherein the SHELL script configuration information includes: a SHELL script path and SHELL script parameters.

[0012] Optionally, the process-oriented language is PROC language;

[0013] The object-oriented language is JAVA.

[0014] Optionally, the configuration file includes: JAR package path and name, and MAIN method and parameters of the JAVA program.

[0015] The embodiment of the present invention further provides a heterogeneous system adaptation device, which is used to complete the adaptation between heterogeneous systems, so that the application system can quickly complete the architecture transformation and online business needs within a shorter development cycle. The device includes:

[0016] An information reading module, used for reading SHELL script configuration information of a first application system, wherein the first application system is an application system written in a process-oriented language;

[0017] A script execution module, used for executing a SHELL script in a first application system written in a process-oriented language according to SHELL script configuration information;

[0018] A configuration file reading module, used to read a configuration file, wherein the configuration file includes configuration parameter information for calling a second application system, wherein the second application system is an application system written in an object-oriented language;

[0019] An application system calling module, used for calling the second application system in a SHELL script according to a configuration file;

[0020] The business function calling module is used to call the business function of the second application system in the first application system.

[0021] Optionally, the device further comprises:

[0022] The information configuration module is used to configure the SHELL script configuration information in the database, wherein the SHELL script configuration information includes: SHELL script path and SHELL script parameters.

[0023] Optionally, the process-oriented language is PROC language;

[0024] The object-oriented language is JAVA.

[0025] Optionally, the configuration file includes: JAR package path and name, and MAIN method and parameters of the JAVA program.

[0026] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.

[0027] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.

[0028] In an embodiment of the present invention, by reading the SHELL script configuration information of the first application system, executing the SHELL script in the first application system written in a procedural language according to the SHELL script configuration information, then reading the configuration file, calling the second application system in the SHELL script according to the configuration file, and finally, calling the business function of the second application system in the first application system, the adaptation between heterogeneous systems can be completed, thereby enabling the application system to quickly complete the architecture transformation and online business needs within a shorter R&D cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0030] Figure 1 Flow chart of a heterogeneous system adaptation method according to an embodiment of the present invention;

[0031] Figure 2 It is a schematic diagram of the structure of a heterogeneous system adaptation device in an embodiment of the present invention;

[0032] Figure 3 A specific example diagram of a heterogeneous system adaptation method according to an embodiment of the present invention;

[0033] Figure 4 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0035] With the popularization and development of a new generation of object-oriented programming languages, application systems written in traditional process-oriented programming languages ​​have also undergone architectural transformation as they are unable to meet the growing user pressure on performance capacity and high availability and the declining soft maintainability of existing applications. However, during the transformation process, some traditional monolithic applications are unable to quickly complete architectural transformation and launch business needs within a short R&D cycle due to the huge pressure of stable production operation and the huge workload of rewriting millions of existing code volumes. However, there is currently no method in the existing technology that can solve the adaptation problem between heterogeneous systems.

[0036] Figure 1 A flowchart of a heterogeneous system adaptation method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0037] Step 101: Read SHELL script configuration information of a first application system, where the first application system is an application system written in a procedural language.

[0038] In an embodiment, the first application system may be a client application system, an external application system, etc. The process-oriented language may be a PROC language. PROC is an application-specific development tool provided by Oracle. It uses C language as a host language and can embed SQL statements in C programs to perform database operations. The SHELL script configuration information includes: SHELL script path and SHELL script parameters.

[0039] Step 102: Execute the Shell script in the first application system written in the process-oriented language according to the Shell script configuration information.

[0040] Step 103: read a configuration file, wherein the configuration file includes configuration parameter information for calling a second application system, wherein the second application system is an application system written in an object-oriented language.

[0041] In an embodiment, the second application system may be a client application system, an external application system, etc. The object-oriented language may be JAVA language. The configuration file includes: a JAR package path and name, and a MAIN method and parameters of a JAVA program.

[0042] Step 104: Call the second application system in a Shell script according to the configuration file.

[0043] Step 105: Call the business function of the second application system in the first application system.

[0044] The heterogeneous system adaptation method provided in the embodiment of the present invention completes the adaptation between heterogeneous systems by reading the SHELL script configuration information of the first application system, executing the SHELL script in the first application system written in a procedural language according to the SHELL script configuration information, then reading the configuration file, calling the second application system in the SHELL script according to the configuration file, and finally calling the business function of the second application system in the first application system, thereby enabling the application system to quickly complete the architecture transformation and online business needs within a shorter R&D cycle.

[0045] Furthermore, before reading the SHELL script configuration information of the first application system, the method further includes:

[0046] The SHELL script configuration information is configured in the database, wherein the SHELL script configuration information includes: a SHELL script path and SHELL script parameters.

[0047] In specific implementation, by calling the SHELL script code path and corresponding SHELL script code configured in the database in the first application system, the first application system is only responsible for the function calling operation, and the detailed business function code is implemented by the object-oriented programming language called by the SHELL script.

[0048] Taking the process-oriented language as PROC and the object-oriented language as JAVA as an example, when the SHELL script calls the JAVA program, the JAVA program running environment installed in the application system deployment environment written in the PROC language reads the configuration file to set the JAR package path and name of the JAVA program, the MAIN method and parameters of the JAVA program.

[0049] like Figure 3 As shown, the present invention is described below by a specific embodiment:

[0050] Step 301: Start the first application system written in PROC language.

[0051] Step 302: Load the SHELL script configuration information.

[0052] Step 303: Call up the Shell script in the first application system according to the Shell script configuration information.

[0053] Step 304: Read the configuration file to set the JAR package path and name of the JAVA program, the MAIN method and parameters of the JAVA program.

[0054] Step 305: According to the configuration file, execute the JAVA program in the configuration file in the SHELL script.

[0055] Step 306: Invoke the business function written in the second application system in the first application system written in PROC language.

[0056] During specific implementation, the SIDECAR sidecar mode can be used to connect with the original PROC-programmed software system, which has minimal intrusion into the original system and is highly portable.

[0057] Based on the same inventive concept, a heterogeneous system adaptation device is also provided in an embodiment of the present invention, as described in the following embodiments. Since the principle of solving the problem by the heterogeneous system adaptation device is similar to that of the heterogeneous system adaptation method, the implementation of the heterogeneous system adaptation device can refer to the implementation of the heterogeneous system adaptation method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0058] Figure 2 A schematic diagram of the structure of a heterogeneous system adaptation device provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the device comprises:

[0059] An information reading module 201 is used to read the SHELL script configuration information of a first application system, where the first application system is an application system written in a process-oriented language;

[0060] A script execution module 202, configured to execute a Shell script in a first application system written in a process-oriented language according to Shell script configuration information;

[0061] A configuration file reading module 203, used to read a configuration file, wherein the configuration file includes configuration parameter information for calling a second application system, wherein the second application system is an application system written in an object-oriented language;

[0062] An application system calling module 204, used to call the second application system in a SHELL script according to a configuration file;

[0063] The business function calling module 205 is used to call the business function of the second application system in the first application system.

[0064] In an embodiment of the present invention, the device further includes:

[0065] The information configuration module is used to configure the SHELL script configuration information in the database, wherein the SHELL script configuration information includes: SHELL script path and SHELL script parameters.

[0066] In the embodiment of the present invention, the process-oriented language is PROC language;

[0067] The object-oriented language is JAVA.

[0068] In the embodiment of the present invention, the configuration file includes: JAR package path and name, and MAIN method and parameters of JAVA program.

[0069] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Figure 4 As shown, the computer device includes a memory, a processor, a communication interface and a communication bus. A computer program that can be executed on the processor is stored in the memory. When the processor executes the computer program, the steps in the above-mentioned embodiment method are implemented.

[0070] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0071] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.

[0072] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0073] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.

[0074] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.

[0075] To summarize, the present invention completes the adaptation between heterogeneous systems by reading the SHELL script configuration information of the first application system, executing the SHELL script in the first application system written in a procedural language according to the SHELL script configuration information, then reading the configuration file, calling the second application system in the SHELL script according to the configuration file, and finally calling the business function of the second application system in the first application system, thereby enabling the application system to quickly complete the architecture transformation and online business needs within a shorter R&D cycle.

[0076] In addition, the present invention can also be connected to the original PROC-programmed software system through the SIDECAR sidecar mode, which is minimally invasive to the original system and has strong portability. The second application system (i.e., heterogeneous system) is introduced into the first application system written in the PROC language through the SIDECAR sidecar mode, and the script code is embedded as the intermediate connection layer. The application software written in object-oriented languages ​​such as JAVA is called up through the adapter device of the intermediate connection layer, and the application functions of the first application system written in the existing PROC language that need to improve performance and maintainability are transformed in small steps and fast steps.

[0077] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0079] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0081] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A heterogeneous system adaptation method, characterized in that: include: Reading SHELL script configuration information of a first application system, wherein the first application system is an application system written in a process-oriented language; Execute the SHELL script in the first application system written in the process-oriented language according to the SHELL script configuration information; Reading a configuration file, wherein the configuration file includes configuration parameter information for calling a second application system, wherein the second application system is an application system written in an object-oriented language; Calling the second application system in a SHELL script according to a configuration file; Invoke the business function of the second application system in the first application system; wherein the first application system is responsible for the function calling operation, and the business function code is implemented in an object-oriented programming language called by a SHELL script; The process-oriented language is PROC language; The object-oriented language is JAVA.

2. The method according to claim 1, characterized in that Before reading the SHELL script configuration information of the first application system, the method further includes: The SHELL script configuration information is configured in the database, wherein the SHELL script configuration information includes: a SHELL script path and SHELL script parameters.

3. The method according to claim 1, characterized in that The configuration file includes: JAR package path and name, and MAIN method and parameters of JAVA program.

4. A heterogeneous system adaptation device, characterized in that: include: An information reading module, used for reading SHELL script configuration information of a first application system, wherein the first application system is an application system written in a process-oriented language; A script execution module, used for executing a SHELL script in a first application system written in a process-oriented language according to SHELL script configuration information; A configuration file reading module, used to read a configuration file, wherein the configuration file includes configuration parameter information for calling a second application system, wherein the second application system is an application system written in an object-oriented language; An application system calling module, used for calling the second application system in a SHELL script according to a configuration file; A business function calling module, used to call the business function of the second application system in the first application system; wherein the first application system is responsible for the function calling operation, and the business function code is implemented in an object-oriented programming language called by a SHELL script; The process-oriented language is PROC language; The object-oriented language is JAVA.

5. The device according to claim 4, characterized in that The device also includes: The information configuration module is used to configure the SHELL script configuration information in the database, wherein the SHELL script configuration information includes: SHELL script path and SHELL script parameters.

6. The device according to claim 4, characterized in that The configuration file includes: JAR package path and name, and MAIN method and parameters of JAVA program.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 3 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.