CN102769604B - Operation data processing method and processing device - Google Patents

Operation data processing method and processing device Download PDF

Info

Publication number
CN102769604B
CN102769604B CN201110114243.4A CN201110114243A CN102769604B CN 102769604 B CN102769604 B CN 102769604B CN 201110114243 A CN201110114243 A CN 201110114243A CN 102769604 B CN102769604 B CN 102769604B
Authority
CN
China
Prior art keywords
operation data
transmission
client
operating list
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110114243.4A
Other languages
Chinese (zh)
Other versions
CN102769604A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110114243.4A priority Critical patent/CN102769604B/en
Publication of CN102769604A publication Critical patent/CN102769604A/en
Application granted granted Critical
Publication of CN102769604B publication Critical patent/CN102769604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A kind of operation data processing method, comprises the following steps: obtain user's operation data in client;The operation data that transmission gets are to server;Judge that the transmission of described operation data is the most successful, if it is not, then described operation data are stored in local client;Detection network state;When network state is client and time server can be attached or transmission speed between client and server returns to threshold speed, transmission is stored in the operation data of local client again.Aforesaid operations data processing method and device when being transmitted without successfully, operation data are stored in local client in operation data, and the operation data of storage are again transmitted according to network state, the operation data not having Successful transmissions will not be lost, thus the situation decreasing operation loss of data occurs.

Description

Operation data processing method and processing device
[technical field]
The present invention relates to network technology, particularly relate to a kind of operation data processing method and processing device.
[background technology]
Along with the development of network application, various network applications have become as must not in people's daily life The instrument that can lack.But, in real life, the quality of network is usually not as people's will, the situation of Network Abnormal Often occurring, this makes the various network applications depending on network that losing of data frequently occur when Network Abnormal Lose.
Such as, during user opens webpage, network occurs abnormal, causes browser cannot submit user's to Operational order, causes webpage to open, and now, user can only ceaselessly refresh webpage;Carry out user During the registration of website, when submitting log-on data to user orientation server, network there occurs exception so that registration Loss of data, when network recovery, user has to again input log-on data, to re-start the note of website Volume.
[summary of the invention]
Based on this, it is necessary to provide a kind of operation data processing method reducing operation loss of data.
Additionally, there is a need to provide a kind of operation data processing method reducing operation loss of data.
A kind of operation data processing method, comprises the following steps:
Obtain user's operation data in client;
The operation data that transmission gets are to server;
Judge that the transmission of described operation data is the most successful, if it is not, then described operation data are stored in this locality Client;
Detection network state;
When network state is client and server can be attached or transmission between client and server When speed returns to threshold speed, transmission is stored in the operation data of local client again.
Preferably, described user is the read-write operation institute that user's Website login is carried out in the operation data of client The operational order produced or the data of input, or user initiated when interacting with other users File transfer operation and the file of transmission.
Preferably, the step that described operation data are stored in local client is:
Generate and do not submit operating list to, and operating list will not submitted to be stored in local client;
Do not submit in operating list described in described operation data are stored in.
Preferably, when network state is client with server can be attached or client and server it Between transmission speed when returning to threshold speed, transmission is stored in the step of operation data of local client again Suddenly it is:
Do not submit to described in judgement and whether operating list exists operation data, the most then do not submit behaviour to by described Make the operation data retransmission in list.
Preferably, described by after the step of the described operation data retransmission do not submitted in operating list also Including:
Remove and do not submit the operation data again transmitted in operating list to.
Preferably, the step of the operation data that described transmission gets is:
Judge whether the flow consumed during the operation data transmission got is more than the limit current value set, if so, The transmission of the operation data got described in then interrupting, if it is not, then transmit the operation data got;
The step of the described operation data again transmitting storage according to described network state is:
Handover network, and by switching Internet on middle have no progeny storage operation data again transmit.
A kind of operation data processing device, at least includes:
Acquisition module, for obtaining user's operation data in client;
Transport module, for transmitting the operation data got to server;
Judge module, the most successful for judging the transmission of described operation data, if it is not, then notice storage mould Block;
Described memory module is for being stored in local client by described operation data;
Detection module, is used for detecting network state;
Described transport module is additionally operable to when network state is that client can be attached or client with server And when the transmission speed between server returns to threshold speed, transmission is stored in the behaviour of local client again Make data.
Preferably, the user that described acquisition module gets is user's Website login in the operation data of client Operational order produced by the read-write operation carried out or the data of input, or user entering with other users The file transfer operation initiated when going mutual and the file of transmission.
Preferably, described memory module does not submits operating list to for generating, and operating list will not submitted to store In local client, and it is stored in not submit to by described operation data and states in operating list.
Preferably, described judge module is additionally operable to described in judgement not submit in operating list whether there is operand to According to, the most then notify described transport module;
Described transport module is for by the described operation data retransmission do not submitted in operating list.
Preferably, described memory module is additionally operable to remove and does not submits the operation data again transmitted in operating list to.
Preferably, when described transport module is for judging the operation data transmission got, whether the flow of consumption More than the limit current value set, the most then interrupt described in the transmission of operation data that gets, handover network, And by switching Internet on middle have no progeny storage operation data again transmit, if it is not, then transmit acquisition The operation data arrived.
Aforesaid operations data processing method and device when being transmitted without successfully, operation data are deposited in operation data It is stored in local client, and again transmits the operation data of storage according to network state so that not success The operation data of transmission will not be lost, thus the situation decreasing operation loss of data occurs.
[accompanying drawing explanation]
Fig. 1 is the flow chart operating data processing method in an embodiment;
Fig. 2 is the method flow diagram that operation data are stored in Fig. 1 this locality;
Fig. 3 is the structural representation of operation data processing device in another embodiment.
[detailed description of the invention]
Fig. 1 shows and operates the method flow that data process in an embodiment, comprises the following steps:
Step S101, obtains user's operation data in client.In the present embodiment, operation data be by with The data that the operation that family is submitted to produces.Operation data can be some read-writes behaviour that user's Website login is carried out Make produced operational order or the data of input, it is also possible to be user interacting time institute with other users The file transfer operation initiated and the file of transmission.Such as, user clicks through the behaviour that a certain webpage is triggered It is operation data as instruction, obtains this operation data, in order to perform the operation that user is carried out.
Step S102, the operation data that transmission gets are to server.In the present embodiment, carried according to user The operation handed over carries out operating the transmission of data.Such as, user is clicked through to the operation of a certain webpage, Get after relevant operation data communicating operational data in server, in order to the operation of response user is beaten Open webpage.User is sent to the operation of file to other users, use to other after getting operation data Family is transmitted.
For employing the user of mobile terminal, limit current value in transmission configuration information can be set, enter And the operation data got are transmitted according to the limit current value set.When judging the operation data transmission got The flow consumed whether more than the limit current value set, the most then interrupts the transmission of the operation data got, If it is not, then transmit the operation data got.
Step S103, it is judged that the transmission of operation data is the most successful, if it is not, then enter step S104, if so, Then terminate.In the present embodiment, owing to the transmission of operation data depends on the quality of network quality, network connects Speed is slow, network off and on and network the situation of Network Abnormal such as cannot connect and all can cause operand According to bust this.
Operation data are stored in local client by step S104.In the present embodiment, when the biography of operation data Defeated when not having successful, operation data are stored in local client, when network recovery, re-start transmission, Ensure that operation data integrity, it is to avoid the loss of operation data.In a preferred embodiment, due to behaviour Make the transmitting procedure of data would generally create temporary file to accelerate transmission speed, this temporary file is deposited Store up all of operation data, therefore can directly the temporary file corresponding to the operation data of bust this have been protected Store away, again transmit when network recovery.
In a specific embodiment, as in figure 2 it is shown, operation data to be stored in the step of local client Suddenly it is:
Step S114, generates and does not submits operating list to, and operating list will not submitted to be stored in local client In.In the present embodiment, during operation data transmission fails, generate in client and do not submit operating list to, and deposit Storage, this do not submit to operating list be used for fail transmission operation data carry out orderly management, for depositing Situation in the operation data of the transmission that fails in a large number also will not occur confusion, it is ensured that follow-up high efficiency Processing procedure.
Operation data are stored in and do not submit in operating list by step S134.In the present embodiment, will fail into The operation data of merit transmission are stored in one by one not to be submitted in operating list.
Step S105, detects network state.In the present embodiment, detect current network state, treat network-like State is in client and server can be attached or transmission speed between client and server returns to The transmission of operation data is re-started during this normal network conditions of threshold speed set.According to actual need Want, the detection of network state can be carried out in real time, it is also possible to periodically carry out the detection of network state.
In another embodiment, for employing the user of mobile device, the step of detection network state is: root Network of network state is specified according to network settings detection.Such as, it is intended that network can be 3G (3rd-generation, G mobile communication), wifi (wireless fidelity, Wireless Fidelity) etc..
Step S106, can be attached or client and server when network state is client with server Between transmission speed when returning to threshold speed, transmission is stored in the operation data of local client again. In the present embodiment, when network state is client with server can be attached or client and server it Between transmission speed when returning to threshold speed, transmission is stored in the step of operation data of local client again Suddenly it is: judge not submit whether operating list exists operation data to, the most then will not submit operating list to In operation data retransmission, if it is not, then terminate.Check when network state is in normal condition and do not carry Hand in operating list and whether there are operation data, if do not submitted to, operating list exists operation data, then weigh New these operation data of transmission, to recover the transmitting procedure interrupted.
If additionally, user uses mobile device, then again transmit the operand of storage according to network state According to step it may also is that for delivery flow rate more than the operation data of limit current value, handover network, and lead to The network crossing switching transmits the operation data of storage again.The user employing mobile device is carrying out picture Transmission needs to spend more flow, thus causes expenses of surfing Internet higher, therefore, in the transmission carrying out image Time can be switched to network in the network that the expensess of surfing Internet such as wifi are relatively low be transmitted.
In another embodiment, further comprises after the step that the operation in operating list will not submitted to again to transmit Remove the step not submitting the operation data again transmitted in operating list to.In the present embodiment, data to be operated After Successful transmissions, remove this operation data record in not submitting operating list to, if the transmission of operation data Failure, does not the most remove these data record in not submitting data list to, and user can open and not submit data to The operation data of bust this are manually initiated transmission, or setting are retried the time, reaching setting by list The operation data of bust this when retrying the time are transmitted again.Such as, this retries the time can be 30 points Clock, it is also possible to be that user is when logging on.
In the aforesaid operations data processing method of other embodiments, again transmit the behaviour of storage according to network state The step receiving the response that the operation data newly transmitted of counterweight are carried out also is included after making the step of data.This reality Execute in example, at Successful transmissions after operation data, receive the response that these operation data are carried out, with to user Show the result of operation.
Fig. 3 shows operation data processing device in an embodiment, at least includes acquisition module 10, transmission Module 20, judge module 30, memory module 40 and detection module 50.
Acquisition module 10, for obtaining user's operation data in client.In the present embodiment, operate data It is the data of the operation generation submitted to by user.Operation data can be some that user's Website login is carried out Operational order produced by read-write operation or the data of input, it is also possible to be that user is handing over other users The file transfer operation initiated time mutually and the file of transmission.Such as, user clicks through a certain webpage and is touched The operational order sent out is operation data, and acquisition module 10 obtains this operation data, in order to perform user institute The operation carried out.
Transport module 20, for transmitting the operation data got to server.In the present embodiment, transmit mould Block 20 carries out operating the transmission of data according to the operation that user is submitted to.Such as, user is clicked through certain The operation of one webpage, after acquisition module 10 gets relevant operation data, transport module 20 transmission operation Data are in server, in order to webpage is opened in the operation of response user.User is sent to other users The operation of file, after acquisition module 10 gets operation data, transport module 20 transmits to other users.
Judge module 30, for judging that the transmission operating data is the most successful, if it is not, then notify memory module 30.In the present embodiment, owing to the transmission of operation data depends on the quality of network quality, network connection speed Slowly, network off and on and network the situation of Network Abnormal such as cannot connect and all can cause operating data Bust this.
Memory module 30, for being stored in local client by operation data.In the present embodiment, work as operand According to when being transmitted without successfully, memory module 30 storage operation data, when network recovery, re-start transmission, Ensure that operation data integrity, it is to avoid the loss of operation data.In a preferred embodiment, due to behaviour Make the transmitting procedure of data would generally create temporary file to accelerate transmission speed, this temporary file is deposited Stored up all of operation data, therefore, memory module 30 can directly with the form of temporary file by bust this Operation data save, again transmit when network recovery.
Specifically, memory module 30 does not submits operating list to for generating, and operating list will not submitted to store In local client, operation data are stored in and do not submit in operating list.During operation data transmission fails, Memory module 30 generates does not submits operating list to, and stores, and the operation data of the transmission that fails is deposited one by one It is stored in and does not submits in operating list.This do not submit to operating list be used for fail transmission operation data enter Row orderly management, also will not occur confusion for existing to fail in a large number when transmission operates data, Ensure that follow-up high efficiency processing procedure.
Detection module 40, is used for detecting network state.In the present embodiment, detection module 40 detects current net Network state, treats that network state is in client and server can be attached or between client and server Transmission speed return to set this normal network conditions of threshold speed time re-start operation data biography Defeated.According to the actual needs, the detection of network state can be carried out in real time, it is also possible to periodically carry out network The detection of state.
In another embodiment, it is judged that module 30 is additionally operable to judge not submit in operating list whether there is operand According to, the most then notification transmission module 20, if it is not, then stop performing.In the present embodiment, treat network state When being in normal condition, judge module 20 checks not submit to whether there are operation data in operating list, if not Submit to and there are operation data in operating list, then notification transmission module 20 transmits this operation data again, with extensive The multiple transmitting procedure interrupted.
Transport module 20 be additionally operable to when network state is client with server can be attached or client with When transmission speed between server returns to threshold speed, transmission is stored in the operation of local client again Data.In the present embodiment, transport module 20 will be stored in the behaviour not submitted in operating list of local client Make data retransmission.
Memory module 30 is additionally operable to remove does not submits the operation data again transmitted in operating list to.The present embodiment In, after data Successful transmissions to be operated, memory module 30 removes corresponding record in not submitting operating list to, If the bust this of operation data, then memory module 30 does not remove these data note in not submitting data list to Record, user can open and not submit data list to, and the operation data of bust this are manually initiated transmission, or Setting retries the time, and when reaching the time that retries arranged, the operation data of bust this are transmitted again, Such as, this retries the time can be 30 minutes, it is also possible to be that user is when logging on.
In the aforesaid operations data processing equipment of other embodiments, transport module 20 is additionally operable to receive counterweight new biography The response that defeated operation data are carried out.In the present embodiment, at Successful transmissions after operation data, transport module 20 receive the response carrying out these operation data, to show the result of operation to user.
If aforesaid operations data processing equipment is arranged in the mobile terminals such as mobile phone, then transport module 20 is used for sentencing Disconnected get the transmission of operation data time the flow that consumes whether more than the limit current value of setting, the most then in The transmission of the operation data got described in Duan, handover network, and had no progeny storage by the Internet on middle of switching Operation data again transmit, if it is not, then transmit the operation data got.For employing movement The user of terminal, can be transmitted the setting of limit current value in configuration information, and then transport module 20 is according to setting Fixed limit current value transmits the operation data got.Delivery flow rate is more than to the operation data of limit current value, The user employing mobile device needs to spend more flow in the transmission carrying out picture, thus causes online Costly, therefore, when carrying out the transmission of image, network can be switched to the online such as wifi by transport module 20 The network that expense is relatively low is transmitted.
Aforesaid operations data processing equipment may be disposed at the needs such as mobile phone, computer and carries out data interaction with network In terminal.
Aforesaid operations data processing method and device when being transmitted without successfully, operation data are deposited in operation data It is stored in local client, and again transmits the operation data of storage according to network state so that not success The operation data of transmission will not be lost, thus the situation decreasing operation loss of data occurs.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended Claim is as the criterion.

Claims (8)

1. an operation data processing method, comprises the following steps:
Obtain user's operation data in client;
The operation data that transmission gets are to server;
Judge that the transmission of described operation data is the most successful, if it is not, then described operation data are stored in this locality Client do not submits operating list to;Described operating list is not submitted to be used for the operand to unsuccessful transmission According to carrying out orderly management;
Detection network state;
When network state is client and server can be attached or transmission between client and server When speed returns to threshold speed, it is judged that whether described submission to exists operation data, if so, in operating list Then by the described operation data retransmission do not submitted in operating list;
After the operation data Successful transmissions again transmitted, remove the operation data again transmitted and do not submitting behaviour to Make the record in list;If the operation data transmission fails again transmitted, the most do not remove the operation again transmitted Data record in not submitting data list to, and when reaching the time that retries arranged again by bust this Operation data be transmitted.
Operation data processing method the most according to claim 1, it is characterised in that described user is visitor The operation data of family end are operational order or the number of input produced by the read-write operation that user's Website login is carried out According to, or the file transfer operation initiated when interacting with other users of user and the file of transmission.
Operation data processing method the most according to claim 1, it is characterised in that by described operand According to the step not submitting operating list to being stored in local client it is:
Generate and do not submit operating list to, and operating list will not submitted to be stored in local client;
Do not submit in operating list described in described operation data are stored in.
Operation data processing method the most according to claim 1, it is characterised in that described transmission obtains To the step of operation data be:
Judge whether the flow consumed during the operation data transmission got is more than the limit current value set, if so, The transmission of the operation data got described in then interrupting, if it is not, then transmit the operation data got;
The described step by the described operation data retransmission do not submitted in operating list is:
Handover network, and had no progeny the described behaviour not submitting to and storing in operating list by the Internet on middle of switching Again transmit as data.
5. an operation data processing device, it is characterised in that at least include:
Acquisition module, for obtaining user's operation data in client;
Transport module, for transmitting the operation data got to server;
Judge module, the most successful for judging the transmission of described operation data, if it is not, then notice storage mould Block;
Described memory module is not for submitting action column to by what described operation data were stored in local client Table;Described do not submit to operating list to be used for the operation data of unsuccessful transmission to carry out orderly management;
Detection module, is used for detecting network state;
Described judge module is additionally operable to when network state is that client can be attached or client with server And when the transmission speed between server returns to threshold speed, it is judged that described whether do not submit in operating list There are operation data, if then notification transmission module;
Described transport module, for by the described operation data retransmission do not submitted in operating list;
Described memory module is additionally operable to after the operation data Successful transmissions again transmitted, and removing is transmitted again Operation data record in not submitting operating list to;If the operation data transmission fails again transmitted, the most not Remove the operation data again transmitted record in not submitting data list to;
Described transport module is additionally operable to when reaching the time that retries arranged again by the operation data of bust this It is transmitted.
Operation data processing device the most according to claim 5, it is characterised in that described acquisition module The user got is to grasp produced by the read-write operation that carries out of user's Website login in the operation data of client The data instructing or inputting, or the file transmission that user is initiated when interacting with other users Operation and the file of transmission.
Operation data processing device the most according to claim 5, it is characterised in that described memory module Do not submit operating list to for generating, operating list will not submitted to be stored in local client, and by described Operation data are stored in not submit to be stated in operating list.
Operation data processing device the most according to claim 5, it is characterised in that described transport module Whether the flow consumed during for judging the operation data transmission got is more than the limit current value set, if so, The transmission of the operation data got described in then interrupting, handover network, and had no progeny by the Internet on middle of switching The operation data of storage in operating list are not submitted to again to transmit, if it is not, then transmission gets described Operation data.
CN201110114243.4A 2011-05-04 2011-05-04 Operation data processing method and processing device Active CN102769604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110114243.4A CN102769604B (en) 2011-05-04 2011-05-04 Operation data processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110114243.4A CN102769604B (en) 2011-05-04 2011-05-04 Operation data processing method and processing device

Publications (2)

Publication Number Publication Date
CN102769604A CN102769604A (en) 2012-11-07
CN102769604B true CN102769604B (en) 2016-08-17

Family

ID=47096854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110114243.4A Active CN102769604B (en) 2011-05-04 2011-05-04 Operation data processing method and processing device

Country Status (1)

Country Link
CN (1) CN102769604B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242915B (en) * 2015-09-07 2018-11-20 无锡天脉聚源传媒科技有限公司 A kind of processing method and processing device of data manipulation
CN111343078A (en) * 2020-02-20 2020-06-26 北京字节跳动网络技术有限公司 Data publishing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835189A (en) * 2010-05-14 2010-09-15 中兴通讯股份有限公司 Task processing method and mobile terminal
CN101854607A (en) * 2010-05-12 2010-10-06 中兴通讯股份有限公司 Network entity and method for protecting data in unstructured supplementary data service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854607A (en) * 2010-05-12 2010-10-06 中兴通讯股份有限公司 Network entity and method for protecting data in unstructured supplementary data service
CN101835189A (en) * 2010-05-14 2010-09-15 中兴通讯股份有限公司 Task processing method and mobile terminal

Also Published As

Publication number Publication date
CN102769604A (en) 2012-11-07

Similar Documents

Publication Publication Date Title
CN103404113B (en) A kind of notice method for pushing, device and system
CN104156863B (en) The order processing system and method for OTA websites
CN103501340B (en) Information push method, device and client
US10135923B2 (en) Data transfer method and system
CN106060909A (en) Network access method and mobile terminal
CN103139307B (en) A kind of Internet resources download the restoration methods and download system of interrupting
CN105279210A (en) Automatic mode switching in a synchronous replication environment
CN102012812B (en) Device and method for implementing application resource sharing
CN107003907A (en) A kind of data processing method and data processing equipment
US20170031714A1 (en) Computing resource provisioning
CN104836696B (en) A kind of detection method and device of IP address
CN101178680B (en) Method for Mobile phones communication processor instantaneously displaying death error information
CN106993043A (en) Data communication system and method based on agency
CN106407065A (en) Password keyboard USB communication abnormality recovery method and system
CN108540356B (en) Processing method and processing apparatus
CN102769604B (en) Operation data processing method and processing device
CN107707689A (en) A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device
CN103067895B (en) The repeating method of long SMS and communication terminal
CN104683460B (en) A kind of communication means of Internet of Things, device and server
CN103299584A (en) Method for optimizing network performance after a temporary loss of connection
CN109413180B (en) Data acquisition method, system and equipment and storage medium
CN101202671A (en) Method and apparatus for terminal port allocating
CN106067857A (en) A kind of user of preventing is forced the method and device rolled off the production line
CN106169999A (en) The method and device of session backup
CN102625398A (en) Method and equipment for recovering data traffics of high-level applications at time of multi-channel data connection switching

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