CN103685436B - Data acquisition method and terminal equipment - Google Patents

Data acquisition method and terminal equipment Download PDF

Info

Publication number
CN103685436B
CN103685436B CN201210364231.1A CN201210364231A CN103685436B CN 103685436 B CN103685436 B CN 103685436B CN 201210364231 A CN201210364231 A CN 201210364231A CN 103685436 B CN103685436 B CN 103685436B
Authority
CN
China
Prior art keywords
data
proxy server
clouds proxy
clouds
request
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
CN201210364231.1A
Other languages
Chinese (zh)
Other versions
CN103685436A (en
Inventor
赵志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210364231.1A priority Critical patent/CN103685436B/en
Publication of CN103685436A publication Critical patent/CN103685436A/en
Application granted granted Critical
Publication of CN103685436B publication Critical patent/CN103685436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A data acquisition method and terminal equipment are provided. The data acquisition method is applied to the terminal equipment. The terminal equipment is in communication connection with a data server and a cloud proxy server respectively through a local proxy server; when the cloud proxy server receives a data acquisition request from the local proxy server, wherein the data acquisition request is transmitted by at least one application and is used for requesting to obtain content data from the data server, and the cloud proxy server obtains the content data from the data server and compresses the content data and transmits the compressed content data to the local proxy server. The data acquisition method comprises the following steps that: the local proxy server determines abnormal condition information of the cloud proxy server and generates an abnormality determination result; when the abnormality determination result indicates that the cloud proxy server is abnormal, the local proxy server acquires the content data according to an acquisition strategy corresponding to the abnormality determination result, wherein the content data are corresponding to the data acquisition request transmitted by the at least one application.

Description

Data capture method and terminal device
Technical field
The present invention relates to communication technical field, and specifically related to a kind of data capture method and the use data acquisition side The terminal device of method.
Background technology
In recent years, with the development of electronic technology, the terminal of such as smart phone, panel computer and personal digital assistant sets Standby gradually to popularize, it can easily realize surfing the Net, play game, see video, read magazine etc. function.Meanwhile, with communication skill The development of art, 3G (Third Generation) Moblie(3G)The user of the mobile Internet business forward direction terminal device of technology provides personalized Interactive service.However, because the cost of access of mobile Internet is restricted, user would generally when using mobile Internet business The relatively high cost of mobile data services is taken into account, and perfect Consumer's Experience cannot be enjoyed to the full.
Therefore, there is provided the technological means of various saving flows, such as data server end in a network builds one High in the clouds proxy server, and the networking request of terminal device is introduced directly into the high in the clouds proxy server, high in the clouds proxy server After network data is obtained from data server, the data such as picture are compressed and terminal device is returned to.Used at this During network, when high in the clouds proxy server occurs abnormal, the Network Data Capture for causing terminal device postpones, even without Method is obtained.Now, even if the working condition of 3G communication networks is normal, the 3G communication networks cannot also be used.
When the load weight due to high in the clouds proxy server causes its abnormal, generally according to the visit of high in the clouds proxy server The amount of asking is solved to carry out dilatation and/or increase access bandwidth to equipment such as CPU, internal memory, hard disks.This causes into This increase, and more attendants are needed so as to aggravate maintenance load.
When the deadlock due to high in the clouds proxy server causes its abnormal, in Android(Android)The cloud of operating system On the proxy server of end, be able to cannot be used using application prompts user network.Now, the browser on terminal device can be User's " accessing error, network please be check " etc. is pointed out on the page.User needs manually to solve the problems, such as to surf the Net.Also It is to say, the abnormal Web vector graphic to user of high in the clouds proxy server causes inconvenience.
Accordingly, it is desirable to provide one kind can be saved while ensureing that user passes through terminal device quick obtaining content-data The data acquiring mode of the data traffic of terminal device so that user can facilitate, efficient, cost-effective obtain data.
The content of the invention
The embodiment of the invention provides a kind of data capture method and the terminal device using the data capture method, its energy Enough make user that the data traffic of terminal device is saved while by terminal device quick obtaining content-data, so that user's energy Enough obtain data conveniently, efficient, cost-effective.
On the one hand, there is provided a kind of data capture method, a terminal device is applied to, the terminal device has at least one It is individual application and a local agent service, the terminal device by the local agent service respectively with data server and high in the clouds Proxy server is communicatively coupled, when the high in the clouds proxy server receives described at least one from the local agent service Using send for ask from the data server obtain the data acquisition request of content-data when, the high in the clouds agency service Device obtains the content-data, the content-data is compressed and is transmitted to the local agent service from the data server The content-data for having compressed, the data capture method includes:The local agent service determines the high in the clouds proxy server Unusual condition information, and produce one abnormal to determine result;When the abnormal determination result indicates the high in the clouds proxy server When abnormal, the local agent service is according to acquisition strategy corresponding with the exception determination result, acquisition and described at least The corresponding content-data of data acquisition request that individual application sends.
The local agent service is according to acquisition strategy corresponding with the exception determination result, acquisition and described at least The corresponding content-data of data acquisition request that individual application sends, thus balance to the response speed of the data acquisition request and The data traffic occurred in the acquisition of the corresponding content-data.
Local agent service in the terminal device may be also connected to monitoring arrangement, the monitoring arrangement and the high in the clouds Proxy server communication is connected and monitors the running status of the high in the clouds proxy server, and the local agent service determines institute The step of unusual condition information for stating high in the clouds proxy server, can include:The high in the clouds agency clothes are obtained from the monitoring arrangement The unusual condition information of business device, the unusual condition information is the monitoring arrangement by monitoring the fortune of the high in the clouds proxy server Row state and the information that obtains.
It is described the high in the clouds proxy server is received from monitoring arrangement unusual condition information the step of may include:Described Ground agency service sends inquiry request according to query strategy to the monitoring arrangement;The monitoring arrangement is received to be looked into response to described The Query Result ask request and send, the Query Result is the operation shape of the high in the clouds proxy server that the monitoring arrangement is monitored State;Determine whether the high in the clouds proxy server is abnormal according to the Query Result;And it is determined that the high in the clouds agency service When device is abnormal, the unusual condition information of the high in the clouds proxy server is obtained, wherein, the query strategy can be looked into according to described Result is ask to adjust.
When being broken down due to the monitoring arrangement and the local agent service in causing the terminal device can not be connected During to the monitoring arrangement, the local agent service can as follows determine the exception of the high in the clouds proxy server Condition information:Message is sent to the high in the clouds proxy server;Receive response of the high in the clouds proxy server to the message; And respond to determine the unusual condition information of the high in the clouds proxy server based on described.
The message can be network request, respond to determine the abnormal shape of the high in the clouds proxy server according to described During condition information, can be in the response timeout time and response timeout number of times according to the high in the clouds proxy server to the message At least one determines the unusual condition information of the high in the clouds proxy server.
The abnormal deactivation or overload for determining that result can be including high in the clouds proxy server, the local agent service According to the data acquisition request that acquisition strategy corresponding with the exception determination result, acquisition send with described at least one application The step of corresponding content-data, can include:When the abnormal determination result indicates that the high in the clouds proxy server is disabled, The data acquisition request is sent to the data server by the local agent service, and obtains described from data server Corresponding content-data;When the abnormal determination result indicates that the high in the clouds proxy server overloads, the local agent clothes The data acquisition request is split as the first subdata and obtains request and the acquisition request of the second subdata by business, by first subnumber It is sent to the high in the clouds proxy server and is obtained with first subdata from high in the clouds proxy server reception according to request is obtained The corresponding content-data of request is taken, second subdata acquisition request is sent to the data server and from the data Server is received and obtains the corresponding content-data of request with second subdata.
It is described that data acquisition request is split as the step of the first subdata acquisition request and acquisition request of the second subdata May include:The distributing strategy of each application that the local agent service acquisition is used in the terminal device;With based on described Data acquisition request is split as the first subdata and obtains request and the acquisition request of the second subdata by distributing strategy.
On the other hand, there is provided a kind of terminal device, the terminal device by the local agent service respectively with data Server and high in the clouds proxy server are communicatively coupled, when the high in the clouds proxy server from the terminal device receive for Request from the data server obtain the data acquisition request of content-data when, the high in the clouds proxy server takes from the data Business device obtains the content-data, the content-data that the content-data is compressed and compressed to terminal device transmission, institute Stating terminal device includes:At least one application, it is described for asking to obtain content-data from the data server for sending Data acquisition request;Local agent is serviced, the unusual condition information for determining the high in the clouds proxy server, and produces one Abnormal to determine result, when the abnormal determination result indicates that the high in the clouds proxy server is abnormal, the local agent service is pressed According to the data acquisition request pair that acquisition strategy corresponding with the exception determination result, acquisition send with described at least one application The content-data answered.
In data capture method in the embodiment of the present invention and the terminal device using the data capture method, by determining The exception of the high in the clouds proxy server, is asked according to just taking different acquisition strategies to obtain from the abnormal determination result Content-data, make user that the data traffic of terminal device is saved while by terminal device quick obtaining content-data, Can facilitate so as to user, efficient, cost-effective obtain data.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be in embodiment or description of the prior art The required accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some realities of the invention Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the framework for schematically illustrating the communication network that terminal device obtains content-data;
Fig. 2 is the flow chart of the data capture method for schematically illustrating according to embodiments of the present invention;
Fig. 3 is to schematically illustrate the figure that utilization monitoring arrangement according to embodiments of the present invention determines abnormal system;
Fig. 4 is to schematically illustrate utilization monitoring arrangement according to embodiments of the present invention to detect the different of high in the clouds proxy server The flow chart of normal method;
Fig. 5 is to schematically illustrate terminal device according to embodiments of the present invention to obtain content-data according to acquisition strategy The flow chart of method;
Fig. 6 is to schematically illustrate terminal device using data capture method according to embodiments of the present invention to obtain content The exemplary process diagram of data;
Fig. 7 is the block diagram of the terminal device for schematically illustrating according to embodiments of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.
Fig. 1 is the framework for schematically illustrating the communication network that terminal device obtains content-data.In Fig. 1, the end End equipment 10 carries out communication link with data server 30 and high in the clouds proxy server 20 respectively by the local agent service 110 Connect.There is the terminal device 10 local agent service 110 and at least one to apply 120.The high in the clouds proxy server 20 exists From the local agent service 110 receive described at least one using 120 send for asking from the data server When obtaining the data acquisition request of content-data, the high in the clouds proxy server 20 obtains the content number from the data server According to, the content-data compressed and to the local agent service content-data that has compressed of transmission.10, the terminal device Such as it is smart phone, panel computer and personal digital assistant.The data server 30 is, for example, Website server, document number According to storehouse or data storage server etc..The high in the clouds proxy server 20 is the proxy server for data server, and it can To act on behalf of the data communication of multiple data servers.
The terminal device 10 can obtain content-data via high in the clouds proxy server 20 from data server 30.Specifically Ground, in the running of the application 120 in terminal device 10, such as the operation based on user produces the data acquisition Request, and send it to the local agent service 110 of the terminal device 10;Local agent service 110 then will be described Data acquisition request is sent to high in the clouds proxy server 20;High in the clouds proxy server 20 carries out data and leads to data server 30 Letter, content-data corresponding with the data acquisition request is obtained from data server 30, the content-data of acquisition is carried out all The local agent service 101 is such as sent to after the treatment of compression;The local agent services 101 pairs from high in the clouds agency service The content-data that device 20 is received carries out the treatment of such as decompression etc, and the content-data after treatment is supplied into described answering With.When the terminal device 10 obtains content-data via high in the clouds proxy server 20 from data server 30, due to high in the clouds generation The data compression process of server 20 is managed, the terminal device 10 can save its data traffic.
Additionally, the terminal device 10 can also be without directly being obtained from data server 30 via high in the clouds proxy server 20 Take content-data.The local agent service 110 can also by it is described application 120 send for asking from the data, services The data acquisition request that device obtains content-data is sent to the data server 30, and from directly being received from data server 30 Content-data corresponding with the data acquisition request.Local agent service 110 can utilize the third generation with data server 30 (3G)The technologies such as mobile communication technology, WiFi wireless communication technologys communicate.
Fig. 2 is the flow chart of the data capture method 200 for schematically illustrating according to embodiments of the present invention.The data acquisition Method 200 is applied to communication network as shown in Figure 1.
The data capture method 200 includes:The local agent service determines the abnormal shape of the high in the clouds proxy server Condition information, and produce an abnormal determination result(S210);When the abnormal determination result indicates that the high in the clouds proxy server is different Chang Shi, the local agent service is according to acquisition strategy corresponding with the exception determination result, acquisition and described at least one Using the corresponding content-data of the data acquisition request for sending(S220).
In S210, the local agent service determines the unusual condition information of the high in the clouds proxy server, and produces One abnormal determination result.The unusual condition information of the high in the clouds proxy server for example refers to the high in the clouds proxy server can not Data acquisition request is responded, it is long to response time of data acquisition request or high in the clouds proxy server negative The information such as load situation.As an example, when the high in the clouds proxy server can not be responded to data acquisition request, it is meant that The high in the clouds proxy server can not be worked, and it may be crashed due to overload, software fault etc.;When high in the clouds proxy server pair When the response time of data acquisition request is long, it is meant that high in the clouds proxy server is difficult to process the data acquisition in time Request, i.e., it is in overload condition;When the load of high in the clouds proxy server occupies over 80%, it is likely in overload shape State.According to the difference of abnormal determination mode, different unusual condition information can be obtained, so as to produce and the unusual condition information Corresponding abnormal determination result.
The local agent service can determine the high in the clouds and act on behalf of using various technologies that are existing or occurring in the future The unusual condition information of server.As an example, the local agent service can with the high in the clouds proxy server communication with Determine the unusual condition information.Specifically, the local agent service can send message to the high in the clouds proxy server; Receive response of the high in the clouds proxy server to the message;The high in the clouds proxy server is determined according to the response Unusual condition information.The message can be the network request of ping orders or such as data acquisition request.For example, described Local agent service can actively send out the ping orders for the high in the clouds proxy server, receive the high in the clouds agency clothes Business device is to the response of the ping orders and parses the response, if local agent service is based on analysis result, discovery is unable to ping It is logical, then can determine whether not can connect to the high in the clouds proxy server, may thereby determine that the high in the clouds proxy server is disabled.This Outward, the local agent service can also send data acquisition request to high in the clouds proxy server, receive and record the high in the clouds generation Response of the reason server to each data acquisition request, if continuous multiple(For example, 10)Surpassing occurs in data acquisition request When, then can determine that the high in the clouds proxy server is disabled;If response of the high in the clouds proxy server to each data acquisition request But it is made that beyond the stipulated time still response or is merely capable of doing the part in multiple data acquisition requests in time Go out response, it may be determined that the high in the clouds proxy server overload.That is, according to high in the clouds proxy server to network request Response come the unusual condition information for determining the high in the clouds proxy server when, can be according to the high in the clouds proxy server to net At least one of the response timeout time of network request and response timeout number of times determine the exception of the high in the clouds proxy server Condition information.
Further, it is also possible to set monitoring arrangement to monitor the exception of the high in the clouds proxy server.With reference to Fig. 3 and Tu 4 are described.Fig. 3 is to schematically illustrate utilization monitoring arrangement according to embodiments of the present invention to determine abnormal communication network Block diagram.
Terminal device 10, high in the clouds proxy server 20 and data server 30 in Fig. 3 and the connection between them are closed System may refer to the description above in conjunction with Fig. 1.Compared to Figure 1, further comprises monitoring arrangement 40 in the Fig. 3.The monitoring arrangement 40 The local agent service of the terminal device is connected to, and is communicated to connect with the high in the clouds proxy server 20 and is monitored institute State the running status of high in the clouds proxy server.Although it should be noted that monitoring arrangement 40 is illustrated as being acted on behalf of with the high in the clouds in figure 3 During server 20 is communicated to connect, but the monitoring arrangement 40 may be located at the high in the clouds proxy server 20.In the profit shown in Fig. 3 With monitoring arrangement 40 determine exception system in, the monitoring arrangement 40 monitors the operation shape of the high in the clouds proxy server 20 State, and the running state information of high in the clouds proxy server 20 is sent to the local agent service 110 in terminal device 10, so that Determine the unusual condition information of the high in the clouds proxy server.That is, the local agent service 110 can be from the prison View apparatus 40 obtain the unusual condition information of the high in the clouds proxy server 20, and the unusual condition information is the monitoring arrangement 40 The information obtained by monitoring the running status of the high in the clouds proxy server 20.
Fig. 4 is to schematically illustrate local agent service according to embodiments of the present invention to determine the different of high in the clouds proxy server The flow chart of normal method 400.In S410, judge whether to determine the abnormal shape of high in the clouds proxy server using monitoring arrangement Condition information.In the case of the unusual condition information for determining high in the clouds proxy server using monitoring arrangement(It is in S410), institute The step of stating 110 execution S420-S450 of local agent service;Determine the different of high in the clouds proxy server monitoring arrangement is not utilized In the case of normal condition information(It is no in S410), this for example occurs to cause described being broken down due to the monitoring arrangement Local agent service in terminal device not can connect in the situation of the monitoring arrangement, and the local agent service 110 is held The step of row S460-S480.
In S420, the local agent service sends inquiry request according to query strategy to the monitoring arrangement, and this is looked into Asking request can periodically send, so as to set up monitoring mechanism between local agent service 110 and monitoring arrangement 40.In S430 In, the local agent service receives the Query Result that the monitoring arrangement sends in response to the inquiry request, the inquiry Result is the running status of the high in the clouds proxy server that the monitoring arrangement is monitored.In S440, according to the Query Result Determine whether the high in the clouds proxy server is abnormal.When it is determined that the high in the clouds proxy server is abnormal, obtained from Query Result The unusual condition information of the high in the clouds proxy server(S450).It should be noted that the query strategy in S420 can be according to institute State Query Result to adjust, to improve search efficiency.For example, being when inquiry request is sent within 30 minutes, such as in query strategy When the corresponding Query Result of fruit indicates the high in the clouds loads of proxy servers weight, then the polling interval in query strategy can be increased Add to 1 hour, inquired about spent resource in local agent service to reduce, so as to improve search efficiency.Looked into using this Inquiry mechanism, beyond the clouds after proxy server exception, local agent service can in time find high in the clouds generation using monitoring arrangement The normal operative condition of server is managed, and in time using high in the clouds proxy server acquisition content-data, so as to save terminal set Standby data traffic.
Additionally, local agent service except using S420-S450 come from monitoring arrangement obtain the unusual condition information it Outward, other modes are may also take on to obtain the unusual condition information from monitoring arrangement.For example, local agent service can be with Inquiry request is not sent to the monitoring arrangement 40, and it is automatically different by what is found during monitoring by the monitoring arrangement 40 Normal condition information is sent to the local agent service 110.
In S460, the local agent service sends message to the high in the clouds proxy server.In S470, described Ground agency service receives response of the high in the clouds proxy server to the message.In S480, the local agent services base The unusual condition information of the high in the clouds proxy server is determined in the response.This is the foregoing local agent service 110 communicate with the high in the clouds proxy server 20 to determine the situation of the unusual condition information, and I will not elaborate.
The abnormal method 400 of high in the clouds proxy server is determined in the local agent service shown in Fig. 4, by making in combination With different abnormal determination modes, local agent service can accurately determine the unusual condition information of high in the clouds proxy server, So as to produce abnormal determination result.
The local agent service described in the S210 of Fig. 2 above in conjunction with Fig. 3-4 determines the high in the clouds proxy server Unusual condition information mode.Hereinafter continuing on the S220 of Fig. 2.In the S220, when the abnormal determination result refers to During the bright high in the clouds proxy server exception, the local agent service is according to acquisition plan corresponding with the exception determination result Slightly, content-data corresponding with the data acquisition request that described at least one application sends is obtained.The abnormal determination result can Disable or overload with including high in the clouds proxy server as described above, can also as needed include other abnormal conditions.
It is described with reference to Fig. 5.Fig. 5 is to schematically illustrate terminal device according to embodiments of the present invention according to obtaining Take the flow chart that strategy obtains the method 500 of content-data.
Generate in the S210 it is abnormal determine result after, judge it is abnormal determine result be high in the clouds proxy server disable, Or the overload of high in the clouds proxy server.When the abnormal determination result indicates that the high in the clouds proxy server is disabled, such as Fig. 1 institutes Show, the local agent service 110 can not obtain content-data via high in the clouds proxy server 20 from the data server 30, Automatically directly can now be communicated to obtain content-data, and no longer with the data server 30 using 3G or WiFi network The manual setting of the user of terminal device is needed, so as to the data acquisition guaranteed in time to the application in terminal device please Ask and respond.When the abnormal determination result indicates that the high in the clouds proxy server overloads, now the high in the clouds in Fig. 1 is acted on behalf of But server can also work, speed is slower, and now high in the clouds proxy server 20 can be shunted, and will apply 120 In the part of data acquisition request send and be sent directly to data server 30, to mitigate the negative of high in the clouds proxy server Carry, so as to balance the number occurred to the response speed of the data acquisition request and in the acquisition of the corresponding content-data According to flow.
When the abnormal determination result indicates that the high in the clouds proxy server is disabled, the local agent service will be described Data acquisition request is sent to the data server(S510), and obtain the corresponding content-data from data server (S520).In communication process of the local agent service with the data server, if the two i.e. can be logical using 3G Communication network can also be communicated using WiFi communication network, then preferentially communicated using WiFi communication network, to save The data traffic of terminal device.
When the abnormal determination result indicates that the high in the clouds proxy server overloads, the local agent service acquisition is used The distributing strategy of each application in the terminal device(Step 530);Data acquisition is asked based on the distributing strategy Ask and be split as the first subdata acquisition request and the acquisition request of the second subdata(S540);First subdata is obtained into request hair It is sent to the data server and second subdata acquisition request is sent to the high in the clouds proxy server(S550), Receive to obtain the corresponding content-data of request and acted on behalf of from the high in the clouds with first subdata from the data server and take Business device is received and obtains the corresponding content-data of request with second subdata(S560).In S530-S540, distributing strategy Each application can be directed to and be arranged differently than, so as to realize more flexible shunting.In addition it is also possible to not for application Distributing strategy is set, and unified shunting mode is used according to the size of the content-data asked, for example, data can be obtained To take obtained as first subdata on the big request of the data volumes such as picture, animation in request and ask, and by data acquisition Obtained as second subdata on the small request of the data volumes such as text, webpage in request and asked.Alternatively, can be with pin Different distributing strategies are set to the different user of terminal device.
In the data capture method of the embodiment of the present invention, by determining the exception of the high in the clouds proxy server, according to Just take different acquisition strategies to obtain asked content-data from the abnormal determination result, user is set by terminal The data traffic of terminal device is saved while standby quick obtaining content-data, thus user can facilitate, it is efficient, cost-effective Ground obtains data.
In order to more fully disclose the data capture method of the embodiment of the present invention, terminal device profit is described with reference to Fig. 6 The example process of content-data is obtained with the data capture method.Fig. 6 is to schematically illustrate terminal device to utilize root The exemplary process diagram of content-data is obtained according to the data capture method of the embodiment of the present invention.
In S601, monitoring arrangement 40 finds the high in the clouds proxy server during high in the clouds proxy server 20 is monitored 20 is abnormal.In S602, the unusual condition information of the high in the clouds proxy server 20 is sent to local agent by the monitoring arrangement 40 Service 110.In S603, the local agent service 110 obtains distributing strategy, and the distributing strategy can be dynamically adjusted. In S604, data acquisition request is split as the first subdata and obtained by the local agent service 110 based on the distributing strategy Take request and the second subdata obtains request.In S605, first subdata is obtained request and sent by local agent service 110 To the high in the clouds proxy server 20.In S606, the high in the clouds proxy server 20 by compression after with first subdata Obtain the corresponding content-data of request and be sent to local agent service 110.In S607, local agent service 110 is by described the Two subdatas obtain request and are sent to the data server 30.In S608, the data server 30 will be with described second Subdata obtains the corresponding content-data of request and is sent to the local agent service 110.It can be seen that, in S606 and S608, this Ground agency service 110 obtains content-data corresponding with data acquisition request.Hereafter, in S609, the local agent clothes Business 110 sends inquiry request according to query strategy to the monitoring arrangement 40.In S610, the monitoring arrangement 40 is in response to institute State inquiry request and send Query Result to the local agent service 110, the Query Result indicates high in the clouds proxy server 20 Abnormal releasing, i.e., it is working properly.In S611, local agent service 110 determines the high in the clouds generation according to the Query Result Whether the exception for managing server is released from.In S612, when it is determined that the exception of the high in the clouds proxy server is released from, to institute State high in the clouds proxy server 20 and send data acquisition request.If the exception of high in the clouds proxy server 20 is not released from, pin New data acquisition request is continued to obtain content-data according to distributing strategy.
Fig. 7 is the block diagram of the terminal device for schematically illustrating according to embodiments of the present invention.The terminal device is applied to such as Communication network shown in Fig. 1, and corresponding to the terminal device 10 in Fig. 1.Therefore, the terminal device in Fig. 7 is by described local Agency service is communicatively coupled with data server and high in the clouds proxy server respectively, when the high in the clouds proxy server is from described Terminal device receive for ask from the data server obtain the data acquisition request of content-data when, the high in the clouds agency Server obtains the content-data, the content-data is compressed and is transmitted to the terminal device from the data server The content-data for having compressed.The terminal device in Fig. 7 applies 720 including local agent service 710 and at least one.It is described extremely A few application 720 is used to send the data acquisition request for obtaining content-data from the data server for request. The local agent service 710 includes:Abnormal determining unit 711, the unusual condition for determining the high in the clouds proxy server Information, and produce an abnormal determination result;Policy determining unit 712, for indicating the high in the clouds when the abnormal determination result When proxy server is abnormal, acquisition strategy corresponding with the exception determination result is obtained;Communication unit 713, for according to institute State acquisition strategy, obtain content-data corresponding with the data acquisition request that described at least one application sends.
The abnormal determining unit 711 is produced by being used to determine the unusual condition information of the high in the clouds proxy server A raw abnormal determination result.As it was previously stated, the unusual condition information for example refer to the high in the clouds proxy server can not be right Data acquisition request responds, long to response time of data acquisition request or high in the clouds proxy server load The information such as situation.According to the difference of abnormal determination mode, different unusual condition information can be obtained, so as to produce and the exception The corresponding abnormal determination result of condition information.
The abnormal determining unit 711 can determine the high in the clouds generation using various technologies that are existing or occurring in the future Manage the unusual condition information of server.As an example, the abnormal determining unit 711 can be according to the local agent service 710 determine the unusual condition information with the communication of the high in the clouds proxy server.Specifically, can be by the communication unit 713 send message to the high in the clouds proxy server, and receive response of the high in the clouds proxy server to the message;It is described Abnormal determining unit 711 can determine the unusual condition information of the high in the clouds proxy server based on the response.The message It can be the network request of ping orders or such as data acquisition request.When the message is network request, the exception Determining unit 711 can be in the response timeout time and response timeout number of times according to the high in the clouds proxy server to the message At least one determine the unusual condition information of the high in the clouds proxy server.Before description on the part may refer to Description in S210.
Additionally, the abnormal determining unit 711 can also utilize the monitoring arrangement in server end setting described to determine The unusual condition information of high in the clouds proxy server.Specifically, the monitoring arrangement be connected with the high in the clouds proxy server communication and The running status of the high in the clouds proxy server is monitored, the local agent service 710 is connected to the monitoring arrangement(Referring to figure 3).The unusual condition information of the high in the clouds proxy server is obtained from the monitoring arrangement using the communication unit 713, should Unusual condition information is the information that the monitoring arrangement is obtained by monitoring the running status of the high in the clouds proxy server.Institute Abnormal determining unit 711 is stated to believe for determining the unusual condition of the high in the clouds proxy server based on the running state information Breath, and produce an abnormal determination result.
The communication unit 713 can obtain the different of the high in the clouds proxy server by following operation from the monitoring arrangement Normal condition information:The communication unit 713 sends inquiry request according to query strategy to the monitoring arrangement, receives the monitoring The Query Result that device sends in response to the inquiry request, the Query Result is the high in the clouds generation that the monitoring arrangement is monitored Manage the running status of server;The abnormal determining unit 711 determines the high in the clouds proxy server according to the Query Result It is whether abnormal, and when it is determined that the high in the clouds proxy server is abnormal, obtain the unusual condition of the high in the clouds proxy server Information, wherein, the query strategy can be adjusted according to the Query Result, to improve search efficiency.Using the enquiry machine System, beyond the clouds after proxy server exception, local agent service 710 can in time find that high in the clouds is acted on behalf of using monitoring arrangement The normal operative condition of server, and in time using high in the clouds proxy server acquisition content-data, so as to save terminal device Data traffic.Additionally, substitute send inquiry request to the monitoring arrangement, can also automatically will be by the monitoring arrangement The unusual condition information found during monitoring is sent to the local agent service 710.
The local agent service 710 is caused not can connect to the monitoring when being broken down due to the monitoring arrangement During device, it is described to determine with the communication of high in the clouds proxy server that abnormal determining unit 711 is also based on local agent service The exception of high in the clouds proxy server.Specifically, the communication unit 713 also sends message to the high in the clouds proxy server, and Receive response of the high in the clouds proxy server to the message.The abnormal determining unit is determined described based on the response The exception of high in the clouds proxy server.Here, by using different abnormal determination modes in combination, high in the clouds can be accurately determined The unusual condition information of proxy server, and produce abnormal determination result.
The high in the clouds agency service is determined using the monitoring arrangement set in server end on abnormal determining unit 711 The abnormal details of device, may refer to the description carried out above in conjunction with Fig. 3 and Fig. 4.
When the abnormal determination result indicates that the high in the clouds proxy server is abnormal, the communication unit 713 is according to plan Acquisition strategy, acquisition are corresponding with the data acquisition request that described at least one application sends slightly determined by determining unit 712 Content-data, occurs to balance to the response speed of the data acquisition request and in the acquisition of the corresponding content-data Data traffic.It is described it is abnormal determine that result can include that high in the clouds proxy server as described above is disabled or overloaded, can be with Include other abnormal conditions as needed.Include that high in the clouds proxy server is disabled or super with the abnormal determination result below The operation of communication unit is described in case of load.
When the abnormal determining unit 711 determines that the high in the clouds proxy server is disabled, the communication unit 713 according to The operation that the acquisition strategy obtains content-data includes:The data acquisition request is sent to the data server, and The corresponding content-data is obtained from data server.
When the abnormal determining unit 711 determines that the high in the clouds proxy server overloads, the communication unit 713 according to The operation that the acquisition strategy obtains content-data includes:Data acquisition request is split as the first subdata and obtains request and the Two subdatas obtain request, first subdata acquisition request is sent into the high in the clouds proxy server and is acted on behalf of from the high in the clouds Server is received and obtains the corresponding content-data of request with first subdata, and second subdata is obtained into request sends Received and the second subdata acquisition corresponding content-data of request to the data server and from the data server. The data acquisition request is split as the first subdata as the communication unit 713 and obtains request and the acquisition of the second subdata The example of request, it is possible to use the policy determining unit 712 is come the distributing strategy that determines to be applied for each, communication unit 713 receive the distributing strategy from the policy determining unit 712, and is torn open data acquisition request based on the distributing strategy It is divided into the first subdata and obtains request and the acquisition request of the second subdata.
On the operation performed by communication unit 713, the description carried out with reference to Fig. 5 is may refer to.Additionally, the present invention is implemented The local agent service in example can also carry out data acquisition operations as shown in Figure 6.
In the terminal device of the embodiment of the present invention, the high in the clouds proxy server is determined by using abnormal determining unit Exception, according to from it is described it is abnormal determine that result just takes the asked content-data of different acquisition strategies acquisitions, make user While by terminal device quick obtaining content-data save terminal device data traffic so that user can facilitate, Efficiently, data are obtained cost-effectively.
It should be noted that the division of the unit in Fig. 7 is only schematic, other dividing modes can be taken in practice. Additionally, it is apparent to those skilled in the art that, for convenience and simplicity of description, the equipment of foregoing description, list The specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application The scope of the present invention.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment(Can be individual People's computer, server, or network equipment etc.)Perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage, random access memory, magnetic disc or CD etc. are each Planting can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (16)

1. a kind of data capture method, is applied to a terminal device, and the terminal device has at least one application local with one Agency service, the terminal device is carried out with data server and high in the clouds proxy server respectively by the local agent service Communication connection, when the high in the clouds proxy server receives described at least one using being used for for sending from the local agent service Request from the data server obtain the data acquisition request of content-data when, the high in the clouds proxy server takes from the data Business device obtains the content-data, the content number that the content-data is compressed and compressed to local agent service transmission According to the data capture method includes:
The local agent service determines the unusual condition information of the high in the clouds proxy server, and produces an abnormal determination knot Really;
When it is described it is abnormal determine that result indicates that the high in the clouds proxy server is abnormal when, the local agent service according to it is described It is abnormal to determine the corresponding acquisition strategy of result, obtain content corresponding with the data acquisition request that described at least one application sends Data,
Wherein, it is described it is abnormal determine that result includes the deactivation of high in the clouds proxy server or overload, the local agent service according to Determine the corresponding acquisition strategy of result with the exception, obtain corresponding with the data acquisition request that described at least one application sends Content-data the step of include:
When it is described it is abnormal determine that result indicates that the high in the clouds proxy server is disabled when, the local agent service is by the data Obtain request and be sent to the data server, and the corresponding content-data is obtained from data server;
When it is described it is abnormal determine that result indicates that the high in the clouds proxy server overloads when, the local agent service is by the data Obtain request and be split as the first subdata acquisition request and the acquisition request of the second subdata, by first subdata acquisition request hair It is sent to the high in the clouds proxy server and receives corresponding with first subdata acquisition request from the high in the clouds proxy server Content-data, by second subdata acquisition request be sent to the data server and from the data server receive with Second subdata obtains the corresponding content-data of request.
2. data capture method as claimed in claim 1, wherein, the local agent service abnormal determines knot according to described Really corresponding acquisition strategy, acquisition content-data corresponding with the data acquisition request that described at least one application sends, so as to Balance the data traffic occurred to the response speed of the data acquisition request and in the acquisition of the corresponding content-data.
3. data capture method according to claim 1, wherein, the local agent service in the terminal device is also connected to prison View apparatus, the monitoring arrangement is connected with the high in the clouds proxy server communication and monitors the operation of the high in the clouds proxy server State,
The step of local agent service determines the unusual condition information of the high in the clouds proxy server includes:From the monitoring Device obtains the unusual condition information of the high in the clouds proxy server, and the unusual condition information is the monitoring arrangement by monitoring The running status of the high in the clouds proxy server and the information that obtains.
4. data capture method according to claim 3, wherein, it is described to receive the high in the clouds proxy server from monitoring arrangement The step of unusual condition information, includes:
The local agent service sends inquiry request according to query strategy to the monitoring arrangement;
The Query Result that the monitoring arrangement sends in response to the inquiry request is received, the Query Result is the monitoring dress The running status of monitored high in the clouds proxy server is put,
Determine whether the high in the clouds proxy server is abnormal according to the Query Result;And
When it is determined that the high in the clouds proxy server is abnormal, the unusual condition information of the high in the clouds proxy server is obtained,
Wherein, the query strategy can be adjusted according to the Query Result.
5. data capture method according to claim 3, wherein, cause the end when being broken down due to the monitoring arrangement When local agent service in end equipment not can connect to the monitoring arrangement, the local agent service comes as follows Determine the unusual condition information of the high in the clouds proxy server:
Message is sent to the high in the clouds proxy server;
Receive response of the high in the clouds proxy server to the message;And
The unusual condition information of the high in the clouds proxy server is determined based on the response.
6. data capture method according to claim 1, wherein, the local agent service determines the high in the clouds proxy server Unusual condition information the step of include:
The local agent service sends message to the high in the clouds proxy server;
Receive response of the high in the clouds proxy server to the message;
The unusual condition information of the high in the clouds proxy server is determined according to the response.
7. data capture method according to claim 6, wherein, the message is network request,
It is described to respond to determine that the unusual condition information of the high in the clouds proxy server includes according to described:According to the high in the clouds generation Reason server determines the high in the clouds agency at least one of the response timeout time of the message and response timeout number of times The unusual condition information of server.
8. data capture method according to claim 1, wherein, it is described data acquisition request is split as the first subdata to obtain The step of request and the second subdata obtain request includes:
The distributing strategy of each application that the local agent service acquisition is used in the terminal device;With
Data acquisition request is split as by the first subdata based on the distributing strategy and obtains request and the acquisition of the second subdata Request.
9. a kind of terminal device, the terminal device by local agent service respectively with data server and high in the clouds proxy server It is communicatively coupled, when the high in the clouds proxy server is received for asking to be obtained from the data server from the terminal device The data acquisition request of content-data when, the high in the clouds proxy server from the data server obtain the content-data, The content-data that the content-data is compressed and compressed to terminal device transmission, the terminal device includes:
At least one application, please for sending the data acquisition for asking to obtain content-data from the data server Ask;
The local agent service, including:
Abnormal determining unit, the unusual condition information for determining the high in the clouds proxy server, and produce an abnormal determination knot Really;
Policy determining unit, for when the abnormal determination result indicates that the high in the clouds proxy server is abnormal, obtaining and institute State the corresponding acquisition strategy of abnormal determination result;
Communication unit, for the data acquisition request pair sent with described at least one application according to the acquisition strategy, acquisition The content-data answered;
Wherein, the abnormal deactivation for determining result including high in the clouds proxy server or overload,
When the abnormal determining unit determines that the high in the clouds proxy server is disabled, the communication unit is according to the acquisition plan The operation for slightly obtaining content-data includes:The data acquisition request is sent to the data server, and from data, services Device obtains the corresponding content-data;And
When the abnormal determining unit determines that the high in the clouds proxy server overloads, the communication unit is according to the acquisition plan The operation for slightly obtaining content-data includes:Data acquisition request is split as the first subdata acquisition request and the second subdata is obtained Request is taken, first subdata acquisition request is sent to the high in the clouds proxy server and is received from the high in the clouds proxy server The corresponding content-data of request is obtained with first subdata, second subdata acquisition request is sent to the data Server is simultaneously received and the second subdata acquisition corresponding content-data of request from the data server.
10. terminal device according to claim 9, wherein, the communication unit according to the acquisition strategy, obtain with it is described extremely The corresponding content-data of data acquisition request that a few application sends, to balance the response speed to the data acquisition request With the data traffic occurred in the acquisition of the corresponding content-data.
11. terminal devices according to claim 9, wherein, the local agent service is also connected to monitoring arrangement, monitoring dress The running status that the high in the clouds proxy server is connected and monitored with the high in the clouds proxy server communication is put,
The communication unit is additionally operable to be obtained from the monitoring arrangement unusual condition information of the high in the clouds proxy server, and this is different Normal condition information is the information that the monitoring arrangement is obtained by monitoring the running status of the high in the clouds proxy server,
The abnormal determining unit is used to determine the abnormal shape of the high in the clouds proxy server based on the running state information Condition information, and produce an abnormal determination result.
12. terminal devices according to claim 11, wherein,
The communication unit is believed by the unusual condition that following operation obtains the high in the clouds proxy server from the monitoring arrangement Breath:The communication unit sends inquiry request according to query strategy to the monitoring arrangement;Receive the monitoring arrangement in response to The inquiry request and the Query Result that sends, the Query Result is the high in the clouds proxy server that the monitoring arrangement is monitored Running status,
The abnormal determining unit determines whether the high in the clouds proxy server abnormal according to the Query Result, and it is determined that When the high in the clouds proxy server is abnormal, the unusual condition information of the high in the clouds proxy server is obtained,
Wherein, the query strategy can be adjusted according to the Query Result.
13. terminal devices according to claim 11, wherein, cause the terminal when being broken down due to the monitoring arrangement When local agent service in equipment not can connect to the monitoring arrangement,
The communication unit also sends message to the high in the clouds proxy server, and receives the high in the clouds proxy server to described The response of message;And
The abnormal determining unit determines the unusual condition information of the high in the clouds proxy server based on the response.
14. terminal devices according to claim 9, wherein,
The communication unit is additionally operable to send message to the high in the clouds proxy server, and receives the high in the clouds proxy server pair The response of the message,
The abnormal determining unit is used to determine based on the response unusual condition information of the high in the clouds proxy server.
15. terminal devices according to claim 14, wherein, the message is network request,
The abnormal determining unit is according to the high in the clouds proxy server to the response timeout time of the message and response timeout At least one of number of times determines the unusual condition information of the high in the clouds proxy server.
16. terminal devices according to claim 9, wherein, the policy determining unit also determines the shunting applied for each Strategy,
The data acquisition request is split as the first subdata and obtains request and second by the communication unit by following operation Subdata obtains request:The distributing strategy is received from the policy determining unit;With based on the distributing strategy come by data Obtain request and be split as the first subdata acquisition request and the acquisition request of the second subdata.
CN201210364231.1A 2012-09-26 2012-09-26 Data acquisition method and terminal equipment Active CN103685436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210364231.1A CN103685436B (en) 2012-09-26 2012-09-26 Data acquisition method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210364231.1A CN103685436B (en) 2012-09-26 2012-09-26 Data acquisition method and terminal equipment

Publications (2)

Publication Number Publication Date
CN103685436A CN103685436A (en) 2014-03-26
CN103685436B true CN103685436B (en) 2017-05-24

Family

ID=50321731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210364231.1A Active CN103685436B (en) 2012-09-26 2012-09-26 Data acquisition method and terminal equipment

Country Status (1)

Country Link
CN (1) CN103685436B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141632B (en) * 2015-09-21 2018-09-14 北京百度网讯科技有限公司 Method and apparatus for checking the page
CN108039958B (en) * 2017-11-17 2021-02-19 深圳前海微众银行股份有限公司 Data error checking method and device and computer readable storage medium
CN108366020B (en) * 2018-02-02 2020-09-18 网宿科技股份有限公司 Method and system for sending acquisition request of data resource
CN110941838B (en) * 2019-11-12 2024-03-01 深圳昂楷科技有限公司 Database access method and device and electronic equipment
CN111131225A (en) * 2019-12-20 2020-05-08 珠海市魅族科技有限公司 Network connection method and device based on proxy server
CN115277687B (en) * 2021-04-30 2024-02-23 北京小米移动软件有限公司 Resource data acquisition method, resource data acquisition device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185923A (en) * 2011-05-16 2011-09-14 广州市动景计算机科技有限公司 Webpage browsing method for mobile communication equipment terminal
CN102325188A (en) * 2011-09-16 2012-01-18 北京新媒传信科技有限公司 Method for realizing webpage browsing on a mobile terminal and system thereof
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110238855A1 (en) * 2000-09-25 2011-09-29 Yevgeny Korsunsky Processing data flows with a data flow processor
US7054912B2 (en) * 2001-03-12 2006-05-30 Kabushiki Kaisha Toshiba Data transfer scheme using caching technique for reducing network load
CN102055730B (en) * 2009-11-02 2013-09-11 华为终端有限公司 Cloud processing system, cloud processing method and cloud computing agent device
CN102201010A (en) * 2011-06-23 2011-09-28 清华大学 Distributed database system without sharing structure and realizing method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185923A (en) * 2011-05-16 2011-09-14 广州市动景计算机科技有限公司 Webpage browsing method for mobile communication equipment terminal
CN102325188A (en) * 2011-09-16 2012-01-18 北京新媒传信科技有限公司 Method for realizing webpage browsing on a mobile terminal and system thereof
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device

Also Published As

Publication number Publication date
CN103685436A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103685436B (en) Data acquisition method and terminal equipment
CN103761309B (en) Operation data processing method and system
CN102577241B (en) Method, device and system for scheduling distributed buffer resources
CN102916854B (en) Flow statistical method, device and proxy server
CN110290217A (en) Processing method and processing device, storage medium and the electronic device of request of data
DE102019129690A1 (en) DATA RATE ADAPTIVE LEFT SPEED
CN103369601A (en) Method for providing large concurrent processing and flow control for mobile phone client sides
CN106603598A (en) Method for processing service request and apparatus thereof
CN103188270A (en) Method, device and system for accessing recommended server to IP address
US10708378B2 (en) Data processing method and apparatus, server, and controller
CN108462956A (en) The method and electronic equipment connected at once after discovering device
CN110460541A (en) Current-limiting method and device applied to web server
CN109561054A (en) A kind of data transmission method, controller and access device
EP2503762B1 (en) Method, apparatus and system for cache collaboration
JP2013533555A5 (en)
CN102882805B (en) Avoid method and the device of link aggregation group from state transition
CN111796935B (en) Consumption instance distribution method and system for calling log information
CN101986703A (en) Video recording method, network video surveillance system and front end as well as scheduling server
CN103746839B (en) PaaS systems and PaaS are using the VM node scheduling methods in pond
CN107798015A (en) Game services end offline operation method
CN106953884A (en) Middleware message treatment method, device and middleware platform
CN108205479A (en) The method, apparatus and storage medium of a kind of faulted-phase judgment
CN111930724B (en) Data migration method and device, storage medium and electronic equipment
CN107197323A (en) A kind of network video-on-demand server and its application based on DVFS
CN102497431B (en) Memory application method and system for caching application data of transmission control protocol (TCP) connection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant