CN112799715A - Heterogeneous system adaptation method and device - Google Patents

Heterogeneous system adaptation method and device Download PDF

Info

Publication number
CN112799715A
CN112799715A CN202110119511.5A CN202110119511A CN112799715A CN 112799715 A CN112799715 A CN 112799715A CN 202110119511 A CN202110119511 A CN 202110119511A CN 112799715 A CN112799715 A CN 112799715A
Authority
CN
China
Prior art keywords
application system
shell script
language
configuration file
calling
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.)
Pending
Application number
CN202110119511.5A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110119511.5A priority Critical patent/CN112799715A/en
Publication of CN112799715A publication Critical patent/CN112799715A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a heterogeneous system adaptation method and a heterogeneous system adaptation device, wherein the method comprises the following steps: 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; executing the SHELL script in a first application system written in a process-oriented language according to the SHELL script configuration information; reading a configuration file, wherein the configuration file comprises configuration parameter information for calling a second application system, and 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; a business function of the second application system is invoked in the first application system. The invention can complete the adaptation between heterogeneous systems, thereby enabling the application system to quickly complete the framework transformation and online service requirements in a shorter research and development period.

Description

Heterogeneous system adaptation method and device
Technical Field
The invention relates to the technical field of computers, in particular to a heterogeneous system adaptation method and device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
With the popularization and development of a new generation of object-oriented programming language, the architecture transformation of the application system written by the traditional process-oriented programming language is also developed under the condition that the increasing demands of user pressure on performance capacity and high availability and the soft maintainability of stock application are increasingly reduced. However, in the transformation process, part of the traditional huge stone applications have the pressure of stable production and operation and huge workload of writing new codes in million-level stock, so that the requirements of framework transformation and online business cannot be quickly completed in a short research and development period. However, in the prior art, no method capable of solving the problem of adaptation between heterogeneous systems exists at present.
Disclosure of Invention
The embodiment of the invention provides a heterogeneous system adaptation method, which is used for completing adaptation among heterogeneous systems so as to enable an application system to quickly complete framework transformation and online service requirements in a shorter research and development period, and comprises the following steps:
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;
executing the SHELL script in a first application system written in a process-oriented language according to the SHELL script configuration information;
reading a configuration file, wherein the configuration file comprises configuration parameter information for calling a second application system, and 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;
and calling the service function of the second application system in the first application system.
Optionally, before reading the SHELL script configuration information of the first application system, the method further includes:
configuring SHELL script configuration information in a database, wherein the SHELL script configuration information comprises: a SHELL script path and a SHELL script parameter.
Optionally, the process-oriented language is a PROC language;
the object-oriented language is JAVA language.
Optionally, the configuration file includes: JAR packet path and name, and MAIN method and parameters of JAVA program.
The embodiment of the present invention further provides an adaptation device for heterogeneous systems, which is used to complete adaptation between heterogeneous systems, so that an application system can quickly complete framework transformation and online service requirements in a shorter research and development period, and the device includes:
the information reading module is used for reading SHELL script configuration information of a first application system, wherein the first application system is an application system written facing a process language;
the script execution module is used for executing the SHELL script in a first application system written in a process-oriented language according to the SHELL script configuration information;
the configuration file reading module is used for reading a configuration file, the configuration file comprises configuration parameter information used for calling a second application system, and the second application system is an application system written in an object-oriented language;
the application system calling module is used for calling the second application system in the SHELL script according to the configuration file;
and the service function calling module is used for calling the service function of the second application system in the first application system.
Optionally, the apparatus further comprises:
an information configuration module, configured to configure SHELL script configuration information in a database, where the SHELL script configuration information includes: a SHELL script path and a SHELL script parameter.
Optionally, the process-oriented language is a PROC language;
the object-oriented language is JAVA language.
Optionally, the configuration file includes: JAR packet path and name, and MAIN method and parameters of JAVA program.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the above method is stored.
In the embodiment of the invention, the SHELL script configuration information of the first application system is read, the SHELL script is executed in the first application system written in the process-oriented language according to the SHELL script configuration information, the configuration file is read, the second application system is called in the SHELL script according to the configuration file, and finally, the service function of the second application system is called in the first application system, so that the adaptation among heterogeneous systems can be completed, and the application system can quickly complete the framework transformation and online service requirements in a short research and development period.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart of a heterogeneous system adaptation method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an adaptation apparatus for a heterogeneous system according to an embodiment of the present invention;
fig. 3 is a diagram illustrating an exemplary adaptation method for a heterogeneous system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
With the popularization and development of a new generation of object-oriented programming language, the architecture transformation of the application system written by the traditional process-oriented programming language is also developed under the condition that the increasing demands of user pressure on performance capacity and high availability and the soft maintainability of stock application are increasingly reduced. However, in the transformation process, part of the traditional huge stone applications have the pressure of stable production and operation and huge workload of writing new codes in million-level stock, so that the requirements of framework transformation and online business cannot be quickly completed in a short research and development period. However, in the prior art, no method capable of solving the problem of adaptation between heterogeneous systems exists at present.
Fig. 1 is a flowchart of a method for adapting a heterogeneous system according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step 101, 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.
In an embodiment, the first application system may be a client application system, an external application system, or the like. The procedure-oriented language may be the PROC language. The PROC is a special development tool for application programs provided by Oracle, takes C language as host language, and can embed SQL sentences in the C program to perform database operation. The SHELL script configuration information includes: a SHELL script path and a SHELL script parameter.
And 102, executing the SHELL script in the first application system written in the process-oriented language according to the SHELL script configuration information.
Step 103, reading a configuration file, wherein the configuration file comprises configuration parameter information for calling a second application system, and the second application system is an application system written in an object-oriented language.
In an embodiment, the second application system may be a client application system, an external application system, or the like. The object oriented language may be JAVA language. The configuration file includes: JAR packet path and name, and MAIN method and parameters of JAVA program.
And 104, calling the second application system in the SHELL script according to the configuration file.
Step 105, calling a service function of the second application system in the first application system.
The heterogeneous system adaptation method provided by the embodiment of the invention can complete adaptation among 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 the process-oriented language according to the SHELL script configuration information, reading the configuration file, calling the second application system in the SHELL script according to the configuration file, and finally calling the service function of the second application system in the first application system, so that the application system can quickly complete framework transformation and online service requirements in a short development period.
Further, before reading the SHELL script configuration information of the first application system, the method further includes:
configuring SHELL script configuration information in a database, wherein the SHELL script configuration information comprises: a SHELL script path and a SHELL script parameter.
During specific implementation, the method and the system configure the SHELL script code path and the corresponding SHELL script code in the database by calling the SHELL script code path in the first application system, so that the first application system is only responsible for function calling operation, and the detailed service function code is realized by an object-oriented programming language called by the SHELL script.
Taking the PROC language as the procedure-oriented language and the JAVA language as the example, when the SHELL script calls the JAVA program, reading the JAVA package path and name of the JAVA program and the MAIN method and parameters of the JAVA program which are set in the configuration file through the JAVA program running environment installed in the application system deployment environment written in the PROC language.
The invention is illustrated below by a specific embodiment, as shown in fig. 3:
step 301, starting a first application system written in the PROC language.
Step 302, loading SHELL script configuration information.
Step 303, invoking the SHELL script in the first application system according to the SHELL script configuration information.
And step 304, reading a JAR packet path and name of the JAVA program and a MAIN method and parameters of the JAVA program which are set in the configuration file.
And 305, executing the JAVA program in the configuration file in the SHELL step according to the configuration file.
And step 306, calling the service function written by the second application system in the first application system written by the PROC language.
In specific implementation, the software system can be butted with the original PROC programming software system through a SIDECAR SIDECAR mode, so that the intrusion on the original system is extremely small, and the portability is strong.
Based on the same inventive concept, an embodiment of the present invention further provides an adaptation apparatus for a heterogeneous system, as described in the following embodiments. Since the principle of the heterogeneous system adaptation device for solving the problem is similar to that of the heterogeneous system adaptation method, the heterogeneous system adaptation device can be implemented by referring to the implementation of the heterogeneous system adaptation method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a schematic structural diagram of an adaptation apparatus for a heterogeneous system according to an embodiment of the present invention, as shown in fig. 2, the apparatus includes:
an information reading module 201, configured to read SHELL script configuration information of a first application system, where the first application system is an application system written in a process-oriented language;
the script execution module 202 is used for executing the SHELL script in the first application system written in the process-oriented language according to the SHELL script configuration information;
a configuration file reading module 203, configured to read a configuration file, where the configuration file includes configuration parameter information for invoking a second application system, and the second application system is an application system written in an object-oriented language;
an application system calling module 204, configured to call the second application system in the SHELL script according to the configuration file;
a service function calling module 205, configured to call a service function of the second application system in the first application system.
In an embodiment of the present invention, the apparatus further includes:
an information configuration module, configured to configure SHELL script configuration information in a database, where the SHELL script configuration information includes: a SHELL script path and a SHELL script parameter.
In the embodiment of the invention, the procedure-oriented language is a PROC language;
the object-oriented language is JAVA language.
In an embodiment of the present invention, the configuration file includes: JAR packet path and name, and MAIN method and parameters of JAVA program.
To achieve the above object, according to another aspect of the present application, there is also provided a computer apparatus. As shown in fig. 4, the computer device comprises a memory, a processor, a communication interface and a communication bus, wherein a computer program that can be run on the processor is stored in the memory, and the steps of the method of the above embodiment are realized when the processor executes the computer program.
The processor may be a Central Processing Unit (CPU). The Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and units, such as the corresponding program units in the above-described method embodiments of the present invention. The processor executes various functional applications of the processor and the processing of the work data by executing the non-transitory software programs, instructions and modules stored in the memory, that is, the method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more units are stored in the memory and when executed by the processor perform the method of the above embodiments.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the above method is stored.
In summary, the present invention reads the SHELL script configuration information of the first application system, executes the SHELL script in the first application system written in the process-oriented language according to the SHELL script configuration information, reads the configuration file, calls the second application system in the SHELL script according to the configuration file, and finally calls the service function of the second application system in the first application system, so as to complete the adaptation between heterogeneous systems, thereby enabling the application system to quickly complete the architecture transformation and online service requirements in a short development cycle.
In addition, the invention can also be butted with the original PROC programmed software system through a SIDECAR SIDECAR mode, has little invasion to the original system and has stronger portability. A second application system (namely an isomeric system) is introduced into a first application system written in a PROC language through a SIDARs side car mode, a script code is embedded to serve as an intermediate connection layer, application software written by a face object language such as JAVA is called through an adapter device of the intermediate connection layer, and the first application system written in the PROC language at present needs to carry out architecture transformation of small-step fast walking on application functions of performance and maintainability.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A heterogeneous system adaptation method, comprising:
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;
executing the SHELL script in a first application system written in a process-oriented language according to the SHELL script configuration information;
reading a configuration file, wherein the configuration file comprises configuration parameter information for calling a second application system, and 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;
and calling the service function of the second application system in the first application system.
2. The method of claim 1, wherein prior to reading the SHELL script configuration information for the first application system, the method further comprises:
configuring SHELL script configuration information in a database, wherein the SHELL script configuration information comprises: a SHELL script path and a SHELL script parameter.
3. The method of claim 1, wherein the procedure-oriented language is a PROC language;
the object-oriented language is JAVA language.
4. The method of claim 3, wherein the configuration file comprises: JAR packet path and name, and MAIN method and parameters of JAVA program.
5. An apparatus for adapting a heterogeneous system, comprising:
the information reading module is used for reading SHELL script configuration information of a first application system, wherein the first application system is an application system written facing a process language;
the script execution module is used for executing the SHELL script in a first application system written in a process-oriented language according to the SHELL script configuration information;
the configuration file reading module is used for reading a configuration file, the configuration file comprises configuration parameter information used for calling a second application system, and the second application system is an application system written in an object-oriented language;
the application system calling module is used for calling the second application system in the SHELL script according to the configuration file;
and the service function calling module is used for calling the service function of the second application system in the first application system.
6. The apparatus of claim 5, wherein the apparatus further comprises:
an information configuration module, configured to configure SHELL script configuration information in a database, where the SHELL script configuration information includes: a SHELL script path and a SHELL script parameter.
7. The apparatus of claim 5, wherein the procedure-oriented language is a PROC language;
the object-oriented language is JAVA language.
8. The apparatus of claim 7, wherein the configuration file comprises: JAR packet path and name, and MAIN method and parameters of JAVA program.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202110119511.5A 2021-01-28 2021-01-28 Heterogeneous system adaptation method and device Pending CN112799715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110119511.5A CN112799715A (en) 2021-01-28 2021-01-28 Heterogeneous system adaptation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110119511.5A CN112799715A (en) 2021-01-28 2021-01-28 Heterogeneous system adaptation method and device

Publications (1)

Publication Number Publication Date
CN112799715A true CN112799715A (en) 2021-05-14

Family

ID=75812532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110119511.5A Pending CN112799715A (en) 2021-01-28 2021-01-28 Heterogeneous system adaptation method and device

Country Status (1)

Country Link
CN (1) CN112799715A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060200808A1 (en) * 2005-03-02 2006-09-07 Cisco Technology, Inc. System and method providing for interaction between programming languages
US20130061205A1 (en) * 2011-09-07 2013-03-07 International Business Machines Corporation Automated generation of bridging code to augment a legacy application using an object-oriented language
CN104423986A (en) * 2013-09-02 2015-03-18 北京亿阳信通科技有限公司 Method and device for embedding script into application system
CN109799980A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Method, apparatus and computer equipment based on the more programming language interconnection of data processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060200808A1 (en) * 2005-03-02 2006-09-07 Cisco Technology, Inc. System and method providing for interaction between programming languages
US20130061205A1 (en) * 2011-09-07 2013-03-07 International Business Machines Corporation Automated generation of bridging code to augment a legacy application using an object-oriented language
CN104423986A (en) * 2013-09-02 2015-03-18 北京亿阳信通科技有限公司 Method and device for embedding script into application system
CN109799980A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Method, apparatus and computer equipment based on the more programming language interconnection of data processing

Similar Documents

Publication Publication Date Title
WO2018137564A1 (en) Service processing method and apparatus
CN110704037B (en) Rule engine implementation method and device
CN110673853B (en) Compiling method, device and system
CN110401700B (en) Model loading method and system, control node and execution node
TWI715762B (en) Method and apparatus for creating virtual machine
US11699073B2 (en) Network off-line model processing method, artificial intelligence processing device and related products
CN112463123A (en) Task compiling method, device, network node, system and storage medium
CN107222363B (en) Storage protocol consistency test method and system
TW202403541A (en) System, method and device for introducing applet into third-party APP and medium
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN103488517A (en) PHP code compiling method and device and PHP code running method and device
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN113987337A (en) Search method, system, equipment and storage medium based on componentized dynamic arrangement
CN113485840A (en) Multi-task parallel processing device and method based on Go language
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN112799715A (en) Heterogeneous system adaptation method and device
CN112579212A (en) Cross-language calling method, calling party device and called party device
US11429358B2 (en) Representing asynchronous state machine in intermediate code
CN113835904A (en) Remote procedure call control method, device, equipment and storage medium
CN114925120A (en) Insurance business information query method and related equipment
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
CN114510334A (en) Class instance calling method and device, electronic equipment and automatic driving vehicle
CN113849287A (en) Processing method and device of algorithm service, electronic equipment and storage medium
CN112650502A (en) Batch processing task processing method and device, computer equipment and storage medium
CN112612474A (en) Product transplanting method and device, storage medium and electronic equipment

Legal Events

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