CN102055602B - Method, device and system for acquiring execution result - Google Patents

Method, device and system for acquiring execution result Download PDF

Info

Publication number
CN102055602B
CN102055602B CN 200910209156 CN200910209156A CN102055602B CN 102055602 B CN102055602 B CN 102055602B CN 200910209156 CN200910209156 CN 200910209156 CN 200910209156 A CN200910209156 A CN 200910209156A CN 102055602 B CN102055602 B CN 102055602B
Authority
CN
China
Prior art keywords
result
sign
execution result
server
client
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.)
Active
Application number
CN 200910209156
Other languages
Chinese (zh)
Other versions
CN102055602A (en
Inventor
张跃明
刘威威
谭治
张晟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Hunan Co Ltd
Original Assignee
China Mobile Group Hunan Co 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 China Mobile Group Hunan Co Ltd filed Critical China Mobile Group Hunan Co Ltd
Priority to CN 200910209156 priority Critical patent/CN102055602B/en
Publication of CN102055602A publication Critical patent/CN102055602A/en
Application granted granted Critical
Publication of CN102055602B publication Critical patent/CN102055602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method, a device and a system for acquiring an execution result. The method comprises the following steps that: a server sends an instruction to a client through a first interface between the server and the client; the server receives a result identifier of the execution result acquired by executing the instruction, which is returned by the client; and the client acquires the execution result according to the result identifier through a second interface. By the method, the device and the system, the congestion degree of the interfaces between the server and the client is reduced, and the work efficiency and stability of the server are improved.

Description

A kind of execution result acquisition methods and Apparatus and system
Technical field
The present invention relates to the communications field, relate in particular to a kind of execution result acquisition methods and Apparatus and system.
Background technology
In the prior art, NM server at needs from network during image data, usually adopt the mode of real-time, interactive, be that NM server passes through an interface to the instruction of client transmission webmaster, and receive the execution result that client is returned by this interface, this execution result is the webmaster instruction that client is sent according to NM server, obtains after the operation of execution correspondence.
Adopt existing scheme to have following defective: when the data volume that the execution result that the instruction that receives when client executing obtains comprises is big, when perhaps the frequency of NM server transmission instruction is higher, all can cause the situation of this interface congestion between client and the NM server, reduce NM server operating efficiency and stability.
Summary of the invention
The embodiment of the invention provides a kind of execution result acquisition methods and Apparatus and system, in order to reduce the Congestion Level SPCC of interface between server and the client, improves operating efficiency and the stability of server.
The embodiment of the invention provides a kind of execution result acquisition methods, comprising:
Server by and client between first interface send instruction to described client; And
Receive result's sign of the execution result that the described instruction of execution that described client returns obtains; And
Obtain described execution result according to described result's sign by second interface.
The embodiment of the invention also provides a kind of server, comprising:
Transmitting element, be used for by and client between first interface send instruction to described client;
Receiving element, result's sign of the execution result that the described instruction of returning for the described client of reception of execution obtains;
Acquiring unit is used for obtaining described execution result according to described result's sign by second interface.
The embodiment of the invention also provides a kind of execution result to obtain system, comprising: the server and client side, wherein:
Described server comprises transmitting element, receiving element and acquiring unit, wherein:
Described transmitting element: be used for by and described client between first interface send instruction to described client;
Described receiving element: result's sign of the execution result that the described instruction of returning for the described client of reception of execution obtains;
Described acquiring unit: be used for obtaining described execution result according to described result's sign by second interface;
Described client is used for receiving described instruction; And return described result sign to described server.
In the method that the embodiment of the invention provides, be used for to send instruction between server and the client and return first interface of result's sign of the execution result of acquisition, be not used further to transmit execution result, the transmission of execution result is transmitted by second interface, so, even the data volume that the execution result that obtains comprises is bigger, also can not increase the transmission load of first interface again, therefore, compared to existing technology, reduce the Congestion Level SPCC of first interface between server and the client, and then can improve operating efficiency and the stability of server.
Description of drawings
The flow chart of a kind of execution result acquisition methods that Fig. 1 provides for the embodiment of the invention;
The Signalling exchange flow chart of a kind of execution result acquisition methods that Fig. 2 provides for the embodiment of the invention one;
The Signalling exchange flow chart of a kind of execution result acquisition methods that Fig. 3 provides for the embodiment of the invention two;
The Signalling exchange flow chart of a kind of execution result acquisition methods that Fig. 4 provides for the embodiment of the invention three;
The structural representation of a kind of server that Fig. 5 provides for the embodiment of the invention four;
A kind of execution result that Fig. 6 provides for the embodiment of the invention five obtains the structural representation of system.
Embodiment
The embodiment of the invention provides a kind of execution result acquisition methods, as shown in Figure 1, comprising:
Step S101, server by and client between first interface send instruction to client.
Result's sign of the execution result that this instruction of execution that step S102, reception client are returned obtains.
Step S103, obtain this execution result according to this result sign by second interface.
Below in conjunction with accompanying drawing, with the NM server in the network by and client between the mode of real-time, interactive, image data is example from network, and method provided by the invention and corresponding system are described in detail.
Embodiment one:
Figure 2 shows that the Signalling exchange flow chart of a kind of execution result acquisition methods that the embodiment of the invention one provides, comprising:
Step S201, NM server (namely being equivalent to the server among the above-mentioned steps S101) will be from networks during image data, according to the data that will gather, by and relative client between first interface send corresponding webmaster instruction (namely being equivalent to the instruction among the above-mentioned steps S101) to this client.
After step S202, client receive this webmaster instruction, carry out this webmaster instruction and obtain execution result, be this webmaster command assignment corresponding identification simultaneously, this sign of distribution is also corresponding with the execution result that obtains, and in the embodiment of the invention this sign is called the result and identifies.
Step S203, client store the execution result that obtains in the storage server into, and memory location and this result of this execution result of storage identifies correspondingly in storage server, for example, is specifically as follows:
Client is stored in the execution result that obtains with this result and identifies in the corresponding file; And this document stored in the storage server, can adopt the file compress technique to reduce data transfer overhead significantly this moment, improves the efficiency of transmission of execution result; Perhaps
Client is stored in the execution result that obtains in the database and identifies in the corresponding record with this result.
Step S204, client are returned this result's sign of this execution result of acquisition to NM server.Because this result sign is also corresponding with this webmaster instruction, therefore, after NM server received this result's sign, can determining this result, to identify corresponding execution result be that corresponding which bar webmaster that sends before it instructs.
This step S204 and above-mentioned steps S203 do not have strict sequencing.
After step S205, NM server receive this result's sign, on the storage server of this execution result of storage, according to the corresponding relation of result's sign with the memory location, determine the memory location of this execution result, and obtain this execution result from this memory location.As seen, in the present embodiment one, when NM server obtains execution result, be by the interface (namely being equivalent to second interface among the above-mentioned steps S103) between itself and the storage server, and no longer by the transmission of first interface between itself and client execution result, so, even the data volume that this execution result comprises is bigger, also can not increase the transmission load of first interface, therefore, compared to existing technology, reduce the Congestion Level SPCC of first interface, and then can improve operating efficiency and the stability of NM server.
Embodiment two:
Figure 3 shows that the Signalling exchange flow chart of a kind of execution result acquisition methods that the embodiment of the invention two provides, comprising:
Step S301, identical with above-mentioned steps S201.
Step S302, identical with above-mentioned steps S202.
Step S303, client store the execution result that obtains in its this locality into, and memory location and this result of this execution result of storage identifies correspondingly in its this locality, for example, is specifically as follows:
Client is stored in the execution result that obtains with this result and identifies in the corresponding file; Perhaps
Client is stored in the execution result that obtains in the database and identifies in the corresponding record with this result.
Step S304, identical with above-mentioned steps S204.
This step S304 and above-mentioned steps S303 do not have strict sequencing.
After step S305, NM server receive this result's sign, by other interfaces between itself and the client, on this client of this execution result of storage, according to the corresponding relation of result's sign with the memory location, determine the memory location of this execution result, and obtain this execution result from this memory location.
Also can be by second interface of client by itself and NM server, this execution result and corresponding result identified initiatively send to NM server, NM server according to before result's sign of receiving corresponding webmaster of this execution result of determining reception instruct.
In the present embodiment two, because when NM server obtains execution result, be by second interface between itself and the client, and no longer by first interface transmission execution result between itself and the client, so, even the data volume that this execution result comprises is bigger, also can not increase the transmission load of first interface, therefore, compared to existing technology, reduce the Congestion Level SPCC of first interface, and then can improve operating efficiency and the stability of NM server.
Embodiment three:
Figure 4 shows that the Signalling exchange flow chart of a kind of execution result acquisition methods that the embodiment of the invention three provides, comprising:
Step S401, identical with above-mentioned steps S201.
Step S402, identical with above-mentioned steps S202.
Step S403, client store the execution result that obtains in the NM server into by other interfaces, and memory location and this result of this execution result of storage identifies correspondingly in NM server, for example, is specifically as follows:
Client is stored in the execution result that obtains with this result and identifies in the corresponding file; And this document stored in the NM server by second interface, can adopt the file compress technique to reduce data transfer overhead significantly this moment, improves the efficiency of transmission of execution result; Perhaps
Client is stored in the execution result that obtains in the database and identifies in the corresponding record with this result.
Step S404, identical with above-mentioned steps S204.
This step S404 and above-mentioned steps S403 do not have strict sequencing.
After step S405, NM server receive this result's sign, in its this ground, according to the corresponding relation of result's sign with the memory location, determine the memory location of this execution result, and obtain this execution result from this memory location.
In the present embodiment three, because when client is stored in the execution result that obtains in the NM server, be second interface by itself and NM server, and no longer by first interface transmission execution result between itself and the NM server, so, even the data volume that this execution result comprises is bigger, also can not increase the transmission load of first interface, therefore, compared to existing technology, reduce the Congestion Level SPCC of first interface, and then can improve operating efficiency and the stability of NM server.
For above-described embodiment one, above-described embodiment two and above-described embodiment three, it is to be noted, when the data volume that the execution result that obtains when the instruction of execution webmaster comprises is big, need the regular hour during this execution result of client stores, may occur the distribution result identification information being returned to after the NM server, also do not finish the storage of this execution result, at this moment, when NM server obtains this execution result according to the result's sign that receives, can can't obtain and cause obtaining failure, when this situation occurring, NM server can obtain this execution result according to the result's sign that receives again after through the certain hour that arranges.
In the above-mentioned execution result acquisition methods that the embodiment of the invention one, two and three provides, can also comprise:
When client receives this webmaster instruction for the first time, also store this result's sign that should the webmaster command assignment, when client receives this webmaster instruction of NM server transmission again, then no longer carry out this webmaster instruction and obtain execution result, but directly obtain this result sign of storage, and to NM server return obtain to result's sign that should the webmaster command assignment; And
Can also be set life cycle for this result's sign of storage, and in the life cycle of this result's sign, when client receives this webmaster instruction of NM server transmission again, then no longer carry out this webmaster instruction and obtain execution result, but directly obtain this result sign of storage, and to NM server return obtain to result's sign that should the webmaster command assignment.
Obtain the process of execution result owing to reduced this webmaster instruction of client executing, so improved treatment effeciency.
In the above-mentioned execution result acquisition methods that the embodiment of the invention one, two and three provides, also can after receiving this result's sign, server also comprise: this result's sign that storage receives; And
After obtaining this execution result according to this result's sign by second interface for the first time, when NM server will obtain this execution result again, namely will be again when sending this webmaster instruction and obtain this execution result, then no longer send the instruction of this webmaster, but obtain this execution result according to the result's sign to should the webmaster instruction of storage before.
Owing to reduced the process that NM server sends this webmaster instruction, directly according to before the result's sign to should the webmaster instruction that receives obtain this execution result, therefore improved treatment effeciency.
Embodiment four:
Based on same inventive concept, according to a kind of execution result acquisition methods that the above embodiment of the present invention one, two and three provides, correspondingly, the embodiment of the invention four also provides a kind of server, and its structural representation comprises as shown in Figure 5:
Transmitting element 501, be used for by and client between first interface send instruction to client;
Receiving element 502, result's sign of the execution result that this instruction of execution of returning for this client of reception obtains;
Acquiring unit 503 is used for obtaining this execution result according to this result's sign by second interface.
Preferable, above-mentioned acquiring unit 503, concrete being used for according to this result's sign is according to the corresponding relation of this result's sign with the memory location of this execution result, determine the memory location of this execution result, and obtain this execution result by second interface from this memory location.
Preferable, above-mentioned server also comprises: memory cell 504 is used for this result's sign that storage receives;
Above-mentioned acquiring unit 503 also is used for when book server obtains this execution result again, obtains this execution result according to this result's sign of storage.
Embodiment five:
Based on same inventive concept, according to a kind of execution result acquisition methods that the above embodiment of the present invention one, two and three provides, correspondingly, the embodiment of the invention five also provides a kind of execution result to obtain system, its structural representation comprises as shown in Figure 6: server 601 and client 602;
Above-mentioned server 601, be used for by and above-mentioned client 602 between first interface send instruction to above-mentioned client 602; And receive result's sign of the execution result that this instruction of execution that above-mentioned client 602 returns obtains; And obtain this execution result according to this result sign by second interface;
Above-mentioned client 602 is used for receiving this instruction; And return this result sign to above-mentioned server 602.
Preferable, above-mentioned server 601, concrete being used for determined this memory location of this execution result according to the corresponding relation of this result's sign with the memory location of this execution result, and obtains this execution result from this memory location.
Preferable, above-mentioned client 602, concrete when being used for receiving this instruction for the first time, carry out this instruction and obtain this execution result, and identify to this result that above-mentioned server 601 returns distribution, and store this result and identify; And when receiving this instruction again, return this result's sign of storage to above-mentioned server 601.
Preferable, above-mentioned client 602 also is used for after this result's sign of storage also being set the life cycle of this result's sign of storage; And in the life cycle of this result's sign, when receiving this instruction again, return this result's sign of storage to above-mentioned server 601.
Preferable, above-mentioned server 601 also is used for after receiving this result's sign, this result's sign that storage receives; And after obtaining this execution result according to this result's sign by second interface, when obtaining this execution result again, obtain this execution result according to this result's sign of storage.
The above embodiment of the present invention one, two, three and four schemes that provide also are applicable to other instruction inquiries of being made up of the server and client side, mutual system.
In sum, the scheme that the embodiment of the invention provides comprises: server by and client between first interface send instruction to client; And the result who receives the execution result that this instruction of execution that client returns obtains identifies; And obtain this execution result according to this result sign by second interface.The scheme that adopts the embodiment of the invention to provide has reduced the Congestion Level SPCC of interface between server and the client, has improved operating efficiency and the stability of server.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (13)

1. an execution result acquisition methods is characterized in that, comprising:
Server by and client between first interface send instruction to described client; And
Receive result's sign of the execution result that the described instruction of execution that described client returns obtains; And
Obtain described execution result according to described result's sign by second interface.
2. the method for claim 1 is characterized in that, obtains described execution result according to described result's sign by second interface, is specially:
According to described result's sign, according to the corresponding relation of described result's sign with the memory location of described execution result, determine the memory location of described execution result, and
Obtain described execution result by second interface from described memory location.
3. method as claimed in claim 1 or 2 is characterized in that, receives result's sign of the execution result that the described instruction of execution that described client returns obtains, and comprising:
If when described client receives described instruction for the first time, carry out described instruction and obtain described execution result, and be returned as the described result that described execution result distributes to described server and identify;
When if described client receives described instruction again, obtain the described execution result distribution result sign that obtains when carrying out for the first time described instruction of storage, and return the described result who obtains to described server and identify.
4. method as claimed in claim 3 is characterized in that, the described result's sign that also is included as storage arranges life cycle;
When described client receives described instruction again, obtain result's sign and also comprise before:
Determining the result that will obtain was identified in life cycle.
5. method as claimed in claim 1 or 2 is characterized in that, after described server receives described result's sign, also comprises:
Described result's sign that described server stores receives;
After obtaining described execution result according to described result's sign by second interface, also comprise:
When described server obtains described execution result again, obtain described execution result according to described result's sign of storage.
6. a server is characterized in that, comprising:
Transmitting element, be used for by and client between first interface send instruction to described client;
Receiving element, result's sign of the execution result that the described instruction of returning for the described client of reception of execution obtains;
Acquiring unit is used for obtaining described execution result according to described result's sign by second interface.
7. server as claimed in claim 6 is characterized in that,
Described acquiring unit, concrete being used for according to described result's sign, according to the corresponding relation of described result's sign with the memory location of described execution result, determine the memory location of described execution result, and obtain described execution result by second interface from described memory location.
8. as claim 6 or 7 described servers, it is characterized in that, also comprise: memory cell is used for described result's sign that storage receives;
Described acquiring unit also is used for when book server obtains described execution result again, obtains described execution result according to described result's sign of storage.
9. an execution result obtains system, it is characterized in that, comprising: the server and client side, wherein:
Described server comprises transmitting element, receiving element and acquiring unit, wherein:
Described transmitting element, be used for by and described client between first interface send instruction to described client;
Described receiving element, result's sign of the execution result that the described instruction of returning for the described client of reception of execution obtains;
Described acquiring unit is used for obtaining described execution result according to described result's sign by second interface;
Described client is used for receiving described instruction; And return described result sign to described server.
10. system as claimed in claim 9, it is characterized in that, described acquiring unit, concrete being used for according to described result's sign, according to the corresponding relation of described result's sign with the memory location of described execution result, determine the memory location of described execution result, and obtain described execution result by second interface from described memory location.
11. as claim 9 or 10 described systems, it is characterized in that described client, concrete being used for if when receiving for the first time described instruction, carry out described instruction and obtain described execution result, and be returned as described result's sign that described execution result distributes to described server; If when receiving described instruction again, obtain the described execution result distribution result sign that obtains when carrying out for the first time described instruction of storage, and return the described result who obtains to described server and identify.
12. system as claimed in claim 11 is characterized in that, described client also is used to described result's sign of storage that be set life cycle; And when receiving described instruction again, obtain and determine the result that will obtain before the result sign and be identified in life cycle.
13., it is characterized in that described server also comprises memory cell as claim 9 or 10 described systems, be used for after receiving described result's sign described result's sign that storage receives;
Described acquiring unit also is used for after obtaining described execution result according to described result's sign by second interface, when obtaining described execution result again, obtains described execution result according to described result's sign of storage.
CN 200910209156 2009-10-28 2009-10-28 Method, device and system for acquiring execution result Active CN102055602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910209156 CN102055602B (en) 2009-10-28 2009-10-28 Method, device and system for acquiring execution result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910209156 CN102055602B (en) 2009-10-28 2009-10-28 Method, device and system for acquiring execution result

Publications (2)

Publication Number Publication Date
CN102055602A CN102055602A (en) 2011-05-11
CN102055602B true CN102055602B (en) 2013-07-10

Family

ID=43959561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910209156 Active CN102055602B (en) 2009-10-28 2009-10-28 Method, device and system for acquiring execution result

Country Status (1)

Country Link
CN (1) CN102055602B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213611B (en) * 2018-08-01 2021-07-02 天津字节跳动科技有限公司 Cross-process communication method, device, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929407A (en) * 2006-09-27 2007-03-14 华为技术有限公司 Method for obtaining network information and network management system
CN101098235A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Network storage equipment control system
CN101271403A (en) * 2007-03-22 2008-09-24 华为技术有限公司 Server and distributed system and call request processing method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194581B2 (en) * 2003-06-03 2007-03-20 Intel Corporation Memory channel with hot add/remove

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098235A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Network storage equipment control system
CN1929407A (en) * 2006-09-27 2007-03-14 华为技术有限公司 Method for obtaining network information and network management system
CN101271403A (en) * 2007-03-22 2008-09-24 华为技术有限公司 Server and distributed system and call request processing method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开平9-282271A 1997.10.31

Also Published As

Publication number Publication date
CN102055602A (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN102291430B (en) Method for processing allocation information of Internet of things, Internet of things platform and system
CN102045772B (en) Data transmission method and device
CN101141197B (en) Software download method
CN103139157B (en) A kind of based on the network communication method of socket, Apparatus and system
CN103856569A (en) Method and device for synchronizing domain name system resource information
CN102355682A (en) Sensor adapting method, sensor adapting device and IOT (Internet Of Things) system
CN105657000A (en) Message transmission method and device
CN110995513A (en) Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN102333130A (en) Method and system for accessing cache server and intelligent cache scheduler
CN103095758A (en) Distributed file system and file data processing method thereof
CN102831000B (en) The method and system of system upgrade
CN110912805A (en) Message reading state synchronization method, terminal, server and system
CN104320447A (en) Medium and small-sized cloud stored data synchronization method, compute readable medium and system
CN103731424B (en) A kind of transmission method of network data, apparatus and system
CN102055602B (en) Method, device and system for acquiring execution result
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
CN103117955B (en) Method for message transmission and device, system
CN102497306A (en) Method for realizing data transmission of distribution network substation and system thereof
CN102082726B (en) Data processing method, device and transmission system
CN104735097A (en) Information collecting method and system
CN102118256B (en) Method for acquiring simple network management protocol (SNMP) data and equipment-side device
CN104486215A (en) Message transmitting method and equipment
CN105471930A (en) Method, system and equipment for reading distributed data
CN103795810A (en) Data distribution system and method and central server of data distribution system
JP2015528260A (en) Method and device for providing communication connections for multiple candidate applications within a mobile device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant