CN109426570A - A kind of acquisition methods of data, device and equipment - Google Patents

A kind of acquisition methods of data, device and equipment Download PDF

Info

Publication number
CN109426570A
CN109426570A CN201710753650.7A CN201710753650A CN109426570A CN 109426570 A CN109426570 A CN 109426570A CN 201710753650 A CN201710753650 A CN 201710753650A CN 109426570 A CN109426570 A CN 109426570A
Authority
CN
China
Prior art keywords
data
calling
auxiliary information
call request
result data
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
CN201710753650.7A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710753650.7A priority Critical patent/CN109426570A/en
Publication of CN109426570A publication Critical patent/CN109426570A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present application discloses the acquisition methods, device and equipment of a kind of data, this method comprises: generating corresponding calling auxiliary information according to call request;The call request and the calling auxiliary information are sent to scheduled target element;If in the result data that the target element returns including the calling auxiliary information, the processing of data readjustment is executed.Using the embodiment of the present application, the calling efficiency of component can be improved, simplify the acquisition process of data, and improve the acquisition efficiency of data.

Description

A kind of acquisition methods of data, device and equipment
Technical field
This application involves field of computer technology more particularly to a kind of acquisition methods of data, device and equipment.
Background technique
For the operating platform of modularization, by taking Android operating platform as an example, usual Android operating platform is to be based on Primary Activity, Service etc. carrys out partitioning component.Component initiates call request and called component asks for calling Asking acquisition request data to return to called side all is the distinctive treatment mechanism of Android platform.
Various components in operating platform can state its call request being capable of handling (movement or behavior including user Deng), different components can be handled the same call request.When certain component initiates call request, operating platform meeting The other components call request being sent to by way of broadcast in operating platform.Various components receive call request Afterwards, according to the content that it is stated, it is determined whether be capable of handling the call request.If be capable of handling, call request pair is obtained The request data and relevant information can be sent to operating platform by the request data answered, operating platform by way of broadcast In other components.Wherein, if there is multiple components can handle call request, then operating platform can send to component and select Take the prompt information of the component of request data.After user's selection, which can initiate call request again again, select to user Component request callback request data.
However, in above-mentioned processing mode, component initiates call request and called component returned data is separated two Mutually contradictory mechanism, entire treatment process needs just complete data acquisition by calling twice, so that group The calling efficiency of part is lower, and the acquisition process of data is cumbersome and inefficiency.
Summary of the invention
The purpose of the embodiment of the present application is to provide the acquisition methods, device and equipment of a kind of data, to improve the tune of component With efficiency, simplify the acquisition process of data, and improves the acquisition efficiency of data.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
The embodiment of the present application provides a kind of acquisition methods of data, which comprises
Corresponding calling auxiliary information is generated according to call request;
The call request and the calling auxiliary information are sent to scheduled target element;
If including the calling auxiliary information in the result data that the target element returns, execute at data readjustment Reason.
The embodiment of the present application provides a kind of acquisition methods of data, which comprises
According to the corresponding information for calling function of call request, generate auxiliary as the calling of key using the information for calling function Supplementary information;
The call request and the calling auxiliary information are sent to scheduled target element;
If including the calling auxiliary information in the result data that the target element returns, execute at data readjustment Reason.
The embodiment of the present application also provides a kind of acquisition methods of data, which comprises
Receive call request and preset calling auxiliary information that invocation component is sent;
Corresponding request data is obtained according to the call request, according to the request data and the calling auxiliary information Generate result data;
The result data is broadcasted, so that the invocation component is according to the calling auxiliary information in the result data Execute the processing of data readjustment.
The embodiment of the present application provides a kind of acquisition device of data, and described device includes:
Auxiliary information generation module, for generating corresponding calling auxiliary information according to call request;
Information sending module, for the call request and the calling auxiliary information to be sent to scheduled target group Part;
Callback module, if in the result data returned for the target element including the calling auxiliary information, Execute the processing of data readjustment.
The embodiment of the present application provides a kind of acquisition device of data, and described device includes:
Auxiliary information generation module, for generating with the calling according to the corresponding information for calling function of call request The information of function is the calling auxiliary information of key;
Information sending module, for the call request and the calling auxiliary information to be sent to scheduled target group Part;
Callback module, if in the result data returned for the target element including the calling auxiliary information, Execute the processing of data readjustment.
The embodiment of the present application provides a kind of acquisition device of data, and described device includes:
Information receiving module, for receiving the call request and preset calling auxiliary information of invocation component transmission;
Result data generation module, for obtaining corresponding request data according to the call request, according to the request Data and the calling auxiliary information generate result data;
Broadcast module, for broadcasting the result data, so that the invocation component is according to the institute in the result data It states and auxiliary information is called to execute the processing of data readjustment.
The embodiment of the present application provides a kind of data acquisition facility, and the data acquisition facility includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
Corresponding calling auxiliary information is generated according to call request;
The call request and the calling auxiliary information are sent to scheduled target element;
If including the calling auxiliary information in the result data that the target element returns, execute at data readjustment Reason.
The embodiment of the present application provides a kind of data acquisition facility, and the data acquisition facility includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
According to the corresponding information for calling function of call request, generate auxiliary as the calling of key using the information for calling function Supplementary information;
The call request and the calling auxiliary information are sent to scheduled target element;
If including the calling auxiliary information in the result data that the target element returns, execute at data readjustment Reason.
The embodiment of the present application provides a kind of data acquisition facility, and the data acquisition facility includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
Receive call request and preset calling auxiliary information that invocation component is sent;
Corresponding request data is obtained according to the call request, according to the request data and the calling auxiliary information Generate result data;
The result data is broadcasted, so that the invocation component is according to the calling auxiliary information in the result data Execute the processing of data readjustment.
As can be seen from the technical scheme provided by the above embodiments of the present application, the embodiment of the present application is generated corresponding by call request Calling auxiliary information, the call request and the calling auxiliary information are then sent to scheduled target element, by mesh The comparison of the result data that component returns and above-mentioned calling auxiliary information is marked, determines the invocation component for initiating call request, so that The invocation component executes the processing of data readjustment, in this way, by that will initiate call request and called component by component in the prior art The mutually contradictory mechanism of two of returned data be abstracted again and merges (being not simply to combine), so that existing The realization of data acquisition in technology, which needs to call twice to become once to call, can be realized, and improve the calling effect of component Rate, simplifies the acquisition process of data, and improves the acquisition efficiency of data.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of acquisition methods embodiment of data of the application;
Fig. 2 is the structural schematic diagram of a kind of event bus of the application (EventBus) module;
Fig. 3 is the acquisition methods embodiment of the application another kind data;
Fig. 4 is the acquisition methods embodiment of another data of the application;
Fig. 5 is the acquisition methods embodiment of another data of the application;
Fig. 6 is the acquisition methods embodiment of another data of the application;
Fig. 7 is a kind of acquisition device embodiment of data of the application;
Fig. 8 is the acquisition device embodiment of the application another kind data;
Fig. 9 is a kind of data acquisition facility embodiment of the application.
Specific embodiment
The embodiment of the present application provides the acquisition methods, device and equipment of a kind of data.
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
Embodiment one
As shown in Figure 1, the embodiment of the present application provides a kind of acquisition methods of data, this method can be applied to this method Executing subject can be terminal device, which can set for mobile terminals such as mobile phone, tablet computer or laptops It is standby, it is also possible to the terminal devices such as personal computer.This method can specifically include following steps:
In step s101, corresponding calling auxiliary information is generated according to call request.
Wherein, call request can be the request message for calling some function or some component, different Operating platform, it includes above-mentioned function and/or component can be different, specifically may be set according to actual conditions, for example, In Android operating platform include Activity, Service (service), BroadcastReceive (radio receiver) and The components such as Content Provider (content provider), call request are that (such as above-mentioned Android operation is flat for many operating platforms Platform or Windows operating platform etc.) most common request message, which can also be known as API (Application Programming Interface, application programming interface) call request.Call auxiliary information can be for position or The relevant information for initiating the called side of call request is accurately positioned, is quickly searched with facilitating for the called result data just returned To called side.
In an implementation, in general, being to exist independently of each other between component in operating platform or between the corresponding process of component , complete independently corresponding operation between two components or two processes, the embodiment of the present application is in order to improve API efficiency and data Efficiency is obtained, a kind of method that inter-module striding course realizes data acquisition is provided, specific as follows:
User triggering terminal equipment can generate call request in several ways, for example, by installing in terminal device Application program in the operation behavior (such as clicking operation or slide) of key, hyperlink or user etc. that provides.Example Such as, by taking Android operating platform as an example, in Android operating platform, user needs to start application by application program A Program B is (specific as user clicks the hyperlink recorded in copy editor's application program, calling third party's browser or application program Open the corresponding page of hyperlink), wherein activityA expression can be used in application program A, and application program B can be used ActivityB is indicated.When the key of the starting application program B provided in application program A when the user clicks, component activityA Call request can be generated, is used for Android operating platform request call component activityB.It would generally be wrapped in call request A variety of relevant informations containing the called side for initiating call request, for example, the memory address of API approach catoptric arrangement, result are returned Return data type, and the other associated parameter datas called etc..After terminal device generates call request, can therefrom it extract such as The information such as memory address, the result returned data type of API approach catoptric arrangement, the above- mentioned information for being also based on extraction generate Other relevant informations.Further, it is also possible to the rule or method of call request mark are generated for the setting of each component in advance, for example, The unique rule of call request mark that is random to generate call request mark, and generating, or be in advance different call requests Call request mark of setting etc..In this way, call request mark can be generated by above-mentioned rule or method, it can be by the calling Request mark is set as calling auxiliary information, in this way, in calling auxiliary information may include the memory of API approach catoptric arrangement One or more of information such as location, result returned data type and call request mark.
In step s 102, above-mentioned call request and above-mentioned calling auxiliary information are sent to scheduled target element.
Wherein, target element can be random component, or be also possible to preassigned some or multiple components, tool Body may be set according to actual conditions, and the embodiment of the present application does not limit this.
In an implementation, as shown in Fig. 2, each component can be correspondingly arranged on one or more process, in order to more preferable Completion data acquisition or calling, the related mechanism of data processing, such as Fig. 2 can be set in the corresponding each process of component The serializing of middle offer, receives broadcast, searches class (i.e. class), unserializing and subscribe/publish global broadcast Mechanism such as (subscription/publications), wherein the serializing of each component and the mechanism of unserializing use identical processing mode or calculation Method.In practical applications, each mechanism can be corresponding with corresponding realization module, be based on above content, these realize modules May include serialization module, global broadcast module, receive broadcast module, search generic module, unserializing module and Subscribe/publish module etc..Each process can be arranged process flow or be held for above-mentioned mechanism during execution Row sequence, specific set-up mode can be determines according to actual conditions.
A kind of feasible set-up mode is provided in the embodiment of the present application, it specifically can be as shown in Fig. 2, when component needs to send number According to when, which can carry out serializing processing to the data got by serialization module, the data serialized, In, serializing processing may include various ways, such as json text sequence or xml text sequence etc..Pass through the overall situation again The data broadcasting of obtained serializing is given the process of all components or component in addition to current component by broadcast module, thus by upper It states data and is sent to corresponding component or process.When component or its process receive other component broadcasts by receiving broadcast module Data (including call request) after, class belonging to received data can be searched by searching for generic module and then passes through inverted sequence Columnization module carries out unserializing processing to the data, to be baseline results data by the data convert, finally, can pass through Baseline results data exhibiting to user or is done corresponding processing to baseline results data by subscribe/publish module (such as collect or delete).
After terminal device gets call request, and corresponding calling auxiliary information, auxiliary information can will be called It is attached in call request, it is then possible to call request and auxiliary information be called to carry out at serializing by serialization module Reason, the call request serialized and the data for calling auxiliary information, it is then possible to will be serialized by global broadcast mechanism Data broadcasting to other components in operating platform.Wherein, it will include the expectation recipient of the call request in other components, That is target element.In addition, it may include multiple for being capable of handling the component of the call request in operating platform, for example, with For Android operating platform, each component can preset the information such as the movement the being capable of handling, behavior (shape that can be stated Formula shows), if the action message for including in the call request is " com.abc.def ", and component Activity1 and component Activity2 stated to be capable of handling " com.abc.def ", then component Activity1 and component Activity2 can be Target element.
It should be noted that the calling between component may include a variety of implementations, it is with Android operating platform , the call request of certain component can be broadcast to other components by Intent mechanism by the calling between component, it can logical Cross the communication between Intent mechanism completion component.Different operating platforms, the mechanism communicated between component can be different, this Application embodiment does not limit this.
In step s 103, if in the result data that above-mentioned target element returns including above-mentioned calling auxiliary information, Execute the processing of data readjustment.
Wherein, may include the relevant information of target element in result data, as component title and/or mark and/or The parameters such as the information of corresponding application program, at the same time it can also the data type and/or size including result data and/or about Beam information etc..The processing of data readjustment, which can be, adjusts back the corresponding number of request of above-mentioned call request to target element using call back function According to.
In an implementation, above-mentioned call request and tune are received by receiving broadcast mechanism when other components in operating platform When with auxiliary information, class belonging to received above-mentioned data can be searched by searching for class mechanism and then passes through unserializing machine System carries out unserializing processing to above-mentioned data, to be baseline results data by the data convert, finally, can pass through Subscribe/publish module is by baseline results data exhibiting, if it is possible to handle the call request, then corresponding component can Target element is thought, at this point it is possible to obtain the corresponding request data of call request.By the result data and auxiliary letter can be called Breath carries out serializing processing, and the data of obtained serializing are broadcast to other components by way of overall situation broadcast.If no It is capable of handling the call request, then corresponding component can be without any processing.
The data that other components are sent can be received by receiving broadcast module as the component of called side in terminal device, After the component receives the result data of target element return, it can be extracted from the data of return and call auxiliary information, it can It is matched so that the calling auxiliary information is sent the calling auxiliary information that call request generates with the component of called side, if two Person is mutually matched, it is determined that current component is the component for initiating the called side of the call request, at this point, the component can execute number It is handled according to readjustment and obtains the corresponding request data of call request.
It handles outside above-mentioned processing mode, for the treatment mechanism of above-mentioned Fig. 2, the above process can be with are as follows: when the component receives After the result data returned to target element, the above results data can be carried out at unserializing by unserializing mechanism Reason can extract calling auxiliary information to be baseline results data by the data convert from the baseline results data, can be with The calling auxiliary information is sent the calling auxiliary information that call request generates with the component of called side to match, if the two It is mutually matched, it is determined that current component is the component for initiating the called side of the call request, at this point, the component can execute data Readjustment processing obtains the corresponding request data of call request.
The embodiment of the present application provides a kind of acquisition methods of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
As shown in figure 3, the embodiment of the present application provides a kind of acquisition methods of data, this method can be applied to this method Executing subject can be terminal device, which can set for mobile terminals such as mobile phone, tablet computer or laptops It is standby, it is also possible to the terminal devices such as personal computer.This method can specifically include following steps:
In step S301, call request and preset calling auxiliary information that invocation component is sent are received.
In step s 302, corresponding request data is obtained according to above-mentioned call request, according to the request data and above-mentioned Auxiliary information is called to generate result data.
In step S303, broadcast them result data, so that invocation component is assisted according to the calling in the result data Information executes the processing of data readjustment.
Above-mentioned steps S301~step S303 concrete processing procedure may refer in above-mentioned steps S101~step S103 Related content, details are not described herein.
The embodiment of the present application provides a kind of acquisition methods of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
Embodiment two
As shown in figure 4, the embodiment of the present application provides a kind of acquisition methods of data, this method can be applied to this method Executing subject can be terminal device, which can set for mobile terminals such as mobile phone, tablet computer or laptops It is standby, it is also possible to the terminal devices such as personal computer.This method can specifically include following steps:
In step S401, according to the corresponding information for calling function of call request, generate with the information of the calling function For the calling auxiliary information of key.
Wherein, which formed or generated as key using the corresponding information for calling function of the call request Information.Key (i.e. key) can be understood as the key key etc. in keyword or key-value pair (key-value).
It in an implementation, would generally include a variety of relevant informations for initiating the called side of call request, example in call request Such as, memory address of API approach catoptric arrangement, result returned data type, and the other associated parameter datas called etc..Eventually After end equipment generates call request, the memory address such as API approach catoptric arrangement, result returned data type can be therefrom extracted Etc. information.Further, it is also possible to the call request mark etc. being arranged in advance for different call requests.In this way, can be by the calling Request mark is set as calling auxiliary information, may include memory address, the knot of API approach catoptric arrangement in calling auxiliary information One or more of information such as fruit returned data type and call request mark.
It should be noted that being key since calling auxiliary information is by the corresponding information for calling function of the call request Key and form, in this way, can make by above-mentioned calling auxiliary information subsequent when carrying out result return, key key can be passed through Find initiate this call component or API so that return result can accurately navigate to calling component or On API.
In step S402, above-mentioned call request and above-mentioned calling auxiliary information are sent to scheduled target element.
In an implementation, it after terminal device gets call request, and corresponding calling auxiliary information, can will call Auxiliary information is subsidiary in call request, it is then possible to call request and auxiliary information be called to carry out by serialization module Serializing processing, the call request serialized and the data for calling auxiliary information, it is then possible to pass through global broadcast mechanism By the data broadcasting of serializing to other components in operating platform.Wherein, it will include the phase of the call request in other components Hope recipient.
In step S403, if in the result data that above-mentioned target element returns including above-mentioned calling auxiliary information, Execute the processing of data readjustment.
In an implementation, other components hairs can be received by receiving broadcast module as the component of called side in terminal device The data sent can be by unserializing mechanism to above-mentioned knot after the component receives the result data of target element return Fruit data carry out unserializing processing, thus be baseline results data by the data convert, it can be from the baseline results data It extracts and calls auxiliary information, it can be from calling auxiliary information pick-up key key (function information called), it is then possible to root According to the key key of extraction find initiate this call component or API, by searching for arrive initiate this call component or API can execute data readjustment processing and obtain the corresponding request data of call request.
Specifically processing may refer to step S101~step in above-described embodiment one to above-mentioned steps S401~step S403 The related content of rapid S103.
The embodiment of the present application provides a kind of acquisition methods of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
Embodiment three
As shown in figure 5, the embodiment of the present application provides a kind of acquisition methods of data, this method can be applied to this method Executing subject can be terminal device, which can set for mobile terminals such as mobile phone, tablet computer or laptops It is standby, it is also possible to the terminal devices such as personal computer.This method can specifically include following steps:
In step S501, invocation component generates corresponding calling auxiliary information according to call request.
Wherein, which is to be formed using the corresponding information for calling function of the call request as key key Information.Key key can be understood as the key key etc. in keyword or key-value pair (key-value).
It in an implementation, can be to component each in operating platform in order to realize that inter-module striding course obtains the purpose of data Process is improved appropriately, as shown in Fig. 2, illustrating the core mechanism of entire API communication bus, the core of design is The subscribe/publish module an of striding course is provided, such as event bus (i.e. EventBus) module in Fig. 2.At this The kernel data structure safeguarded in a module can be a triplet information, i.e. [application programming interface (i.e. API) method The memory address of catoptric arrangement, as a result returned data type, call request identify], which may act as calling Auxiliary information.Wherein, call request mark can generate at random, and the memory address of API approach catoptric arrangement can be calling and ask The storage address of corresponding method object in memory is sought, as a result returned data type can be the corresponding number of request of call request According to data type, such as floating type, class or array.
It, can be from the tune after which generates call request if certain component has initiated the calling to another component With in request obtain API approach catoptric arrangement memory address and result returned data type, meanwhile, random fashion can be passed through Call request mark is generated, triplet information (i.e. calling auxiliary information) can be generated by above- mentioned information, and store it in In memory.In addition, called side can also be used as called side and continuously call other components, at this point, being called in the component of side A triplet information (i.e. calling auxiliary information) can be generated, (i.e. API is asked a call request for recording oneself initiation It asks).
Wherein, due to calling auxiliary information to be made of the corresponding information for calling function of the call request for key key, In this way, can make by above-mentioned calling auxiliary information subsequent when carrying out result return, initiation can be found by key key This component or API for calling, so that the result returned can accurately navigate on the component or API of calling.
It should be noted that each component or process are merely able to minute book component or process initiation call request is corresponding Triplet information, moreover, the triplet information between various components or process does not need the operation such as to synchronize or share, namely It is that operating platform does not need to safeguard the consistency of the triplet information between each component or process.Triplet information is actually right The component call mode of bottom is decoupled, and no matter bottom is aroused with components such as Activity, Service, or with it Its mode carries out, and triplet information is all suitable on corresponding operating platform.
In step S502, above-mentioned call request and above-mentioned calling auxiliary information are sent to scheduled target by invocation component Component.
It in an implementation, can be by triple after terminal device gets call request, and corresponding triplet information Information is subsidiary in call request, it is then possible to be serialized to call request and triplet information by serializing mechanism Processing, the data of the call request and triplet information that are serialized, it is then possible to will be serialized by global broadcast mechanism Data broadcasting to other components in operating platform (including scheduled target element).
In step S503, target element obtains corresponding request data according to above-mentioned call request, according to the number of request Result data is generated according to above-mentioned calling auxiliary information.
In an implementation, target element can will call auxiliary information (i.e. triplet information) to be spliced to before request data Or below, to obtain the result data being made of the request data and above-mentioned calling auxiliary information.Certainly, in addition to above-mentioned splicing Mode, can also include the generating mode of a variety of result datas, such as pass through pre-defined rule for two data fusions.
In step S504, the above results data are carried out text sequence processing by target element, obtain the result data Serialized data.
In step S505, the serialized data of the above results data is broadcast to by target element by predetermined broadcast mechanism Scheduled component.
The processing mode of above-mentioned steps S505 may include a variety of, the feasible specific processing mode of one kind presented below, tool Body may include the following contents: the serialized data of the above results data is broadcasted by predetermined broadcast mechanism to scheduled broadcast In event channel, so that object invocation component captures above-mentioned serialized data.
In an implementation, when target element broadcasts the serialized data of the above results data to pre- by predetermined broadcast mechanism When in fixed broadcast event channel, other components can be detected the broadcast event in the broadcast event channel, thus and When capture the data that other components are broadcasted.By the above-mentioned means, invocation component can capture the sequence of target element broadcast Change data.
In step S506, the above results data are carried out unserializing processing by invocation component, obtain the result data pair The baseline results data answered.
Through the above steps after the processing of S506, if in above-mentioned baseline results data including above-mentioned calling auxiliary information, Then execute the processing of data readjustment.
In an implementation, for triplet information, after component (or API) initiates to call, corresponding data are how to be associated with Become problem in need of consideration on to the API of the calling.For this purpose, in the embodiment of the present application, it is contemplated that between different components Communication strategy can be different, such as broadcast or point-to-point etc., can be by using in triplet information in the embodiment of the present application The strategy of different information projects matched flexibly to realize some inter-component communications.It, can be with for point-to-point mode therein It is executed referring to the processing of following steps S507, for broadcast mode therein, may refer to following embodiments three.
In step s 507, if the function letter of the first function information called and calling in above-mentioned baseline results data Manner of breathing matching, and the first request mark in the baseline results data is matched with call request mark, and the baseline results The first data type in data is matched with the data type of the result data, then executes the processing of data readjustment.
Wherein, the function information of above-mentioned calling can reflect knot for the application programming interface method in triplet information The memory address of structure.
It in an implementation, can will be in baseline results data in order to be pin-pointed to the invocation component for initiating call request It is compared respectively with the information of each information project in triplet information pre-stored in component, if three is Match, it may be considered that the component is the invocation component for initiating call request, it is then possible to which triggering the invocation component executes data Readjustment processing, can be thus called in the same calling API in a manner of asynchronous callback and request corresponding ask Ask the return of data.
By above-mentioned treatment process, it can be found that the realization of core mechanism all surrounds the ternary after setting triplet information Group information expansion, moreover, the function information that can be called each (API) by the relevant information in triplet information is as key (i.e. key), in this way, data can be enabled accurately to navigate on the component or API of calling when return.
In step S508, invocation component deletes above-mentioned calling auxiliary information.
S501~step S508 processing, the embodiment of the present application are realised in that entire API Calls through the above steps Process carried out one layer it is abstract so that meaning of the API Calls departing from component level, moreover, the embodiment of the present application is It is abstracted using each API Calls as granularity, also, it is also the level for being matched to API Calls, letter that the result of API Calls, which returns, Change the acquisition process of data, and improves the acquisition efficiency of data.
The embodiment of the present application provides a kind of acquisition methods of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
Example IV
As shown in fig. 6, the embodiment of the present application provides a kind of acquisition methods of data, this method can be applied to this method Executing subject can be terminal device, which can set for mobile terminals such as mobile phone, tablet computer or laptops It is standby, it is also possible to the terminal devices such as personal computer.This method can specifically include following steps:
In step s 601, invocation component generates corresponding calling auxiliary information according to call request.
In step S602, above-mentioned call request and above-mentioned calling auxiliary information are sent to scheduled target by invocation component Component.
In step S603, target element obtains corresponding request data according to above-mentioned call request, according to the number of request Result data is generated according to above-mentioned calling auxiliary information.
In step s 604, the above results data are carried out text sequence processing by target element, obtain the result data Serialized data.
In step s 605, the serialized data of the above results data is broadcast to by target element by predetermined broadcast mechanism Scheduled component.
In step S606, the above results data are carried out unserializing processing by invocation component, obtain the result data pair The baseline results data answered.
After component (or API) initiates to call, corresponding data correlation is arrived for by broadcast mode triplet information Situation on the API of the calling, the processing that may refer to following step S607 execute
In step S607, if the function letter of the second function information called and calling in above-mentioned baseline results data Manner of breathing matching, and the second data type in the baseline results data is matched with the data type of the result data, then is executed The processing of data readjustment.
Wherein, the function information of above-mentioned calling can reflect knot for the application programming interface method in triplet information The memory address of structure.
It in an implementation, then can be in order to navigate to the invocation component for initiating call request, and in view of the mode for broadcast Ignore the matching of the call request mark in baseline results data and component in pre-stored triplet information, and it is only right The memory address of API approach catoptric arrangement and result returned data type compare respectively in triplet information, if the two It all matches, it may be considered that the component is the invocation component for initiating call request, it is then possible to trigger invocation component execution Data readjustment processing, in this way, can equally be called request pair in the same calling API in a manner of asynchronous callback The return for the request data answered.It should be noted that invocation component obtained above may be a component, it is also possible to including more A component.
In step S608, invocation component deletes above-mentioned calling auxiliary information.
S601~step S608 processing, the embodiment of the present application are realised in that entire API Calls through the above steps Process carried out one layer it is abstract so that meaning of the API Calls departing from component level, moreover, the embodiment of the present application is It is abstracted using each API Calls as granularity, also, it is also the level for being matched to API Calls, letter that the result of API Calls, which returns, Change the acquisition process of data, and improves the acquisition efficiency of data.
The embodiment of the present application provides a kind of acquisition methods of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
Embodiment five
The above are the acquisition methods of data provided by the embodiments of the present application, are based on same thinking, the embodiment of the present application is also A kind of acquisition device of data is provided, as shown in Figure 7.
The acquisition device of the data includes: auxiliary information generation module 701, information sending module 702 and callback module 703, in which:
Auxiliary information generates mould 701, for generating corresponding calling auxiliary information according to call request;
Information sending module 702, for the call request and the calling auxiliary information to be sent to scheduled target Component;
Callback module 703, if in the result data returned for the target element including the calling auxiliary information, Then execute the processing of data readjustment.
In the embodiment of the present application, the callback module 703, comprising:
Data receipt unit, for receiving the result data of target element broadcast;
It is corresponding to obtain the result data for the result data to be carried out unserializing processing for data processing unit Baseline results data;
Unit is adjusted back, if executing data for including the calling auxiliary information in the baseline results data and returning Mediate reason.
In the embodiment of the present application, the calling auxiliary information includes the function information called, the data of the result data Type and call request mark,
The readjustment unit, if the letter for the function information and calling called for first in the baseline results data Number information matches, and the first request mark in the baseline results data is matched with call request mark, and described The first data type in baseline results data is matched with the data type of the result data, then executes the processing of data readjustment.
In the embodiment of the present application, the readjustment unit, if the letter called for second in the baseline results data The function information of number information and calling matches, and the second data type in the baseline results data and the result data Data type matching, then execute data readjustment processing.
In the embodiment of the present application, the function information of the calling is the memory of application programming interface device catoptric arrangement Address.
In the embodiment of the present application, described device further include: removing module, for deleting the calling auxiliary information.
The embodiment of the present application provides a kind of acquisition device of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
Embodiment six
The embodiment of the present application also provides a kind of acquisition device of data, as shown in Figure 7.
Auxiliary information generation module, for generating with the calling according to the corresponding information for calling function of call request The information of function is the calling auxiliary information of key;
Information sending module, for the call request and the calling auxiliary information to be sent to scheduled target group Part;
Callback module, if in the result data returned for the target element including the calling auxiliary information, Execute the processing of data readjustment.
The embodiment of the present application provides a kind of acquisition device of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
Embodiment seven
The embodiment of the present application also provides a kind of acquisition device of data, as shown in Figure 8.
The acquisition device of the data includes: information receiving module 801, result data generation module 802 and broadcast module 803, in which:
Information receiving module 801, for receiving the call request and preset calling auxiliary information of invocation component transmission;
Result data generation module 802 is asked for obtaining corresponding request data according to the call request according to described Data and the calling auxiliary information are asked to generate result data;
Broadcast module 803, for broadcasting the result data, so that the invocation component is according in the result data The calling auxiliary information executes the processing of data readjustment.
In the embodiment of the present application, described device further include:
Serialization module obtains the sequence of the result data for the result data to be carried out text sequence processing Columnization data;
Correspondingly, the broadcast module 803, for the serialized data of the result data to be passed through predetermined broadcast mechanism It is broadcast to scheduled component.
In the embodiment of the present application, the broadcast module 803 is predetermined for passing through the serialized data of the result data Broadcast mechanism is broadcasted into scheduled broadcast event channel, so that the object invocation component captures the serialized data.
The embodiment of the present application provides a kind of acquisition device of data, generates corresponding call by call request and assists letter Then the call request and the calling auxiliary information are sent to scheduled target element, pass through what is returned to target element by breath The comparison of result data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component is held Row data readjustment processing, in this way, by the way that component in the prior art is initiated the two of call request and called component returned data A mutually contradictory mechanism be abstracted again and merges (being not simply to combine), so that data in the prior art The realization of acquisition process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies number According to acquisition process, and improve the acquisition efficiency of data.
Embodiment eight
Based on same thinking, the embodiment of the present application also provides a kind of data acquisition facility, as shown in Figure 9.
The data acquisition facility can be terminal device provided by the above embodiment, such as mobile phone or tablet computer.
Data acquisition facility can generate bigger difference because configuration or performance are different, may include one or one with On processor 901 and memory 902, can store one or more storage application programs or number in memory 902 According to.Wherein, memory 902 can be of short duration storage or persistent storage.The application program for being stored in memory 902 may include one A or more than one module (diagram is not shown), each module may include can to the series of computation machine in data acquisition facility It executes instruction.Further, processor 901 can be set to communicate with memory 902, executes and deposits on data acquisition facility Series of computation machine executable instruction in reservoir 902.Data acquisition facility can also include one or more power supplys 903, one or more wired or wireless network interfaces 904, one or more input/output interfaces 905, one or More than one keyboard 906.
Specifically in the present embodiment, data acquisition facility includes memory and one or more program, In one perhaps more than one program is stored in memory and one or more than one program may include one or one With upper module, and each module may include and being configured to the series of computation machine executable instruction in data acquisition facility With by one or more than one processor execute this or more than one program include can for carrying out following computer It executes instruction:
Corresponding calling auxiliary information is generated according to call request;
The call request and the calling auxiliary information are sent to scheduled target element;
If including the calling auxiliary information in the result data that the target element returns, execute at data readjustment Reason.
Optionally, the executable instruction when executed, can also make the processor:
Receive the result data of target element broadcast;
The result data is subjected to unserializing processing, obtains the corresponding baseline results data of the result data;
If in the baseline results data including the calling auxiliary information, the processing of data readjustment is executed.
Optionally, the executable instruction when executed, can also make the processor:
The calling auxiliary information includes that function information, the data type of the result data and the calling called are asked Mark is sought,
If in the baseline results data including the calling auxiliary information, the processing of data readjustment, packet are executed It includes:
If the function information of the first function information called and calling in the baseline results data matches, and institute It states the first request mark in baseline results data and is identified with the call request and matched, and the in the baseline results data One data type is matched with the data type of the result data, then executes the processing of data readjustment.
Optionally, the executable instruction when executed, can also make the processor:
If the function information of the second function information called and calling in the baseline results data matches, and institute The second data type stated in baseline results data is matched with the data type of the result data, then is executed at data readjustment Reason.
Optionally, the function information of the calling is the memory address of application programming interface method catoptric arrangement.
Optionally, the executable instruction when executed, can also make the processor: delete the calling auxiliary letter Breath.
In addition, in the present embodiment, data acquisition facility includes memory and one or more program, Perhaps more than one program is stored in memory and one or more than one program may include one or one for one of them It is a with upper module, and each module may include to the series of computation machine executable instruction in data acquisition facility, and through matching Setting to execute this or more than one program by one or more than one processor includes for carrying out following computer Executable instruction:
According to the corresponding information for calling function of call request, generate auxiliary as the calling of key using the information for calling function Supplementary information;
The call request and the calling auxiliary information are sent to scheduled target element;
If including the calling auxiliary information in the result data that the target element returns, execute at data readjustment Reason.
In addition, in the present embodiment, data acquisition facility includes memory and one or more program, Perhaps more than one program is stored in memory and one or more than one program may include one or one for one of them It is a with upper module, and each module may include to the series of computation machine executable instruction in data acquisition facility, and through matching Setting to execute this or more than one program by one or more than one processor includes for carrying out following computer Executable instruction:
Receive call request and preset calling auxiliary information that invocation component is sent;
Corresponding request data is obtained according to the call request, according to the request data and the calling auxiliary information Generate result data;
The result data is broadcasted, so that the invocation component is according to the calling auxiliary information in the result data Execute the processing of data readjustment.
Optionally, the executable instruction when executed, can also make the processor:
The result data is subjected to text sequence processing, obtains the serialized data of the result data;
Correspondingly, the broadcast result data, comprising:
The serialized data of the result data is broadcast to scheduled component by predetermined broadcast mechanism.
Optionally, the executable instruction when executed, can also make the processor:
The serialized data of the result data is broadcasted by predetermined broadcast mechanism into scheduled broadcast event channel, So that the object invocation component captures the serialized data.
The embodiment of the present application provides a kind of data acquisition facility, generates corresponding calling auxiliary information by call request, Then the call request and the calling auxiliary information are sent to scheduled target element, pass through the result returned to target element The comparison of data and above-mentioned calling auxiliary information determines the invocation component for initiating call request, so that the invocation component executes number It is handled according to readjustment, in this way, passing through two phases that component in the prior art is initiated to call request and called component returned data The mechanism mutually to oppose be abstracted again and merges (being not simply to combine), so that data acquisition in the prior art The realization of process, which needs to call twice to become once to call, can be realized, and improves the calling efficiency of component, simplifies data Acquisition process, and improve the acquisition efficiency of data.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (23)

1. a kind of acquisition methods of data, which is characterized in that the described method includes:
Corresponding calling auxiliary information is generated according to call request;
The call request and the calling auxiliary information are sent to scheduled target element;
If in the result data that the target element returns including the calling auxiliary information, the processing of data readjustment is executed.
2. if the method according to claim 1, wherein in the result data that the target element returns Including the calling auxiliary information, then readjustment processing is executed, comprising:
Receive the result data of target element broadcast;
The result data is subjected to unserializing processing, obtains the corresponding baseline results data of the result data;
If in the baseline results data including the calling auxiliary information, the processing of data readjustment is executed.
3. according to the method described in claim 2, it is characterized in that, it is described call auxiliary information include call function information, The data type of the result data and call request mark,
If in the baseline results data including the calling auxiliary information, the processing of data readjustment is executed, comprising:
If the function information of the first function information called and calling in the baseline results data matches, and the original The first request mark in beginning result data is matched with call request mark, and the first number in the baseline results data It is matched according to type with the data type of the result data, then executes the processing of data readjustment.
4. if according to the method described in claim 3, it is characterized in that, in the result data that the target element returns Including the calling auxiliary information, then readjustment processing is executed, comprising:
If the function information of the second function information called and calling in the baseline results data matches, and the original The second data type in beginning result data is matched with the data type of the result data, then executes the processing of data readjustment.
5. the method according to claim 3 or 4, which is characterized in that the function information of the calling is application programming The memory address of interface method catoptric arrangement.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Delete the calling auxiliary information.
7. a kind of acquisition methods of data, which is characterized in that the described method includes:
According to the corresponding information for calling function of call request, generates and assist letter using the information for calling function as the calling of key Breath;
The call request and the calling auxiliary information are sent to scheduled target element;
If in the result data that the target element returns including the calling auxiliary information, the processing of data readjustment is executed.
8. a kind of acquisition methods of data, which is characterized in that the described method includes:
Receive call request and preset calling auxiliary information that invocation component is sent;
Corresponding request data is obtained according to the call request, is generated according to the request data and the calling auxiliary information Result data;
The result data is broadcasted, so that the invocation component is executed according to the calling auxiliary information in the result data The processing of data readjustment.
9. according to the method described in claim 8, it is characterized in that, the method is also before the broadcast result data Include:
The result data is subjected to text sequence processing, obtains the serialized data of the result data;
Correspondingly, the broadcast result data, comprising:
The serialized data of the result data is broadcast to scheduled component by predetermined broadcast mechanism.
10. according to the method described in claim 9, it is characterized in that, the serialized data by the result data passes through Predetermined broadcast mechanism is broadcast to scheduled component, comprising:
The serialized data of the result data is broadcasted by predetermined broadcast mechanism into scheduled broadcast event channel, so as to The object invocation component captures the serialized data.
11. a kind of acquisition device of data, which is characterized in that described device includes:
Auxiliary information generation module, for generating corresponding calling auxiliary information according to call request;
Information sending module, for the call request and the calling auxiliary information to be sent to scheduled target element;
Callback module executes if including the calling auxiliary information in the result data returned for the target element The processing of data readjustment.
12. device according to claim 11, which is characterized in that the callback module, comprising:
Data receipt unit, for receiving the result data of target element broadcast;
Data processing unit obtains the corresponding original of the result data for the result data to be carried out unserializing processing Beginning result data;
Unit is adjusted back, if executed at data readjustment for including the calling auxiliary information in the baseline results data Reason.
13. device according to claim 12, which is characterized in that the calling auxiliary information includes the function letter called Breath, the data type of the result data and call request mark,
The readjustment unit, if the function letter for the function information and calling called for first in the baseline results data Manner of breathing matching, and the first request mark in the baseline results data is matched with call request mark, and described original The first data type in result data is matched with the data type of the result data, then executes the processing of data readjustment.
14. device according to claim 13, which is characterized in that the readjustment unit, if being used for the baseline results The function information of the second function information called and calling in data matches, and the second number in the baseline results data It is matched according to type with the data type of the result data, then executes the processing of data readjustment.
15. device described in 3 or 14 according to claim 1, which is characterized in that the function information of the calling is application program volume The memory address of journey interface arrangement catoptric arrangement.
16. device according to claim 15, which is characterized in that described device further include:
Removing module, for deleting the calling auxiliary information.
17. a kind of acquisition device of data, which is characterized in that described device includes:
Auxiliary information generation module, for generating with the calling function according to the corresponding information for calling function of call request Information be key calling auxiliary information;
Information sending module, for the call request and the calling auxiliary information to be sent to scheduled target element;
Callback module executes if including the calling auxiliary information in the result data returned for the target element The processing of data readjustment.
18. a kind of acquisition device of data, which is characterized in that described device includes:
Information receiving module, for receiving the call request and preset calling auxiliary information of invocation component transmission;
Result data generation module, for obtaining corresponding request data according to the call request, according to the request data Result data is generated with the calling auxiliary information;
Broadcast module, for broadcasting the result data, so that the invocation component is according to the tune in the result data The processing of data readjustment is executed with auxiliary information.
19. device according to claim 18, which is characterized in that described device further include:
Serialization module obtains the serializing of the result data for the result data to be carried out text sequence processing Data;
Correspondingly, the broadcast module, for the serialized data of the result data to be broadcast to by predetermined broadcast mechanism Scheduled component.
20. device according to claim 19, which is characterized in that the broadcast module, for by the result data Serialized data is broadcasted by predetermined broadcast mechanism into scheduled broadcast event channel, so as to object invocation component capture The serialized data.
21. a kind of data acquisition facility, which is characterized in that the data acquisition facility includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
Corresponding calling auxiliary information is generated according to call request;
The call request and the calling auxiliary information are sent to scheduled target element;
If in the result data that the target element returns including the calling auxiliary information, the processing of data readjustment is executed.
22. a kind of data acquisition facility, which is characterized in that the data acquisition facility includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
According to the corresponding information for calling function of call request, generates and assist letter using the information for calling function as the calling of key Breath;
The call request and the calling auxiliary information are sent to scheduled target element;
If in the result data that the target element returns including the calling auxiliary information, the processing of data readjustment is executed.
23. a kind of data acquisition facility, which is characterized in that the data acquisition facility includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
Receive call request and preset calling auxiliary information that invocation component is sent;
Corresponding request data is obtained according to the call request, is generated according to the request data and the calling auxiliary information Result data;
The result data is broadcasted, so that the invocation component is executed according to the calling auxiliary information in the result data The processing of data readjustment.
CN201710753650.7A 2017-08-29 2017-08-29 A kind of acquisition methods of data, device and equipment Pending CN109426570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710753650.7A CN109426570A (en) 2017-08-29 2017-08-29 A kind of acquisition methods of data, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710753650.7A CN109426570A (en) 2017-08-29 2017-08-29 A kind of acquisition methods of data, device and equipment

Publications (1)

Publication Number Publication Date
CN109426570A true CN109426570A (en) 2019-03-05

Family

ID=65503355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710753650.7A Pending CN109426570A (en) 2017-08-29 2017-08-29 A kind of acquisition methods of data, device and equipment

Country Status (1)

Country Link
CN (1) CN109426570A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381728A (en) * 2020-03-11 2020-07-07 努比亚技术有限公司 Touch data control method and device and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203736A (en) * 2011-05-20 2011-09-28 华为技术有限公司 Method and device for calling open application programming interface (openapi)
CN102497453A (en) * 2011-12-28 2012-06-13 用友软件股份有限公司 Calling device and calling method for remote programs
CN103914335A (en) * 2013-01-05 2014-07-09 中国移动通信集团公司 Invoking method, equipment and system for background service
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal
CN105718313A (en) * 2016-01-22 2016-06-29 北京京东尚科信息技术有限公司 Application operation method and device
CN106020963A (en) * 2016-06-07 2016-10-12 中国建设银行股份有限公司 Cross-system internal service calling method and device
CN106547631A (en) * 2016-09-26 2017-03-29 腾讯科技(深圳)有限公司 Striding course communication means and device based on Android platform
CN106980550A (en) * 2017-03-23 2017-07-25 青岛海信电器股份有限公司 Expansion interface call method and device
CN106991057A (en) * 2017-04-11 2017-07-28 深信服科技股份有限公司 The call method and virtual platform of internal memory in a kind of shared video card virtualization
CN107015873A (en) * 2017-01-23 2017-08-04 阿里巴巴集团控股有限公司 Call method, component interface device, electronic equipment and the App of App functional module

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203736A (en) * 2011-05-20 2011-09-28 华为技术有限公司 Method and device for calling open application programming interface (openapi)
CN102497453A (en) * 2011-12-28 2012-06-13 用友软件股份有限公司 Calling device and calling method for remote programs
CN103914335A (en) * 2013-01-05 2014-07-09 中国移动通信集团公司 Invoking method, equipment and system for background service
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal
CN105718313A (en) * 2016-01-22 2016-06-29 北京京东尚科信息技术有限公司 Application operation method and device
CN106020963A (en) * 2016-06-07 2016-10-12 中国建设银行股份有限公司 Cross-system internal service calling method and device
CN106547631A (en) * 2016-09-26 2017-03-29 腾讯科技(深圳)有限公司 Striding course communication means and device based on Android platform
CN107015873A (en) * 2017-01-23 2017-08-04 阿里巴巴集团控股有限公司 Call method, component interface device, electronic equipment and the App of App functional module
CN106980550A (en) * 2017-03-23 2017-07-25 青岛海信电器股份有限公司 Expansion interface call method and device
CN106991057A (en) * 2017-04-11 2017-07-28 深信服科技股份有限公司 The call method and virtual platform of internal memory in a kind of shared video card virtualization

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381728A (en) * 2020-03-11 2020-07-07 努比亚技术有限公司 Touch data control method and device and computer readable storage medium
CN111381728B (en) * 2020-03-11 2024-01-09 努比亚技术有限公司 Touch data management and control method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
KR102208186B1 (en) Blockchain consensus method and device
EP3550811A1 (en) Information presentation method and apparatus
CN108345977A (en) A kind of method for processing business and device
CN110134668A (en) Data migration method, device and equipment applied to block chain
CN110020231A (en) Webpage capture method and device thereof
CN108647076A (en) A kind of page processing method, device and equipment
CN109241026A (en) The method, apparatus and system of data management
EP4131932A1 (en) Video effect configuration file generation method, and video rendering method and device
US20220004404A1 (en) Application processing method and apparatus
CN109271587A (en) A kind of page generation method and device
CN111273986A (en) Page jump method and device of application program, electronic equipment and storage medium
CN108363732A (en) A kind of form processing method of multi-user collaborative, device and equipment
CN110502415A (en) One kind burying a setting method, device and equipment
CN108614693A (en) It is a kind of for the processing method of page assembly, device and equipment
CN108427737A (en) A kind of data clearing method, equipment and computer-readable medium
CN109710622A (en) A kind of data-updating method, device and system
CN108536569A (en) A kind of business conduct tracking, device and equipment
CN103176800A (en) Application program login method and device
CN107479868A (en) A kind of interface loading method, device and equipment
CN114048404A (en) Display method and device and electronic equipment
CN110147184B (en) Navigation backspacing method and control
CN107341155A (en) File designation method and device
CN109614393A (en) Verification of data method and device
CN109426570A (en) A kind of acquisition methods of data, device and equipment
CN111210222B (en) Data display and payment method, device, equipment and 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: 20190305

RJ01 Rejection of invention patent application after publication