CN107656817A - The method and device carried out data transmission between program - Google Patents
The method and device carried out data transmission between program Download PDFInfo
- Publication number
- CN107656817A CN107656817A CN201610590199.7A CN201610590199A CN107656817A CN 107656817 A CN107656817 A CN 107656817A CN 201610590199 A CN201610590199 A CN 201610590199A CN 107656817 A CN107656817 A CN 107656817A
- Authority
- CN
- China
- Prior art keywords
- data
- program
- intermediate data
- data transmission
- carried out
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 154
- 238000000034 method Methods 0.000 title claims abstract description 101
- 238000003860 storage Methods 0.000 claims abstract description 67
- 238000013500 data storage Methods 0.000 claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 25
- 108010001267 Protein Subunits Proteins 0.000 claims description 6
- 238000007726 management method Methods 0.000 abstract description 6
- 238000012423 maintenance Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000000605 extraction Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging middleware
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The method carried out data transmission between a kind of program of disclosure, including:Receive the storage request that preposition program is sent;The preposition program refers to be performed in unison with the suite of data transmission and processing in the side first carried out;By the intermediate data storage included in the storage request into default intermediate database;Receive the read requests that rearmounted program is sent;The rearmounted program refers in described program combination in a side of rear execution;According to the Data Identification included in the read requests, intermediate data corresponding to the Data Identification is searched in the intermediate database;Read the intermediate data found and sent to the rearmounted program.The application of this method is wider, and intermediate data is managed and safeguarded without preposition program and rearmounted program, reduces overhead, and it is convenient that the management and maintenance for preposition program and rearmounted program provide.
Description
Technical field
The application is related to technical field of data transmission, and in particular to a kind of method carried out data transmission between program.This Shen
Please it is related to the device carried out data transmission between a kind of program, the data transmission method based on preposition program and device, base simultaneously
In the data transmission method and device of rearmounted program.
Background technology
In Linux/Windows environment, exist and need to use multiple application programs to carry out data in combination
Transmission process, so as to realize the demand of user, the combination of multiple application programs is during collaborative work, multiple application programs
Between intermediate data be present and need to transmit.Wherein, carry out data transmission processing multiple application programs combination in, according to should
The sequencing being performed with program, preposition application program is referred to as in the application program first carried out, in the application of rear execution
Program is referred to as rearmounted application program.For intermediate data, the provider of generation intermediate data, i.e., preposition application be present
Program, and obtain the reading side of intermediate data, i.e., rearmounted application program, caused intermediate data is by provider between application program
After output, reading side is input to.
The method carried out data transmission between existing program, mainly it is transmitted by following two modes:
1) under Linux environment, for single-pass data stream, i.e., preposition application program and rearmounted application program " one-to-one "
Data path, as shown in Figure 1, the pipeline designator " | " provided by Linux, by preposition application program according to standard output
The intermediate data of output is flowed, imports rearmounted application program according to standard inlet flow, rearmounted application program is read in standard inlet flow
Intermediate data, for reading intermediate data carry out format analysis after extraction needed for intermediate data, utilize the mediant of extraction
Data transmission and processing is performed according in rearmounted application program.
2) data path of multiplex data stream, i.e., preposition application program and rearmounted application program " many-one " is directed to, it is such as attached
Shown in Fig. 2, the transmission of intermediate data is carried out by intermediate data file, preposition application program writes its caused intermediate data
Specific intermediate data file;Rearmounted application program by reading the intermediate data write in the intermediate data file, for
The intermediate data of reading carries out intermediate data needed for extraction after format analysis, using the intermediate data of extraction in rearmounted application program
Perform data transmission and processing.
The defects of obvious be present in the method carried out data transmission between the program that above-mentioned prior art provides.
, following defect be present in the method carried out data transmission between the program that prior art provides:
1) when carrying out the transmission of intermediate data using pipeline designator " | " mode, it is only used in single-pass data stream middle
The transmission of data, application are narrow;
2), it is necessary to which extra intermediate data file is read and write when carrying out the transmission of intermediate data using intermediate data file mode
Handle expense, and the storage overhead of intermediate data file;In addition, when intermediate data file needs to delete after usage, need
Want extra deletion action expense;
3) biography of intermediate data no matter is carried out using pipeline designator " | " mode or using intermediate data file mode
Defeated, rearmounted application program is required to carry out format analysis to intermediate data, can obtain required intermediate data, need also exist for
Extra processing expense;In addition, during the transmission of underway data, needed between preposition application program and rearmounted application program
Unified data format is followed, the management and maintenance to preposition application program and rearmounted application program bring puzzlement.
The content of the invention
The application provides a kind of method carried out data transmission between program, to solve application existing for prior art
Narrow, the problem of needing overhead and management service difficulty big.
The application is related to the device carried out data transmission between a kind of program, the data transmission method based on preposition program simultaneously
And device, data transmission method and device based on rearmounted program.
The application provides a kind of method carried out data transmission between program, including:
Receive the storage request that preposition program is sent;The preposition program refers to the program for being performed in unison with data transmission and processing
In the side first carried out in combination;
By the intermediate data storage included in the storage request into default intermediate database;
Receive the read requests that rearmounted program is sent;The rearmounted program refers in described program combination the one of rear execution
Side;
According to the Data Identification included in the read requests, the Data Identification pair is searched in the intermediate database
The intermediate data answered;
Read the intermediate data found and sent to the rearmounted program.
Optionally, described program combination is sorted according to order of the data transmission and processing after arriving first is performed.
Optionally, described program combination includes:
It is performed in unison with least two programs of data transmission and processing.
Optionally, the intermediate data is provided with unique corresponding Data Identification.
Optionally, each self-corresponding data mark of intermediate data of the preposition program output is included in the storage request
Know.
Optionally, it is described to walk the intermediate data storage included in the storage request into default intermediate database
Suddenly, including:
The intermediate data of the preposition program output is sent to the intermediate database;
By the intermediate data storage of the preposition program output in the tables of data of the intermediate database.
Optionally, it is described according to the Data Identification included in the read requests, institute is searched in the intermediate database
Intermediate data step corresponding to Data Identification is stated, including:
The Data Identification included in the read requests is sent to the intermediate database;
According to the Data Identification, searched in the tables of data of the intermediate database among corresponding to the Data Identification
Data.
Optionally, the intermediate data is stored in a manner of Key-Value in the tables of data of the intermediate database.
Optionally, the Key is the Data Identification, and the Value is intermediate data corresponding to the Data Identification.
Optionally, it is described read the intermediate data that finds and performed to the rearmounted program forwarding step after, perform
Following step:
Delete intermediate data corresponding to Data Identification described in the intermediate database.
The application provides the device carried out data transmission between a kind of program in addition, including:
Request reception unit is stored, the storage request sent for receiving preposition program;The preposition program refers to cooperate with
Perform in the suite of data transmission and processing in the side first carried out;
Intermediate data storage unit, for the intermediate data storage included in request described will to be stored to default mediant
According in storehouse;
Read requests receiving unit, the read requests sent for receiving rearmounted program;The rearmounted program refers to described
In a side of rear execution in suite;
Intermediate data searching unit, for according to the Data Identification included in the read requests, in the intermediate data
Intermediate data corresponding to the Data Identification is searched in storehouse;
Intermediate data reads transmitting element, for reading the intermediate data found and being sent to the rearmounted program.
Optionally, the intermediate data is provided with unique corresponding Data Identification.
Optionally, each self-corresponding data mark of intermediate data of the preposition program output is included in the storage request
Know.
Optionally, the intermediate data storage unit, including:
Intermediate data transmission sub-unit, for the intermediate data of the preposition program output to be sent to the intermediate data
Storehouse;
Intermediate data storage subelement, for by the intermediate data storage of the preposition program output in the intermediate data
In the tables of data in storehouse.
Optionally, the intermediate data searching unit, including:
Data Identification transmission sub-unit, for the Data Identification included in the read requests to be sent to the mediant
According to storehouse;
Intermediate data searches subelement, for according to the Data Identification, being looked into the tables of data of the intermediate database
Look for intermediate data corresponding to the Data Identification.
Optionally, the device carried out data transmission between described program, including:
Intermediate data deletes unit, for deleting intermediate data corresponding to Data Identification described in the intermediate database.
The application also provides a kind of data transmission method based on preposition program, including:
Call default data memory interface;
Storage request is sent to the client by the data memory interface;
Wherein, intermediate data to be output is included in the storage request.
Optionally, the intermediate data each unique corresponding Data Identification is included in the storage request.
The application also provides a kind of data transmission device based on preposition program, including:
Data memory interface call unit, for calling default data memory interface;
Request transmitting unit is stored, for sending storage request to the client by the data memory interface;
Wherein, intermediate data to be output is included in the storage request.
Optionally, the intermediate data each unique corresponding Data Identification is included in the storage request.
The application also provides a kind of data transmission method based on rearmounted program, including:
Determine Data Identification corresponding to intermediate data to be read;
By calling default digital independent interface, read requests are sent to the client;
Receive intermediate data corresponding to the Data Identification that the client is sent;
Wherein, Data Identification corresponding to intermediate data to be read is included in the read requests.
Optionally, there is one-to-one relationship between the intermediate data and the Data Identification.
The application also provides a kind of data transmission device based on rearmounted program, including:
Data Identification determining unit, for determining Data Identification corresponding to intermediate data to be read;
Read requests transmitting element, for by calling default digital independent interface, sending and reading to the client
Request;
Intermediate data receiving unit, intermediate data corresponding to the Data Identification sent for receiving the client;
Wherein, each self-corresponding Data Identification of intermediate data to be read is included in the read requests.
Optionally, there is one-to-one relationship between the intermediate data and the Data Identification.
Compared with prior art, the application has advantages below:
The method carried out data transmission between the program that the application provides, including:Receive the storage request that preposition program is sent;
The preposition program refers to be performed in unison with the suite of data transmission and processing in the side first carried out;The storage is asked
In the intermediate data storage that includes into default intermediate database;Receive the read requests that rearmounted program is sent;It is described rearmounted
Program refers in described program combination in a side of rear execution;According to the Data Identification included in the read requests, described
Intermediate data corresponding to the Data Identification is searched in intermediate database;Read the intermediate data that finds and to the rearmounted journey
Sequence is sent.
The method carried out data transmission between described program, for the intermediate data of preposition program output, come from by receiving
The storage request of preposition program, by the intermediate data storage included in the storage request into the intermediate database;For
Intermediate data needed for the rearmounted program, please according to the reading by receiving the read requests from the rearmounted program
The Data Identification included in asking, intermediate data corresponding to the Data Identification is searched in the intermediate database, read and search
The intermediate data that arrives simultaneously is sent to the rearmounted program.The method carried out data transmission between described program, available for one or
Multiple preposition programs carry out the scene of intermediate data transmission to one or more rearmounted program, and application is wider;In in addition,
Between data be managed collectively and safeguarded by intermediate database, pipe is carried out to intermediate data without preposition program and rearmounted program
Reason, reduces overhead;Simultaneously data format is carried out without the transmission of preposition program and rearmounted program pin to intermediate data
Agreement, it is convenient that management and maintenance for preposition program and rearmounted program provide.
Brief description of the drawings
A kind of schematic diagram for data transmission path that the application of accompanying drawing 1 provides;
The schematic diagram for another data transmission path that the application of accompanying drawing 2 provides;
Accompanying drawing 3 is the process chart of embodiment of the method carried out data transmission between a kind of program that the application provides;
Accompanying drawing 4 is the schematic diagram of device embodiment carried out data transmission between a kind of program that the application provides;
Accompanying drawing 5 is a kind of process chart for data transmission method embodiment based on preposition program that the application provides;
Accompanying drawing 6 is a kind of schematic diagram for data transmission device embodiment based on preposition program that the application provides;
Accompanying drawing 7 is a kind of process chart for data transmission method embodiment based on rearmounted program that the application provides;
Accompanying drawing 8 is a kind of schematic diagram for data transmission device embodiment based on rearmounted program that the application provides.
Embodiment
Many details are elaborated in the following description in order to fully understand the application.But the application can be with
Much it is different from other modes described here to implement, those skilled in the art can be in the situation without prejudice to the application intension
Under do similar popularization, therefore the application is not limited by following public specific implementation.
The application provides a kind of method carried out data transmission between program, and the application carries out data between also providing a kind of program
The device of transmission, the data transmission method based on preposition program and device, the data transmission method based on rearmounted program and
Device.The accompanying drawing of the embodiment provided below in conjunction with the application is described in detail one by one, and to each step of method
Suddenly illustrate.
The embodiment of the method carried out data transmission between a kind of program that the application provides is as follows:
Referring to the drawings 3, it illustrates the place of the embodiment of the method carried out data transmission between a kind of program of the application offer
Flow chart is managed, the relation between each step of the embodiment of the method carried out data transmission between described program is please 3 true with reference to the accompanying drawings
It is fixed.
Step S301, receive the storage request that preposition program is sent.
In Linux/Windows environment, during multiple program collaborations carry out data transmission processing, deposited between program
Need to transmit in intermediate data, by producing in the program first carried out and exporting intermediate data, according to practical business demand, mediant
Inputted according to the program in rear execution.The complete transmitting procedure of intermediate data one is related to preposition program, rearmounted program and client
End, can be divided into three phases:Second stage was client storage and read by preposition program transportation to client first stage
Process, the phase III is by client transmissions to rearmounted program.
The method carried out data transmission between the described program that the application provides, refer to the second of above-mentioned intermediate data transmission
The process that stage, i.e. client store and read.The mediant for specifically being sent program receive, preposition by client
According to being stored in default intermediate database, and according to practical business demand, when rearmounted program needs to read intermediate data,
Read requests are sent to client, corresponding intermediate data is read from intermediate database by client and is sent to rearmounted program.
Preposition program described in the embodiment of the present application, refer to be performed in unison with first carrying out in the suite of data transmission and processing
A side.For example, multiple be performed in unison with the application combination of data transmission and processing, first carrying out answering for data transmission and processing
Use program.The rearmounted program, refer in described program combination in a side of rear execution.For example, multiple be performed in unison with data biography
In the application combination of defeated processing, the application program that is performed after the preposition application program.
The client is used to intermediate data is managed collectively and safeguarded, the intermediate database with storing intermediate data
Carry out data transmission and control interaction, and unified data are provided to preposition program and the rearmounted program for intermediate data
Access interface, so as to realize the transmission of intermediate data between preposition program and rearmounted program.In actual applications, the client
End can also exist in the form of other are specific, for example, being existed according to practical business demand in the form of third party library, be employed
Program directly links use.The various forms of changes of the client, all simply change of specific implementation, all without departing from
The core of the application, therefore all within the protection domain of the application.
In the specific implementation, each program for including in described program combination, according to performing data transmission and processing from arriving first
Order sequence afterwards.For example, multiple application programs are suitable after arriving first according to data transmission and processing is performed in application combination
Sequence is:
Preposition application program 1->Preposition application program 2->... preposition application program N->Rearmounted application program 1->It is rearmounted
Application program 2->……->Rearmounted application program N;
Or preposition application program 1->Rearmounted application program 1->Rearmounted application program 2->……->Rearmounted application program
N;
Or preposition application program 2->Rearmounted application program 1->Rearmounted application program 2->……->Rearmounted application program
N;
Or preposition application program N->Rearmounted application program 1->Rearmounted application program 2->……->Rearmounted application program
N。
It should be noted that the method carried out data transmission between the program that the application provides, it is necessary to based at least two journeys
Sequence could realize the transmission of intermediate data, therefore, two programs be comprised at least in described program combination.For example, above-mentioned apply journey
The continuous application program of any two in sequence combination.
This step receives the storage request that the preposition program is sent, defeated comprising the preposition program in the storage request
The intermediate data gone out.The intermediate data sets unique corresponding Data Identification, for example, being directed to each intermediate data, sets
ID corresponding to unique.Based on this, in the storage request that this step receives, the intermediate data of the preposition program output is included
Each self-corresponding Data Identification.By setting the Data Identification, unified management and maintenance to the intermediate data are realized,
Meanwhile according to Data Identification can navigate to it is unique corresponding to intermediate data, the management to intermediate data is more accurate.
Step S302, by the intermediate data storage included in the storage request into default intermediate database.
As described above, the intermediate data of the preposition program output is included in the storage request, also, the storage please
Each self-corresponding Data Identification of the intermediate data is included in asking.In this step, according to above-mentioned steps S301 receive it is described before
The intermediate data included in the storage request of program transmission is put, and with reference to each self-corresponding Data Identification of the intermediate data, will
The intermediate data (intermediate data of i.e. described preposition program output) included in the storage request is stored to the intermediate data
In storehouse.It is implemented as follows:
The intermediate data of the preposition program output is sent to the intermediate database;
By the intermediate data storage of the preposition program output in the tables of data of the intermediate database.
When it is implemented, the intermediate data is carried out in a manner of Key-Value in the tables of data of the intermediate database
Storage.The Key is the Data Identification, and the Value is intermediate data corresponding to the Data Identification.For example, to data
When table stores intermediate data, using key:Value pairs of storage mode stores, and Key is to refer to unique index mediant
According to Data Identification (such as ID), can be as the major key of tables of data, Value refers to and the unique corresponding mediant of Data Identification (ID)
According to referring to shown in following table:
In addition, in the specific implementation, the preposition program is by calling default data memory interface, by the mediant
Corresponding according to the incoming client, the rearmounted program is by calling default digital independent interface, from the visitor
Read the intermediate data needed for it in family end.For example, corresponding with upper table, data memory interface is:StoreData (key,
Value), digital independent interface is:AccessData (key, value).
In actual applications, can also according to practical business demand to the intermediate data in the intermediate database
Storage mode carries out tissue, for example, according to the demand of business datum, above-mentioned tables of data is carried out extended below:
In table, ID refers to the Data Identification of intermediate data, and Data 1 refers to intermediate data corresponding to Data Identification, Data 2
Can be other attribute informations of intermediate data corresponding to Data Identification to Data M.For example, ID is Customs Assigned Number, Data 1 is
The identity information of user, Data 2 to Data M are all kinds of Transaction Informations of the user in electronic emporium.
Now, the existence form of data memory interface is:StoreData (key, value 1, value 2 ..., value
N), the existence form of digital independent interface is:AccessData (key, value 1, value 2 ..., value N).
Step S303, receive the read requests that rearmounted program is sent.
Above-mentioned steps S301 and step S302, it is the intermediate data that the client receives the preposition program output, and
By the reception storing process of the intermediate data storage received to the intermediate database.This step and following step
S304 and step S305, it is the read requests that the client receives the rearmounted program, according to the read requests from described
Read corresponding intermediate data in intermediate database, and to the reading transmission process that the rearmounted program is sent.
In this step, the read requests that the rearmounted program is sent are received.Wherein, comprising after described in the read requests
Put the Data Identification of intermediate data needed for program.
It should be noted that in the specific implementation, above-mentioned reception storing process and reading transmission process not necessarily connect
Continuous.After above-mentioned reception storing process performs, according to practical business demand, it can perform and read transmission process, that is, receive storage
Process and reading transmission process are continuous.In addition, can also be according to actual industry after above-mentioned reception storing process performs
Business demand reads transmission process to determine whether to perform, and is sent for example, performing to read by following two ways:
Mode one:Rearmounted program is started in a manner of timing, periodically sends read requests to client, accordingly,
Client periodically receives the read requests that rearmounted program is sent, and is read periodically from intermediate database among corresponding
Data.
Mode two:Preposition program and rearmounted program are continuously started by way of batch processing, that is, continuously perform above-mentioned storage
Process and reading process, the shell scripts such as based on Linux realize continuous start.
Step S304, according to the Data Identification included in the read requests, searched in the intermediate database described in
Intermediate data corresponding to Data Identification.
After above-mentioned steps S303 receives the read requests that the rearmounted program is sent, in this step, according to institute
Data Identification corresponding to intermediate data needed for rearmounted program included in read requests, described is stated, in the intermediate database
Search intermediate data corresponding to the Data Identification.It is implemented as follows:
The Data Identification included in the read requests is sent to the intermediate database;
According to the Data Identification, searched in the tables of data of the intermediate database among corresponding to the Data Identification
Data.
Step S305, read the intermediate data found and sent to the rearmounted program.
On the basis of above-mentioned steps S304, this step reads the rearmounted program institute found in above-mentioned steps S304
The intermediate data needed, i.e., intermediate data corresponding to the Data Identification included in described read requests, and sent out to the rearmounted program
Send the intermediate data read.
When it is implemented, according to practical business demand, after the execution of this step, it can also carry out following intermediate data and delete
Division operation, to delete the intermediate data being read in the intermediate database, save storage resource.The intermediate data is deleted
Operation is implemented as follows:Delete intermediate data corresponding to Data Identification described in the intermediate database.
In summary, the method carried out data transmission between the described program that the application provides, for the output of preposition program
Intermediate data, asked by receiving the storage from preposition program, by the intermediate data storage included in the storage request extremely
In the intermediate database;For the intermediate data needed for the rearmounted program, by receiving the reading from the rearmounted program
Request is taken, according to the Data Identification included in the read requests, the Data Identification pair is searched in the intermediate database
The intermediate data answered, read the intermediate data found and sent to the rearmounted program.Carry out data transmission between described program
Method, the scene of intermediate data transmission is carried out to one or more rearmounted program available for a preposition program, can be with
The scene of intermediate data transmission is carried out to one or more rearmounted program for multiple preposition programs, application is wider.
The intermediate data is managed collectively and safeguarded by intermediate database, without preposition program and rearmounted program centering
Between data be managed and safeguard, avoid preposition program and rearmounted program be managed and safeguarded the volume brought to intermediate data
Overhead, so as to reduce the overhead that needs are managed and safeguarded to intermediate data on the whole.
In addition, the agreement of data format is carried out without the transmission of preposition program and rearmounted program pin to intermediate data, for
For user, it is not necessary to pay close attention to the data format of preposition program and rearmounted program, simplify the design of preposition program and rearmounted program
Framework, at the same avoid the data format of preposition program and rearmounted program change caused by failure, be preposition program and rearmounted program
Management and safeguarding provide it is convenient.
The device embodiment carried out data transmission between a kind of program that the application provides is as follows:
In the above-described embodiment, there is provided a kind of method carried out data transmission between program, corresponding, this Shen
The device carried out data transmission between a kind of program please be additionally provide, is illustrated below in conjunction with the accompanying drawings.
Referring to the drawings 4, it illustrates showing for the device embodiment carried out data transmission between a kind of program of the application offer
It is intended to.
Because device embodiment is substantially similar to embodiment of the method, so describing fairly simple, related part please join
The corresponding explanation of the embodiment of the method for above-mentioned offer is provided.Device embodiment described below is only schematical.
The application provides the device carried out data transmission between a kind of program, including:
Request reception unit 401 is stored, the storage request sent for receiving preposition program;The preposition program refers to assist
In the side first carried out in the same suite for performing data transmission and processing;
Intermediate data storage unit 402, for will in the storage request intermediate data storage that includes in default
In spatial database;
Read requests receiving unit 403, the read requests sent for receiving rearmounted program;The rearmounted program refers to institute
State in suite in a side of rear execution;
Intermediate data searching unit 404, for according to the Data Identification included in the read requests, in the mediant
According to searching intermediate data corresponding to the Data Identification in storehouse;
Intermediate data reads transmitting element 405, for reading the intermediate data found and being sent to the rearmounted program.
Optionally, described program combination is sorted according to order of the data transmission and processing after arriving first is performed.
Optionally, described program combination includes:
It is performed in unison with least two programs of data transmission and processing.
Optionally, the intermediate data is provided with unique corresponding Data Identification.
Optionally, each self-corresponding data mark of intermediate data of the preposition program output is included in the storage request
Know.
Optionally, the intermediate data storage unit 402, including:
Intermediate data transmission sub-unit, for the intermediate data of the preposition program output to be sent to the intermediate data
Storehouse;
Intermediate data storage subelement, for by the intermediate data storage of the preposition program output in the intermediate data
In the tables of data in storehouse.
Optionally, the intermediate data searching unit 404, including:
Data Identification transmission sub-unit, for the Data Identification included in the read requests to be sent to the mediant
According to storehouse;
Intermediate data searches subelement, for according to the Data Identification, being looked into the tables of data of the intermediate database
Look for intermediate data corresponding to the Data Identification.
Optionally, the intermediate data is stored in a manner of Key-Value in the tables of data of the intermediate database.
Optionally, the Key is the Data Identification, and the Value is intermediate data corresponding to the Data Identification.
Optionally, the device carried out data transmission between described program, including:
Intermediate data deletes unit, for deleting intermediate data corresponding to Data Identification described in the intermediate database.
A kind of data transmission method embodiment based on preposition program that the application provides is as follows:
In the above-described embodiments, there is provided a kind of method carried out data transmission between program, in addition, present invention also provides
A kind of data transmission method based on preposition program, the method carried out data transmission between said procedure cooperate.Tie below
Accompanying drawing is closed to illustrate.
Referring to the drawings 5, it illustrates a kind of data transmission method embodiment based on preposition program of the application offer
Schematic diagram.
The method carried out data transmission between the program provided due to this method and above-described embodiment is cooperated, therefore, two
Person's content identical part be will not be repeated here, and the method reality carried out data transmission between said procedure please be compareed by reading the present embodiment
Apply example.Embodiment of the method described below is only schematical.
The application provides a kind of data transmission method based on preposition program, including:
Step S501, call default data memory interface;
Step S502, by described in the data memory interface to the embodiment of the method carried out data transmission between said procedure
Client send storage request;
Wherein, intermediate data to be output is included in the storage request.
Optionally, the intermediate data each unique corresponding Data Identification is included in the storage request.
A kind of data transmission device embodiment based on preposition program that the application provides is as follows:
In the above-described embodiment, there is provided a kind of data transmission method based on preposition program, it is corresponding, this
Application additionally provides a kind of data transmission device based on preposition program, illustrates below in conjunction with the accompanying drawings.
Referring to the drawings 6, it illustrates a kind of data transmission device embodiment based on preposition program of the application offer
Schematic diagram.
Because device embodiment is substantially similar to embodiment of the method, so describing fairly simple, related part please join
The corresponding explanation of the embodiment of the method for above-mentioned offer is provided.Device embodiment described below is only schematical.
The application provides a kind of data transmission device based on preposition program, including:
Data memory interface call unit 601, for calling default data memory interface;
Request transmitting unit 602 is stored, for carrying out data transmission by the data memory interface between said procedure
Device embodiment described in client send storage request;
Wherein, intermediate data to be output is included in the storage request.
Optionally, the intermediate data each unique corresponding Data Identification is included in the storage request.
A kind of data transmission method embodiment based on rearmounted program that the application provides is as follows:
In the above-described embodiment, there is provided a kind of method carried out data transmission between program, and it is a kind of based on preposition
The data transmission method of program, in addition, present invention also provides a kind of data transmission method based on rearmounted program, with above-mentioned journey
The method that carries out data transmission between sequence cooperates, or, the method that carries out data transmission between said procedure and based on preposition
The data transmission method of program cooperates.Illustrate below in conjunction with the accompanying drawings.
Referring to the drawings 7, it illustrates a kind of data transmission method embodiment based on rearmounted program of the application offer
Schematic diagram.
The embodiment of the method carried out data transmission between said procedure please be compareed by reading the present embodiment, and above-mentioned based on preposition
The data transmission method embodiment of program.Embodiment of the method described below is only schematical.
The application provides a kind of data transmission method based on rearmounted program, including:
Step S701, determine Data Identification corresponding to intermediate data to be read;
Step S702, it is real to the method carried out data transmission between said procedure by calling default digital independent interface
Apply the client described in example and send read requests;
Step S703, receive intermediate data corresponding to the Data Identification that the client is sent;
Wherein, each self-corresponding Data Identification of intermediate data to be read is included in the read requests.
Optionally, there is one-to-one relationship between the intermediate data and the Data Identification.
A kind of data transmission device embodiment based on rearmounted program that the application provides is as follows:
In the above-described embodiment, there is provided a kind of data transmission method based on rearmounted program, it is corresponding, this
Application additionally provides a kind of data transmission device based on rearmounted program, illustrates below in conjunction with the accompanying drawings.
Referring to the drawings 8, it illustrates a kind of data transmission device embodiment based on rearmounted program of the application offer
Schematic diagram.
Because device embodiment is substantially similar to embodiment of the method, so describing fairly simple, related part please join
The corresponding explanation of the embodiment of the method for above-mentioned offer is provided.Device embodiment described below is only schematical.
The application provides a kind of data transmission device based on rearmounted program, including:
Data Identification determining unit 801, for determining Data Identification corresponding to intermediate data to be read;
Read requests transmitting element 802, for by calling default digital independent interface, to entering line number between said procedure
Read requests are sent according to the client described in the device embodiment of transmission;
Intermediate data receiving unit 803, mediant corresponding to the Data Identification sent for receiving the client
According to;
Wherein, each self-corresponding Data Identification of intermediate data to be read is included in the read requests.
Optionally, there is one-to-one relationship between the intermediate data and the Data Identification.
Although the application is disclosed as above with preferred embodiment, it is not for limiting the application, any this area skill
Art personnel are not being departed from spirit and scope, can make possible variation and modification, therefore the guarantor of the application
Shield scope should be defined by the scope that the application claim is defined.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
1st, computer-readable medium can be by any side including permanent and non-permanent, removable and non-removable media
Method or technology realize that information stores.Information can be computer-readable instruction, object, the module or other data of program.Meter
The example of the storage medium of calculation machine includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic
Random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable can
Program read-only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), number
Word multifunctional optical disk (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or other magnetic storage apparatus or
Any other non-transmission medium, the information that can be accessed by a computing device available for storage.Defined according to herein, computer
Computer-readable recording medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
2nd, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program production
Product.Therefore, the application can use the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Moreover, the application can use the computer for wherein including computer usable program code in one or more can use
The computer program product that storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Form.
Claims (20)
1. a kind of method carried out data transmission between program, it is characterised in that including:
Receive the storage request that preposition program is sent;The preposition program refers to the suite for being performed in unison with data transmission and processing
In in the side first carried out;
By the intermediate data storage included in the storage request into default intermediate database;
Receive the read requests that rearmounted program is sent;The rearmounted program refers in described program combination in a side of rear execution;
According to the Data Identification included in the read requests, searched in the intermediate database corresponding to the Data Identification
Intermediate data;
Read the intermediate data found and sent to the rearmounted program.
2. the method carried out data transmission between program according to claim 1, it is characterised in that described program combination according to
Perform order sequence of the data transmission and processing after arriving first.
3. the method carried out data transmission between program according to claim 2, it is characterised in that described program combination bag
Include:
It is performed in unison with least two programs of data transmission and processing.
4. the method carried out data transmission between program according to claim 1, it is characterised in that the intermediate data is set
There is unique corresponding Data Identification.
5. the method carried out data transmission between program according to claim 4, it is characterised in that wrapped in the storage request
Each self-corresponding Data Identification of intermediate data containing the preposition program output.
6. the method carried out data transmission between program according to claim 5, it is characterised in that described to ask the storage
The intermediate data storage included step into default intermediate database is sought, including:
The intermediate data of the preposition program output is sent to the intermediate database;
By the intermediate data storage of the preposition program output in the tables of data of the intermediate database.
7. the method carried out data transmission between program according to claim 5, it is characterised in that described according to the reading
The Data Identification included in request, intermediate data step corresponding to the Data Identification is searched in the intermediate database, wrapped
Include:
The Data Identification included in the read requests is sent to the intermediate database;
According to the Data Identification, mediant corresponding to the Data Identification is searched in the tables of data of the intermediate database
According to.
8. the method carried out data transmission between the program according to claim 6 or 7, it is characterised in that the intermediate data
Stored in a manner of Key-Value in the tables of data of the intermediate database.
9. the method carried out data transmission between the program stated according to claim 8, it is characterised in that the Key is the data
Mark, the Value is intermediate data corresponding to the Data Identification.
10. the method carried out data transmission between program according to claim 1, it is characterised in that the reading is found
Intermediate data and after being performed to the rearmounted program forwarding step, perform following step:
Delete intermediate data corresponding to Data Identification described in the intermediate database.
A kind of 11. device carried out data transmission between program, it is characterised in that including:
Request reception unit is stored, the storage request sent for receiving preposition program;The preposition program refers to be performed in unison with
In the side first carried out in the suite of data transmission and processing;
Intermediate data storage unit, for the intermediate data storage included in request described will to be stored to default intermediate database
In;
Read requests receiving unit, the read requests sent for receiving rearmounted program;The rearmounted program refers to described program
In a side of rear execution in combination;
Intermediate data searching unit, for according to the Data Identification included in the read requests, in the intermediate database
Search intermediate data corresponding to the Data Identification;
Intermediate data reads transmitting element, for reading the intermediate data found and being sent to the rearmounted program.
12. the device carried out data transmission between program according to claim 11, it is characterised in that the intermediate data is set
It is equipped with unique corresponding Data Identification.
13. the device carried out data transmission between program according to claim 12, it is characterised in that in the storage request
Include each self-corresponding Data Identification of intermediate data of the preposition program output.
14. the device carried out data transmission between program according to claim 13, it is characterised in that the intermediate data is deposited
Storage unit, including:
Intermediate data transmission sub-unit, for the intermediate data of the preposition program output to be sent to the intermediate database;
Intermediate data storage subelement, for by the intermediate data storage of the preposition program output in the intermediate database
In tables of data.
15. the device carried out data transmission between program according to claim 13, it is characterised in that the mediant it is investigated that
Unit is looked for, including:
Data Identification transmission sub-unit, for the Data Identification included in the read requests to be sent to the intermediate data
Storehouse;
Intermediate data searches subelement, for according to the Data Identification, institute to be searched in the tables of data of the intermediate database
State intermediate data corresponding to Data Identification.
16. the device carried out data transmission between program according to claim 11, it is characterised in that including:
Intermediate data deletes unit, for deleting intermediate data corresponding to Data Identification described in the intermediate database.
A kind of 17. data transmission method based on preposition program, it is characterised in that including:
Call default data memory interface;
Storage request is sent to the client described in claim 1 by the data memory interface;
Wherein, intermediate data to be output is included in the storage request.
A kind of 18. data transmission device based on preposition program, it is characterised in that including:
Data memory interface call unit, for calling default data memory interface;
Request transmitting unit is stored, for sending storage to the client described in claim 11 by the data memory interface
Request;
Wherein, intermediate data to be output is included in the storage request.
A kind of 19. data transmission method based on rearmounted program, it is characterised in that including:
Determine Data Identification corresponding to intermediate data to be read;
By calling default digital independent interface, read requests are sent to the client described in claim 1;
Receive intermediate data corresponding to the Data Identification that the client is sent;
Wherein, Data Identification corresponding to intermediate data to be read is included in the read requests.
A kind of 20. data transmission device based on rearmounted program, it is characterised in that including:
Data Identification determining unit, for determining Data Identification corresponding to intermediate data to be read;
Read requests transmitting element, for by calling default digital independent interface, to the client described in claim 11
Send read requests;
Intermediate data receiving unit, intermediate data corresponding to the Data Identification sent for receiving the client;
Wherein, each self-corresponding Data Identification of intermediate data to be read is included in the read requests.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610590199.7A CN107656817A (en) | 2016-07-25 | 2016-07-25 | The method and device carried out data transmission between program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610590199.7A CN107656817A (en) | 2016-07-25 | 2016-07-25 | The method and device carried out data transmission between program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107656817A true CN107656817A (en) | 2018-02-02 |
Family
ID=61124830
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610590199.7A Pending CN107656817A (en) | 2016-07-25 | 2016-07-25 | The method and device carried out data transmission between program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107656817A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858225A (en) * | 2019-04-28 | 2020-10-30 | 中国移动通信集团上海有限公司 | Delay prediction method, device, device and computer storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527227A (en) * | 2003-03-03 | 2004-09-08 | ����-��˹â��ϵͳ�ɷ�����˾ | Distributed data access method and apparatus for process control system |
CN102137123A (en) * | 2010-01-25 | 2011-07-27 | 腾讯科技(北京)有限公司 | Device and method for realizing process-to-process communication of different application programs on mobile terminal |
US20110258639A1 (en) * | 2004-09-02 | 2011-10-20 | Broadway Technology Llc | Management of data object sharing among applications |
EP2630586A1 (en) * | 2010-10-19 | 2013-08-28 | Alibaba Group Holding Limited | Communication method and server of transmission control protocol |
US20150254116A1 (en) * | 2014-03-04 | 2015-09-10 | Electronics And Telecommunications Research Institute | Data processing apparatus for pipeline execution acceleration and method thereof |
CN105159951A (en) * | 2015-08-17 | 2015-12-16 | 成都中科大旗软件有限公司 | Open tourism multi-source heterogeneous data fusion method and system |
-
2016
- 2016-07-25 CN CN201610590199.7A patent/CN107656817A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527227A (en) * | 2003-03-03 | 2004-09-08 | ����-��˹â��ϵͳ�ɷ�����˾ | Distributed data access method and apparatus for process control system |
US20110258639A1 (en) * | 2004-09-02 | 2011-10-20 | Broadway Technology Llc | Management of data object sharing among applications |
CN102137123A (en) * | 2010-01-25 | 2011-07-27 | 腾讯科技(北京)有限公司 | Device and method for realizing process-to-process communication of different application programs on mobile terminal |
EP2630586A1 (en) * | 2010-10-19 | 2013-08-28 | Alibaba Group Holding Limited | Communication method and server of transmission control protocol |
US20150254116A1 (en) * | 2014-03-04 | 2015-09-10 | Electronics And Telecommunications Research Institute | Data processing apparatus for pipeline execution acceleration and method thereof |
CN105159951A (en) * | 2015-08-17 | 2015-12-16 | 成都中科大旗软件有限公司 | Open tourism multi-source heterogeneous data fusion method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858225A (en) * | 2019-04-28 | 2020-10-30 | 中国移动通信集团上海有限公司 | Delay prediction method, device, device and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Khare et al. | Big data in IoT | |
CN107798038B (en) | Data response method and data response equipment | |
CN111258978B (en) | Data storage method | |
EP3560143A2 (en) | Data isolation in a blockchain network | |
JP2014519097A (en) | Method and system for recommending items | |
TW201520794A (en) | Data migration method and device | |
CN106649828A (en) | Data query method and system | |
US10223435B2 (en) | Data transfer between multiple databases | |
CN112272240A (en) | Data cloud method and device | |
US20170277622A1 (en) | Web Page Automated Testing Method and Apparatus | |
CN113918659A (en) | Data manipulation method, device, storage medium and electronic device | |
CN106407442A (en) | Massive text data processing method and apparatus | |
CN112073212B (en) | Parameter configuration method, device, terminal device and storage medium | |
CN106506568B (en) | information exchange system | |
US10009265B2 (en) | Communication control apparatus, communication control method, communication system, and recording medium | |
CN115168362A (en) | Data processing method and device, readable medium and electronic equipment | |
CN107656817A (en) | The method and device carried out data transmission between program | |
CN107291524B (en) | Remote command processing method and device | |
CN117557394A (en) | Intelligent account checking method, system, equipment and storage medium | |
WO2023160551A1 (en) | Request processing method, and device | |
CN116521317A (en) | Mirror image management method and device, electronic equipment and computer readable storage medium | |
CN111708757B (en) | Data resource processing method, device and system, storage medium and electronic equipment | |
US8484182B1 (en) | Wireless device content searching | |
JPH01106573A (en) | Data communication equipment | |
CN113760597B (en) | Intermediate data processing method, device, electronic device and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180202 |
|
RJ01 | Rejection of invention patent application after publication |