CN1251079C - Method for realizing data interaction between different systems - Google Patents

Method for realizing data interaction between different systems Download PDF

Info

Publication number
CN1251079C
CN1251079C CN 02123580 CN02123580A CN1251079C CN 1251079 C CN1251079 C CN 1251079C CN 02123580 CN02123580 CN 02123580 CN 02123580 A CN02123580 A CN 02123580A CN 1251079 C CN1251079 C CN 1251079C
Authority
CN
China
Prior art keywords
interface
client process
command line
result data
interface proxy
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.)
Expired - Fee Related
Application number
CN 02123580
Other languages
Chinese (zh)
Other versions
CN1466051A (en
Inventor
顾光导
吴雪丽
王涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 02123580 priority Critical patent/CN1251079C/en
Publication of CN1466051A publication Critical patent/CN1466051A/en
Application granted granted Critical
Publication of CN1251079C publication Critical patent/CN1251079C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method for realizing data exchange among different systems. A client process needing service and a service process providing service are interacted through interface agency which receives command line parameters and is operated independently, wherein the command line parameters comprise file information appointed to store parameter input and file information appointed to store return result data, or input and output redirection operational characters used for transferring the parameters and the result data. The present invention realizes the communication of a plurality of independently distributed subsystems, simplifies the communication of developers of the subsystems, coordinates and uniforms the work and simplifies the calling process of a remote method. Because the interface agency shields the communication and the interaction of the client process, the change of the subsystems can not influence the client process; therefore, the independence of the subsystems is improved, the flexibility of the whole system is enhanced, and the integral development efficiency and the quality of the whole system are improved.

Description

Realize the method for data interaction between different systems
Technical field:
The present invention relates to a kind of method that realizes data interaction between different systems, be meant a kind of method and data that make things convenient for client process to call service processes especially, the person of simplifying procedures is carried out the workload in the communication between the realization multi-process, improve the development efficiency of loosely connected distributed software system and the interface proxy method of quality.
Background technology:
Between the existing software systems between implementation process the method for communication mainly contain following several:
1, Common Object Request Broker Architecture (CORBA) (Common Object Request BrokerArchitecture, be called for short CORBA)/remote method invocation (RMI) (Remote Method Invocation, be called for short RMI)/remote procedure call (Remote Procedure Calls is called for short RPC);
2, set up communication voluntarily and connect (pipeline or network communication protocol (Transmission ControlProtocol/Internet Protocol is called for short TCP/IP)), use the application protocol of definition voluntarily;
3, share canned data;
4, carry out the message transmission;
Before the Inter-Process Communication mode of the contour abstraction hierarchy of CORBA/RMI/RPC occurs, between the software systems between implementation process the means of communication mainly be aforementioned 2,3,4 several.Use these several modes deep, detailed understanding to be arranged to interaction protocol between the process and communications protocol.The programmer must write a large amount of codes and realize these agreements on this basis.If independently set up the agreement that such communication just means that needs foundation is very many between the complication system at two; Like this, conflict and compromise will occur between the relevant portion of two systems, therefore the independence of system, independence and self-integrality also can be affected.Subsystem for a plurality of isomeries in the large scale system (adopts different language to realize, run on a plurality of systems of different platforms), meaning needs more interchange between each subsystem programmer, these can cause some to be unfavorable for the factor of system stability undoubtedly.
CORBA/RMI/RPC with communication between the highly abstract process has shielded communications protocol and interaction protocol code to the programmer, and the implementation method of multilingual and platform is provided, and has simplified programmer's work, has improved the efficient of exploitation.But simultaneously, these class methods also cause needing to introduce other code in programming process; For example: for CORBA, just must write masterplate, in program, also will add a large amount of relevant management and initialized work simultaneously with IDL (Interface Definition Language) (Interface Definition Language is called for short IDL); In addition, programmer study and the mechanism of understanding CORBA then are that inevitably the interchange between each Systems Programmer, coordination and work in unity still can not reduce effectively.Therefore, for some applications, it is too loaded down with trivial details that the means of communication between the process of these high abstraction hierarchies still seem.
Summary of the invention:
The object of the present invention is to provide a kind of method that realizes data interaction between different systems, make things convenient for client process to call the method and the data of service processes, the person of simplifying procedures is carried out the workload in the communication between the realization multi-process, improve the development efficiency and the quality of loosely connected distributed software system.
The object of the present invention is achieved like this:
A kind of method that realizes data interaction between different systems, with the client process of needs service with provide the service processes of service to be undertaken alternately by interface proxy, this interface proxy reception command line parameter and independent operating.
Described command line parameter comprises at least: specify the fileinfo of depositing the parameter input, the fileinfo that the return results data are deposited in appointment.
Described command line parameter can utilize the I/O redirection operational character to transmit parameter and result data.
Described interface proxy is provided with at least: command line parameter processing module, interface parameters and result data processing module and interface proxy communication interactive module;
This command line parameter processing module is used to receive and handle client process and carries out command line parameter information when mutual with it;
Interface parameters and result data processing module are used for Processing Interface parameter and result data;
Interface proxy communication interactive module is used for carrying out alternately with the communication interactive module of service processes.
Client process carries out mutual concrete grammar by interface proxy and service processes:
Step 1: client process remote activation or local this interface proxy that starts, add command line parameter, simultaneously interface parameters is write in the file of appointment;
Step 2: interface proxy reads in command line parameter, obtains interface parameters by specific mode simultaneously;
Step 3: result data is obtained in interface proxy and service processes communication;
Step 4: interface proxy returns to client process with result data by specific mode and stops;
Step 5: client process is learnt the interface proxy end of run, judges state according to rreturn value;
Step 6: client process reads result data according to this state by the mode of prior appointment;
Step 7: client process enters further work.
The present invention has realized the communication between a plurality of independent distribution subsystems of large scale system, can simplify each subsystem development interactions among persons, coordinates and work in unity, has simplified the invoked procedure of remote method.Because interface proxy has shielded communication and mutual realization to client process, the change of subsystem can not have influence on client process, therefore increased the independence of each system, strengthened the dirigibility of total system, for system with isomerized sub-system, this advantage is particularly outstanding, has improved the whole development efficient and the quality of total system.
Description of drawings:
Fig. 1 is the structural principle synoptic diagram of one embodiment of the invention;
Fig. 2 is the structural representation of the operational system of one embodiment of the invention.
Embodiment:
The present invention is described in further detail below in conjunction with accompanying drawing and specific embodiment:
Referring to Fig. 1, the process that the present invention will need to serve is as client process 1, and the process that service is provided is as service processes 3.Service processes 3 provides corresponding interface agency 2 according to client process 1 needed each interface.
Interface proxy 2 is provided with: command line parameter processing module, interface parameters and result data processing module and interface proxy communication interactive module; The command line parameter processing module is used to receive and handle client process and carries out command line parameter information when mutual with it; Interface parameters and result data processing module are used for Processing Interface parameter and result data; Interface proxy communication interactive module is used for carrying out alternately with the communication interactive module of service processes.
Interface proxy 2 can independently be carried out, and it receives command line parameter.This command line parameter is specified the file of depositing the parameter input, specifies the file of depositing the return results data simultaneously.In addition, command line parameter also can utilize the I/O redirection operational character to transmit parameter and result data, thereby avoids disk access.
Interface proxy 2 is except the command line parameter of unanimity is handled, the interface parameters input handles and the interface result exports the processing, other parts are owing to be fully transparent for client process, therefore, can be according to the characteristics and the needs of service processes method, system, random customizing communication protocol and exchange method, reach and combine closely, highly effective and safe, the purpose of self-organizing system.For example, the service processes method, system adopts the JAVA language compilation, and then interface proxy also can be write with JAVA, and can adopt RMI to realize communication and mutual, and these then shield fully for client process.
Client process 1 uses interface proxy 2 very convenient.Client process 1 can start or local this interface proxy 2 that starts at the program medium-long range, and adds command line parameter, simultaneously interface parameters is write in the file of appointment by agreement.Interface proxy 2 processes are read in command line parameter, obtain interface parameters by specific mode simultaneously, obtain result data with service processes 3 communications then, and result data is returned to client process 1 and termination by specific mode.Client process 1 is learnt interface proxy 2 end of runs, judges state according to rreturn value, success or failure.Read result data according to this state by the mode of prior own appointment, enter further work then, thereby finish whole interface interchange.
Referring to Fig. 2, for example: in a large-scale information management system, each subsystem provides management information and means to centralized management system, can be considered the ISP, i.e. service processes.And centralized management system utilizes the service of each subsystem to realize the function of its centralized management.Because in the realization, for example, because hsrdware requirements, the hardware monitoring ADMINISTRATION SUBSYSTEM realizes with the C language, and centralized management system is because the needs of multi-platform target use the JAVA language to realize.For quickening progress and efficient, reduce the complexity of centralized management system, can adopt interface proxy of the present invention.
With the hardware monitoring ADMINISTRATION SUBSYSTEM is example, submits interface requirements and data standard to by the centralized management system development group, and the hardware monitoring ADMINISTRATION SUBSYSTEM can only be developed the corresponding interface proxy of each interface requirements alternately with service processes.
For example: obtain in the interface at hardware information:
Interface proxy and hardware monitoring ADMINISTRATION SUBSYSTEM adopt Simple Network Management Protocol (SimpleNetwork Management Protocol is called for short the SNMP communications protocol), and the hardware monitoring ADMINISTRATION SUBSYSTEM is SNMP agency (Agent).Interface proxy adopts the C language to realize that operation platform is WINDOWS.
Use is as follows:
This interface proxy (this interface proxy is an executable program GetHardwareInfo.exe) is called in centralized management system this locality in program, its call instruction behavior:
GetHardwareInfo.exe-in=all-out=2345.xml;
Wherein :-in=all and-out=2345.xml is command line parameter;
After interface proxy (GetHardwareInfo.exe) starts, reading order line parameter-in=all and-out=2345.xml, learn and need obtain all hardware information;
Interface proxy (GetHardwareInfo.exe) obtains management information bank in the hardware monitoring ADMINISTRATION SUBSYSTEM by snmp protocol, and (Management Information Base is called for short: the hardware information MIB);
Interface proxy (GetHardwareInfo.exe) deposits result data file 2345.xml in and returns exit status;
Centralized management system is checked the exit status of interface proxy (Get HardwareInfo.exe);
If this exit status is normal, then read file 2345.xml, obtain relevant hardware information;
Interface interchange finishes.
It should be noted last that: above embodiment only in order to the explanation the present invention and and unrestricted technical scheme described in the invention; Therefore, although this instructions has been described in detail the present invention with reference to each above-mentioned embodiment,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (3)

1, a kind of method that realizes data interaction between different systems, this method are needing to realize the mutual of client process of serving and the service processes that service is provided by interface proxy; Described interface proxy is provided with: command line parameter processing module, interface parameters and result data processing module and interface proxy communication interactive module; Described command line parameter processing module is used to receive and handle client process and carries out command line parameter information when mutual with it; Described interface parameters and result data processing module are used for Processing Interface parameter and result data; Described interface proxy communication interactive module is used for carrying out alternately with the communication interactive module of service processes, and it is characterized in that: the reciprocal process of described client process and service processes specifically may further comprise the steps:
Step 1: client process remote activation or local this interface proxy that starts, add command line parameter, simultaneously interface parameters is write in the file of appointment;
Step 2: interface proxy reads in command line parameter, obtains interface parameters by specific mode simultaneously;
Step 3: result data is obtained in interface proxy and service processes communication,
Step 4: interface proxy returns to client process with result data by specific mode and stops;
Step 5: client process is learnt the interface proxy end of run, judges state according to rreturn value;
Step 6: client process reads result data according to this state by the mode of prior appointment;
Step 7: client process enters further work.
2, the method for realization data interaction between different systems according to claim 1 is characterized in that: described command line parameter comprises: specify the fileinfo of depositing the parameter input, the fileinfo that the return results data are deposited in appointment.
3, the method for realization data interaction between different systems according to claim 1 is characterized in that: described command line parameter utilizes the I/O redirection operational character to transmit parameter and result data.
CN 02123580 2002-07-03 2002-07-03 Method for realizing data interaction between different systems Expired - Fee Related CN1251079C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02123580 CN1251079C (en) 2002-07-03 2002-07-03 Method for realizing data interaction between different systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02123580 CN1251079C (en) 2002-07-03 2002-07-03 Method for realizing data interaction between different systems

Publications (2)

Publication Number Publication Date
CN1466051A CN1466051A (en) 2004-01-07
CN1251079C true CN1251079C (en) 2006-04-12

Family

ID=34142384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02123580 Expired - Fee Related CN1251079C (en) 2002-07-03 2002-07-03 Method for realizing data interaction between different systems

Country Status (1)

Country Link
CN (1) CN1251079C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4717426B2 (en) * 2004-12-07 2011-07-06 キヤノン株式会社 Information processing apparatus and method
CN101360060B (en) * 2008-09-18 2011-05-11 中兴通讯股份有限公司 Processing unit implementing inter-system data interaction, data transmitting/receiving method
CN101739300A (en) * 2008-11-18 2010-06-16 中兴通讯股份有限公司 Method and system for inter-process communication of multimedia terminal
CN101655806B (en) * 2009-09-25 2012-05-23 马丰文 Interaction method of software system build-in component data
CN101706901B (en) * 2009-12-01 2012-07-25 中国建设银行股份有限公司 Device and method for realizing shielding of different working flow products
CN103365715A (en) * 2013-06-17 2013-10-23 广东电网公司电力调度控制中心 Method and system for quickly calling BPA transient calculation program
CN107301137A (en) * 2017-07-04 2017-10-27 福建中金在线信息科技有限公司 RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
CN109426571B (en) * 2017-08-28 2022-05-13 阿里巴巴集团控股有限公司 Method, system, storage medium, processor and apparatus for function call and data access

Also Published As

Publication number Publication date
CN1466051A (en) 2004-01-07

Similar Documents

Publication Publication Date Title
KR100253930B1 (en) Dynamic eaecution unit management for high performance user level network protocol server system
US7428728B2 (en) Interface definition language compiler
US5724512A (en) Methods and apparatus for storage and retrieval of name space information in a distributed computing system
US6542920B1 (en) Mechanism for implementing multiple thread pools in a computer system to optimize system performance
US6529936B1 (en) Object-oriented web server architecture suitable for various types of devices
US6978447B1 (en) Method and system for efficiently interpreting a computer program
EP1204259A2 (en) Data management framework for policy management
CN1306430C (en) User self-defining event mechanism based on structure
CN1159631A (en) Method and device for calling the method of treating different agreement in user/servicer computer system
CN1791037A (en) Method for realizing Web service automatic test
CN1645321A (en) Apparatus and method for managing and transporting virtual disks over a network to networked stations
CN1251079C (en) Method for realizing data interaction between different systems
US6516354B2 (en) Method and apparatus for efficient representation of variable length identifiers in a distributed object system
CN1577277A (en) Managing program applications
CN1270229C (en) Method of realizing cross address space establishing construction member target based on dynamic core
CN1208481A (en) Distributed processing
CN1929463A (en) Object request broker, method and device for providing resource high-efficiency transmission
CN1863051A (en) Application managing sub-system in multi-node intelligent network application service system and method
CN1592887A (en) A mobile communications device application processing system
CN1449157A (en) Network management system and method
CN1271541C (en) Machine group management system and its information processing method
CN1471018A (en) Universal interface machine system and method for realising same
CN1304982C (en) Shared internal storage service mechanism for network service guide application
CN113448691B (en) Interaction method and device for front-end JavaScript and local Java application
CN1267823C (en) Member connecting method in operating system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060412

Termination date: 20200703